public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeSpec_ != null) { output.writeMessage(1, getChaincodeSpec()); } if (!codePackage_.isEmpty()) { output.writeBytes(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { output.writeEnum(4, execEnv_); } }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } memoizedSize = size; return size; }
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder setExecEnv(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment value) { if (value == null) { throw new NullPointerException(); } execEnv_ = value.getNumber(); onChanged(); return this; } /**
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (effectiveDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEffectiveDate()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (effectiveDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEffectiveDate()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } memoizedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeSpec_ != null) { output.writeMessage(1, getChaincodeSpec()); } if (effectiveDate_ != null) { output.writeMessage(2, getEffectiveDate()); } if (!codePackage_.isEmpty()) { output.writeBytes(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { output.writeEnum(4, execEnv_); } }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeSpec_ != null) { output.writeMessage(1, getChaincodeSpec()); } if (effectiveDate_ != null) { output.writeMessage(2, getEffectiveDate()); } if (!codePackage_.isEmpty()) { output.writeBytes(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { output.writeEnum(4, execEnv_); } }
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder setExecEnv(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment value) { if (value == null) { throw new NullPointerException(); } execEnv_ = value.getNumber(); onChanged(); return this; } /**
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeSpec_ != null) { output.writeMessage(1, getChaincodeSpec()); } if (!codePackage_.isEmpty()) { output.writeBytes(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { output.writeEnum(4, execEnv_); } }
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder setExecEnv(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment value) { if (value == null) { throw new NullPointerException(); } execEnv_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder setExecEnv(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment value) { if (value == null) { throw new NullPointerException(); } execEnv_ = value.getNumber(); onChanged(); return this; } /**