Class CommandsOuterClass.ExerciseByKeyCommand.Builder

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

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

      public CommandsOuterClass.ExerciseByKeyCommand 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

      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.ExerciseByKeyCommand.Builder>
    • setField

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

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

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

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

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

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

      public CommandsOuterClass.ExerciseByKeyCommand.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.ExerciseByKeyCommand.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;
      Specified by:
      hasTemplateId in interface CommandsOuterClass.ExerciseByKeyCommandOrBuilder
      Returns:
      Whether the templateId field is set.
    • getTemplateId

      public com.daml.ledger.api.v2.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;
      Specified by:
      getTemplateId in interface CommandsOuterClass.ExerciseByKeyCommandOrBuilder
      Returns:
      The templateId.
    • setTemplateId

      public CommandsOuterClass.ExerciseByKeyCommand.Builder setTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value)
       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;
    • setTemplateId

      public CommandsOuterClass.ExerciseByKeyCommand.Builder setTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder builderForValue)
       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;
    • mergeTemplateId

      public CommandsOuterClass.ExerciseByKeyCommand.Builder mergeTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value)
       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;
    • 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;
    • getTemplateIdBuilder

      public com.daml.ledger.api.v2.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;
    • getTemplateIdOrBuilder

      public com.daml.ledger.api.v2.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;
      Specified by:
      getTemplateIdOrBuilder in interface CommandsOuterClass.ExerciseByKeyCommandOrBuilder
    • hasContractKey

      public boolean hasContractKey()
       The key of the contract the client wants to exercise upon.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
      Specified by:
      hasContractKey in interface CommandsOuterClass.ExerciseByKeyCommandOrBuilder
      Returns:
      Whether the contractKey field is set.
    • getContractKey

      public com.daml.ledger.api.v2.ValueOuterClass.Value getContractKey()
       The key of the contract the client wants to exercise upon.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
      Specified by:
      getContractKey in interface CommandsOuterClass.ExerciseByKeyCommandOrBuilder
      Returns:
      The contractKey.
    • setContractKey

      public CommandsOuterClass.ExerciseByKeyCommand.Builder setContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value value)
       The key of the contract the client wants to exercise upon.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
    • setContractKey

      public CommandsOuterClass.ExerciseByKeyCommand.Builder setContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value.Builder builderForValue)
       The key of the contract the client wants to exercise upon.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
    • mergeContractKey

      public CommandsOuterClass.ExerciseByKeyCommand.Builder mergeContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value value)
       The key of the contract the client wants to exercise upon.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
    • clearContractKey

       The key of the contract the client wants to exercise upon.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
    • getContractKeyBuilder

      public com.daml.ledger.api.v2.ValueOuterClass.Value.Builder getContractKeyBuilder()
       The key of the contract the client wants to exercise upon.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
    • getContractKeyOrBuilder

      public com.daml.ledger.api.v2.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder()
       The key of the contract the client wants to exercise upon.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
      Specified by:
      getContractKeyOrBuilder in interface CommandsOuterClass.ExerciseByKeyCommandOrBuilder
    • 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;
      Specified by:
      getChoice in interface CommandsOuterClass.ExerciseByKeyCommandOrBuilder
      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;
      Specified by:
      getChoiceBytes in interface CommandsOuterClass.ExerciseByKeyCommandOrBuilder
      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;
      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;
      Returns:
      This builder for chaining.
    • setChoiceBytes

      public CommandsOuterClass.ExerciseByKeyCommand.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;
      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;
      Specified by:
      hasChoiceArgument in interface CommandsOuterClass.ExerciseByKeyCommandOrBuilder
      Returns:
      Whether the choiceArgument field is set.
    • getChoiceArgument

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

      public CommandsOuterClass.ExerciseByKeyCommand.Builder setChoiceArgument(com.daml.ledger.api.v2.ValueOuterClass.Value value)
       The argument for this choice.
      
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4;
    • setChoiceArgument

      public CommandsOuterClass.ExerciseByKeyCommand.Builder setChoiceArgument(com.daml.ledger.api.v2.ValueOuterClass.Value.Builder builderForValue)
       The argument for this choice.
      
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4;
    • mergeChoiceArgument

      public CommandsOuterClass.ExerciseByKeyCommand.Builder mergeChoiceArgument(com.daml.ledger.api.v2.ValueOuterClass.Value value)
       The argument for this choice.
      
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4;
    • clearChoiceArgument

       The argument for this choice.
      
       Required
       
      .com.daml.ledger.api.v2.Value choice_argument = 4;
    • getChoiceArgumentBuilder

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

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

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

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