Class CommandsOuterClass.CreateCommand.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.CreateCommand.Builder>
com.daml.ledger.api.v2.CommandsOuterClass.CreateCommand.Builder
All Implemented Interfaces:
CommandsOuterClass.CreateCommandOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CommandsOuterClass.CreateCommand

public static final class CommandsOuterClass.CreateCommand.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.CreateCommand.Builder> implements CommandsOuterClass.CreateCommandOrBuilder
 Create a new contract instance based on a template.
 
Protobuf type com.daml.ledger.api.v2.CreateCommand
  • 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<CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.Builder>
    • getDefaultInstanceForType

      public CommandsOuterClass.CreateCommand 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 CommandsOuterClass.CreateCommand 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<CommandsOuterClass.CreateCommand.Builder>
    • setField

      public CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.Builder>
    • clearField

      public CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.Builder>
    • clearOneof

      public CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.Builder>
    • setRepeatedField

      public CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.Builder>
    • addRepeatedField

      public CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.Builder>
    • mergeFrom

      public CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.Builder>
    • mergeFrom

      public CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.Builder>
      Throws:
      IOException
    • hasTemplateId

      public boolean hasTemplateId()
       The template of contract the client wants to create.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
      Specified by:
      hasTemplateId in interface CommandsOuterClass.CreateCommandOrBuilder
      Returns:
      Whether the templateId field is set.
    • getTemplateId

      public ValueOuterClass.Identifier getTemplateId()
       The template of contract the client wants to create.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
      Specified by:
      getTemplateId in interface CommandsOuterClass.CreateCommandOrBuilder
      Returns:
      The templateId.
    • setTemplateId

       The template of contract the client wants to create.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
    • setTemplateId

       The template of contract the client wants to create.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
    • mergeTemplateId

       The template of contract the client wants to create.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
    • clearTemplateId

      public CommandsOuterClass.CreateCommand.Builder clearTemplateId()
       The template of contract the client wants to create.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
    • getTemplateIdBuilder

      public ValueOuterClass.Identifier.Builder getTemplateIdBuilder()
       The template of contract the client wants to create.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
    • getTemplateIdOrBuilder

      public ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder()
       The template of contract the client wants to create.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
      Specified by:
      getTemplateIdOrBuilder in interface CommandsOuterClass.CreateCommandOrBuilder
    • hasCreateArguments

      public boolean hasCreateArguments()
       The arguments required for creating a contract from this template.
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"];
      Specified by:
      hasCreateArguments in interface CommandsOuterClass.CreateCommandOrBuilder
      Returns:
      Whether the createArguments field is set.
    • getCreateArguments

      public ValueOuterClass.Record getCreateArguments()
       The arguments required for creating a contract from this template.
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"];
      Specified by:
      getCreateArguments in interface CommandsOuterClass.CreateCommandOrBuilder
      Returns:
      The createArguments.
    • setCreateArguments

       The arguments required for creating a contract from this template.
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"];
    • setCreateArguments

      public CommandsOuterClass.CreateCommand.Builder setCreateArguments(ValueOuterClass.Record.Builder builderForValue)
       The arguments required for creating a contract from this template.
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"];
    • mergeCreateArguments

       The arguments required for creating a contract from this template.
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"];
    • clearCreateArguments

      public CommandsOuterClass.CreateCommand.Builder clearCreateArguments()
       The arguments required for creating a contract from this template.
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"];
    • getCreateArgumentsBuilder

      public ValueOuterClass.Record.Builder getCreateArgumentsBuilder()
       The arguments required for creating a contract from this template.
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"];
    • getCreateArgumentsOrBuilder

      public ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder()
       The arguments required for creating a contract from this template.
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"];
      Specified by:
      getCreateArgumentsOrBuilder in interface CommandsOuterClass.CreateCommandOrBuilder
    • setUnknownFields

      public final CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.Builder>
    • mergeUnknownFields

      public final CommandsOuterClass.CreateCommand.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<CommandsOuterClass.CreateCommand.Builder>