/** * <code>repeated .protos.ChaincodeInfo chaincodes = 1;</code> */ public Builder addChaincodes( int index, org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(index, builderForValue.build()); onChanged(); } else { chaincodesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <pre> * the chaincode unique id. * computed as: H( * H(name || version) || * H(CodePackage) * ) * </pre> * * <code>optional bytes id = 7;</code> */ public Builder setId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /**
/** * <pre> * the chaincode unique id. * computed as: H( * H(name || version) || * H(CodePackage) * ) * </pre> * * <code>optional bytes id = 7;</code> */ public Builder setId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /**
/** * <pre> * the name of the VSCC for this chaincode. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string vscc = 6;</code> */ public Builder setVsccBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vscc_ = value; onChanged(); return this; }
/** * <pre> * the chaincode function upon instantiation and its arguments. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string input = 4;</code> */ public Builder setInputBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); input_ = value; onChanged(); return this; }
/** * <pre> * the name of the ESCC for this chaincode. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string escc = 5;</code> */ public Builder setEsccBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); escc_ = value; onChanged(); return this; }
/** * <pre> * the name of the ESCC for this chaincode. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string escc = 5;</code> */ public Builder setEscc( java.lang.String value) { if (value == null) { throw new NullPointerException(); } escc_ = value; onChanged(); return this; } /**
/** * <pre> * the chaincode function upon instantiation and its arguments. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string input = 4;</code> */ public Builder setInput( java.lang.String value) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); return this; } /**
/** * <pre> * the name of the VSCC for this chaincode. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string vscc = 6;</code> */ public Builder setVscc( java.lang.String value) { if (value == null) { throw new NullPointerException(); } vscc_ = value; onChanged(); return this; } /**
/** * <pre> * the name of the ESCC for this chaincode. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string escc = 5;</code> */ public Builder setEscc( java.lang.String value) { if (value == null) { throw new NullPointerException(); } escc_ = value; onChanged(); return this; } /**
/** * <pre> * the chaincode function upon instantiation and its arguments. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string input = 4;</code> */ public Builder setInputBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); input_ = value; onChanged(); return this; }
/** * <pre> * the chaincode function upon instantiation and its arguments. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string input = 4;</code> */ public Builder setInput( java.lang.String value) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <pre> * the name of the VSCC for this chaincode. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string vscc = 6;</code> */ public Builder setVsccBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vscc_ = value; onChanged(); return this; }
/** * <pre> * the name of the VSCC for this chaincode. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string vscc = 6;</code> */ public Builder setVscc( java.lang.String value) { if (value == null) { throw new NullPointerException(); } vscc_ = value; onChanged(); return this; } /**
/** * <pre> * the name of the ESCC for this chaincode. This will be * blank if the query is returning information about installed chaincodes. * </pre> * * <code>optional string escc = 5;</code> */ public Builder setEsccBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); escc_ = value; onChanged(); return this; }