/** * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder setChaincodeId(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID value) { if (chaincodeIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } chaincodeId_ = value; onChanged(); } else { chaincodeIdBuilder_.setMessage(value); } return this; } /**
/** * <code>optional .protos.ChaincodeInput input = 3;</code> */ public Builder setInput(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); } else { inputBuilder_.setMessage(value); } return this; } /**
/** * <code>optional .protos.ChaincodeSpec.Type type = 1;</code> */ public Builder setType(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional int32 timeout = 4;</code> */ public Builder setTimeout(int value) { timeout_ = value; onChanged(); return this; } /**
/** * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.Builder getChaincodeIdBuilder() { onChanged(); return getChaincodeIdFieldBuilder().getBuilder(); } /**
/** * <code>optional .protos.ChaincodeSpec.Type type = 1;</code> */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /**
/** * <code>optional .protos.ChaincodeSpec.Type type = 1;</code> */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /**
/** * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder mergeChaincodeId(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID value) { if (chaincodeIdBuilder_ == null) { if (chaincodeId_ != null) { chaincodeId_ = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.newBuilder(chaincodeId_).mergeFrom(value).buildPartial(); } else { chaincodeId_ = value; } onChanged(); } else { chaincodeIdBuilder_.mergeFrom(value); } return this; } /**
/** * <code>optional .protos.ChaincodeInput input = 3;</code> */ public Builder mergeInput(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput.newBuilder(input_).mergeFrom(value).buildPartial(); } else { input_ = value; } onChanged(); } else { inputBuilder_.mergeFrom(value); } 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; }
/** * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder setChaincodeId( org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.Builder builderForValue) { if (chaincodeIdBuilder_ == null) { chaincodeId_ = builderForValue.build(); onChanged(); } else { chaincodeIdBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <code>optional .protos.ChaincodeInput input = 3;</code> */ public Builder clearInput() { if (inputBuilder_ == null) { input_ = null; onChanged(); } else { input_ = null; inputBuilder_ = null; } return this; } /**
/** * <code>optional .protos.ChaincodeInput input = 3;</code> */ public Builder setInput( org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); onChanged(); } else { inputBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder clearChaincodeId() { if (chaincodeIdBuilder_ == null) { chaincodeId_ = null; onChanged(); } else { chaincodeId_ = null; chaincodeIdBuilder_ = null; } return this; } /**
/** * <code>optional int32 timeout = 4;</code> */ public Builder clearTimeout() { timeout_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.Builder getChaincodeIdBuilder() { onChanged(); return getChaincodeIdFieldBuilder().getBuilder(); } /**
/** * <code>optional int32 timeout = 4;</code> */ public Builder setTimeout(int value) { timeout_ = value; onChanged(); return this; } /**
/** * <code>optional .protos.ChaincodeInput input = 3;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput.Builder getInputBuilder() { onChanged(); return getInputFieldBuilder().getBuilder(); } /**
/** * <code>optional .protos.ChaincodeSpec.Type type = 1;</code> */ public Builder clearType() { type_ = 0; onChanged(); return this; }
/** * <code>optional .protos.ChaincodeSpec.Type type = 1;</code> */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /**