/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public Builder setChaincodeSpec(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec value) { if (chaincodeSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } chaincodeSpec_ = value; onChanged(); } else { chaincodeSpecBuilder_.setMessage(value); } return this; } /**
/** * <code>optional bytes code_package = 3;</code> */ public Builder setCodePackage(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } codePackage_ = value; 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; } /**
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder clearExecEnv() { execEnv_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional bytes code_package = 3;</code> */ public Builder setCodePackage(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } codePackage_ = value; onChanged(); return this; } /**
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Builder getChaincodeSpecBuilder() { onChanged(); return getChaincodeSpecFieldBuilder().getBuilder(); } /**
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder setExecEnvValue(int value) { execEnv_ = value; onChanged(); return this; } /**
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder clearExecEnv() { execEnv_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
/** * <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 setExecEnvValue(int value) { execEnv_ = value; onChanged(); return this; } /**
/** * <code>optional bytes code_package = 3;</code> */ public Builder setCodePackage(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } codePackage_ = value; onChanged(); return this; } /**
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Builder getChaincodeSpecBuilder() { onChanged(); return getChaincodeSpecFieldBuilder().getBuilder(); } /**
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public Builder mergeChaincodeSpec(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec value) { if (chaincodeSpecBuilder_ == null) { if (chaincodeSpec_ != null) { chaincodeSpec_ = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.newBuilder(chaincodeSpec_).mergeFrom(value).buildPartial(); } else { chaincodeSpec_ = value; } onChanged(); } else { chaincodeSpecBuilder_.mergeFrom(value); } return this; } /**
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public Builder setChaincodeSpec( org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Builder builderForValue) { if (chaincodeSpecBuilder_ == null) { chaincodeSpec_ = builderForValue.build(); onChanged(); } else { chaincodeSpecBuilder_.setMessage(builderForValue.build()); } return this; } /**
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.getDefaultInstance()) return this; if (other.hasChaincodeSpec()) { mergeChaincodeSpec(other.getChaincodeSpec()); } if (other.getCodePackage() != com.google.protobuf.ByteString.EMPTY) { setCodePackage(other.getCodePackage()); } if (other.execEnv_ != 0) { setExecEnvValue(other.getExecEnvValue()); } onChanged(); return this; }
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public Builder clearChaincodeSpec() { if (chaincodeSpecBuilder_ == null) { chaincodeSpec_ = null; onChanged(); } else { chaincodeSpec_ = null; chaincodeSpecBuilder_ = null; } return this; } /**
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder setExecEnvValue(int value) { execEnv_ = value; onChanged(); return this; } /**
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Builder getChaincodeSpecBuilder() { onChanged(); return getChaincodeSpecFieldBuilder().getBuilder(); } /**
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder clearExecEnv() { execEnv_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional bytes code_package = 3;</code> */ public Builder clearCodePackage() { codePackage_ = getDefaultInstance().getCodePackage(); onChanged(); return this; }