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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
    • getDefaultInstanceForType

      public ValueOuterClass.Identifier getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ValueOuterClass.Identifier buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
    • clearField

      public ValueOuterClass.Identifier.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
    • clearOneof

      public ValueOuterClass.Identifier.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
    • mergeFrom

      public ValueOuterClass.Identifier.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValueOuterClass.Identifier.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValueOuterClass.Identifier.Builder>
      Throws:
      IOException
    • getPackageId

      public String 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 interface ValueOuterClass.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 interface ValueOuterClass.IdentifierOrBuilder
      Returns:
      The bytes for packageId.
    • setPackageId

      public ValueOuterClass.Identifier.Builder setPackageId(String value)
       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

      public ValueOuterClass.Identifier.Builder 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

      public ValueOuterClass.Identifier.Builder setPackageIdBytes(com.google.protobuf.ByteString value)
       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

      public String getModuleName()
       The dot-separated module name of the identifier.
       Required
       
      string module_name = 2 [json_name = "moduleName"];
      Specified by:
      getModuleName in interface ValueOuterClass.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 interface ValueOuterClass.IdentifierOrBuilder
      Returns:
      The bytes for moduleName.
    • setModuleName

      public ValueOuterClass.Identifier.Builder setModuleName(String value)
       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

      public ValueOuterClass.Identifier.Builder clearModuleName()
       The dot-separated module name of the identifier.
       Required
       
      string module_name = 2 [json_name = "moduleName"];
      Returns:
      This builder for chaining.
    • setModuleNameBytes

      public ValueOuterClass.Identifier.Builder setModuleNameBytes(com.google.protobuf.ByteString value)
       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

      public String 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 interface ValueOuterClass.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 interface ValueOuterClass.IdentifierOrBuilder
      Returns:
      The bytes for entityName.
    • setEntityName

      public ValueOuterClass.Identifier.Builder setEntityName(String value)
       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

      public ValueOuterClass.Identifier.Builder 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

      public ValueOuterClass.Identifier.Builder setEntityNameBytes(com.google.protobuf.ByteString value)
       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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>
    • mergeUnknownFields

      public final ValueOuterClass.Identifier.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Identifier.Builder>