Class CommandsOuterClass.ExerciseCommand.Builder

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

public static final class CommandsOuterClass.ExerciseCommand.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder> implements CommandsOuterClass.ExerciseCommandOrBuilder
 Exercise a choice on an existing contract.
 
Protobuf type com.daml.ledger.api.v2.ExerciseCommand
  • 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.ExerciseCommand.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.ExerciseCommand.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.ExerciseCommand.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public boolean hasTemplateId()
       The template of contract the client wants to exercise.
       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.ExerciseCommandOrBuilder
      Returns:
      Whether the templateId field is set.
    • getTemplateId

      public ValueOuterClass.Identifier getTemplateId()
       The template of contract the client wants to exercise.
       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.ExerciseCommandOrBuilder
      Returns:
      The templateId.
    • setTemplateId

       The template of contract the client wants to exercise.
       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 exercise.
       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 exercise.
       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

       The template of contract the client wants to exercise.
       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 exercise.
       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 exercise.
       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.ExerciseCommandOrBuilder
    • getContractId

      public String getContractId()
       The ID of the contract the client wants to exercise upon.
       Must be a valid LedgerString (as described in ``value.proto``).
       Required
       
      string contract_id = 2 [json_name = "contractId"];
      Specified by:
      getContractId in interface CommandsOuterClass.ExerciseCommandOrBuilder
      Returns:
      The contractId.
    • getContractIdBytes

      public com.google.protobuf.ByteString getContractIdBytes()
       The ID of the contract the client wants to exercise upon.
       Must be a valid LedgerString (as described in ``value.proto``).
       Required
       
      string contract_id = 2 [json_name = "contractId"];
      Specified by:
      getContractIdBytes in interface CommandsOuterClass.ExerciseCommandOrBuilder
      Returns:
      The bytes for contractId.
    • setContractId

      public CommandsOuterClass.ExerciseCommand.Builder setContractId(String value)
       The ID of the contract the client wants to exercise upon.
       Must be a valid LedgerString (as described in ``value.proto``).
       Required
       
      string contract_id = 2 [json_name = "contractId"];
      Parameters:
      value - The contractId to set.
      Returns:
      This builder for chaining.
    • clearContractId

       The ID of the contract the client wants to exercise upon.
       Must be a valid LedgerString (as described in ``value.proto``).
       Required
       
      string contract_id = 2 [json_name = "contractId"];
      Returns:
      This builder for chaining.
    • setContractIdBytes

      public CommandsOuterClass.ExerciseCommand.Builder setContractIdBytes(com.google.protobuf.ByteString value)
       The ID of the contract the client wants to exercise upon.
       Must be a valid LedgerString (as described in ``value.proto``).
       Required
       
      string contract_id = 2 [json_name = "contractId"];
      Parameters:
      value - The bytes for contractId to set.
      Returns:
      This builder for chaining.
    • getChoice

      public String getChoice()
       The name of the choice the client wants to exercise.
       Must be a valid NameString (as described in ``value.proto``)
       Required
       
      string choice = 3 [json_name = "choice"];
      Specified by:
      getChoice in interface CommandsOuterClass.ExerciseCommandOrBuilder
      Returns:
      The choice.
    • getChoiceBytes

      public com.google.protobuf.ByteString getChoiceBytes()
       The name of the choice the client wants to exercise.
       Must be a valid NameString (as described in ``value.proto``)
       Required
       
      string choice = 3 [json_name = "choice"];
      Specified by:
      getChoiceBytes in interface CommandsOuterClass.ExerciseCommandOrBuilder
      Returns:
      The bytes for choice.
    • setChoice

       The name of the choice the client wants to exercise.
       Must be a valid NameString (as described in ``value.proto``)
       Required
       
      string choice = 3 [json_name = "choice"];
      Parameters:
      value - The choice to set.
      Returns:
      This builder for chaining.
    • clearChoice

       The name of the choice the client wants to exercise.
       Must be a valid NameString (as described in ``value.proto``)
       Required
       
      string choice = 3 [json_name = "choice"];
      Returns:
      This builder for chaining.
    • setChoiceBytes

      public CommandsOuterClass.ExerciseCommand.Builder setChoiceBytes(com.google.protobuf.ByteString value)
       The name of the choice the client wants to exercise.
       Must be a valid NameString (as described in ``value.proto``)
       Required
       
      string choice = 3 [json_name = "choice"];
      Parameters:
      value - The bytes for choice to set.
      Returns:
      This builder for chaining.
    • hasChoiceArgument

      public boolean hasChoiceArgument()
       The argument for this choice.
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"];
      Specified by:
      hasChoiceArgument in interface CommandsOuterClass.ExerciseCommandOrBuilder
      Returns:
      Whether the choiceArgument field is set.
    • getChoiceArgument

      public ValueOuterClass.Value getChoiceArgument()
       The argument for this choice.
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"];
      Specified by:
      getChoiceArgument in interface CommandsOuterClass.ExerciseCommandOrBuilder
      Returns:
      The choiceArgument.
    • setChoiceArgument

       The argument for this choice.
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"];
    • setChoiceArgument

       The argument for this choice.
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"];
    • mergeChoiceArgument

       The argument for this choice.
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"];
    • clearChoiceArgument

      public CommandsOuterClass.ExerciseCommand.Builder clearChoiceArgument()
       The argument for this choice.
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"];
    • getChoiceArgumentBuilder

      public ValueOuterClass.Value.Builder getChoiceArgumentBuilder()
       The argument for this choice.
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"];
    • getChoiceArgumentOrBuilder

      public ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder()
       The argument for this choice.
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"];
      Specified by:
      getChoiceArgumentOrBuilder in interface CommandsOuterClass.ExerciseCommandOrBuilder
    • setUnknownFields

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

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