public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { output.writeEnum(1, type_); } if (chaincodeId_ != null) { output.writeMessage(2, getChaincodeId()); } if (input_ != null) { output.writeMessage(3, getInput()); } if (timeout_ != 0) { output.writeInt32(4, timeout_); } }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (chaincodeId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChaincodeId()); } if (input_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInput()); } if (timeout_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, timeout_); } memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasChaincodeId()) { hash = (37 * hash) + CHAINCODE_ID_FIELD_NUMBER; hash = (53 * hash) + getChaincodeId().hashCode(); } if (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getTimeout(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasChaincodeId()) { mergeChaincodeId(other.getChaincodeId()); } if (other.hasInput()) { mergeInput(other.getInput()); } if (other.getTimeout() != 0) { setTimeout(other.getTimeout()); } onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasChaincodeId()) { mergeChaincodeId(other.getChaincodeId()); } if (other.hasInput()) { mergeInput(other.getInput()); } if (other.getTimeout() != 0) { setTimeout(other.getTimeout()); } onChanged(); return this; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { output.writeEnum(1, type_); } if (chaincodeId_ != null) { output.writeMessage(2, getChaincodeId()); } if (input_ != null) { output.writeMessage(3, getInput()); } if (timeout_ != 0) { output.writeInt32(4, timeout_); } }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { output.writeEnum(1, type_); } if (chaincodeId_ != null) { output.writeMessage(2, getChaincodeId()); } if (input_ != null) { output.writeMessage(3, getInput()); } if (timeout_ != 0) { output.writeInt32(4, timeout_); } }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { output.writeEnum(1, type_); } if (chaincodeId_ != null) { output.writeMessage(2, getChaincodeId()); } if (input_ != null) { output.writeMessage(3, getInput()); } if (timeout_ != 0) { output.writeInt32(4, timeout_); } }
/** * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeIDOrBuilder getChaincodeIdOrBuilder() { return getChaincodeId(); }
public String getChaincodePath() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getChaincodeId().getPath(); }
public String getChaincodeVersion() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getChaincodeId().getVersion(); }
/** * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeIDOrBuilder getChaincodeIdOrBuilder() { return getChaincodeId(); }
/** * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeIDOrBuilder getChaincodeIdOrBuilder() { return getChaincodeId(); }
public String getChaincodeName() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getChaincodeId().getName(); }
public String getChaincodePath() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getChaincodeId().getPath(); }
public String getChaincodeVersion() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getChaincodeId().getVersion(); }
public String getChaincodeName() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getChaincodeId().getName(); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec) obj; boolean result = true; result = result && type_ == other.type_; result = result && (hasChaincodeId() == other.hasChaincodeId()); if (hasChaincodeId()) { result = result && getChaincodeId() .equals(other.getChaincodeId()); } result = result && (hasInput() == other.hasInput()); if (hasInput()) { result = result && getInput() .equals(other.getInput()); } result = result && (getTimeout() == other.getTimeout()); return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasChaincodeId()) { mergeChaincodeId(other.getChaincodeId()); } if (other.hasInput()) { mergeInput(other.getInput()); } if (other.getTimeout() != 0) { setTimeout(other.getTimeout()); } onChanged(); return this; }
/** * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeIDOrBuilder getChaincodeIdOrBuilder() { return getChaincodeId(); }