Package com.daml.ledger.api.v2
Class ValueOuterClass.Identifier.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder
- All Implemented Interfaces:
ValueOuterClass.IdentifierOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ValueOuterClass.Identifier
public static final class ValueOuterClass.Identifier.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
implements ValueOuterClass.IdentifierOrBuilder
Unique identifier of an entity. Throughout this API, the following terminology is being used: - if a Daml package-id is encoded in the package_id field, it is referred to as using a "package-id reference format" - if a Daml package-name is encoded in the package_id field, it is referred to as using a "package-name reference format"Protobuf type
com.daml.ledger.api.v2.Identifier
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The dot-separated name of the entity (e.g.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The dot-separated module name of the identifier.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Generally, the identifier of the Daml package that contains the entity.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The dot-separated name of the entity (e.g.com.google.protobuf.ByteString
The dot-separated name of the entity (e.g.The dot-separated module name of the identifier.com.google.protobuf.ByteString
The dot-separated module name of the identifier.Generally, the identifier of the Daml package that contains the entity.com.google.protobuf.ByteString
Generally, the identifier of the Daml package that contains the entity.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setEntityName
(String value) The dot-separated name of the entity (e.g.setEntityNameBytes
(com.google.protobuf.ByteString value) The dot-separated name of the entity (e.g.setModuleName
(String value) The dot-separated module name of the identifier.setModuleNameBytes
(com.google.protobuf.ByteString value) The dot-separated module name of the identifier.setPackageId
(String value) Generally, the identifier of the Daml package that contains the entity.setPackageIdBytes
(com.google.protobuf.ByteString value) Generally, the identifier of the Daml package that contains the entity.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-
setField
public ValueOuterClass.Identifier.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-
clearField
public ValueOuterClass.Identifier.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-
clearOneof
public ValueOuterClass.Identifier.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-
setRepeatedField
public ValueOuterClass.Identifier.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-
addRepeatedField
public ValueOuterClass.Identifier.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ValueOuterClass.Identifier.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-
mergeFrom
public ValueOuterClass.Identifier.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ValueOuterClass.Identifier.Builder>
- Throws:
IOException
-
getPackageId
Generally, the identifier of the Daml package that contains the entity. When encoding a package-id, it must be a valid PackageIdString. The field is overloaded to also be able to contain the package-name of the Daml package. This is supported if the entity referenced is either an interface or template. When representing the Daml package-name, the encoding is of form `#<package-name>` where `#` (not a valid package-id character) is used as a discriminator for signalling a package-name encoding. Required
string package_id = 1 [json_name = "packageId"];
- Specified by:
getPackageId
in interfaceValueOuterClass.IdentifierOrBuilder
- Returns:
- The packageId.
-
getPackageIdBytes
public com.google.protobuf.ByteString getPackageIdBytes()Generally, the identifier of the Daml package that contains the entity. When encoding a package-id, it must be a valid PackageIdString. The field is overloaded to also be able to contain the package-name of the Daml package. This is supported if the entity referenced is either an interface or template. When representing the Daml package-name, the encoding is of form `#<package-name>` where `#` (not a valid package-id character) is used as a discriminator for signalling a package-name encoding. Required
string package_id = 1 [json_name = "packageId"];
- Specified by:
getPackageIdBytes
in interfaceValueOuterClass.IdentifierOrBuilder
- Returns:
- The bytes for packageId.
-
setPackageId
Generally, the identifier of the Daml package that contains the entity. When encoding a package-id, it must be a valid PackageIdString. The field is overloaded to also be able to contain the package-name of the Daml package. This is supported if the entity referenced is either an interface or template. When representing the Daml package-name, the encoding is of form `#<package-name>` where `#` (not a valid package-id character) is used as a discriminator for signalling a package-name encoding. Required
string package_id = 1 [json_name = "packageId"];
- Parameters:
value
- The packageId to set.- Returns:
- This builder for chaining.
-
clearPackageId
Generally, the identifier of the Daml package that contains the entity. When encoding a package-id, it must be a valid PackageIdString. The field is overloaded to also be able to contain the package-name of the Daml package. This is supported if the entity referenced is either an interface or template. When representing the Daml package-name, the encoding is of form `#<package-name>` where `#` (not a valid package-id character) is used as a discriminator for signalling a package-name encoding. Required
string package_id = 1 [json_name = "packageId"];
- Returns:
- This builder for chaining.
-
setPackageIdBytes
Generally, the identifier of the Daml package that contains the entity. When encoding a package-id, it must be a valid PackageIdString. The field is overloaded to also be able to contain the package-name of the Daml package. This is supported if the entity referenced is either an interface or template. When representing the Daml package-name, the encoding is of form `#<package-name>` where `#` (not a valid package-id character) is used as a discriminator for signalling a package-name encoding. Required
string package_id = 1 [json_name = "packageId"];
- Parameters:
value
- The bytes for packageId to set.- Returns:
- This builder for chaining.
-
getModuleName
The dot-separated module name of the identifier. Required
string module_name = 2 [json_name = "moduleName"];
- Specified by:
getModuleName
in interfaceValueOuterClass.IdentifierOrBuilder
- Returns:
- The moduleName.
-
getModuleNameBytes
public com.google.protobuf.ByteString getModuleNameBytes()The dot-separated module name of the identifier. Required
string module_name = 2 [json_name = "moduleName"];
- Specified by:
getModuleNameBytes
in interfaceValueOuterClass.IdentifierOrBuilder
- Returns:
- The bytes for moduleName.
-
setModuleName
The dot-separated module name of the identifier. Required
string module_name = 2 [json_name = "moduleName"];
- Parameters:
value
- The moduleName to set.- Returns:
- This builder for chaining.
-
clearModuleName
The dot-separated module name of the identifier. Required
string module_name = 2 [json_name = "moduleName"];
- Returns:
- This builder for chaining.
-
setModuleNameBytes
The dot-separated module name of the identifier. Required
string module_name = 2 [json_name = "moduleName"];
- Parameters:
value
- The bytes for moduleName to set.- Returns:
- This builder for chaining.
-
getEntityName
The dot-separated name of the entity (e.g. record, template, ...) within the module. Required
string entity_name = 3 [json_name = "entityName"];
- Specified by:
getEntityName
in interfaceValueOuterClass.IdentifierOrBuilder
- Returns:
- The entityName.
-
getEntityNameBytes
public com.google.protobuf.ByteString getEntityNameBytes()The dot-separated name of the entity (e.g. record, template, ...) within the module. Required
string entity_name = 3 [json_name = "entityName"];
- Specified by:
getEntityNameBytes
in interfaceValueOuterClass.IdentifierOrBuilder
- Returns:
- The bytes for entityName.
-
setEntityName
The dot-separated name of the entity (e.g. record, template, ...) within the module. Required
string entity_name = 3 [json_name = "entityName"];
- Parameters:
value
- The entityName to set.- Returns:
- This builder for chaining.
-
clearEntityName
The dot-separated name of the entity (e.g. record, template, ...) within the module. Required
string entity_name = 3 [json_name = "entityName"];
- Returns:
- This builder for chaining.
-
setEntityNameBytes
The dot-separated name of the entity (e.g. record, template, ...) within the module. Required
string entity_name = 3 [json_name = "entityName"];
- Parameters:
value
- The bytes for entityName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ValueOuterClass.Identifier.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-
mergeUnknownFields
public final ValueOuterClass.Identifier.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
-