Class CommandsOuterClass.CreateAndExerciseCommand.Builder

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

public static final class CommandsOuterClass.CreateAndExerciseCommand.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.CreateAndExerciseCommand.Builder> implements CommandsOuterClass.CreateAndExerciseCommandOrBuilder
 Create a contract and exercise a choice on it in the same transaction.
 
Protobuf type com.daml.ledger.api.v2.CreateAndExerciseCommand
  • 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.CreateAndExerciseCommand.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.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public boolean hasTemplateId()
       The template of the 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;
      Specified by:
      hasTemplateId in interface CommandsOuterClass.CreateAndExerciseCommandOrBuilder
      Returns:
      Whether the templateId field is set.
    • getTemplateId

      public com.daml.ledger.api.v2.ValueOuterClass.Identifier getTemplateId()
       The template of the 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;
      Specified by:
      getTemplateId in interface CommandsOuterClass.CreateAndExerciseCommandOrBuilder
      Returns:
      The templateId.
    • setTemplateId

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

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

      public CommandsOuterClass.CreateAndExerciseCommand.Builder mergeTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value)
       The template of the 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;
    • clearTemplateId

       The template of the 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;
    • getTemplateIdBuilder

      public com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder getTemplateIdBuilder()
       The template of the 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;
    • getTemplateIdOrBuilder

      public com.daml.ledger.api.v2.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder()
       The template of the 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;
      Specified by:
      getTemplateIdOrBuilder in interface CommandsOuterClass.CreateAndExerciseCommandOrBuilder
    • hasCreateArguments

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

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

      public CommandsOuterClass.CreateAndExerciseCommand.Builder setCreateArguments(com.daml.ledger.api.v2.ValueOuterClass.Record value)
       The arguments required for creating a contract from this template.
      
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2;
    • setCreateArguments

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

      public CommandsOuterClass.CreateAndExerciseCommand.Builder mergeCreateArguments(com.daml.ledger.api.v2.ValueOuterClass.Record value)
       The arguments required for creating a contract from this template.
      
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2;
    • clearCreateArguments

       The arguments required for creating a contract from this template.
      
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2;
    • getCreateArgumentsBuilder

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

      public com.daml.ledger.api.v2.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder()
       The arguments required for creating a contract from this template.
      
       Required
       
      .com.daml.ledger.api.v2.Record create_arguments = 2;
      Specified by:
      getCreateArgumentsOrBuilder in interface CommandsOuterClass.CreateAndExerciseCommandOrBuilder
    • 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.CreateAndExerciseCommandOrBuilder
      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.CreateAndExerciseCommandOrBuilder
      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.CreateAndExerciseCommand.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.CreateAndExerciseCommandOrBuilder
      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.CreateAndExerciseCommandOrBuilder
      Returns:
      The choiceArgument.
    • setChoiceArgument

      public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.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.CreateAndExerciseCommand.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.CreateAndExerciseCommandOrBuilder
    • setUnknownFields

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

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