public static final class ChaincodeID.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder> implements ChaincodeIDOrBuilder
ChaincodeID contains the path as specified by the deploy transaction that created it as well as the hashCode that is generated by the system for the path. From the user level (ie, CLI, REST API and so on) deploy transaction is expected to provide the path and other requests are expected to provide the hashCode. The other value will be ignored. Internally, the structure could contain both values. For instance, the hashCode will be set when first generated using the pathProtobuf type
protos.ChaincodeID
Modifier and Type | Method and Description |
---|---|
ChaincodeID.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeID |
build() |
ChaincodeID |
buildPartial() |
ChaincodeID.Builder |
clear() |
ChaincodeID.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ChaincodeID.Builder |
clearName()
all other requests will use the name (really a hashcode) generated by
the deploy transaction
|
ChaincodeID.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ChaincodeID.Builder |
clearPath()
deploy transaction will use the path
|
ChaincodeID.Builder |
clearVersion()
user friendly version name for the chaincode
|
ChaincodeID.Builder |
clone() |
ChaincodeID |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
all other requests will use the name (really a hashcode) generated by
the deploy transaction
|
com.google.protobuf.ByteString |
getNameBytes()
all other requests will use the name (really a hashcode) generated by
the deploy transaction
|
String |
getPath()
deploy transaction will use the path
|
com.google.protobuf.ByteString |
getPathBytes()
deploy transaction will use the path
|
String |
getVersion()
user friendly version name for the chaincode
|
com.google.protobuf.ByteString |
getVersionBytes()
user friendly version name for the chaincode
|
boolean |
isInitialized() |
ChaincodeID.Builder |
mergeFrom(ChaincodeID other) |
ChaincodeID.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ChaincodeID.Builder |
mergeFrom(com.google.protobuf.Message other) |
ChaincodeID.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ChaincodeID.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeID.Builder |
setName(String value)
all other requests will use the name (really a hashcode) generated by
the deploy transaction
|
ChaincodeID.Builder |
setNameBytes(com.google.protobuf.ByteString value)
all other requests will use the name (really a hashcode) generated by
the deploy transaction
|
ChaincodeID.Builder |
setPath(String value)
deploy transaction will use the path
|
ChaincodeID.Builder |
setPathBytes(com.google.protobuf.ByteString value)
deploy transaction will use the path
|
ChaincodeID.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ChaincodeID.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ChaincodeID.Builder |
setVersion(String value)
user friendly version name for the chaincode
|
ChaincodeID.Builder |
setVersionBytes(com.google.protobuf.ByteString value)
user friendly version name for the chaincode
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public ChaincodeID.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder>
public ChaincodeID getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ChaincodeID build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeID buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeID.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder>
public ChaincodeID.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder>
public ChaincodeID.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder>
public ChaincodeID.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder>
public ChaincodeID.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder>
public ChaincodeID.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder>
public ChaincodeID.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ChaincodeID.Builder>
public ChaincodeID.Builder mergeFrom(ChaincodeID other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder>
public ChaincodeID.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ChaincodeID.Builder>
IOException
public String getPath()
deploy transaction will use the path
string path = 1 [json_name = "path"];
getPath
in interface ChaincodeIDOrBuilder
public com.google.protobuf.ByteString getPathBytes()
deploy transaction will use the path
string path = 1 [json_name = "path"];
getPathBytes
in interface ChaincodeIDOrBuilder
public ChaincodeID.Builder setPath(String value)
deploy transaction will use the path
string path = 1 [json_name = "path"];
value
- The path to set.public ChaincodeID.Builder clearPath()
deploy transaction will use the path
string path = 1 [json_name = "path"];
public ChaincodeID.Builder setPathBytes(com.google.protobuf.ByteString value)
deploy transaction will use the path
string path = 1 [json_name = "path"];
value
- The bytes for path to set.public String getName()
all other requests will use the name (really a hashcode) generated by the deploy transaction
string name = 2 [json_name = "name"];
getName
in interface ChaincodeIDOrBuilder
public com.google.protobuf.ByteString getNameBytes()
all other requests will use the name (really a hashcode) generated by the deploy transaction
string name = 2 [json_name = "name"];
getNameBytes
in interface ChaincodeIDOrBuilder
public ChaincodeID.Builder setName(String value)
all other requests will use the name (really a hashcode) generated by the deploy transaction
string name = 2 [json_name = "name"];
value
- The name to set.public ChaincodeID.Builder clearName()
all other requests will use the name (really a hashcode) generated by the deploy transaction
string name = 2 [json_name = "name"];
public ChaincodeID.Builder setNameBytes(com.google.protobuf.ByteString value)
all other requests will use the name (really a hashcode) generated by the deploy transaction
string name = 2 [json_name = "name"];
value
- The bytes for name to set.public String getVersion()
user friendly version name for the chaincode
string version = 3 [json_name = "version"];
getVersion
in interface ChaincodeIDOrBuilder
public com.google.protobuf.ByteString getVersionBytes()
user friendly version name for the chaincode
string version = 3 [json_name = "version"];
getVersionBytes
in interface ChaincodeIDOrBuilder
public ChaincodeID.Builder setVersion(String value)
user friendly version name for the chaincode
string version = 3 [json_name = "version"];
value
- The version to set.public ChaincodeID.Builder clearVersion()
user friendly version name for the chaincode
string version = 3 [json_name = "version"];
public ChaincodeID.Builder setVersionBytes(com.google.protobuf.ByteString value)
user friendly version name for the chaincode
string version = 3 [json_name = "version"];
value
- The bytes for version to set.public final ChaincodeID.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder>
public final ChaincodeID.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeID.Builder>
Copyright © 2022. All rights reserved.