All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.daml.ledger.api.v1.CommandsOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: com/daml/ledger/api/v1/commands.proto

package com.daml.ledger.api.v1;

public final class CommandsOuterClass {
  private CommandsOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface CommandsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.Commands)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Must correspond to the ledger ID reported by the Ledger Identification Service.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string ledger_id = 1; * @return The ledgerId. */ java.lang.String getLedgerId(); /** *
     * Must correspond to the ledger ID reported by the Ledger Identification Service.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string ledger_id = 1; * @return The bytes for ledgerId. */ com.google.protobuf.ByteString getLedgerIdBytes(); /** *
     * Identifier of the on-ledger workflow that this command is a part of.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string workflow_id = 2; * @return The workflowId. */ java.lang.String getWorkflowId(); /** *
     * Identifier of the on-ledger workflow that this command is a part of.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string workflow_id = 2; * @return The bytes for workflowId. */ com.google.protobuf.ByteString getWorkflowIdBytes(); /** *
     * Uniquely identifies the application or participant user that issued the command.
     * Must be a valid ApplicationIdString (as described in ``value.proto``).
     * Required unless authentication is used with a user token or a custom token specifying an application-id.
     * In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
     * 
* * string application_id = 3; * @return The applicationId. */ java.lang.String getApplicationId(); /** *
     * Uniquely identifies the application or participant user that issued the command.
     * Must be a valid ApplicationIdString (as described in ``value.proto``).
     * Required unless authentication is used with a user token or a custom token specifying an application-id.
     * In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
     * 
* * string application_id = 3; * @return The bytes for applicationId. */ com.google.protobuf.ByteString getApplicationIdBytes(); /** *
     * Uniquely identifies the command.
     * The triple (application_id, party + act_as, command_id) constitutes the change ID for the intended ledger change,
     * where party + act_as is interpreted as a set of party names.
     * The change ID can be used for matching the intended ledger changes with all their completions.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Required
     * 
* * string command_id = 4; * @return The commandId. */ java.lang.String getCommandId(); /** *
     * Uniquely identifies the command.
     * The triple (application_id, party + act_as, command_id) constitutes the change ID for the intended ledger change,
     * where party + act_as is interpreted as a set of party names.
     * The change ID can be used for matching the intended ledger changes with all their completions.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Required
     * 
* * string command_id = 4; * @return The bytes for commandId. */ com.google.protobuf.ByteString getCommandIdBytes(); /** *
     * Party on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of the given party.
     * Must be a valid PartyIdString (as described in ``value.proto``).
     * Deprecated in favor of the ``act_as`` field. If both are set, then the effective list of parties on whose
     * behalf the command should be executed is the union of all parties listed in ``party`` and ``act_as``.
     * Optional
     * 
* * string party = 5; * @return The party. */ java.lang.String getParty(); /** *
     * Party on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of the given party.
     * Must be a valid PartyIdString (as described in ``value.proto``).
     * Deprecated in favor of the ``act_as`` field. If both are set, then the effective list of parties on whose
     * behalf the command should be executed is the union of all parties listed in ``party`` and ``act_as``.
     * Optional
     * 
* * string party = 5; * @return The bytes for party. */ com.google.protobuf.ByteString getPartyBytes(); /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ java.util.List getCommandsList(); /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ com.daml.ledger.api.v1.CommandsOuterClass.Command getCommands(int index); /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ int getCommandsCount(); /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ java.util.List getCommandsOrBuilderList(); /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ com.daml.ledger.api.v1.CommandsOuterClass.CommandOrBuilder getCommandsOrBuilder( int index); /** *
     * Specifies the length of the deduplication period.
     * Same semantics apply as for `deduplication_duration`.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; * @deprecated * @return Whether the deduplicationTime field is set. */ @java.lang.Deprecated boolean hasDeduplicationTime(); /** *
     * Specifies the length of the deduplication period.
     * Same semantics apply as for `deduplication_duration`.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; * @deprecated * @return The deduplicationTime. */ @java.lang.Deprecated com.google.protobuf.Duration getDeduplicationTime(); /** *
     * Specifies the length of the deduplication period.
     * Same semantics apply as for `deduplication_duration`.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; */ @java.lang.Deprecated com.google.protobuf.DurationOrBuilder getDeduplicationTimeOrBuilder(); /** *
     * Specifies the length of the deduplication period.
     * It is interpreted relative to the local clock at some point during the submission's processing.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_duration = 15; * @return Whether the deduplicationDuration field is set. */ boolean hasDeduplicationDuration(); /** *
     * Specifies the length of the deduplication period.
     * It is interpreted relative to the local clock at some point during the submission's processing.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_duration = 15; * @return The deduplicationDuration. */ com.google.protobuf.Duration getDeduplicationDuration(); /** *
     * Specifies the length of the deduplication period.
     * It is interpreted relative to the local clock at some point during the submission's processing.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_duration = 15; */ com.google.protobuf.DurationOrBuilder getDeduplicationDurationOrBuilder(); /** *
     * Specifies the start of the deduplication period by a completion stream offset (exclusive).
     * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
     * 
* * string deduplication_offset = 16; * @return Whether the deduplicationOffset field is set. */ boolean hasDeduplicationOffset(); /** *
     * Specifies the start of the deduplication period by a completion stream offset (exclusive).
     * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
     * 
* * string deduplication_offset = 16; * @return The deduplicationOffset. */ java.lang.String getDeduplicationOffset(); /** *
     * Specifies the start of the deduplication period by a completion stream offset (exclusive).
     * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
     * 
* * string deduplication_offset = 16; * @return The bytes for deduplicationOffset. */ com.google.protobuf.ByteString getDeduplicationOffsetBytes(); /** *
     * Lower bound for the ledger time assigned to the resulting transaction.
     * Note: The ledger time of a transaction is assigned as part of command interpretation.
     * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
     * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
     * Must not be set at the same time as min_ledger_time_rel.
     * Optional
     * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; * @return Whether the minLedgerTimeAbs field is set. */ boolean hasMinLedgerTimeAbs(); /** *
     * Lower bound for the ledger time assigned to the resulting transaction.
     * Note: The ledger time of a transaction is assigned as part of command interpretation.
     * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
     * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
     * Must not be set at the same time as min_ledger_time_rel.
     * Optional
     * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; * @return The minLedgerTimeAbs. */ com.google.protobuf.Timestamp getMinLedgerTimeAbs(); /** *
     * Lower bound for the ledger time assigned to the resulting transaction.
     * Note: The ledger time of a transaction is assigned as part of command interpretation.
     * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
     * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
     * Must not be set at the same time as min_ledger_time_rel.
     * Optional
     * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; */ com.google.protobuf.TimestampOrBuilder getMinLedgerTimeAbsOrBuilder(); /** *
     * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
     * Must not be set at the same time as min_ledger_time_abs.
     * Optional
     * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; * @return Whether the minLedgerTimeRel field is set. */ boolean hasMinLedgerTimeRel(); /** *
     * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
     * Must not be set at the same time as min_ledger_time_abs.
     * Optional
     * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; * @return The minLedgerTimeRel. */ com.google.protobuf.Duration getMinLedgerTimeRel(); /** *
     * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
     * Must not be set at the same time as min_ledger_time_abs.
     * Optional
     * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; */ com.google.protobuf.DurationOrBuilder getMinLedgerTimeRelOrBuilder(); /** *
     * Set of parties on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of each of the given parties.
     * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
     * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional
     * 
* * repeated string act_as = 12; * @return A list containing the actAs. */ java.util.List getActAsList(); /** *
     * Set of parties on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of each of the given parties.
     * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
     * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional
     * 
* * repeated string act_as = 12; * @return The count of actAs. */ int getActAsCount(); /** *
     * Set of parties on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of each of the given parties.
     * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
     * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional
     * 
* * repeated string act_as = 12; * @param index The index of the element to return. * @return The actAs at the given index. */ java.lang.String getActAs(int index); /** *
     * Set of parties on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of each of the given parties.
     * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
     * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional
     * 
* * repeated string act_as = 12; * @param index The index of the value to return. * @return The bytes of the actAs at the given index. */ com.google.protobuf.ByteString getActAsBytes(int index); /** *
     * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
     * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
     * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
     * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
     * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
     * rules for fetch operations.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to read contract data on behalf of each of the given parties.
     * Optional
     * 
* * repeated string read_as = 13; * @return A list containing the readAs. */ java.util.List getReadAsList(); /** *
     * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
     * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
     * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
     * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
     * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
     * rules for fetch operations.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to read contract data on behalf of each of the given parties.
     * Optional
     * 
* * repeated string read_as = 13; * @return The count of readAs. */ int getReadAsCount(); /** *
     * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
     * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
     * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
     * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
     * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
     * rules for fetch operations.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to read contract data on behalf of each of the given parties.
     * Optional
     * 
* * repeated string read_as = 13; * @param index The index of the element to return. * @return The readAs at the given index. */ java.lang.String getReadAs(int index); /** *
     * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
     * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
     * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
     * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
     * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
     * rules for fetch operations.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to read contract data on behalf of each of the given parties.
     * Optional
     * 
* * repeated string read_as = 13; * @param index The index of the value to return. * @return The bytes of the readAs at the given index. */ com.google.protobuf.ByteString getReadAsBytes(int index); /** *
     * A unique identifier to distinguish completions for different submissions with the same change ID.
     * Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
     * with the same change ID.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * If omitted, the participant or the committer may set a value of their choice.
     * Optional
     * 
* * string submission_id = 14; * @return The submissionId. */ java.lang.String getSubmissionId(); /** *
     * A unique identifier to distinguish completions for different submissions with the same change ID.
     * Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
     * with the same change ID.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * If omitted, the participant or the committer may set a value of their choice.
     * Optional
     * 
* * string submission_id = 14; * @return The bytes for submissionId. */ com.google.protobuf.ByteString getSubmissionIdBytes(); /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ java.util.List getDisclosedContractsList(); /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract getDisclosedContracts(int index); /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ int getDisclosedContractsCount(); /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ java.util.List getDisclosedContractsOrBuilderList(); /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContractOrBuilder getDisclosedContractsOrBuilder( int index); public com.daml.ledger.api.v1.CommandsOuterClass.Commands.DeduplicationPeriodCase getDeduplicationPeriodCase(); } /** *
   * A composite command that groups multiple commands together.
   * 
* * Protobuf type {@code com.daml.ledger.api.v1.Commands} */ public static final class Commands extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.Commands) CommandsOrBuilder { private static final long serialVersionUID = 0L; // Use Commands.newBuilder() to construct. private Commands(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Commands() { ledgerId_ = ""; workflowId_ = ""; applicationId_ = ""; commandId_ = ""; party_ = ""; commands_ = java.util.Collections.emptyList(); actAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; readAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; submissionId_ = ""; disclosedContracts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Commands(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_Commands_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_Commands_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.Commands.class, com.daml.ledger.api.v1.CommandsOuterClass.Commands.Builder.class); } private int deduplicationPeriodCase_ = 0; private java.lang.Object deduplicationPeriod_; public enum DeduplicationPeriodCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { @java.lang.Deprecated DEDUPLICATION_TIME(9), DEDUPLICATION_DURATION(15), DEDUPLICATION_OFFSET(16), DEDUPLICATIONPERIOD_NOT_SET(0); private final int value; private DeduplicationPeriodCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DeduplicationPeriodCase valueOf(int value) { return forNumber(value); } public static DeduplicationPeriodCase forNumber(int value) { switch (value) { case 9: return DEDUPLICATION_TIME; case 15: return DEDUPLICATION_DURATION; case 16: return DEDUPLICATION_OFFSET; case 0: return DEDUPLICATIONPERIOD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DeduplicationPeriodCase getDeduplicationPeriodCase() { return DeduplicationPeriodCase.forNumber( deduplicationPeriodCase_); } public static final int LEDGER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object ledgerId_; /** *
     * Must correspond to the ledger ID reported by the Ledger Identification Service.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string ledger_id = 1; * @return The ledgerId. */ @java.lang.Override public java.lang.String getLedgerId() { java.lang.Object ref = ledgerId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ledgerId_ = s; return s; } } /** *
     * Must correspond to the ledger ID reported by the Ledger Identification Service.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string ledger_id = 1; * @return The bytes for ledgerId. */ @java.lang.Override public com.google.protobuf.ByteString getLedgerIdBytes() { java.lang.Object ref = ledgerId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ledgerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WORKFLOW_ID_FIELD_NUMBER = 2; private volatile java.lang.Object workflowId_; /** *
     * Identifier of the on-ledger workflow that this command is a part of.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string workflow_id = 2; * @return The workflowId. */ @java.lang.Override public java.lang.String getWorkflowId() { java.lang.Object ref = workflowId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowId_ = s; return s; } } /** *
     * Identifier of the on-ledger workflow that this command is a part of.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string workflow_id = 2; * @return The bytes for workflowId. */ @java.lang.Override public com.google.protobuf.ByteString getWorkflowIdBytes() { java.lang.Object ref = workflowId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); workflowId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APPLICATION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object applicationId_; /** *
     * Uniquely identifies the application or participant user that issued the command.
     * Must be a valid ApplicationIdString (as described in ``value.proto``).
     * Required unless authentication is used with a user token or a custom token specifying an application-id.
     * In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
     * 
* * string application_id = 3; * @return The applicationId. */ @java.lang.Override public java.lang.String getApplicationId() { java.lang.Object ref = applicationId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); applicationId_ = s; return s; } } /** *
     * Uniquely identifies the application or participant user that issued the command.
     * Must be a valid ApplicationIdString (as described in ``value.proto``).
     * Required unless authentication is used with a user token or a custom token specifying an application-id.
     * In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
     * 
* * string application_id = 3; * @return The bytes for applicationId. */ @java.lang.Override public com.google.protobuf.ByteString getApplicationIdBytes() { java.lang.Object ref = applicationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); applicationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMMAND_ID_FIELD_NUMBER = 4; private volatile java.lang.Object commandId_; /** *
     * Uniquely identifies the command.
     * The triple (application_id, party + act_as, command_id) constitutes the change ID for the intended ledger change,
     * where party + act_as is interpreted as a set of party names.
     * The change ID can be used for matching the intended ledger changes with all their completions.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Required
     * 
* * string command_id = 4; * @return The commandId. */ @java.lang.Override public java.lang.String getCommandId() { java.lang.Object ref = commandId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commandId_ = s; return s; } } /** *
     * Uniquely identifies the command.
     * The triple (application_id, party + act_as, command_id) constitutes the change ID for the intended ledger change,
     * where party + act_as is interpreted as a set of party names.
     * The change ID can be used for matching the intended ledger changes with all their completions.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Required
     * 
* * string command_id = 4; * @return The bytes for commandId. */ @java.lang.Override public com.google.protobuf.ByteString getCommandIdBytes() { java.lang.Object ref = commandId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); commandId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTY_FIELD_NUMBER = 5; private volatile java.lang.Object party_; /** *
     * Party on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of the given party.
     * Must be a valid PartyIdString (as described in ``value.proto``).
     * Deprecated in favor of the ``act_as`` field. If both are set, then the effective list of parties on whose
     * behalf the command should be executed is the union of all parties listed in ``party`` and ``act_as``.
     * Optional
     * 
* * string party = 5; * @return The party. */ @java.lang.Override public java.lang.String getParty() { java.lang.Object ref = party_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); party_ = s; return s; } } /** *
     * Party on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of the given party.
     * Must be a valid PartyIdString (as described in ``value.proto``).
     * Deprecated in favor of the ``act_as`` field. If both are set, then the effective list of parties on whose
     * behalf the command should be executed is the union of all parties listed in ``party`` and ``act_as``.
     * Optional
     * 
* * string party = 5; * @return The bytes for party. */ @java.lang.Override public com.google.protobuf.ByteString getPartyBytes() { java.lang.Object ref = party_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); party_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMMANDS_FIELD_NUMBER = 8; private java.util.List commands_; /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ @java.lang.Override public java.util.List getCommandsList() { return commands_; } /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ @java.lang.Override public java.util.List getCommandsOrBuilderList() { return commands_; } /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ @java.lang.Override public int getCommandsCount() { return commands_.size(); } /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.Command getCommands(int index) { return commands_.get(index); } /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CommandOrBuilder getCommandsOrBuilder( int index) { return commands_.get(index); } public static final int DEDUPLICATION_TIME_FIELD_NUMBER = 9; /** *
     * Specifies the length of the deduplication period.
     * Same semantics apply as for `deduplication_duration`.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; * @deprecated * @return Whether the deduplicationTime field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDeduplicationTime() { return deduplicationPeriodCase_ == 9; } /** *
     * Specifies the length of the deduplication period.
     * Same semantics apply as for `deduplication_duration`.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; * @deprecated * @return The deduplicationTime. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.Duration getDeduplicationTime() { if (deduplicationPeriodCase_ == 9) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** *
     * Specifies the length of the deduplication period.
     * Same semantics apply as for `deduplication_duration`.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.DurationOrBuilder getDeduplicationTimeOrBuilder() { if (deduplicationPeriodCase_ == 9) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } public static final int DEDUPLICATION_DURATION_FIELD_NUMBER = 15; /** *
     * Specifies the length of the deduplication period.
     * It is interpreted relative to the local clock at some point during the submission's processing.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_duration = 15; * @return Whether the deduplicationDuration field is set. */ @java.lang.Override public boolean hasDeduplicationDuration() { return deduplicationPeriodCase_ == 15; } /** *
     * Specifies the length of the deduplication period.
     * It is interpreted relative to the local clock at some point during the submission's processing.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_duration = 15; * @return The deduplicationDuration. */ @java.lang.Override public com.google.protobuf.Duration getDeduplicationDuration() { if (deduplicationPeriodCase_ == 15) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** *
     * Specifies the length of the deduplication period.
     * It is interpreted relative to the local clock at some point during the submission's processing.
     * Must be non-negative. Must not exceed the maximum deduplication time (see
     * ``ledger_configuration_service.proto``).
     * 
* * .google.protobuf.Duration deduplication_duration = 15; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDeduplicationDurationOrBuilder() { if (deduplicationPeriodCase_ == 15) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } public static final int DEDUPLICATION_OFFSET_FIELD_NUMBER = 16; /** *
     * Specifies the start of the deduplication period by a completion stream offset (exclusive).
     * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
     * 
* * string deduplication_offset = 16; * @return Whether the deduplicationOffset field is set. */ public boolean hasDeduplicationOffset() { return deduplicationPeriodCase_ == 16; } /** *
     * Specifies the start of the deduplication period by a completion stream offset (exclusive).
     * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
     * 
* * string deduplication_offset = 16; * @return The deduplicationOffset. */ public java.lang.String getDeduplicationOffset() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 16) { ref = deduplicationPeriod_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (deduplicationPeriodCase_ == 16) { deduplicationPeriod_ = s; } return s; } } /** *
     * Specifies the start of the deduplication period by a completion stream offset (exclusive).
     * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
     * 
* * string deduplication_offset = 16; * @return The bytes for deduplicationOffset. */ public com.google.protobuf.ByteString getDeduplicationOffsetBytes() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 16) { ref = deduplicationPeriod_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (deduplicationPeriodCase_ == 16) { deduplicationPeriod_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MIN_LEDGER_TIME_ABS_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp minLedgerTimeAbs_; /** *
     * Lower bound for the ledger time assigned to the resulting transaction.
     * Note: The ledger time of a transaction is assigned as part of command interpretation.
     * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
     * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
     * Must not be set at the same time as min_ledger_time_rel.
     * Optional
     * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; * @return Whether the minLedgerTimeAbs field is set. */ @java.lang.Override public boolean hasMinLedgerTimeAbs() { return minLedgerTimeAbs_ != null; } /** *
     * Lower bound for the ledger time assigned to the resulting transaction.
     * Note: The ledger time of a transaction is assigned as part of command interpretation.
     * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
     * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
     * Must not be set at the same time as min_ledger_time_rel.
     * Optional
     * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; * @return The minLedgerTimeAbs. */ @java.lang.Override public com.google.protobuf.Timestamp getMinLedgerTimeAbs() { return minLedgerTimeAbs_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minLedgerTimeAbs_; } /** *
     * Lower bound for the ledger time assigned to the resulting transaction.
     * Note: The ledger time of a transaction is assigned as part of command interpretation.
     * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
     * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
     * Must not be set at the same time as min_ledger_time_rel.
     * Optional
     * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMinLedgerTimeAbsOrBuilder() { return getMinLedgerTimeAbs(); } public static final int MIN_LEDGER_TIME_REL_FIELD_NUMBER = 11; private com.google.protobuf.Duration minLedgerTimeRel_; /** *
     * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
     * Must not be set at the same time as min_ledger_time_abs.
     * Optional
     * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; * @return Whether the minLedgerTimeRel field is set. */ @java.lang.Override public boolean hasMinLedgerTimeRel() { return minLedgerTimeRel_ != null; } /** *
     * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
     * Must not be set at the same time as min_ledger_time_abs.
     * Optional
     * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; * @return The minLedgerTimeRel. */ @java.lang.Override public com.google.protobuf.Duration getMinLedgerTimeRel() { return minLedgerTimeRel_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minLedgerTimeRel_; } /** *
     * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
     * Must not be set at the same time as min_ledger_time_abs.
     * Optional
     * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinLedgerTimeRelOrBuilder() { return getMinLedgerTimeRel(); } public static final int ACT_AS_FIELD_NUMBER = 12; private com.google.protobuf.LazyStringList actAs_; /** *
     * Set of parties on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of each of the given parties.
     * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
     * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional
     * 
* * repeated string act_as = 12; * @return A list containing the actAs. */ public com.google.protobuf.ProtocolStringList getActAsList() { return actAs_; } /** *
     * Set of parties on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of each of the given parties.
     * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
     * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional
     * 
* * repeated string act_as = 12; * @return The count of actAs. */ public int getActAsCount() { return actAs_.size(); } /** *
     * Set of parties on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of each of the given parties.
     * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
     * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional
     * 
* * repeated string act_as = 12; * @param index The index of the element to return. * @return The actAs at the given index. */ public java.lang.String getActAs(int index) { return actAs_.get(index); } /** *
     * Set of parties on whose behalf the command should be executed.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to act on behalf of each of the given parties.
     * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
     * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional
     * 
* * repeated string act_as = 12; * @param index The index of the value to return. * @return The bytes of the actAs at the given index. */ public com.google.protobuf.ByteString getActAsBytes(int index) { return actAs_.getByteString(index); } public static final int READ_AS_FIELD_NUMBER = 13; private com.google.protobuf.LazyStringList readAs_; /** *
     * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
     * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
     * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
     * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
     * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
     * rules for fetch operations.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to read contract data on behalf of each of the given parties.
     * Optional
     * 
* * repeated string read_as = 13; * @return A list containing the readAs. */ public com.google.protobuf.ProtocolStringList getReadAsList() { return readAs_; } /** *
     * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
     * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
     * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
     * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
     * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
     * rules for fetch operations.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to read contract data on behalf of each of the given parties.
     * Optional
     * 
* * repeated string read_as = 13; * @return The count of readAs. */ public int getReadAsCount() { return readAs_.size(); } /** *
     * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
     * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
     * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
     * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
     * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
     * rules for fetch operations.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to read contract data on behalf of each of the given parties.
     * Optional
     * 
* * repeated string read_as = 13; * @param index The index of the element to return. * @return The readAs at the given index. */ public java.lang.String getReadAs(int index) { return readAs_.get(index); } /** *
     * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
     * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
     * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
     * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
     * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
     * rules for fetch operations.
     * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
     * to read contract data on behalf of each of the given parties.
     * Optional
     * 
* * repeated string read_as = 13; * @param index The index of the value to return. * @return The bytes of the readAs at the given index. */ public com.google.protobuf.ByteString getReadAsBytes(int index) { return readAs_.getByteString(index); } public static final int SUBMISSION_ID_FIELD_NUMBER = 14; private volatile java.lang.Object submissionId_; /** *
     * A unique identifier to distinguish completions for different submissions with the same change ID.
     * Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
     * with the same change ID.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * If omitted, the participant or the committer may set a value of their choice.
     * Optional
     * 
* * string submission_id = 14; * @return The submissionId. */ @java.lang.Override public java.lang.String getSubmissionId() { java.lang.Object ref = submissionId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); submissionId_ = s; return s; } } /** *
     * A unique identifier to distinguish completions for different submissions with the same change ID.
     * Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
     * with the same change ID.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * If omitted, the participant or the committer may set a value of their choice.
     * Optional
     * 
* * string submission_id = 14; * @return The bytes for submissionId. */ @java.lang.Override public com.google.protobuf.ByteString getSubmissionIdBytes() { java.lang.Object ref = submissionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); submissionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISCLOSED_CONTRACTS_FIELD_NUMBER = 17; private java.util.List disclosedContracts_; /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ @java.lang.Override public java.util.List getDisclosedContractsList() { return disclosedContracts_; } /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ @java.lang.Override public java.util.List getDisclosedContractsOrBuilderList() { return disclosedContracts_; } /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ @java.lang.Override public int getDisclosedContractsCount() { return disclosedContracts_.size(); } /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract getDisclosedContracts(int index) { return disclosedContracts_.get(index); } /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContractOrBuilder getDisclosedContractsOrBuilder( int index) { return disclosedContracts_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ledgerId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ledgerId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workflowId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applicationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, applicationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, commandId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(party_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, party_); } for (int i = 0; i < commands_.size(); i++) { output.writeMessage(8, commands_.get(i)); } if (deduplicationPeriodCase_ == 9) { output.writeMessage(9, (com.google.protobuf.Duration) deduplicationPeriod_); } if (minLedgerTimeAbs_ != null) { output.writeMessage(10, getMinLedgerTimeAbs()); } if (minLedgerTimeRel_ != null) { output.writeMessage(11, getMinLedgerTimeRel()); } for (int i = 0; i < actAs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, actAs_.getRaw(i)); } for (int i = 0; i < readAs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, readAs_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submissionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, submissionId_); } if (deduplicationPeriodCase_ == 15) { output.writeMessage(15, (com.google.protobuf.Duration) deduplicationPeriod_); } if (deduplicationPeriodCase_ == 16) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, deduplicationPeriod_); } for (int i = 0; i < disclosedContracts_.size(); i++) { output.writeMessage(17, disclosedContracts_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ledgerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ledgerId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workflowId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applicationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, applicationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, commandId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(party_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, party_); } for (int i = 0; i < commands_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, commands_.get(i)); } if (deduplicationPeriodCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.google.protobuf.Duration) deduplicationPeriod_); } if (minLedgerTimeAbs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getMinLedgerTimeAbs()); } if (minLedgerTimeRel_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getMinLedgerTimeRel()); } { int dataSize = 0; for (int i = 0; i < actAs_.size(); i++) { dataSize += computeStringSizeNoTag(actAs_.getRaw(i)); } size += dataSize; size += 1 * getActAsList().size(); } { int dataSize = 0; for (int i = 0; i < readAs_.size(); i++) { dataSize += computeStringSizeNoTag(readAs_.getRaw(i)); } size += dataSize; size += 1 * getReadAsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submissionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, submissionId_); } if (deduplicationPeriodCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.google.protobuf.Duration) deduplicationPeriod_); } if (deduplicationPeriodCase_ == 16) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, deduplicationPeriod_); } for (int i = 0; i < disclosedContracts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, disclosedContracts_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.ledger.api.v1.CommandsOuterClass.Commands)) { return super.equals(obj); } com.daml.ledger.api.v1.CommandsOuterClass.Commands other = (com.daml.ledger.api.v1.CommandsOuterClass.Commands) obj; if (!getLedgerId() .equals(other.getLedgerId())) return false; if (!getWorkflowId() .equals(other.getWorkflowId())) return false; if (!getApplicationId() .equals(other.getApplicationId())) return false; if (!getCommandId() .equals(other.getCommandId())) return false; if (!getParty() .equals(other.getParty())) return false; if (!getCommandsList() .equals(other.getCommandsList())) return false; if (hasMinLedgerTimeAbs() != other.hasMinLedgerTimeAbs()) return false; if (hasMinLedgerTimeAbs()) { if (!getMinLedgerTimeAbs() .equals(other.getMinLedgerTimeAbs())) return false; } if (hasMinLedgerTimeRel() != other.hasMinLedgerTimeRel()) return false; if (hasMinLedgerTimeRel()) { if (!getMinLedgerTimeRel() .equals(other.getMinLedgerTimeRel())) return false; } if (!getActAsList() .equals(other.getActAsList())) return false; if (!getReadAsList() .equals(other.getReadAsList())) return false; if (!getSubmissionId() .equals(other.getSubmissionId())) return false; if (!getDisclosedContractsList() .equals(other.getDisclosedContractsList())) return false; if (!getDeduplicationPeriodCase().equals(other.getDeduplicationPeriodCase())) return false; switch (deduplicationPeriodCase_) { case 9: if (!getDeduplicationTime() .equals(other.getDeduplicationTime())) return false; break; case 15: if (!getDeduplicationDuration() .equals(other.getDeduplicationDuration())) return false; break; case 16: if (!getDeduplicationOffset() .equals(other.getDeduplicationOffset())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LEDGER_ID_FIELD_NUMBER; hash = (53 * hash) + getLedgerId().hashCode(); hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; hash = (53 * hash) + getWorkflowId().hashCode(); hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER; hash = (53 * hash) + getApplicationId().hashCode(); hash = (37 * hash) + COMMAND_ID_FIELD_NUMBER; hash = (53 * hash) + getCommandId().hashCode(); hash = (37 * hash) + PARTY_FIELD_NUMBER; hash = (53 * hash) + getParty().hashCode(); if (getCommandsCount() > 0) { hash = (37 * hash) + COMMANDS_FIELD_NUMBER; hash = (53 * hash) + getCommandsList().hashCode(); } if (hasMinLedgerTimeAbs()) { hash = (37 * hash) + MIN_LEDGER_TIME_ABS_FIELD_NUMBER; hash = (53 * hash) + getMinLedgerTimeAbs().hashCode(); } if (hasMinLedgerTimeRel()) { hash = (37 * hash) + MIN_LEDGER_TIME_REL_FIELD_NUMBER; hash = (53 * hash) + getMinLedgerTimeRel().hashCode(); } if (getActAsCount() > 0) { hash = (37 * hash) + ACT_AS_FIELD_NUMBER; hash = (53 * hash) + getActAsList().hashCode(); } if (getReadAsCount() > 0) { hash = (37 * hash) + READ_AS_FIELD_NUMBER; hash = (53 * hash) + getReadAsList().hashCode(); } hash = (37 * hash) + SUBMISSION_ID_FIELD_NUMBER; hash = (53 * hash) + getSubmissionId().hashCode(); if (getDisclosedContractsCount() > 0) { hash = (37 * hash) + DISCLOSED_CONTRACTS_FIELD_NUMBER; hash = (53 * hash) + getDisclosedContractsList().hashCode(); } switch (deduplicationPeriodCase_) { case 9: hash = (37 * hash) + DEDUPLICATION_TIME_FIELD_NUMBER; hash = (53 * hash) + getDeduplicationTime().hashCode(); break; case 15: hash = (37 * hash) + DEDUPLICATION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getDeduplicationDuration().hashCode(); break; case 16: hash = (37 * hash) + DEDUPLICATION_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getDeduplicationOffset().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.ledger.api.v1.CommandsOuterClass.Commands prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A composite command that groups multiple commands together.
     * 
* * Protobuf type {@code com.daml.ledger.api.v1.Commands} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.Commands) com.daml.ledger.api.v1.CommandsOuterClass.CommandsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_Commands_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_Commands_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.Commands.class, com.daml.ledger.api.v1.CommandsOuterClass.Commands.Builder.class); } // Construct using com.daml.ledger.api.v1.CommandsOuterClass.Commands.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); ledgerId_ = ""; workflowId_ = ""; applicationId_ = ""; commandId_ = ""; party_ = ""; if (commandsBuilder_ == null) { commands_ = java.util.Collections.emptyList(); } else { commands_ = null; commandsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (deduplicationTimeBuilder_ != null) { deduplicationTimeBuilder_.clear(); } if (deduplicationDurationBuilder_ != null) { deduplicationDurationBuilder_.clear(); } if (minLedgerTimeAbsBuilder_ == null) { minLedgerTimeAbs_ = null; } else { minLedgerTimeAbs_ = null; minLedgerTimeAbsBuilder_ = null; } if (minLedgerTimeRelBuilder_ == null) { minLedgerTimeRel_ = null; } else { minLedgerTimeRel_ = null; minLedgerTimeRelBuilder_ = null; } actAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); readAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); submissionId_ = ""; if (disclosedContractsBuilder_ == null) { disclosedContracts_ = java.util.Collections.emptyList(); } else { disclosedContracts_ = null; disclosedContractsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_Commands_descriptor; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.Commands getDefaultInstanceForType() { return com.daml.ledger.api.v1.CommandsOuterClass.Commands.getDefaultInstance(); } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.Commands build() { com.daml.ledger.api.v1.CommandsOuterClass.Commands result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.Commands buildPartial() { com.daml.ledger.api.v1.CommandsOuterClass.Commands result = new com.daml.ledger.api.v1.CommandsOuterClass.Commands(this); int from_bitField0_ = bitField0_; result.ledgerId_ = ledgerId_; result.workflowId_ = workflowId_; result.applicationId_ = applicationId_; result.commandId_ = commandId_; result.party_ = party_; if (commandsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { commands_ = java.util.Collections.unmodifiableList(commands_); bitField0_ = (bitField0_ & ~0x00000001); } result.commands_ = commands_; } else { result.commands_ = commandsBuilder_.build(); } if (deduplicationPeriodCase_ == 9) { if (deduplicationTimeBuilder_ == null) { result.deduplicationPeriod_ = deduplicationPeriod_; } else { result.deduplicationPeriod_ = deduplicationTimeBuilder_.build(); } } if (deduplicationPeriodCase_ == 15) { if (deduplicationDurationBuilder_ == null) { result.deduplicationPeriod_ = deduplicationPeriod_; } else { result.deduplicationPeriod_ = deduplicationDurationBuilder_.build(); } } if (deduplicationPeriodCase_ == 16) { result.deduplicationPeriod_ = deduplicationPeriod_; } if (minLedgerTimeAbsBuilder_ == null) { result.minLedgerTimeAbs_ = minLedgerTimeAbs_; } else { result.minLedgerTimeAbs_ = minLedgerTimeAbsBuilder_.build(); } if (minLedgerTimeRelBuilder_ == null) { result.minLedgerTimeRel_ = minLedgerTimeRel_; } else { result.minLedgerTimeRel_ = minLedgerTimeRelBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { actAs_ = actAs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.actAs_ = actAs_; if (((bitField0_ & 0x00000004) != 0)) { readAs_ = readAs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.readAs_ = readAs_; result.submissionId_ = submissionId_; if (disclosedContractsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { disclosedContracts_ = java.util.Collections.unmodifiableList(disclosedContracts_); bitField0_ = (bitField0_ & ~0x00000008); } result.disclosedContracts_ = disclosedContracts_; } else { result.disclosedContracts_ = disclosedContractsBuilder_.build(); } result.deduplicationPeriodCase_ = deduplicationPeriodCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.ledger.api.v1.CommandsOuterClass.Commands) { return mergeFrom((com.daml.ledger.api.v1.CommandsOuterClass.Commands)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.ledger.api.v1.CommandsOuterClass.Commands other) { if (other == com.daml.ledger.api.v1.CommandsOuterClass.Commands.getDefaultInstance()) return this; if (!other.getLedgerId().isEmpty()) { ledgerId_ = other.ledgerId_; onChanged(); } if (!other.getWorkflowId().isEmpty()) { workflowId_ = other.workflowId_; onChanged(); } if (!other.getApplicationId().isEmpty()) { applicationId_ = other.applicationId_; onChanged(); } if (!other.getCommandId().isEmpty()) { commandId_ = other.commandId_; onChanged(); } if (!other.getParty().isEmpty()) { party_ = other.party_; onChanged(); } if (commandsBuilder_ == null) { if (!other.commands_.isEmpty()) { if (commands_.isEmpty()) { commands_ = other.commands_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCommandsIsMutable(); commands_.addAll(other.commands_); } onChanged(); } } else { if (!other.commands_.isEmpty()) { if (commandsBuilder_.isEmpty()) { commandsBuilder_.dispose(); commandsBuilder_ = null; commands_ = other.commands_; bitField0_ = (bitField0_ & ~0x00000001); commandsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCommandsFieldBuilder() : null; } else { commandsBuilder_.addAllMessages(other.commands_); } } } if (other.hasMinLedgerTimeAbs()) { mergeMinLedgerTimeAbs(other.getMinLedgerTimeAbs()); } if (other.hasMinLedgerTimeRel()) { mergeMinLedgerTimeRel(other.getMinLedgerTimeRel()); } if (!other.actAs_.isEmpty()) { if (actAs_.isEmpty()) { actAs_ = other.actAs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureActAsIsMutable(); actAs_.addAll(other.actAs_); } onChanged(); } if (!other.readAs_.isEmpty()) { if (readAs_.isEmpty()) { readAs_ = other.readAs_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureReadAsIsMutable(); readAs_.addAll(other.readAs_); } onChanged(); } if (!other.getSubmissionId().isEmpty()) { submissionId_ = other.submissionId_; onChanged(); } if (disclosedContractsBuilder_ == null) { if (!other.disclosedContracts_.isEmpty()) { if (disclosedContracts_.isEmpty()) { disclosedContracts_ = other.disclosedContracts_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDisclosedContractsIsMutable(); disclosedContracts_.addAll(other.disclosedContracts_); } onChanged(); } } else { if (!other.disclosedContracts_.isEmpty()) { if (disclosedContractsBuilder_.isEmpty()) { disclosedContractsBuilder_.dispose(); disclosedContractsBuilder_ = null; disclosedContracts_ = other.disclosedContracts_; bitField0_ = (bitField0_ & ~0x00000008); disclosedContractsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDisclosedContractsFieldBuilder() : null; } else { disclosedContractsBuilder_.addAllMessages(other.disclosedContracts_); } } } switch (other.getDeduplicationPeriodCase()) { case DEDUPLICATION_TIME: { mergeDeduplicationTime(other.getDeduplicationTime()); break; } case DEDUPLICATION_DURATION: { mergeDeduplicationDuration(other.getDeduplicationDuration()); break; } case DEDUPLICATION_OFFSET: { deduplicationPeriodCase_ = 16; deduplicationPeriod_ = other.deduplicationPeriod_; onChanged(); break; } case DEDUPLICATIONPERIOD_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ledgerId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { workflowId_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { applicationId_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { commandId_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { party_ = input.readStringRequireUtf8(); break; } // case 42 case 66: { com.daml.ledger.api.v1.CommandsOuterClass.Command m = input.readMessage( com.daml.ledger.api.v1.CommandsOuterClass.Command.parser(), extensionRegistry); if (commandsBuilder_ == null) { ensureCommandsIsMutable(); commands_.add(m); } else { commandsBuilder_.addMessage(m); } break; } // case 66 case 74: { input.readMessage( getDeduplicationTimeFieldBuilder().getBuilder(), extensionRegistry); deduplicationPeriodCase_ = 9; break; } // case 74 case 82: { input.readMessage( getMinLedgerTimeAbsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 82 case 90: { input.readMessage( getMinLedgerTimeRelFieldBuilder().getBuilder(), extensionRegistry); break; } // case 90 case 98: { java.lang.String s = input.readStringRequireUtf8(); ensureActAsIsMutable(); actAs_.add(s); break; } // case 98 case 106: { java.lang.String s = input.readStringRequireUtf8(); ensureReadAsIsMutable(); readAs_.add(s); break; } // case 106 case 114: { submissionId_ = input.readStringRequireUtf8(); break; } // case 114 case 122: { input.readMessage( getDeduplicationDurationFieldBuilder().getBuilder(), extensionRegistry); deduplicationPeriodCase_ = 15; break; } // case 122 case 130: { java.lang.String s = input.readStringRequireUtf8(); deduplicationPeriodCase_ = 16; deduplicationPeriod_ = s; break; } // case 130 case 138: { com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract m = input.readMessage( com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.parser(), extensionRegistry); if (disclosedContractsBuilder_ == null) { ensureDisclosedContractsIsMutable(); disclosedContracts_.add(m); } else { disclosedContractsBuilder_.addMessage(m); } break; } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int deduplicationPeriodCase_ = 0; private java.lang.Object deduplicationPeriod_; public DeduplicationPeriodCase getDeduplicationPeriodCase() { return DeduplicationPeriodCase.forNumber( deduplicationPeriodCase_); } public Builder clearDeduplicationPeriod() { deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object ledgerId_ = ""; /** *
       * Must correspond to the ledger ID reported by the Ledger Identification Service.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string ledger_id = 1; * @return The ledgerId. */ public java.lang.String getLedgerId() { java.lang.Object ref = ledgerId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ledgerId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Must correspond to the ledger ID reported by the Ledger Identification Service.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string ledger_id = 1; * @return The bytes for ledgerId. */ public com.google.protobuf.ByteString getLedgerIdBytes() { java.lang.Object ref = ledgerId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ledgerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Must correspond to the ledger ID reported by the Ledger Identification Service.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string ledger_id = 1; * @param value The ledgerId to set. * @return This builder for chaining. */ public Builder setLedgerId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ledgerId_ = value; onChanged(); return this; } /** *
       * Must correspond to the ledger ID reported by the Ledger Identification Service.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string ledger_id = 1; * @return This builder for chaining. */ public Builder clearLedgerId() { ledgerId_ = getDefaultInstance().getLedgerId(); onChanged(); return this; } /** *
       * Must correspond to the ledger ID reported by the Ledger Identification Service.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string ledger_id = 1; * @param value The bytes for ledgerId to set. * @return This builder for chaining. */ public Builder setLedgerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ledgerId_ = value; onChanged(); return this; } private java.lang.Object workflowId_ = ""; /** *
       * Identifier of the on-ledger workflow that this command is a part of.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string workflow_id = 2; * @return The workflowId. */ public java.lang.String getWorkflowId() { java.lang.Object ref = workflowId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Identifier of the on-ledger workflow that this command is a part of.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string workflow_id = 2; * @return The bytes for workflowId. */ public com.google.protobuf.ByteString getWorkflowIdBytes() { java.lang.Object ref = workflowId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); workflowId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Identifier of the on-ledger workflow that this command is a part of.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string workflow_id = 2; * @param value The workflowId to set. * @return This builder for chaining. */ public Builder setWorkflowId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } workflowId_ = value; onChanged(); return this; } /** *
       * Identifier of the on-ledger workflow that this command is a part of.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string workflow_id = 2; * @return This builder for chaining. */ public Builder clearWorkflowId() { workflowId_ = getDefaultInstance().getWorkflowId(); onChanged(); return this; } /** *
       * Identifier of the on-ledger workflow that this command is a part of.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string workflow_id = 2; * @param value The bytes for workflowId to set. * @return This builder for chaining. */ public Builder setWorkflowIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workflowId_ = value; onChanged(); return this; } private java.lang.Object applicationId_ = ""; /** *
       * Uniquely identifies the application or participant user that issued the command.
       * Must be a valid ApplicationIdString (as described in ``value.proto``).
       * Required unless authentication is used with a user token or a custom token specifying an application-id.
       * In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
       * 
* * string application_id = 3; * @return The applicationId. */ public java.lang.String getApplicationId() { java.lang.Object ref = applicationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); applicationId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Uniquely identifies the application or participant user that issued the command.
       * Must be a valid ApplicationIdString (as described in ``value.proto``).
       * Required unless authentication is used with a user token or a custom token specifying an application-id.
       * In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
       * 
* * string application_id = 3; * @return The bytes for applicationId. */ public com.google.protobuf.ByteString getApplicationIdBytes() { java.lang.Object ref = applicationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); applicationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Uniquely identifies the application or participant user that issued the command.
       * Must be a valid ApplicationIdString (as described in ``value.proto``).
       * Required unless authentication is used with a user token or a custom token specifying an application-id.
       * In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
       * 
* * string application_id = 3; * @param value The applicationId to set. * @return This builder for chaining. */ public Builder setApplicationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } applicationId_ = value; onChanged(); return this; } /** *
       * Uniquely identifies the application or participant user that issued the command.
       * Must be a valid ApplicationIdString (as described in ``value.proto``).
       * Required unless authentication is used with a user token or a custom token specifying an application-id.
       * In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
       * 
* * string application_id = 3; * @return This builder for chaining. */ public Builder clearApplicationId() { applicationId_ = getDefaultInstance().getApplicationId(); onChanged(); return this; } /** *
       * Uniquely identifies the application or participant user that issued the command.
       * Must be a valid ApplicationIdString (as described in ``value.proto``).
       * Required unless authentication is used with a user token or a custom token specifying an application-id.
       * In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
       * 
* * string application_id = 3; * @param value The bytes for applicationId to set. * @return This builder for chaining. */ public Builder setApplicationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); applicationId_ = value; onChanged(); return this; } private java.lang.Object commandId_ = ""; /** *
       * Uniquely identifies the command.
       * The triple (application_id, party + act_as, command_id) constitutes the change ID for the intended ledger change,
       * where party + act_as is interpreted as a set of party names.
       * The change ID can be used for matching the intended ledger changes with all their completions.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Required
       * 
* * string command_id = 4; * @return The commandId. */ public java.lang.String getCommandId() { java.lang.Object ref = commandId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commandId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Uniquely identifies the command.
       * The triple (application_id, party + act_as, command_id) constitutes the change ID for the intended ledger change,
       * where party + act_as is interpreted as a set of party names.
       * The change ID can be used for matching the intended ledger changes with all their completions.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Required
       * 
* * string command_id = 4; * @return The bytes for commandId. */ public com.google.protobuf.ByteString getCommandIdBytes() { java.lang.Object ref = commandId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); commandId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Uniquely identifies the command.
       * The triple (application_id, party + act_as, command_id) constitutes the change ID for the intended ledger change,
       * where party + act_as is interpreted as a set of party names.
       * The change ID can be used for matching the intended ledger changes with all their completions.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Required
       * 
* * string command_id = 4; * @param value The commandId to set. * @return This builder for chaining. */ public Builder setCommandId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } commandId_ = value; onChanged(); return this; } /** *
       * Uniquely identifies the command.
       * The triple (application_id, party + act_as, command_id) constitutes the change ID for the intended ledger change,
       * where party + act_as is interpreted as a set of party names.
       * The change ID can be used for matching the intended ledger changes with all their completions.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Required
       * 
* * string command_id = 4; * @return This builder for chaining. */ public Builder clearCommandId() { commandId_ = getDefaultInstance().getCommandId(); onChanged(); return this; } /** *
       * Uniquely identifies the command.
       * The triple (application_id, party + act_as, command_id) constitutes the change ID for the intended ledger change,
       * where party + act_as is interpreted as a set of party names.
       * The change ID can be used for matching the intended ledger changes with all their completions.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Required
       * 
* * string command_id = 4; * @param value The bytes for commandId to set. * @return This builder for chaining. */ public Builder setCommandIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); commandId_ = value; onChanged(); return this; } private java.lang.Object party_ = ""; /** *
       * Party on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of the given party.
       * Must be a valid PartyIdString (as described in ``value.proto``).
       * Deprecated in favor of the ``act_as`` field. If both are set, then the effective list of parties on whose
       * behalf the command should be executed is the union of all parties listed in ``party`` and ``act_as``.
       * Optional
       * 
* * string party = 5; * @return The party. */ public java.lang.String getParty() { java.lang.Object ref = party_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); party_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Party on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of the given party.
       * Must be a valid PartyIdString (as described in ``value.proto``).
       * Deprecated in favor of the ``act_as`` field. If both are set, then the effective list of parties on whose
       * behalf the command should be executed is the union of all parties listed in ``party`` and ``act_as``.
       * Optional
       * 
* * string party = 5; * @return The bytes for party. */ public com.google.protobuf.ByteString getPartyBytes() { java.lang.Object ref = party_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); party_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Party on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of the given party.
       * Must be a valid PartyIdString (as described in ``value.proto``).
       * Deprecated in favor of the ``act_as`` field. If both are set, then the effective list of parties on whose
       * behalf the command should be executed is the union of all parties listed in ``party`` and ``act_as``.
       * Optional
       * 
* * string party = 5; * @param value The party to set. * @return This builder for chaining. */ public Builder setParty( java.lang.String value) { if (value == null) { throw new NullPointerException(); } party_ = value; onChanged(); return this; } /** *
       * Party on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of the given party.
       * Must be a valid PartyIdString (as described in ``value.proto``).
       * Deprecated in favor of the ``act_as`` field. If both are set, then the effective list of parties on whose
       * behalf the command should be executed is the union of all parties listed in ``party`` and ``act_as``.
       * Optional
       * 
* * string party = 5; * @return This builder for chaining. */ public Builder clearParty() { party_ = getDefaultInstance().getParty(); onChanged(); return this; } /** *
       * Party on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of the given party.
       * Must be a valid PartyIdString (as described in ``value.proto``).
       * Deprecated in favor of the ``act_as`` field. If both are set, then the effective list of parties on whose
       * behalf the command should be executed is the union of all parties listed in ``party`` and ``act_as``.
       * Optional
       * 
* * string party = 5; * @param value The bytes for party to set. * @return This builder for chaining. */ public Builder setPartyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); party_ = value; onChanged(); return this; } private java.util.List commands_ = java.util.Collections.emptyList(); private void ensureCommandsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { commands_ = new java.util.ArrayList(commands_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.Command, com.daml.ledger.api.v1.CommandsOuterClass.Command.Builder, com.daml.ledger.api.v1.CommandsOuterClass.CommandOrBuilder> commandsBuilder_; /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public java.util.List getCommandsList() { if (commandsBuilder_ == null) { return java.util.Collections.unmodifiableList(commands_); } else { return commandsBuilder_.getMessageList(); } } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public int getCommandsCount() { if (commandsBuilder_ == null) { return commands_.size(); } else { return commandsBuilder_.getCount(); } } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public com.daml.ledger.api.v1.CommandsOuterClass.Command getCommands(int index) { if (commandsBuilder_ == null) { return commands_.get(index); } else { return commandsBuilder_.getMessage(index); } } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public Builder setCommands( int index, com.daml.ledger.api.v1.CommandsOuterClass.Command value) { if (commandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommandsIsMutable(); commands_.set(index, value); onChanged(); } else { commandsBuilder_.setMessage(index, value); } return this; } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public Builder setCommands( int index, com.daml.ledger.api.v1.CommandsOuterClass.Command.Builder builderForValue) { if (commandsBuilder_ == null) { ensureCommandsIsMutable(); commands_.set(index, builderForValue.build()); onChanged(); } else { commandsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public Builder addCommands(com.daml.ledger.api.v1.CommandsOuterClass.Command value) { if (commandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommandsIsMutable(); commands_.add(value); onChanged(); } else { commandsBuilder_.addMessage(value); } return this; } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public Builder addCommands( int index, com.daml.ledger.api.v1.CommandsOuterClass.Command value) { if (commandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommandsIsMutable(); commands_.add(index, value); onChanged(); } else { commandsBuilder_.addMessage(index, value); } return this; } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public Builder addCommands( com.daml.ledger.api.v1.CommandsOuterClass.Command.Builder builderForValue) { if (commandsBuilder_ == null) { ensureCommandsIsMutable(); commands_.add(builderForValue.build()); onChanged(); } else { commandsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public Builder addCommands( int index, com.daml.ledger.api.v1.CommandsOuterClass.Command.Builder builderForValue) { if (commandsBuilder_ == null) { ensureCommandsIsMutable(); commands_.add(index, builderForValue.build()); onChanged(); } else { commandsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public Builder addAllCommands( java.lang.Iterable values) { if (commandsBuilder_ == null) { ensureCommandsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, commands_); onChanged(); } else { commandsBuilder_.addAllMessages(values); } return this; } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public Builder clearCommands() { if (commandsBuilder_ == null) { commands_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { commandsBuilder_.clear(); } return this; } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public Builder removeCommands(int index) { if (commandsBuilder_ == null) { ensureCommandsIsMutable(); commands_.remove(index); onChanged(); } else { commandsBuilder_.remove(index); } return this; } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public com.daml.ledger.api.v1.CommandsOuterClass.Command.Builder getCommandsBuilder( int index) { return getCommandsFieldBuilder().getBuilder(index); } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public com.daml.ledger.api.v1.CommandsOuterClass.CommandOrBuilder getCommandsOrBuilder( int index) { if (commandsBuilder_ == null) { return commands_.get(index); } else { return commandsBuilder_.getMessageOrBuilder(index); } } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public java.util.List getCommandsOrBuilderList() { if (commandsBuilder_ != null) { return commandsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(commands_); } } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public com.daml.ledger.api.v1.CommandsOuterClass.Command.Builder addCommandsBuilder() { return getCommandsFieldBuilder().addBuilder( com.daml.ledger.api.v1.CommandsOuterClass.Command.getDefaultInstance()); } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public com.daml.ledger.api.v1.CommandsOuterClass.Command.Builder addCommandsBuilder( int index) { return getCommandsFieldBuilder().addBuilder( index, com.daml.ledger.api.v1.CommandsOuterClass.Command.getDefaultInstance()); } /** *
       * Individual elements of this atomic command. Must be non-empty.
       * Required
       * 
* * repeated .com.daml.ledger.api.v1.Command commands = 8; */ public java.util.List getCommandsBuilderList() { return getCommandsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.Command, com.daml.ledger.api.v1.CommandsOuterClass.Command.Builder, com.daml.ledger.api.v1.CommandsOuterClass.CommandOrBuilder> getCommandsFieldBuilder() { if (commandsBuilder_ == null) { commandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.Command, com.daml.ledger.api.v1.CommandsOuterClass.Command.Builder, com.daml.ledger.api.v1.CommandsOuterClass.CommandOrBuilder>( commands_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); commands_ = null; } return commandsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> deduplicationTimeBuilder_; /** *
       * Specifies the length of the deduplication period.
       * Same semantics apply as for `deduplication_duration`.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; * @deprecated * @return Whether the deduplicationTime field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDeduplicationTime() { return deduplicationPeriodCase_ == 9; } /** *
       * Specifies the length of the deduplication period.
       * Same semantics apply as for `deduplication_duration`.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; * @deprecated * @return The deduplicationTime. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.Duration getDeduplicationTime() { if (deduplicationTimeBuilder_ == null) { if (deduplicationPeriodCase_ == 9) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } else { if (deduplicationPeriodCase_ == 9) { return deduplicationTimeBuilder_.getMessage(); } return com.google.protobuf.Duration.getDefaultInstance(); } } /** *
       * Specifies the length of the deduplication period.
       * Same semantics apply as for `deduplication_duration`.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; */ @java.lang.Deprecated public Builder setDeduplicationTime(com.google.protobuf.Duration value) { if (deduplicationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deduplicationPeriod_ = value; onChanged(); } else { deduplicationTimeBuilder_.setMessage(value); } deduplicationPeriodCase_ = 9; return this; } /** *
       * Specifies the length of the deduplication period.
       * Same semantics apply as for `deduplication_duration`.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; */ @java.lang.Deprecated public Builder setDeduplicationTime( com.google.protobuf.Duration.Builder builderForValue) { if (deduplicationTimeBuilder_ == null) { deduplicationPeriod_ = builderForValue.build(); onChanged(); } else { deduplicationTimeBuilder_.setMessage(builderForValue.build()); } deduplicationPeriodCase_ = 9; return this; } /** *
       * Specifies the length of the deduplication period.
       * Same semantics apply as for `deduplication_duration`.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeDeduplicationTime(com.google.protobuf.Duration value) { if (deduplicationTimeBuilder_ == null) { if (deduplicationPeriodCase_ == 9 && deduplicationPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { deduplicationPeriod_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) deduplicationPeriod_) .mergeFrom(value).buildPartial(); } else { deduplicationPeriod_ = value; } onChanged(); } else { if (deduplicationPeriodCase_ == 9) { deduplicationTimeBuilder_.mergeFrom(value); } deduplicationTimeBuilder_.setMessage(value); } deduplicationPeriodCase_ = 9; return this; } /** *
       * Specifies the length of the deduplication period.
       * Same semantics apply as for `deduplication_duration`.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; */ @java.lang.Deprecated public Builder clearDeduplicationTime() { if (deduplicationTimeBuilder_ == null) { if (deduplicationPeriodCase_ == 9) { deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; onChanged(); } } else { if (deduplicationPeriodCase_ == 9) { deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; } deduplicationTimeBuilder_.clear(); } return this; } /** *
       * Specifies the length of the deduplication period.
       * Same semantics apply as for `deduplication_duration`.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.Duration.Builder getDeduplicationTimeBuilder() { return getDeduplicationTimeFieldBuilder().getBuilder(); } /** *
       * Specifies the length of the deduplication period.
       * Same semantics apply as for `deduplication_duration`.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.DurationOrBuilder getDeduplicationTimeOrBuilder() { if ((deduplicationPeriodCase_ == 9) && (deduplicationTimeBuilder_ != null)) { return deduplicationTimeBuilder_.getMessageOrBuilder(); } else { if (deduplicationPeriodCase_ == 9) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } } /** *
       * Specifies the length of the deduplication period.
       * Same semantics apply as for `deduplication_duration`.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_time = 9 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDeduplicationTimeFieldBuilder() { if (deduplicationTimeBuilder_ == null) { if (!(deduplicationPeriodCase_ == 9)) { deduplicationPeriod_ = com.google.protobuf.Duration.getDefaultInstance(); } deduplicationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( (com.google.protobuf.Duration) deduplicationPeriod_, getParentForChildren(), isClean()); deduplicationPeriod_ = null; } deduplicationPeriodCase_ = 9; onChanged();; return deduplicationTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> deduplicationDurationBuilder_; /** *
       * Specifies the length of the deduplication period.
       * It is interpreted relative to the local clock at some point during the submission's processing.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_duration = 15; * @return Whether the deduplicationDuration field is set. */ @java.lang.Override public boolean hasDeduplicationDuration() { return deduplicationPeriodCase_ == 15; } /** *
       * Specifies the length of the deduplication period.
       * It is interpreted relative to the local clock at some point during the submission's processing.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_duration = 15; * @return The deduplicationDuration. */ @java.lang.Override public com.google.protobuf.Duration getDeduplicationDuration() { if (deduplicationDurationBuilder_ == null) { if (deduplicationPeriodCase_ == 15) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } else { if (deduplicationPeriodCase_ == 15) { return deduplicationDurationBuilder_.getMessage(); } return com.google.protobuf.Duration.getDefaultInstance(); } } /** *
       * Specifies the length of the deduplication period.
       * It is interpreted relative to the local clock at some point during the submission's processing.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_duration = 15; */ public Builder setDeduplicationDuration(com.google.protobuf.Duration value) { if (deduplicationDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deduplicationPeriod_ = value; onChanged(); } else { deduplicationDurationBuilder_.setMessage(value); } deduplicationPeriodCase_ = 15; return this; } /** *
       * Specifies the length of the deduplication period.
       * It is interpreted relative to the local clock at some point during the submission's processing.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_duration = 15; */ public Builder setDeduplicationDuration( com.google.protobuf.Duration.Builder builderForValue) { if (deduplicationDurationBuilder_ == null) { deduplicationPeriod_ = builderForValue.build(); onChanged(); } else { deduplicationDurationBuilder_.setMessage(builderForValue.build()); } deduplicationPeriodCase_ = 15; return this; } /** *
       * Specifies the length of the deduplication period.
       * It is interpreted relative to the local clock at some point during the submission's processing.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_duration = 15; */ public Builder mergeDeduplicationDuration(com.google.protobuf.Duration value) { if (deduplicationDurationBuilder_ == null) { if (deduplicationPeriodCase_ == 15 && deduplicationPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { deduplicationPeriod_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) deduplicationPeriod_) .mergeFrom(value).buildPartial(); } else { deduplicationPeriod_ = value; } onChanged(); } else { if (deduplicationPeriodCase_ == 15) { deduplicationDurationBuilder_.mergeFrom(value); } deduplicationDurationBuilder_.setMessage(value); } deduplicationPeriodCase_ = 15; return this; } /** *
       * Specifies the length of the deduplication period.
       * It is interpreted relative to the local clock at some point during the submission's processing.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_duration = 15; */ public Builder clearDeduplicationDuration() { if (deduplicationDurationBuilder_ == null) { if (deduplicationPeriodCase_ == 15) { deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; onChanged(); } } else { if (deduplicationPeriodCase_ == 15) { deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; } deduplicationDurationBuilder_.clear(); } return this; } /** *
       * Specifies the length of the deduplication period.
       * It is interpreted relative to the local clock at some point during the submission's processing.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_duration = 15; */ public com.google.protobuf.Duration.Builder getDeduplicationDurationBuilder() { return getDeduplicationDurationFieldBuilder().getBuilder(); } /** *
       * Specifies the length of the deduplication period.
       * It is interpreted relative to the local clock at some point during the submission's processing.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_duration = 15; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDeduplicationDurationOrBuilder() { if ((deduplicationPeriodCase_ == 15) && (deduplicationDurationBuilder_ != null)) { return deduplicationDurationBuilder_.getMessageOrBuilder(); } else { if (deduplicationPeriodCase_ == 15) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } } /** *
       * Specifies the length of the deduplication period.
       * It is interpreted relative to the local clock at some point during the submission's processing.
       * Must be non-negative. Must not exceed the maximum deduplication time (see
       * ``ledger_configuration_service.proto``).
       * 
* * .google.protobuf.Duration deduplication_duration = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDeduplicationDurationFieldBuilder() { if (deduplicationDurationBuilder_ == null) { if (!(deduplicationPeriodCase_ == 15)) { deduplicationPeriod_ = com.google.protobuf.Duration.getDefaultInstance(); } deduplicationDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( (com.google.protobuf.Duration) deduplicationPeriod_, getParentForChildren(), isClean()); deduplicationPeriod_ = null; } deduplicationPeriodCase_ = 15; onChanged();; return deduplicationDurationBuilder_; } /** *
       * Specifies the start of the deduplication period by a completion stream offset (exclusive).
       * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
       * 
* * string deduplication_offset = 16; * @return Whether the deduplicationOffset field is set. */ @java.lang.Override public boolean hasDeduplicationOffset() { return deduplicationPeriodCase_ == 16; } /** *
       * Specifies the start of the deduplication period by a completion stream offset (exclusive).
       * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
       * 
* * string deduplication_offset = 16; * @return The deduplicationOffset. */ @java.lang.Override public java.lang.String getDeduplicationOffset() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 16) { ref = deduplicationPeriod_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (deduplicationPeriodCase_ == 16) { deduplicationPeriod_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Specifies the start of the deduplication period by a completion stream offset (exclusive).
       * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
       * 
* * string deduplication_offset = 16; * @return The bytes for deduplicationOffset. */ @java.lang.Override public com.google.protobuf.ByteString getDeduplicationOffsetBytes() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 16) { ref = deduplicationPeriod_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (deduplicationPeriodCase_ == 16) { deduplicationPeriod_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Specifies the start of the deduplication period by a completion stream offset (exclusive).
       * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
       * 
* * string deduplication_offset = 16; * @param value The deduplicationOffset to set. * @return This builder for chaining. */ public Builder setDeduplicationOffset( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deduplicationPeriodCase_ = 16; deduplicationPeriod_ = value; onChanged(); return this; } /** *
       * Specifies the start of the deduplication period by a completion stream offset (exclusive).
       * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
       * 
* * string deduplication_offset = 16; * @return This builder for chaining. */ public Builder clearDeduplicationOffset() { if (deduplicationPeriodCase_ == 16) { deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; onChanged(); } return this; } /** *
       * Specifies the start of the deduplication period by a completion stream offset (exclusive).
       * Must be a valid LedgerString (as described in ``ledger_offset.proto``).
       * 
* * string deduplication_offset = 16; * @param value The bytes for deduplicationOffset to set. * @return This builder for chaining. */ public Builder setDeduplicationOffsetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deduplicationPeriodCase_ = 16; deduplicationPeriod_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp minLedgerTimeAbs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> minLedgerTimeAbsBuilder_; /** *
       * Lower bound for the ledger time assigned to the resulting transaction.
       * Note: The ledger time of a transaction is assigned as part of command interpretation.
       * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
       * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
       * Must not be set at the same time as min_ledger_time_rel.
       * Optional
       * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; * @return Whether the minLedgerTimeAbs field is set. */ public boolean hasMinLedgerTimeAbs() { return minLedgerTimeAbsBuilder_ != null || minLedgerTimeAbs_ != null; } /** *
       * Lower bound for the ledger time assigned to the resulting transaction.
       * Note: The ledger time of a transaction is assigned as part of command interpretation.
       * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
       * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
       * Must not be set at the same time as min_ledger_time_rel.
       * Optional
       * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; * @return The minLedgerTimeAbs. */ public com.google.protobuf.Timestamp getMinLedgerTimeAbs() { if (minLedgerTimeAbsBuilder_ == null) { return minLedgerTimeAbs_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minLedgerTimeAbs_; } else { return minLedgerTimeAbsBuilder_.getMessage(); } } /** *
       * Lower bound for the ledger time assigned to the resulting transaction.
       * Note: The ledger time of a transaction is assigned as part of command interpretation.
       * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
       * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
       * Must not be set at the same time as min_ledger_time_rel.
       * Optional
       * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; */ public Builder setMinLedgerTimeAbs(com.google.protobuf.Timestamp value) { if (minLedgerTimeAbsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minLedgerTimeAbs_ = value; onChanged(); } else { minLedgerTimeAbsBuilder_.setMessage(value); } return this; } /** *
       * Lower bound for the ledger time assigned to the resulting transaction.
       * Note: The ledger time of a transaction is assigned as part of command interpretation.
       * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
       * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
       * Must not be set at the same time as min_ledger_time_rel.
       * Optional
       * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; */ public Builder setMinLedgerTimeAbs( com.google.protobuf.Timestamp.Builder builderForValue) { if (minLedgerTimeAbsBuilder_ == null) { minLedgerTimeAbs_ = builderForValue.build(); onChanged(); } else { minLedgerTimeAbsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Lower bound for the ledger time assigned to the resulting transaction.
       * Note: The ledger time of a transaction is assigned as part of command interpretation.
       * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
       * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
       * Must not be set at the same time as min_ledger_time_rel.
       * Optional
       * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; */ public Builder mergeMinLedgerTimeAbs(com.google.protobuf.Timestamp value) { if (minLedgerTimeAbsBuilder_ == null) { if (minLedgerTimeAbs_ != null) { minLedgerTimeAbs_ = com.google.protobuf.Timestamp.newBuilder(minLedgerTimeAbs_).mergeFrom(value).buildPartial(); } else { minLedgerTimeAbs_ = value; } onChanged(); } else { minLedgerTimeAbsBuilder_.mergeFrom(value); } return this; } /** *
       * Lower bound for the ledger time assigned to the resulting transaction.
       * Note: The ledger time of a transaction is assigned as part of command interpretation.
       * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
       * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
       * Must not be set at the same time as min_ledger_time_rel.
       * Optional
       * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; */ public Builder clearMinLedgerTimeAbs() { if (minLedgerTimeAbsBuilder_ == null) { minLedgerTimeAbs_ = null; onChanged(); } else { minLedgerTimeAbs_ = null; minLedgerTimeAbsBuilder_ = null; } return this; } /** *
       * Lower bound for the ledger time assigned to the resulting transaction.
       * Note: The ledger time of a transaction is assigned as part of command interpretation.
       * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
       * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
       * Must not be set at the same time as min_ledger_time_rel.
       * Optional
       * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; */ public com.google.protobuf.Timestamp.Builder getMinLedgerTimeAbsBuilder() { onChanged(); return getMinLedgerTimeAbsFieldBuilder().getBuilder(); } /** *
       * Lower bound for the ledger time assigned to the resulting transaction.
       * Note: The ledger time of a transaction is assigned as part of command interpretation.
       * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
       * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
       * Must not be set at the same time as min_ledger_time_rel.
       * Optional
       * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; */ public com.google.protobuf.TimestampOrBuilder getMinLedgerTimeAbsOrBuilder() { if (minLedgerTimeAbsBuilder_ != null) { return minLedgerTimeAbsBuilder_.getMessageOrBuilder(); } else { return minLedgerTimeAbs_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minLedgerTimeAbs_; } } /** *
       * Lower bound for the ledger time assigned to the resulting transaction.
       * Note: The ledger time of a transaction is assigned as part of command interpretation.
       * Use this property if you expect that command interpretation will take a considerate amount of time, such that by
       * the time the resulting transaction is sequenced, its assigned ledger time is not valid anymore.
       * Must not be set at the same time as min_ledger_time_rel.
       * Optional
       * 
* * .google.protobuf.Timestamp min_ledger_time_abs = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMinLedgerTimeAbsFieldBuilder() { if (minLedgerTimeAbsBuilder_ == null) { minLedgerTimeAbsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getMinLedgerTimeAbs(), getParentForChildren(), isClean()); minLedgerTimeAbs_ = null; } return minLedgerTimeAbsBuilder_; } private com.google.protobuf.Duration minLedgerTimeRel_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minLedgerTimeRelBuilder_; /** *
       * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
       * Must not be set at the same time as min_ledger_time_abs.
       * Optional
       * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; * @return Whether the minLedgerTimeRel field is set. */ public boolean hasMinLedgerTimeRel() { return minLedgerTimeRelBuilder_ != null || minLedgerTimeRel_ != null; } /** *
       * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
       * Must not be set at the same time as min_ledger_time_abs.
       * Optional
       * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; * @return The minLedgerTimeRel. */ public com.google.protobuf.Duration getMinLedgerTimeRel() { if (minLedgerTimeRelBuilder_ == null) { return minLedgerTimeRel_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minLedgerTimeRel_; } else { return minLedgerTimeRelBuilder_.getMessage(); } } /** *
       * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
       * Must not be set at the same time as min_ledger_time_abs.
       * Optional
       * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; */ public Builder setMinLedgerTimeRel(com.google.protobuf.Duration value) { if (minLedgerTimeRelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minLedgerTimeRel_ = value; onChanged(); } else { minLedgerTimeRelBuilder_.setMessage(value); } return this; } /** *
       * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
       * Must not be set at the same time as min_ledger_time_abs.
       * Optional
       * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; */ public Builder setMinLedgerTimeRel( com.google.protobuf.Duration.Builder builderForValue) { if (minLedgerTimeRelBuilder_ == null) { minLedgerTimeRel_ = builderForValue.build(); onChanged(); } else { minLedgerTimeRelBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
       * Must not be set at the same time as min_ledger_time_abs.
       * Optional
       * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; */ public Builder mergeMinLedgerTimeRel(com.google.protobuf.Duration value) { if (minLedgerTimeRelBuilder_ == null) { if (minLedgerTimeRel_ != null) { minLedgerTimeRel_ = com.google.protobuf.Duration.newBuilder(minLedgerTimeRel_).mergeFrom(value).buildPartial(); } else { minLedgerTimeRel_ = value; } onChanged(); } else { minLedgerTimeRelBuilder_.mergeFrom(value); } return this; } /** *
       * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
       * Must not be set at the same time as min_ledger_time_abs.
       * Optional
       * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; */ public Builder clearMinLedgerTimeRel() { if (minLedgerTimeRelBuilder_ == null) { minLedgerTimeRel_ = null; onChanged(); } else { minLedgerTimeRel_ = null; minLedgerTimeRelBuilder_ = null; } return this; } /** *
       * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
       * Must not be set at the same time as min_ledger_time_abs.
       * Optional
       * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; */ public com.google.protobuf.Duration.Builder getMinLedgerTimeRelBuilder() { onChanged(); return getMinLedgerTimeRelFieldBuilder().getBuilder(); } /** *
       * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
       * Must not be set at the same time as min_ledger_time_abs.
       * Optional
       * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; */ public com.google.protobuf.DurationOrBuilder getMinLedgerTimeRelOrBuilder() { if (minLedgerTimeRelBuilder_ != null) { return minLedgerTimeRelBuilder_.getMessageOrBuilder(); } else { return minLedgerTimeRel_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minLedgerTimeRel_; } } /** *
       * Same as min_ledger_time_abs, but specified as a duration, starting from the time the command is received by the server.
       * Must not be set at the same time as min_ledger_time_abs.
       * Optional
       * 
* * .google.protobuf.Duration min_ledger_time_rel = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMinLedgerTimeRelFieldBuilder() { if (minLedgerTimeRelBuilder_ == null) { minLedgerTimeRelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMinLedgerTimeRel(), getParentForChildren(), isClean()); minLedgerTimeRel_ = null; } return minLedgerTimeRelBuilder_; } private com.google.protobuf.LazyStringList actAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureActAsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { actAs_ = new com.google.protobuf.LazyStringArrayList(actAs_); bitField0_ |= 0x00000002; } } /** *
       * Set of parties on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of each of the given parties.
       * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
       * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional
       * 
* * repeated string act_as = 12; * @return A list containing the actAs. */ public com.google.protobuf.ProtocolStringList getActAsList() { return actAs_.getUnmodifiableView(); } /** *
       * Set of parties on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of each of the given parties.
       * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
       * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional
       * 
* * repeated string act_as = 12; * @return The count of actAs. */ public int getActAsCount() { return actAs_.size(); } /** *
       * Set of parties on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of each of the given parties.
       * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
       * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional
       * 
* * repeated string act_as = 12; * @param index The index of the element to return. * @return The actAs at the given index. */ public java.lang.String getActAs(int index) { return actAs_.get(index); } /** *
       * Set of parties on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of each of the given parties.
       * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
       * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional
       * 
* * repeated string act_as = 12; * @param index The index of the value to return. * @return The bytes of the actAs at the given index. */ public com.google.protobuf.ByteString getActAsBytes(int index) { return actAs_.getByteString(index); } /** *
       * Set of parties on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of each of the given parties.
       * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
       * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional
       * 
* * repeated string act_as = 12; * @param index The index to set the value at. * @param value The actAs to set. * @return This builder for chaining. */ public Builder setActAs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureActAsIsMutable(); actAs_.set(index, value); onChanged(); return this; } /** *
       * Set of parties on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of each of the given parties.
       * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
       * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional
       * 
* * repeated string act_as = 12; * @param value The actAs to add. * @return This builder for chaining. */ public Builder addActAs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureActAsIsMutable(); actAs_.add(value); onChanged(); return this; } /** *
       * Set of parties on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of each of the given parties.
       * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
       * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional
       * 
* * repeated string act_as = 12; * @param values The actAs to add. * @return This builder for chaining. */ public Builder addAllActAs( java.lang.Iterable values) { ensureActAsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, actAs_); onChanged(); return this; } /** *
       * Set of parties on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of each of the given parties.
       * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
       * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional
       * 
* * repeated string act_as = 12; * @return This builder for chaining. */ public Builder clearActAs() { actAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Set of parties on whose behalf the command should be executed.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to act on behalf of each of the given parties.
       * This field supersedes the ``party`` field. The effective set of parties on whose behalf the command
       * should be executed is the union of all parties listed in ``party`` and ``act_as``, which must be non-empty.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional
       * 
* * repeated string act_as = 12; * @param value The bytes of the actAs to add. * @return This builder for chaining. */ public Builder addActAsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureActAsIsMutable(); actAs_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList readAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureReadAsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { readAs_ = new com.google.protobuf.LazyStringArrayList(readAs_); bitField0_ |= 0x00000004; } } /** *
       * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
       * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
       * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
       * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
       * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
       * rules for fetch operations.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to read contract data on behalf of each of the given parties.
       * Optional
       * 
* * repeated string read_as = 13; * @return A list containing the readAs. */ public com.google.protobuf.ProtocolStringList getReadAsList() { return readAs_.getUnmodifiableView(); } /** *
       * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
       * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
       * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
       * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
       * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
       * rules for fetch operations.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to read contract data on behalf of each of the given parties.
       * Optional
       * 
* * repeated string read_as = 13; * @return The count of readAs. */ public int getReadAsCount() { return readAs_.size(); } /** *
       * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
       * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
       * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
       * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
       * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
       * rules for fetch operations.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to read contract data on behalf of each of the given parties.
       * Optional
       * 
* * repeated string read_as = 13; * @param index The index of the element to return. * @return The readAs at the given index. */ public java.lang.String getReadAs(int index) { return readAs_.get(index); } /** *
       * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
       * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
       * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
       * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
       * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
       * rules for fetch operations.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to read contract data on behalf of each of the given parties.
       * Optional
       * 
* * repeated string read_as = 13; * @param index The index of the value to return. * @return The bytes of the readAs at the given index. */ public com.google.protobuf.ByteString getReadAsBytes(int index) { return readAs_.getByteString(index); } /** *
       * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
       * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
       * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
       * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
       * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
       * rules for fetch operations.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to read contract data on behalf of each of the given parties.
       * Optional
       * 
* * repeated string read_as = 13; * @param index The index to set the value at. * @param value The readAs to set. * @return This builder for chaining. */ public Builder setReadAs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureReadAsIsMutable(); readAs_.set(index, value); onChanged(); return this; } /** *
       * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
       * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
       * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
       * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
       * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
       * rules for fetch operations.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to read contract data on behalf of each of the given parties.
       * Optional
       * 
* * repeated string read_as = 13; * @param value The readAs to add. * @return This builder for chaining. */ public Builder addReadAs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureReadAsIsMutable(); readAs_.add(value); onChanged(); return this; } /** *
       * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
       * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
       * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
       * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
       * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
       * rules for fetch operations.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to read contract data on behalf of each of the given parties.
       * Optional
       * 
* * repeated string read_as = 13; * @param values The readAs to add. * @return This builder for chaining. */ public Builder addAllReadAs( java.lang.Iterable values) { ensureReadAsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, readAs_); onChanged(); return this; } /** *
       * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
       * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
       * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
       * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
       * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
       * rules for fetch operations.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to read contract data on behalf of each of the given parties.
       * Optional
       * 
* * repeated string read_as = 13; * @return This builder for chaining. */ public Builder clearReadAs() { readAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Set of parties on whose behalf (in addition to all parties listed in ``act_as``) contracts can be retrieved.
       * This affects Daml operations such as ``fetch``, ``fetchByKey``, ``lookupByKey``, ``exercise``, and ``exerciseByKey``.
       * Note: A participant node of a Daml network can host multiple parties. Each contract present on the participant
       * node is only visible to a subset of these parties. A command can only use contracts that are visible to at least
       * one of the parties in ``act_as`` or ``read_as``. This visibility check is independent from the Daml authorization
       * rules for fetch operations.
       * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
       * to read contract data on behalf of each of the given parties.
       * Optional
       * 
* * repeated string read_as = 13; * @param value The bytes of the readAs to add. * @return This builder for chaining. */ public Builder addReadAsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureReadAsIsMutable(); readAs_.add(value); onChanged(); return this; } private java.lang.Object submissionId_ = ""; /** *
       * A unique identifier to distinguish completions for different submissions with the same change ID.
       * Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
       * with the same change ID.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * If omitted, the participant or the committer may set a value of their choice.
       * Optional
       * 
* * string submission_id = 14; * @return The submissionId. */ public java.lang.String getSubmissionId() { java.lang.Object ref = submissionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); submissionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A unique identifier to distinguish completions for different submissions with the same change ID.
       * Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
       * with the same change ID.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * If omitted, the participant or the committer may set a value of their choice.
       * Optional
       * 
* * string submission_id = 14; * @return The bytes for submissionId. */ public com.google.protobuf.ByteString getSubmissionIdBytes() { java.lang.Object ref = submissionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); submissionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A unique identifier to distinguish completions for different submissions with the same change ID.
       * Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
       * with the same change ID.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * If omitted, the participant or the committer may set a value of their choice.
       * Optional
       * 
* * string submission_id = 14; * @param value The submissionId to set. * @return This builder for chaining. */ public Builder setSubmissionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } submissionId_ = value; onChanged(); return this; } /** *
       * A unique identifier to distinguish completions for different submissions with the same change ID.
       * Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
       * with the same change ID.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * If omitted, the participant or the committer may set a value of their choice.
       * Optional
       * 
* * string submission_id = 14; * @return This builder for chaining. */ public Builder clearSubmissionId() { submissionId_ = getDefaultInstance().getSubmissionId(); onChanged(); return this; } /** *
       * A unique identifier to distinguish completions for different submissions with the same change ID.
       * Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
       * with the same change ID.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * If omitted, the participant or the committer may set a value of their choice.
       * Optional
       * 
* * string submission_id = 14; * @param value The bytes for submissionId to set. * @return This builder for chaining. */ public Builder setSubmissionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); submissionId_ = value; onChanged(); return this; } private java.util.List disclosedContracts_ = java.util.Collections.emptyList(); private void ensureDisclosedContractsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { disclosedContracts_ = new java.util.ArrayList(disclosedContracts_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.Builder, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContractOrBuilder> disclosedContractsBuilder_; /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public java.util.List getDisclosedContractsList() { if (disclosedContractsBuilder_ == null) { return java.util.Collections.unmodifiableList(disclosedContracts_); } else { return disclosedContractsBuilder_.getMessageList(); } } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public int getDisclosedContractsCount() { if (disclosedContractsBuilder_ == null) { return disclosedContracts_.size(); } else { return disclosedContractsBuilder_.getCount(); } } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract getDisclosedContracts(int index) { if (disclosedContractsBuilder_ == null) { return disclosedContracts_.get(index); } else { return disclosedContractsBuilder_.getMessage(index); } } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public Builder setDisclosedContracts( int index, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract value) { if (disclosedContractsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDisclosedContractsIsMutable(); disclosedContracts_.set(index, value); onChanged(); } else { disclosedContractsBuilder_.setMessage(index, value); } return this; } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public Builder setDisclosedContracts( int index, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.Builder builderForValue) { if (disclosedContractsBuilder_ == null) { ensureDisclosedContractsIsMutable(); disclosedContracts_.set(index, builderForValue.build()); onChanged(); } else { disclosedContractsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public Builder addDisclosedContracts(com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract value) { if (disclosedContractsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDisclosedContractsIsMutable(); disclosedContracts_.add(value); onChanged(); } else { disclosedContractsBuilder_.addMessage(value); } return this; } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public Builder addDisclosedContracts( int index, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract value) { if (disclosedContractsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDisclosedContractsIsMutable(); disclosedContracts_.add(index, value); onChanged(); } else { disclosedContractsBuilder_.addMessage(index, value); } return this; } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public Builder addDisclosedContracts( com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.Builder builderForValue) { if (disclosedContractsBuilder_ == null) { ensureDisclosedContractsIsMutable(); disclosedContracts_.add(builderForValue.build()); onChanged(); } else { disclosedContractsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public Builder addDisclosedContracts( int index, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.Builder builderForValue) { if (disclosedContractsBuilder_ == null) { ensureDisclosedContractsIsMutable(); disclosedContracts_.add(index, builderForValue.build()); onChanged(); } else { disclosedContractsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public Builder addAllDisclosedContracts( java.lang.Iterable values) { if (disclosedContractsBuilder_ == null) { ensureDisclosedContractsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, disclosedContracts_); onChanged(); } else { disclosedContractsBuilder_.addAllMessages(values); } return this; } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public Builder clearDisclosedContracts() { if (disclosedContractsBuilder_ == null) { disclosedContracts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { disclosedContractsBuilder_.clear(); } return this; } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public Builder removeDisclosedContracts(int index) { if (disclosedContractsBuilder_ == null) { ensureDisclosedContractsIsMutable(); disclosedContracts_.remove(index); onChanged(); } else { disclosedContractsBuilder_.remove(index); } return this; } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.Builder getDisclosedContractsBuilder( int index) { return getDisclosedContractsFieldBuilder().getBuilder(index); } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContractOrBuilder getDisclosedContractsOrBuilder( int index) { if (disclosedContractsBuilder_ == null) { return disclosedContracts_.get(index); } else { return disclosedContractsBuilder_.getMessageOrBuilder(index); } } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public java.util.List getDisclosedContractsOrBuilderList() { if (disclosedContractsBuilder_ != null) { return disclosedContractsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(disclosedContracts_); } } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.Builder addDisclosedContractsBuilder() { return getDisclosedContractsFieldBuilder().addBuilder( com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.getDefaultInstance()); } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.Builder addDisclosedContractsBuilder( int index) { return getDisclosedContractsFieldBuilder().addBuilder( index, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.getDefaultInstance()); } /** *
       * Additional contracts used to resolve contract & contract key lookups.
       * Optional
       * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 17; */ public java.util.List getDisclosedContractsBuilderList() { return getDisclosedContractsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.Builder, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContractOrBuilder> getDisclosedContractsFieldBuilder() { if (disclosedContractsBuilder_ == null) { disclosedContractsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.Builder, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContractOrBuilder>( disclosedContracts_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); disclosedContracts_ = null; } return disclosedContractsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.Commands) } // @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.Commands) private static final com.daml.ledger.api.v1.CommandsOuterClass.Commands DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.ledger.api.v1.CommandsOuterClass.Commands(); } public static com.daml.ledger.api.v1.CommandsOuterClass.Commands getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Commands parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.Commands getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommandOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.Command) com.google.protobuf.MessageOrBuilder { /** * .com.daml.ledger.api.v1.CreateCommand create = 1; * @return Whether the create field is set. */ boolean hasCreate(); /** * .com.daml.ledger.api.v1.CreateCommand create = 1; * @return The create. */ com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand getCreate(); /** * .com.daml.ledger.api.v1.CreateCommand create = 1; */ com.daml.ledger.api.v1.CommandsOuterClass.CreateCommandOrBuilder getCreateOrBuilder(); /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; * @return Whether the exercise field is set. */ boolean hasExercise(); /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; * @return The exercise. */ com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand getExercise(); /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; */ com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommandOrBuilder getExerciseOrBuilder(); /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; * @return Whether the exerciseByKey field is set. */ boolean hasExerciseByKey(); /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; * @return The exerciseByKey. */ com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand getExerciseByKey(); /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; */ com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommandOrBuilder getExerciseByKeyOrBuilder(); /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; * @return Whether the createAndExercise field is set. */ boolean hasCreateAndExercise(); /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; * @return The createAndExercise. */ com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand getCreateAndExercise(); /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; */ com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommandOrBuilder getCreateAndExerciseOrBuilder(); public com.daml.ledger.api.v1.CommandsOuterClass.Command.CommandCase getCommandCase(); } /** *
   * A command can either create a new contract or exercise a choice on an existing contract.
   * 
* * Protobuf type {@code com.daml.ledger.api.v1.Command} */ public static final class Command extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.Command) CommandOrBuilder { private static final long serialVersionUID = 0L; // Use Command.newBuilder() to construct. private Command(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Command() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Command(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_Command_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_Command_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.Command.class, com.daml.ledger.api.v1.CommandsOuterClass.Command.Builder.class); } private int commandCase_ = 0; private java.lang.Object command_; public enum CommandCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CREATE(1), EXERCISE(2), EXERCISEBYKEY(4), CREATEANDEXERCISE(3), COMMAND_NOT_SET(0); private final int value; private CommandCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CommandCase valueOf(int value) { return forNumber(value); } public static CommandCase forNumber(int value) { switch (value) { case 1: return CREATE; case 2: return EXERCISE; case 4: return EXERCISEBYKEY; case 3: return CREATEANDEXERCISE; case 0: return COMMAND_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public CommandCase getCommandCase() { return CommandCase.forNumber( commandCase_); } public static final int CREATE_FIELD_NUMBER = 1; /** * .com.daml.ledger.api.v1.CreateCommand create = 1; * @return Whether the create field is set. */ @java.lang.Override public boolean hasCreate() { return commandCase_ == 1; } /** * .com.daml.ledger.api.v1.CreateCommand create = 1; * @return The create. */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand getCreate() { if (commandCase_ == 1) { return (com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.getDefaultInstance(); } /** * .com.daml.ledger.api.v1.CreateCommand create = 1; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateCommandOrBuilder getCreateOrBuilder() { if (commandCase_ == 1) { return (com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.getDefaultInstance(); } public static final int EXERCISE_FIELD_NUMBER = 2; /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; * @return Whether the exercise field is set. */ @java.lang.Override public boolean hasExercise() { return commandCase_ == 2; } /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; * @return The exercise. */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand getExercise() { if (commandCase_ == 2) { return (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.getDefaultInstance(); } /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommandOrBuilder getExerciseOrBuilder() { if (commandCase_ == 2) { return (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.getDefaultInstance(); } public static final int EXERCISEBYKEY_FIELD_NUMBER = 4; /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; * @return Whether the exerciseByKey field is set. */ @java.lang.Override public boolean hasExerciseByKey() { return commandCase_ == 4; } /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; * @return The exerciseByKey. */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand getExerciseByKey() { if (commandCase_ == 4) { return (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.getDefaultInstance(); } /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommandOrBuilder getExerciseByKeyOrBuilder() { if (commandCase_ == 4) { return (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.getDefaultInstance(); } public static final int CREATEANDEXERCISE_FIELD_NUMBER = 3; /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; * @return Whether the createAndExercise field is set. */ @java.lang.Override public boolean hasCreateAndExercise() { return commandCase_ == 3; } /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; * @return The createAndExercise. */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand getCreateAndExercise() { if (commandCase_ == 3) { return (com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.getDefaultInstance(); } /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommandOrBuilder getCreateAndExerciseOrBuilder() { if (commandCase_ == 3) { return (com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (commandCase_ == 1) { output.writeMessage(1, (com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand) command_); } if (commandCase_ == 2) { output.writeMessage(2, (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand) command_); } if (commandCase_ == 3) { output.writeMessage(3, (com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand) command_); } if (commandCase_ == 4) { output.writeMessage(4, (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand) command_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (commandCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand) command_); } if (commandCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand) command_); } if (commandCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand) command_); } if (commandCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand) command_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.ledger.api.v1.CommandsOuterClass.Command)) { return super.equals(obj); } com.daml.ledger.api.v1.CommandsOuterClass.Command other = (com.daml.ledger.api.v1.CommandsOuterClass.Command) obj; if (!getCommandCase().equals(other.getCommandCase())) return false; switch (commandCase_) { case 1: if (!getCreate() .equals(other.getCreate())) return false; break; case 2: if (!getExercise() .equals(other.getExercise())) return false; break; case 4: if (!getExerciseByKey() .equals(other.getExerciseByKey())) return false; break; case 3: if (!getCreateAndExercise() .equals(other.getCreateAndExercise())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (commandCase_) { case 1: hash = (37 * hash) + CREATE_FIELD_NUMBER; hash = (53 * hash) + getCreate().hashCode(); break; case 2: hash = (37 * hash) + EXERCISE_FIELD_NUMBER; hash = (53 * hash) + getExercise().hashCode(); break; case 4: hash = (37 * hash) + EXERCISEBYKEY_FIELD_NUMBER; hash = (53 * hash) + getExerciseByKey().hashCode(); break; case 3: hash = (37 * hash) + CREATEANDEXERCISE_FIELD_NUMBER; hash = (53 * hash) + getCreateAndExercise().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.ledger.api.v1.CommandsOuterClass.Command prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A command can either create a new contract or exercise a choice on an existing contract.
     * 
* * Protobuf type {@code com.daml.ledger.api.v1.Command} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.Command) com.daml.ledger.api.v1.CommandsOuterClass.CommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_Command_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_Command_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.Command.class, com.daml.ledger.api.v1.CommandsOuterClass.Command.Builder.class); } // Construct using com.daml.ledger.api.v1.CommandsOuterClass.Command.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (createBuilder_ != null) { createBuilder_.clear(); } if (exerciseBuilder_ != null) { exerciseBuilder_.clear(); } if (exerciseByKeyBuilder_ != null) { exerciseByKeyBuilder_.clear(); } if (createAndExerciseBuilder_ != null) { createAndExerciseBuilder_.clear(); } commandCase_ = 0; command_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_Command_descriptor; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.Command getDefaultInstanceForType() { return com.daml.ledger.api.v1.CommandsOuterClass.Command.getDefaultInstance(); } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.Command build() { com.daml.ledger.api.v1.CommandsOuterClass.Command result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.Command buildPartial() { com.daml.ledger.api.v1.CommandsOuterClass.Command result = new com.daml.ledger.api.v1.CommandsOuterClass.Command(this); if (commandCase_ == 1) { if (createBuilder_ == null) { result.command_ = command_; } else { result.command_ = createBuilder_.build(); } } if (commandCase_ == 2) { if (exerciseBuilder_ == null) { result.command_ = command_; } else { result.command_ = exerciseBuilder_.build(); } } if (commandCase_ == 4) { if (exerciseByKeyBuilder_ == null) { result.command_ = command_; } else { result.command_ = exerciseByKeyBuilder_.build(); } } if (commandCase_ == 3) { if (createAndExerciseBuilder_ == null) { result.command_ = command_; } else { result.command_ = createAndExerciseBuilder_.build(); } } result.commandCase_ = commandCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.ledger.api.v1.CommandsOuterClass.Command) { return mergeFrom((com.daml.ledger.api.v1.CommandsOuterClass.Command)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.ledger.api.v1.CommandsOuterClass.Command other) { if (other == com.daml.ledger.api.v1.CommandsOuterClass.Command.getDefaultInstance()) return this; switch (other.getCommandCase()) { case CREATE: { mergeCreate(other.getCreate()); break; } case EXERCISE: { mergeExercise(other.getExercise()); break; } case EXERCISEBYKEY: { mergeExerciseByKey(other.getExerciseByKey()); break; } case CREATEANDEXERCISE: { mergeCreateAndExercise(other.getCreateAndExercise()); break; } case COMMAND_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getCreateFieldBuilder().getBuilder(), extensionRegistry); commandCase_ = 1; break; } // case 10 case 18: { input.readMessage( getExerciseFieldBuilder().getBuilder(), extensionRegistry); commandCase_ = 2; break; } // case 18 case 26: { input.readMessage( getCreateAndExerciseFieldBuilder().getBuilder(), extensionRegistry); commandCase_ = 3; break; } // case 26 case 34: { input.readMessage( getExerciseByKeyFieldBuilder().getBuilder(), extensionRegistry); commandCase_ = 4; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int commandCase_ = 0; private java.lang.Object command_; public CommandCase getCommandCase() { return CommandCase.forNumber( commandCase_); } public Builder clearCommand() { commandCase_ = 0; command_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand, com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.CreateCommandOrBuilder> createBuilder_; /** * .com.daml.ledger.api.v1.CreateCommand create = 1; * @return Whether the create field is set. */ @java.lang.Override public boolean hasCreate() { return commandCase_ == 1; } /** * .com.daml.ledger.api.v1.CreateCommand create = 1; * @return The create. */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand getCreate() { if (createBuilder_ == null) { if (commandCase_ == 1) { return (com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.getDefaultInstance(); } else { if (commandCase_ == 1) { return createBuilder_.getMessage(); } return com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.getDefaultInstance(); } } /** * .com.daml.ledger.api.v1.CreateCommand create = 1; */ public Builder setCreate(com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand value) { if (createBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { createBuilder_.setMessage(value); } commandCase_ = 1; return this; } /** * .com.daml.ledger.api.v1.CreateCommand create = 1; */ public Builder setCreate( com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.Builder builderForValue) { if (createBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { createBuilder_.setMessage(builderForValue.build()); } commandCase_ = 1; return this; } /** * .com.daml.ledger.api.v1.CreateCommand create = 1; */ public Builder mergeCreate(com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand value) { if (createBuilder_ == null) { if (commandCase_ == 1 && command_ != com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.getDefaultInstance()) { command_ = com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.newBuilder((com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand) command_) .mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { if (commandCase_ == 1) { createBuilder_.mergeFrom(value); } createBuilder_.setMessage(value); } commandCase_ = 1; return this; } /** * .com.daml.ledger.api.v1.CreateCommand create = 1; */ public Builder clearCreate() { if (createBuilder_ == null) { if (commandCase_ == 1) { commandCase_ = 0; command_ = null; onChanged(); } } else { if (commandCase_ == 1) { commandCase_ = 0; command_ = null; } createBuilder_.clear(); } return this; } /** * .com.daml.ledger.api.v1.CreateCommand create = 1; */ public com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.Builder getCreateBuilder() { return getCreateFieldBuilder().getBuilder(); } /** * .com.daml.ledger.api.v1.CreateCommand create = 1; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateCommandOrBuilder getCreateOrBuilder() { if ((commandCase_ == 1) && (createBuilder_ != null)) { return createBuilder_.getMessageOrBuilder(); } else { if (commandCase_ == 1) { return (com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.getDefaultInstance(); } } /** * .com.daml.ledger.api.v1.CreateCommand create = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand, com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.CreateCommandOrBuilder> getCreateFieldBuilder() { if (createBuilder_ == null) { if (!(commandCase_ == 1)) { command_ = com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.getDefaultInstance(); } createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand, com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.CreateCommandOrBuilder>( (com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand) command_, getParentForChildren(), isClean()); command_ = null; } commandCase_ = 1; onChanged();; return createBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommandOrBuilder> exerciseBuilder_; /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; * @return Whether the exercise field is set. */ @java.lang.Override public boolean hasExercise() { return commandCase_ == 2; } /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; * @return The exercise. */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand getExercise() { if (exerciseBuilder_ == null) { if (commandCase_ == 2) { return (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.getDefaultInstance(); } else { if (commandCase_ == 2) { return exerciseBuilder_.getMessage(); } return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.getDefaultInstance(); } } /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; */ public Builder setExercise(com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand value) { if (exerciseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { exerciseBuilder_.setMessage(value); } commandCase_ = 2; return this; } /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; */ public Builder setExercise( com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.Builder builderForValue) { if (exerciseBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { exerciseBuilder_.setMessage(builderForValue.build()); } commandCase_ = 2; return this; } /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; */ public Builder mergeExercise(com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand value) { if (exerciseBuilder_ == null) { if (commandCase_ == 2 && command_ != com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.getDefaultInstance()) { command_ = com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.newBuilder((com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand) command_) .mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { if (commandCase_ == 2) { exerciseBuilder_.mergeFrom(value); } exerciseBuilder_.setMessage(value); } commandCase_ = 2; return this; } /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; */ public Builder clearExercise() { if (exerciseBuilder_ == null) { if (commandCase_ == 2) { commandCase_ = 0; command_ = null; onChanged(); } } else { if (commandCase_ == 2) { commandCase_ = 0; command_ = null; } exerciseBuilder_.clear(); } return this; } /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; */ public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.Builder getExerciseBuilder() { return getExerciseFieldBuilder().getBuilder(); } /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommandOrBuilder getExerciseOrBuilder() { if ((commandCase_ == 2) && (exerciseBuilder_ != null)) { return exerciseBuilder_.getMessageOrBuilder(); } else { if (commandCase_ == 2) { return (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.getDefaultInstance(); } } /** * .com.daml.ledger.api.v1.ExerciseCommand exercise = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommandOrBuilder> getExerciseFieldBuilder() { if (exerciseBuilder_ == null) { if (!(commandCase_ == 2)) { command_ = com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.getDefaultInstance(); } exerciseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommandOrBuilder>( (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand) command_, getParentForChildren(), isClean()); command_ = null; } commandCase_ = 2; onChanged();; return exerciseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommandOrBuilder> exerciseByKeyBuilder_; /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; * @return Whether the exerciseByKey field is set. */ @java.lang.Override public boolean hasExerciseByKey() { return commandCase_ == 4; } /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; * @return The exerciseByKey. */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand getExerciseByKey() { if (exerciseByKeyBuilder_ == null) { if (commandCase_ == 4) { return (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.getDefaultInstance(); } else { if (commandCase_ == 4) { return exerciseByKeyBuilder_.getMessage(); } return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.getDefaultInstance(); } } /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; */ public Builder setExerciseByKey(com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand value) { if (exerciseByKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { exerciseByKeyBuilder_.setMessage(value); } commandCase_ = 4; return this; } /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; */ public Builder setExerciseByKey( com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.Builder builderForValue) { if (exerciseByKeyBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { exerciseByKeyBuilder_.setMessage(builderForValue.build()); } commandCase_ = 4; return this; } /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; */ public Builder mergeExerciseByKey(com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand value) { if (exerciseByKeyBuilder_ == null) { if (commandCase_ == 4 && command_ != com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.getDefaultInstance()) { command_ = com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.newBuilder((com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand) command_) .mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { if (commandCase_ == 4) { exerciseByKeyBuilder_.mergeFrom(value); } exerciseByKeyBuilder_.setMessage(value); } commandCase_ = 4; return this; } /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; */ public Builder clearExerciseByKey() { if (exerciseByKeyBuilder_ == null) { if (commandCase_ == 4) { commandCase_ = 0; command_ = null; onChanged(); } } else { if (commandCase_ == 4) { commandCase_ = 0; command_ = null; } exerciseByKeyBuilder_.clear(); } return this; } /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; */ public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.Builder getExerciseByKeyBuilder() { return getExerciseByKeyFieldBuilder().getBuilder(); } /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommandOrBuilder getExerciseByKeyOrBuilder() { if ((commandCase_ == 4) && (exerciseByKeyBuilder_ != null)) { return exerciseByKeyBuilder_.getMessageOrBuilder(); } else { if (commandCase_ == 4) { return (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.getDefaultInstance(); } } /** * .com.daml.ledger.api.v1.ExerciseByKeyCommand exerciseByKey = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommandOrBuilder> getExerciseByKeyFieldBuilder() { if (exerciseByKeyBuilder_ == null) { if (!(commandCase_ == 4)) { command_ = com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.getDefaultInstance(); } exerciseByKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommandOrBuilder>( (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand) command_, getParentForChildren(), isClean()); command_ = null; } commandCase_ = 4; onChanged();; return exerciseByKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand, com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommandOrBuilder> createAndExerciseBuilder_; /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; * @return Whether the createAndExercise field is set. */ @java.lang.Override public boolean hasCreateAndExercise() { return commandCase_ == 3; } /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; * @return The createAndExercise. */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand getCreateAndExercise() { if (createAndExerciseBuilder_ == null) { if (commandCase_ == 3) { return (com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.getDefaultInstance(); } else { if (commandCase_ == 3) { return createAndExerciseBuilder_.getMessage(); } return com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.getDefaultInstance(); } } /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; */ public Builder setCreateAndExercise(com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand value) { if (createAndExerciseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { createAndExerciseBuilder_.setMessage(value); } commandCase_ = 3; return this; } /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; */ public Builder setCreateAndExercise( com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.Builder builderForValue) { if (createAndExerciseBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { createAndExerciseBuilder_.setMessage(builderForValue.build()); } commandCase_ = 3; return this; } /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; */ public Builder mergeCreateAndExercise(com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand value) { if (createAndExerciseBuilder_ == null) { if (commandCase_ == 3 && command_ != com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.getDefaultInstance()) { command_ = com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.newBuilder((com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand) command_) .mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { if (commandCase_ == 3) { createAndExerciseBuilder_.mergeFrom(value); } createAndExerciseBuilder_.setMessage(value); } commandCase_ = 3; return this; } /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; */ public Builder clearCreateAndExercise() { if (createAndExerciseBuilder_ == null) { if (commandCase_ == 3) { commandCase_ = 0; command_ = null; onChanged(); } } else { if (commandCase_ == 3) { commandCase_ = 0; command_ = null; } createAndExerciseBuilder_.clear(); } return this; } /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; */ public com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.Builder getCreateAndExerciseBuilder() { return getCreateAndExerciseFieldBuilder().getBuilder(); } /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommandOrBuilder getCreateAndExerciseOrBuilder() { if ((commandCase_ == 3) && (createAndExerciseBuilder_ != null)) { return createAndExerciseBuilder_.getMessageOrBuilder(); } else { if (commandCase_ == 3) { return (com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand) command_; } return com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.getDefaultInstance(); } } /** * .com.daml.ledger.api.v1.CreateAndExerciseCommand createAndExercise = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand, com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommandOrBuilder> getCreateAndExerciseFieldBuilder() { if (createAndExerciseBuilder_ == null) { if (!(commandCase_ == 3)) { command_ = com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.getDefaultInstance(); } createAndExerciseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand, com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.Builder, com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommandOrBuilder>( (com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand) command_, getParentForChildren(), isClean()); command_ = null; } commandCase_ = 3; onChanged();; return createAndExerciseBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.Command) } // @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.Command) private static final com.daml.ledger.api.v1.CommandsOuterClass.Command DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.ledger.api.v1.CommandsOuterClass.Command(); } public static com.daml.ledger.api.v1.CommandsOuterClass.Command getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Command parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.Command getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateCommandOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.CreateCommand) com.google.protobuf.MessageOrBuilder { /** *
     * The template of contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ boolean hasTemplateId(); /** *
     * The template of contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId(); /** *
     * The template of contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder(); /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return Whether the createArguments field is set. */ boolean hasCreateArguments(); /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return The createArguments. */ com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments(); /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder(); } /** *
   * Create a new contract instance based on a template.
   * 
* * Protobuf type {@code com.daml.ledger.api.v1.CreateCommand} */ public static final class CreateCommand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.CreateCommand) CreateCommandOrBuilder { private static final long serialVersionUID = 0L; // Use CreateCommand.newBuilder() to construct. private CreateCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateCommand() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateCommand(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_CreateCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_CreateCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.class, com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.Builder.class); } public static final int TEMPLATE_ID_FIELD_NUMBER = 1; private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_; /** *
     * The template of contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ @java.lang.Override public boolean hasTemplateId() { return templateId_ != null; } /** *
     * The template of contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } /** *
     * The template of contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() { return getTemplateId(); } public static final int CREATE_ARGUMENTS_FIELD_NUMBER = 2; private com.daml.ledger.api.v1.ValueOuterClass.Record createArguments_; /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return Whether the createArguments field is set. */ @java.lang.Override public boolean hasCreateArguments() { return createArguments_ != null; } /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return The createArguments. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments() { return createArguments_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : createArguments_; } /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder() { return getCreateArguments(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (templateId_ != null) { output.writeMessage(1, getTemplateId()); } if (createArguments_ != null) { output.writeMessage(2, getCreateArguments()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (templateId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplateId()); } if (createArguments_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCreateArguments()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand)) { return super.equals(obj); } com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand other = (com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand) obj; if (hasTemplateId() != other.hasTemplateId()) return false; if (hasTemplateId()) { if (!getTemplateId() .equals(other.getTemplateId())) return false; } if (hasCreateArguments() != other.hasCreateArguments()) return false; if (hasCreateArguments()) { if (!getCreateArguments() .equals(other.getCreateArguments())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTemplateId()) { hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER; hash = (53 * hash) + getTemplateId().hashCode(); } if (hasCreateArguments()) { hash = (37 * hash) + CREATE_ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getCreateArguments().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Create a new contract instance based on a template.
     * 
* * Protobuf type {@code com.daml.ledger.api.v1.CreateCommand} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.CreateCommand) com.daml.ledger.api.v1.CommandsOuterClass.CreateCommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_CreateCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_CreateCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.class, com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.Builder.class); } // Construct using com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (templateIdBuilder_ == null) { templateId_ = null; } else { templateId_ = null; templateIdBuilder_ = null; } if (createArgumentsBuilder_ == null) { createArguments_ = null; } else { createArguments_ = null; createArgumentsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_CreateCommand_descriptor; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand getDefaultInstanceForType() { return com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.getDefaultInstance(); } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand build() { com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand buildPartial() { com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand result = new com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand(this); if (templateIdBuilder_ == null) { result.templateId_ = templateId_; } else { result.templateId_ = templateIdBuilder_.build(); } if (createArgumentsBuilder_ == null) { result.createArguments_ = createArguments_; } else { result.createArguments_ = createArgumentsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand) { return mergeFrom((com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand other) { if (other == com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand.getDefaultInstance()) return this; if (other.hasTemplateId()) { mergeTemplateId(other.getTemplateId()); } if (other.hasCreateArguments()) { mergeCreateArguments(other.getCreateArguments()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateIdFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getCreateArgumentsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> templateIdBuilder_; /** *
       * The template of contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ public boolean hasTemplateId() { return templateIdBuilder_ != null || templateId_ != null; } /** *
       * The template of contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() { if (templateIdBuilder_ == null) { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } else { return templateIdBuilder_.getMessage(); } } /** *
       * The template of contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder setTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) { if (templateIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateId_ = value; onChanged(); } else { templateIdBuilder_.setMessage(value); } return this; } /** *
       * The template of contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder setTemplateId( com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder builderForValue) { if (templateIdBuilder_ == null) { templateId_ = builderForValue.build(); onChanged(); } else { templateIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The template of contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder mergeTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) { if (templateIdBuilder_ == null) { if (templateId_ != null) { templateId_ = com.daml.ledger.api.v1.ValueOuterClass.Identifier.newBuilder(templateId_).mergeFrom(value).buildPartial(); } else { templateId_ = value; } onChanged(); } else { templateIdBuilder_.mergeFrom(value); } return this; } /** *
       * The template of contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder clearTemplateId() { if (templateIdBuilder_ == null) { templateId_ = null; onChanged(); } else { templateId_ = null; templateIdBuilder_ = null; } return this; } /** *
       * The template of contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() { onChanged(); return getTemplateIdFieldBuilder().getBuilder(); } /** *
       * The template of contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() { if (templateIdBuilder_ != null) { return templateIdBuilder_.getMessageOrBuilder(); } else { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } } /** *
       * The template of contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> getTemplateIdFieldBuilder() { if (templateIdBuilder_ == null) { templateIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>( getTemplateId(), getParentForChildren(), isClean()); templateId_ = null; } return templateIdBuilder_; } private com.daml.ledger.api.v1.ValueOuterClass.Record createArguments_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder> createArgumentsBuilder_; /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return Whether the createArguments field is set. */ public boolean hasCreateArguments() { return createArgumentsBuilder_ != null || createArguments_ != null; } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return The createArguments. */ public com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments() { if (createArgumentsBuilder_ == null) { return createArguments_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : createArguments_; } else { return createArgumentsBuilder_.getMessage(); } } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public Builder setCreateArguments(com.daml.ledger.api.v1.ValueOuterClass.Record value) { if (createArgumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createArguments_ = value; onChanged(); } else { createArgumentsBuilder_.setMessage(value); } return this; } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public Builder setCreateArguments( com.daml.ledger.api.v1.ValueOuterClass.Record.Builder builderForValue) { if (createArgumentsBuilder_ == null) { createArguments_ = builderForValue.build(); onChanged(); } else { createArgumentsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public Builder mergeCreateArguments(com.daml.ledger.api.v1.ValueOuterClass.Record value) { if (createArgumentsBuilder_ == null) { if (createArguments_ != null) { createArguments_ = com.daml.ledger.api.v1.ValueOuterClass.Record.newBuilder(createArguments_).mergeFrom(value).buildPartial(); } else { createArguments_ = value; } onChanged(); } else { createArgumentsBuilder_.mergeFrom(value); } return this; } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public Builder clearCreateArguments() { if (createArgumentsBuilder_ == null) { createArguments_ = null; onChanged(); } else { createArguments_ = null; createArgumentsBuilder_ = null; } return this; } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public com.daml.ledger.api.v1.ValueOuterClass.Record.Builder getCreateArgumentsBuilder() { onChanged(); return getCreateArgumentsFieldBuilder().getBuilder(); } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder() { if (createArgumentsBuilder_ != null) { return createArgumentsBuilder_.getMessageOrBuilder(); } else { return createArguments_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : createArguments_; } } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder> getCreateArgumentsFieldBuilder() { if (createArgumentsBuilder_ == null) { createArgumentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder>( getCreateArguments(), getParentForChildren(), isClean()); createArguments_ = null; } return createArgumentsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.CreateCommand) } // @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.CreateCommand) private static final com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand(); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateCommand parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateCommand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExerciseCommandOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.ExerciseCommand) com.google.protobuf.MessageOrBuilder { /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ boolean hasTemplateId(); /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId(); /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder(); /** *
     * 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; * @return The contractId. */ java.lang.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; * @return The bytes for contractId. */ com.google.protobuf.ByteString getContractIdBytes(); /** *
     * The name of the choice the client wants to exercise.
     * Must be a valid NameString (as described in ``value.proto``)
     * Required
     * 
* * string choice = 3; * @return The choice. */ java.lang.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; * @return The bytes for choice. */ com.google.protobuf.ByteString getChoiceBytes(); /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return Whether the choiceArgument field is set. */ boolean hasChoiceArgument(); /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return The choiceArgument. */ com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument(); /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder(); } /** *
   * Exercise a choice on an existing contract.
   * 
* * Protobuf type {@code com.daml.ledger.api.v1.ExerciseCommand} */ public static final class ExerciseCommand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.ExerciseCommand) ExerciseCommandOrBuilder { private static final long serialVersionUID = 0L; // Use ExerciseCommand.newBuilder() to construct. private ExerciseCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExerciseCommand() { contractId_ = ""; choice_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExerciseCommand(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_ExerciseCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_ExerciseCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.class, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.Builder.class); } public static final int TEMPLATE_ID_FIELD_NUMBER = 1; private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_; /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ @java.lang.Override public boolean hasTemplateId() { return templateId_ != null; } /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() { return getTemplateId(); } public static final int CONTRACT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object contractId_; /** *
     * 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; * @return The contractId. */ @java.lang.Override public java.lang.String getContractId() { java.lang.Object ref = contractId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contractId_ = s; return s; } } /** *
     * 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; * @return The bytes for contractId. */ @java.lang.Override public com.google.protobuf.ByteString getContractIdBytes() { java.lang.Object ref = contractId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contractId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHOICE_FIELD_NUMBER = 3; private volatile java.lang.Object choice_; /** *
     * The name of the choice the client wants to exercise.
     * Must be a valid NameString (as described in ``value.proto``)
     * Required
     * 
* * string choice = 3; * @return The choice. */ @java.lang.Override public java.lang.String getChoice() { java.lang.Object ref = choice_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); choice_ = s; return s; } } /** *
     * The name of the choice the client wants to exercise.
     * Must be a valid NameString (as described in ``value.proto``)
     * Required
     * 
* * string choice = 3; * @return The bytes for choice. */ @java.lang.Override public com.google.protobuf.ByteString getChoiceBytes() { java.lang.Object ref = choice_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); choice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHOICE_ARGUMENT_FIELD_NUMBER = 4; private com.daml.ledger.api.v1.ValueOuterClass.Value choiceArgument_; /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return Whether the choiceArgument field is set. */ @java.lang.Override public boolean hasChoiceArgument() { return choiceArgument_ != null; } /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return The choiceArgument. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument() { return choiceArgument_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_; } /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder() { return getChoiceArgument(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (templateId_ != null) { output.writeMessage(1, getTemplateId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(choice_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, choice_); } if (choiceArgument_ != null) { output.writeMessage(4, getChoiceArgument()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (templateId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplateId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(choice_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, choice_); } if (choiceArgument_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getChoiceArgument()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand)) { return super.equals(obj); } com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand other = (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand) obj; if (hasTemplateId() != other.hasTemplateId()) return false; if (hasTemplateId()) { if (!getTemplateId() .equals(other.getTemplateId())) return false; } if (!getContractId() .equals(other.getContractId())) return false; if (!getChoice() .equals(other.getChoice())) return false; if (hasChoiceArgument() != other.hasChoiceArgument()) return false; if (hasChoiceArgument()) { if (!getChoiceArgument() .equals(other.getChoiceArgument())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTemplateId()) { hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER; hash = (53 * hash) + getTemplateId().hashCode(); } hash = (37 * hash) + CONTRACT_ID_FIELD_NUMBER; hash = (53 * hash) + getContractId().hashCode(); hash = (37 * hash) + CHOICE_FIELD_NUMBER; hash = (53 * hash) + getChoice().hashCode(); if (hasChoiceArgument()) { hash = (37 * hash) + CHOICE_ARGUMENT_FIELD_NUMBER; hash = (53 * hash) + getChoiceArgument().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Exercise a choice on an existing contract.
     * 
* * Protobuf type {@code com.daml.ledger.api.v1.ExerciseCommand} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.ExerciseCommand) com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_ExerciseCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_ExerciseCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.class, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.Builder.class); } // Construct using com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (templateIdBuilder_ == null) { templateId_ = null; } else { templateId_ = null; templateIdBuilder_ = null; } contractId_ = ""; choice_ = ""; if (choiceArgumentBuilder_ == null) { choiceArgument_ = null; } else { choiceArgument_ = null; choiceArgumentBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_ExerciseCommand_descriptor; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand getDefaultInstanceForType() { return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.getDefaultInstance(); } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand build() { com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand buildPartial() { com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand result = new com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand(this); if (templateIdBuilder_ == null) { result.templateId_ = templateId_; } else { result.templateId_ = templateIdBuilder_.build(); } result.contractId_ = contractId_; result.choice_ = choice_; if (choiceArgumentBuilder_ == null) { result.choiceArgument_ = choiceArgument_; } else { result.choiceArgument_ = choiceArgumentBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand) { return mergeFrom((com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand other) { if (other == com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.getDefaultInstance()) return this; if (other.hasTemplateId()) { mergeTemplateId(other.getTemplateId()); } if (!other.getContractId().isEmpty()) { contractId_ = other.contractId_; onChanged(); } if (!other.getChoice().isEmpty()) { choice_ = other.choice_; onChanged(); } if (other.hasChoiceArgument()) { mergeChoiceArgument(other.getChoiceArgument()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateIdFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { contractId_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { choice_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { input.readMessage( getChoiceArgumentFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> templateIdBuilder_; /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ public boolean hasTemplateId() { return templateIdBuilder_ != null || templateId_ != null; } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() { if (templateIdBuilder_ == null) { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } else { return templateIdBuilder_.getMessage(); } } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder setTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) { if (templateIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateId_ = value; onChanged(); } else { templateIdBuilder_.setMessage(value); } return this; } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder setTemplateId( com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder builderForValue) { if (templateIdBuilder_ == null) { templateId_ = builderForValue.build(); onChanged(); } else { templateIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder mergeTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) { if (templateIdBuilder_ == null) { if (templateId_ != null) { templateId_ = com.daml.ledger.api.v1.ValueOuterClass.Identifier.newBuilder(templateId_).mergeFrom(value).buildPartial(); } else { templateId_ = value; } onChanged(); } else { templateIdBuilder_.mergeFrom(value); } return this; } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder clearTemplateId() { if (templateIdBuilder_ == null) { templateId_ = null; onChanged(); } else { templateId_ = null; templateIdBuilder_ = null; } return this; } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() { onChanged(); return getTemplateIdFieldBuilder().getBuilder(); } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() { if (templateIdBuilder_ != null) { return templateIdBuilder_.getMessageOrBuilder(); } else { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> getTemplateIdFieldBuilder() { if (templateIdBuilder_ == null) { templateIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>( getTemplateId(), getParentForChildren(), isClean()); templateId_ = null; } return templateIdBuilder_; } private java.lang.Object contractId_ = ""; /** *
       * 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; * @return The contractId. */ public java.lang.String getContractId() { java.lang.Object ref = contractId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contractId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 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; * @return The bytes for contractId. */ public com.google.protobuf.ByteString getContractIdBytes() { java.lang.Object ref = contractId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contractId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 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; * @param value The contractId to set. * @return This builder for chaining. */ public Builder setContractId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contractId_ = value; onChanged(); return this; } /** *
       * 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; * @return This builder for chaining. */ public Builder clearContractId() { contractId_ = getDefaultInstance().getContractId(); onChanged(); return this; } /** *
       * 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; * @param value The bytes for contractId to set. * @return This builder for chaining. */ public Builder setContractIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contractId_ = value; onChanged(); return this; } private java.lang.Object choice_ = ""; /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``)
       * Required
       * 
* * string choice = 3; * @return The choice. */ public java.lang.String getChoice() { java.lang.Object ref = choice_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); choice_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``)
       * Required
       * 
* * string choice = 3; * @return The bytes for choice. */ public com.google.protobuf.ByteString getChoiceBytes() { java.lang.Object ref = choice_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); choice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``)
       * Required
       * 
* * string choice = 3; * @param value The choice to set. * @return This builder for chaining. */ public Builder setChoice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } choice_ = value; onChanged(); return this; } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``)
       * Required
       * 
* * string choice = 3; * @return This builder for chaining. */ public Builder clearChoice() { choice_ = getDefaultInstance().getChoice(); onChanged(); return this; } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``)
       * Required
       * 
* * string choice = 3; * @param value The bytes for choice to set. * @return This builder for chaining. */ public Builder setChoiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); choice_ = value; onChanged(); return this; } private com.daml.ledger.api.v1.ValueOuterClass.Value choiceArgument_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> choiceArgumentBuilder_; /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return Whether the choiceArgument field is set. */ public boolean hasChoiceArgument() { return choiceArgumentBuilder_ != null || choiceArgument_ != null; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return The choiceArgument. */ public com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument() { if (choiceArgumentBuilder_ == null) { return choiceArgument_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_; } else { return choiceArgumentBuilder_.getMessage(); } } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder setChoiceArgument(com.daml.ledger.api.v1.ValueOuterClass.Value value) { if (choiceArgumentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } choiceArgument_ = value; onChanged(); } else { choiceArgumentBuilder_.setMessage(value); } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder setChoiceArgument( com.daml.ledger.api.v1.ValueOuterClass.Value.Builder builderForValue) { if (choiceArgumentBuilder_ == null) { choiceArgument_ = builderForValue.build(); onChanged(); } else { choiceArgumentBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder mergeChoiceArgument(com.daml.ledger.api.v1.ValueOuterClass.Value value) { if (choiceArgumentBuilder_ == null) { if (choiceArgument_ != null) { choiceArgument_ = com.daml.ledger.api.v1.ValueOuterClass.Value.newBuilder(choiceArgument_).mergeFrom(value).buildPartial(); } else { choiceArgument_ = value; } onChanged(); } else { choiceArgumentBuilder_.mergeFrom(value); } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder clearChoiceArgument() { if (choiceArgumentBuilder_ == null) { choiceArgument_ = null; onChanged(); } else { choiceArgument_ = null; choiceArgumentBuilder_ = null; } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public com.daml.ledger.api.v1.ValueOuterClass.Value.Builder getChoiceArgumentBuilder() { onChanged(); return getChoiceArgumentFieldBuilder().getBuilder(); } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder() { if (choiceArgumentBuilder_ != null) { return choiceArgumentBuilder_.getMessageOrBuilder(); } else { return choiceArgument_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_; } } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> getChoiceArgumentFieldBuilder() { if (choiceArgumentBuilder_ == null) { choiceArgumentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>( getChoiceArgument(), getParentForChildren(), isClean()); choiceArgument_ = null; } return choiceArgumentBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.ExerciseCommand) } // @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.ExerciseCommand) private static final com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand(); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExerciseCommand parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExerciseByKeyCommandOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.ExerciseByKeyCommand) com.google.protobuf.MessageOrBuilder { /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ boolean hasTemplateId(); /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId(); /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder(); /** *
     * The key of the contract the client wants to exercise upon.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; * @return Whether the contractKey field is set. */ boolean hasContractKey(); /** *
     * The key of the contract the client wants to exercise upon.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; * @return The contractKey. */ com.daml.ledger.api.v1.ValueOuterClass.Value getContractKey(); /** *
     * The key of the contract the client wants to exercise upon.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; */ com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder(); /** *
     * The name of the choice the client wants to exercise.
     * Must be a valid NameString (as described in ``value.proto``)
     * Required
     * 
* * string choice = 3; * @return The choice. */ java.lang.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; * @return The bytes for choice. */ com.google.protobuf.ByteString getChoiceBytes(); /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return Whether the choiceArgument field is set. */ boolean hasChoiceArgument(); /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return The choiceArgument. */ com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument(); /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder(); } /** *
   * Exercise a choice on an existing contract specified by its key.
   * 
* * Protobuf type {@code com.daml.ledger.api.v1.ExerciseByKeyCommand} */ public static final class ExerciseByKeyCommand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.ExerciseByKeyCommand) ExerciseByKeyCommandOrBuilder { private static final long serialVersionUID = 0L; // Use ExerciseByKeyCommand.newBuilder() to construct. private ExerciseByKeyCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExerciseByKeyCommand() { choice_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExerciseByKeyCommand(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_ExerciseByKeyCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_ExerciseByKeyCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.class, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.Builder.class); } public static final int TEMPLATE_ID_FIELD_NUMBER = 1; private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_; /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ @java.lang.Override public boolean hasTemplateId() { return templateId_ != null; } /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } /** *
     * The template of contract the client wants to exercise.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() { return getTemplateId(); } public static final int CONTRACT_KEY_FIELD_NUMBER = 2; private com.daml.ledger.api.v1.ValueOuterClass.Value contractKey_; /** *
     * The key of the contract the client wants to exercise upon.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; * @return Whether the contractKey field is set. */ @java.lang.Override public boolean hasContractKey() { return contractKey_ != null; } /** *
     * The key of the contract the client wants to exercise upon.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; * @return The contractKey. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Value getContractKey() { return contractKey_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : contractKey_; } /** *
     * The key of the contract the client wants to exercise upon.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder() { return getContractKey(); } public static final int CHOICE_FIELD_NUMBER = 3; private volatile java.lang.Object choice_; /** *
     * The name of the choice the client wants to exercise.
     * Must be a valid NameString (as described in ``value.proto``)
     * Required
     * 
* * string choice = 3; * @return The choice. */ @java.lang.Override public java.lang.String getChoice() { java.lang.Object ref = choice_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); choice_ = s; return s; } } /** *
     * The name of the choice the client wants to exercise.
     * Must be a valid NameString (as described in ``value.proto``)
     * Required
     * 
* * string choice = 3; * @return The bytes for choice. */ @java.lang.Override public com.google.protobuf.ByteString getChoiceBytes() { java.lang.Object ref = choice_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); choice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHOICE_ARGUMENT_FIELD_NUMBER = 4; private com.daml.ledger.api.v1.ValueOuterClass.Value choiceArgument_; /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return Whether the choiceArgument field is set. */ @java.lang.Override public boolean hasChoiceArgument() { return choiceArgument_ != null; } /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return The choiceArgument. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument() { return choiceArgument_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_; } /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder() { return getChoiceArgument(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (templateId_ != null) { output.writeMessage(1, getTemplateId()); } if (contractKey_ != null) { output.writeMessage(2, getContractKey()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(choice_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, choice_); } if (choiceArgument_ != null) { output.writeMessage(4, getChoiceArgument()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (templateId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplateId()); } if (contractKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getContractKey()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(choice_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, choice_); } if (choiceArgument_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getChoiceArgument()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand)) { return super.equals(obj); } com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand other = (com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand) obj; if (hasTemplateId() != other.hasTemplateId()) return false; if (hasTemplateId()) { if (!getTemplateId() .equals(other.getTemplateId())) return false; } if (hasContractKey() != other.hasContractKey()) return false; if (hasContractKey()) { if (!getContractKey() .equals(other.getContractKey())) return false; } if (!getChoice() .equals(other.getChoice())) return false; if (hasChoiceArgument() != other.hasChoiceArgument()) return false; if (hasChoiceArgument()) { if (!getChoiceArgument() .equals(other.getChoiceArgument())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTemplateId()) { hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER; hash = (53 * hash) + getTemplateId().hashCode(); } if (hasContractKey()) { hash = (37 * hash) + CONTRACT_KEY_FIELD_NUMBER; hash = (53 * hash) + getContractKey().hashCode(); } hash = (37 * hash) + CHOICE_FIELD_NUMBER; hash = (53 * hash) + getChoice().hashCode(); if (hasChoiceArgument()) { hash = (37 * hash) + CHOICE_ARGUMENT_FIELD_NUMBER; hash = (53 * hash) + getChoiceArgument().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Exercise a choice on an existing contract specified by its key.
     * 
* * Protobuf type {@code com.daml.ledger.api.v1.ExerciseByKeyCommand} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.ExerciseByKeyCommand) com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_ExerciseByKeyCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_ExerciseByKeyCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.class, com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.Builder.class); } // Construct using com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (templateIdBuilder_ == null) { templateId_ = null; } else { templateId_ = null; templateIdBuilder_ = null; } if (contractKeyBuilder_ == null) { contractKey_ = null; } else { contractKey_ = null; contractKeyBuilder_ = null; } choice_ = ""; if (choiceArgumentBuilder_ == null) { choiceArgument_ = null; } else { choiceArgument_ = null; choiceArgumentBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_ExerciseByKeyCommand_descriptor; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand getDefaultInstanceForType() { return com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.getDefaultInstance(); } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand build() { com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand buildPartial() { com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand result = new com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand(this); if (templateIdBuilder_ == null) { result.templateId_ = templateId_; } else { result.templateId_ = templateIdBuilder_.build(); } if (contractKeyBuilder_ == null) { result.contractKey_ = contractKey_; } else { result.contractKey_ = contractKeyBuilder_.build(); } result.choice_ = choice_; if (choiceArgumentBuilder_ == null) { result.choiceArgument_ = choiceArgument_; } else { result.choiceArgument_ = choiceArgumentBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand) { return mergeFrom((com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand other) { if (other == com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand.getDefaultInstance()) return this; if (other.hasTemplateId()) { mergeTemplateId(other.getTemplateId()); } if (other.hasContractKey()) { mergeContractKey(other.getContractKey()); } if (!other.getChoice().isEmpty()) { choice_ = other.choice_; onChanged(); } if (other.hasChoiceArgument()) { mergeChoiceArgument(other.getChoiceArgument()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateIdFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getContractKeyFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { choice_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { input.readMessage( getChoiceArgumentFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> templateIdBuilder_; /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ public boolean hasTemplateId() { return templateIdBuilder_ != null || templateId_ != null; } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() { if (templateIdBuilder_ == null) { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } else { return templateIdBuilder_.getMessage(); } } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder setTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) { if (templateIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateId_ = value; onChanged(); } else { templateIdBuilder_.setMessage(value); } return this; } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder setTemplateId( com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder builderForValue) { if (templateIdBuilder_ == null) { templateId_ = builderForValue.build(); onChanged(); } else { templateIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder mergeTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) { if (templateIdBuilder_ == null) { if (templateId_ != null) { templateId_ = com.daml.ledger.api.v1.ValueOuterClass.Identifier.newBuilder(templateId_).mergeFrom(value).buildPartial(); } else { templateId_ = value; } onChanged(); } else { templateIdBuilder_.mergeFrom(value); } return this; } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder clearTemplateId() { if (templateIdBuilder_ == null) { templateId_ = null; onChanged(); } else { templateId_ = null; templateIdBuilder_ = null; } return this; } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() { onChanged(); return getTemplateIdFieldBuilder().getBuilder(); } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() { if (templateIdBuilder_ != null) { return templateIdBuilder_.getMessageOrBuilder(); } else { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } } /** *
       * The template of contract the client wants to exercise.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> getTemplateIdFieldBuilder() { if (templateIdBuilder_ == null) { templateIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>( getTemplateId(), getParentForChildren(), isClean()); templateId_ = null; } return templateIdBuilder_; } private com.daml.ledger.api.v1.ValueOuterClass.Value contractKey_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> contractKeyBuilder_; /** *
       * The key of the contract the client wants to exercise upon.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; * @return Whether the contractKey field is set. */ public boolean hasContractKey() { return contractKeyBuilder_ != null || contractKey_ != null; } /** *
       * The key of the contract the client wants to exercise upon.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; * @return The contractKey. */ public com.daml.ledger.api.v1.ValueOuterClass.Value getContractKey() { if (contractKeyBuilder_ == null) { return contractKey_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : contractKey_; } else { return contractKeyBuilder_.getMessage(); } } /** *
       * The key of the contract the client wants to exercise upon.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; */ public Builder setContractKey(com.daml.ledger.api.v1.ValueOuterClass.Value value) { if (contractKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractKey_ = value; onChanged(); } else { contractKeyBuilder_.setMessage(value); } return this; } /** *
       * The key of the contract the client wants to exercise upon.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; */ public Builder setContractKey( com.daml.ledger.api.v1.ValueOuterClass.Value.Builder builderForValue) { if (contractKeyBuilder_ == null) { contractKey_ = builderForValue.build(); onChanged(); } else { contractKeyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The key of the contract the client wants to exercise upon.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; */ public Builder mergeContractKey(com.daml.ledger.api.v1.ValueOuterClass.Value value) { if (contractKeyBuilder_ == null) { if (contractKey_ != null) { contractKey_ = com.daml.ledger.api.v1.ValueOuterClass.Value.newBuilder(contractKey_).mergeFrom(value).buildPartial(); } else { contractKey_ = value; } onChanged(); } else { contractKeyBuilder_.mergeFrom(value); } return this; } /** *
       * The key of the contract the client wants to exercise upon.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; */ public Builder clearContractKey() { if (contractKeyBuilder_ == null) { contractKey_ = null; onChanged(); } else { contractKey_ = null; contractKeyBuilder_ = null; } return this; } /** *
       * The key of the contract the client wants to exercise upon.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; */ public com.daml.ledger.api.v1.ValueOuterClass.Value.Builder getContractKeyBuilder() { onChanged(); return getContractKeyFieldBuilder().getBuilder(); } /** *
       * The key of the contract the client wants to exercise upon.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; */ public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder() { if (contractKeyBuilder_ != null) { return contractKeyBuilder_.getMessageOrBuilder(); } else { return contractKey_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : contractKey_; } } /** *
       * The key of the contract the client wants to exercise upon.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value contract_key = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> getContractKeyFieldBuilder() { if (contractKeyBuilder_ == null) { contractKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>( getContractKey(), getParentForChildren(), isClean()); contractKey_ = null; } return contractKeyBuilder_; } private java.lang.Object choice_ = ""; /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``)
       * Required
       * 
* * string choice = 3; * @return The choice. */ public java.lang.String getChoice() { java.lang.Object ref = choice_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); choice_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``)
       * Required
       * 
* * string choice = 3; * @return The bytes for choice. */ public com.google.protobuf.ByteString getChoiceBytes() { java.lang.Object ref = choice_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); choice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``)
       * Required
       * 
* * string choice = 3; * @param value The choice to set. * @return This builder for chaining. */ public Builder setChoice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } choice_ = value; onChanged(); return this; } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``)
       * Required
       * 
* * string choice = 3; * @return This builder for chaining. */ public Builder clearChoice() { choice_ = getDefaultInstance().getChoice(); onChanged(); return this; } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``)
       * Required
       * 
* * string choice = 3; * @param value The bytes for choice to set. * @return This builder for chaining. */ public Builder setChoiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); choice_ = value; onChanged(); return this; } private com.daml.ledger.api.v1.ValueOuterClass.Value choiceArgument_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> choiceArgumentBuilder_; /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return Whether the choiceArgument field is set. */ public boolean hasChoiceArgument() { return choiceArgumentBuilder_ != null || choiceArgument_ != null; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return The choiceArgument. */ public com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument() { if (choiceArgumentBuilder_ == null) { return choiceArgument_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_; } else { return choiceArgumentBuilder_.getMessage(); } } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder setChoiceArgument(com.daml.ledger.api.v1.ValueOuterClass.Value value) { if (choiceArgumentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } choiceArgument_ = value; onChanged(); } else { choiceArgumentBuilder_.setMessage(value); } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder setChoiceArgument( com.daml.ledger.api.v1.ValueOuterClass.Value.Builder builderForValue) { if (choiceArgumentBuilder_ == null) { choiceArgument_ = builderForValue.build(); onChanged(); } else { choiceArgumentBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder mergeChoiceArgument(com.daml.ledger.api.v1.ValueOuterClass.Value value) { if (choiceArgumentBuilder_ == null) { if (choiceArgument_ != null) { choiceArgument_ = com.daml.ledger.api.v1.ValueOuterClass.Value.newBuilder(choiceArgument_).mergeFrom(value).buildPartial(); } else { choiceArgument_ = value; } onChanged(); } else { choiceArgumentBuilder_.mergeFrom(value); } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder clearChoiceArgument() { if (choiceArgumentBuilder_ == null) { choiceArgument_ = null; onChanged(); } else { choiceArgument_ = null; choiceArgumentBuilder_ = null; } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public com.daml.ledger.api.v1.ValueOuterClass.Value.Builder getChoiceArgumentBuilder() { onChanged(); return getChoiceArgumentFieldBuilder().getBuilder(); } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder() { if (choiceArgumentBuilder_ != null) { return choiceArgumentBuilder_.getMessageOrBuilder(); } else { return choiceArgument_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_; } } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> getChoiceArgumentFieldBuilder() { if (choiceArgumentBuilder_ == null) { choiceArgumentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>( getChoiceArgument(), getParentForChildren(), isClean()); choiceArgument_ = null; } return choiceArgumentBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.ExerciseByKeyCommand) } // @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.ExerciseByKeyCommand) private static final com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand(); } public static com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExerciseByKeyCommand parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.ExerciseByKeyCommand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateAndExerciseCommandOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.CreateAndExerciseCommand) com.google.protobuf.MessageOrBuilder { /** *
     * The template of the contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ boolean hasTemplateId(); /** *
     * The template of the contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId(); /** *
     * The template of the contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder(); /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return Whether the createArguments field is set. */ boolean hasCreateArguments(); /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return The createArguments. */ com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments(); /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder(); /** *
     * The name of the choice the client wants to exercise.
     * Must be a valid NameString (as described in ``value.proto``).
     * Required
     * 
* * string choice = 3; * @return The choice. */ java.lang.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; * @return The bytes for choice. */ com.google.protobuf.ByteString getChoiceBytes(); /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return Whether the choiceArgument field is set. */ boolean hasChoiceArgument(); /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return The choiceArgument. */ com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument(); /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder(); } /** *
   * Create a contract and exercise a choice on it in the same transaction.
   * 
* * Protobuf type {@code com.daml.ledger.api.v1.CreateAndExerciseCommand} */ public static final class CreateAndExerciseCommand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.CreateAndExerciseCommand) CreateAndExerciseCommandOrBuilder { private static final long serialVersionUID = 0L; // Use CreateAndExerciseCommand.newBuilder() to construct. private CreateAndExerciseCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateAndExerciseCommand() { choice_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateAndExerciseCommand(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_CreateAndExerciseCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_CreateAndExerciseCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.class, com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.Builder.class); } public static final int TEMPLATE_ID_FIELD_NUMBER = 1; private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_; /** *
     * The template of the contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ @java.lang.Override public boolean hasTemplateId() { return templateId_ != null; } /** *
     * The template of the contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } /** *
     * The template of the contract the client wants to create.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() { return getTemplateId(); } public static final int CREATE_ARGUMENTS_FIELD_NUMBER = 2; private com.daml.ledger.api.v1.ValueOuterClass.Record createArguments_; /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return Whether the createArguments field is set. */ @java.lang.Override public boolean hasCreateArguments() { return createArguments_ != null; } /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return The createArguments. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments() { return createArguments_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : createArguments_; } /** *
     * The arguments required for creating a contract from this template.
     * Required
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder() { return getCreateArguments(); } public static final int CHOICE_FIELD_NUMBER = 3; private volatile java.lang.Object choice_; /** *
     * The name of the choice the client wants to exercise.
     * Must be a valid NameString (as described in ``value.proto``).
     * Required
     * 
* * string choice = 3; * @return The choice. */ @java.lang.Override public java.lang.String getChoice() { java.lang.Object ref = choice_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); choice_ = s; return s; } } /** *
     * The name of the choice the client wants to exercise.
     * Must be a valid NameString (as described in ``value.proto``).
     * Required
     * 
* * string choice = 3; * @return The bytes for choice. */ @java.lang.Override public com.google.protobuf.ByteString getChoiceBytes() { java.lang.Object ref = choice_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); choice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHOICE_ARGUMENT_FIELD_NUMBER = 4; private com.daml.ledger.api.v1.ValueOuterClass.Value choiceArgument_; /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return Whether the choiceArgument field is set. */ @java.lang.Override public boolean hasChoiceArgument() { return choiceArgument_ != null; } /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return The choiceArgument. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument() { return choiceArgument_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_; } /** *
     * The argument for this choice.
     * Required
     * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder() { return getChoiceArgument(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (templateId_ != null) { output.writeMessage(1, getTemplateId()); } if (createArguments_ != null) { output.writeMessage(2, getCreateArguments()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(choice_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, choice_); } if (choiceArgument_ != null) { output.writeMessage(4, getChoiceArgument()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (templateId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplateId()); } if (createArguments_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCreateArguments()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(choice_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, choice_); } if (choiceArgument_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getChoiceArgument()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand)) { return super.equals(obj); } com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand other = (com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand) obj; if (hasTemplateId() != other.hasTemplateId()) return false; if (hasTemplateId()) { if (!getTemplateId() .equals(other.getTemplateId())) return false; } if (hasCreateArguments() != other.hasCreateArguments()) return false; if (hasCreateArguments()) { if (!getCreateArguments() .equals(other.getCreateArguments())) return false; } if (!getChoice() .equals(other.getChoice())) return false; if (hasChoiceArgument() != other.hasChoiceArgument()) return false; if (hasChoiceArgument()) { if (!getChoiceArgument() .equals(other.getChoiceArgument())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTemplateId()) { hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER; hash = (53 * hash) + getTemplateId().hashCode(); } if (hasCreateArguments()) { hash = (37 * hash) + CREATE_ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getCreateArguments().hashCode(); } hash = (37 * hash) + CHOICE_FIELD_NUMBER; hash = (53 * hash) + getChoice().hashCode(); if (hasChoiceArgument()) { hash = (37 * hash) + CHOICE_ARGUMENT_FIELD_NUMBER; hash = (53 * hash) + getChoiceArgument().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Create a contract and exercise a choice on it in the same transaction.
     * 
* * Protobuf type {@code com.daml.ledger.api.v1.CreateAndExerciseCommand} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.CreateAndExerciseCommand) com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_CreateAndExerciseCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_CreateAndExerciseCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.class, com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.Builder.class); } // Construct using com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (templateIdBuilder_ == null) { templateId_ = null; } else { templateId_ = null; templateIdBuilder_ = null; } if (createArgumentsBuilder_ == null) { createArguments_ = null; } else { createArguments_ = null; createArgumentsBuilder_ = null; } choice_ = ""; if (choiceArgumentBuilder_ == null) { choiceArgument_ = null; } else { choiceArgument_ = null; choiceArgumentBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_CreateAndExerciseCommand_descriptor; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand getDefaultInstanceForType() { return com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.getDefaultInstance(); } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand build() { com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand buildPartial() { com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand result = new com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand(this); if (templateIdBuilder_ == null) { result.templateId_ = templateId_; } else { result.templateId_ = templateIdBuilder_.build(); } if (createArgumentsBuilder_ == null) { result.createArguments_ = createArguments_; } else { result.createArguments_ = createArgumentsBuilder_.build(); } result.choice_ = choice_; if (choiceArgumentBuilder_ == null) { result.choiceArgument_ = choiceArgument_; } else { result.choiceArgument_ = choiceArgumentBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand) { return mergeFrom((com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand other) { if (other == com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand.getDefaultInstance()) return this; if (other.hasTemplateId()) { mergeTemplateId(other.getTemplateId()); } if (other.hasCreateArguments()) { mergeCreateArguments(other.getCreateArguments()); } if (!other.getChoice().isEmpty()) { choice_ = other.choice_; onChanged(); } if (other.hasChoiceArgument()) { mergeChoiceArgument(other.getChoiceArgument()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateIdFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getCreateArgumentsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { choice_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { input.readMessage( getChoiceArgumentFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> templateIdBuilder_; /** *
       * The template of the contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ public boolean hasTemplateId() { return templateIdBuilder_ != null || templateId_ != null; } /** *
       * The template of the contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() { if (templateIdBuilder_ == null) { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } else { return templateIdBuilder_.getMessage(); } } /** *
       * The template of the contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder setTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) { if (templateIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateId_ = value; onChanged(); } else { templateIdBuilder_.setMessage(value); } return this; } /** *
       * The template of the contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder setTemplateId( com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder builderForValue) { if (templateIdBuilder_ == null) { templateId_ = builderForValue.build(); onChanged(); } else { templateIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The template of the contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder mergeTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) { if (templateIdBuilder_ == null) { if (templateId_ != null) { templateId_ = com.daml.ledger.api.v1.ValueOuterClass.Identifier.newBuilder(templateId_).mergeFrom(value).buildPartial(); } else { templateId_ = value; } onChanged(); } else { templateIdBuilder_.mergeFrom(value); } return this; } /** *
       * The template of the contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder clearTemplateId() { if (templateIdBuilder_ == null) { templateId_ = null; onChanged(); } else { templateId_ = null; templateIdBuilder_ = null; } return this; } /** *
       * The template of the contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() { onChanged(); return getTemplateIdFieldBuilder().getBuilder(); } /** *
       * The template of the contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() { if (templateIdBuilder_ != null) { return templateIdBuilder_.getMessageOrBuilder(); } else { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } } /** *
       * The template of the contract the client wants to create.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> getTemplateIdFieldBuilder() { if (templateIdBuilder_ == null) { templateIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>( getTemplateId(), getParentForChildren(), isClean()); templateId_ = null; } return templateIdBuilder_; } private com.daml.ledger.api.v1.ValueOuterClass.Record createArguments_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder> createArgumentsBuilder_; /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return Whether the createArguments field is set. */ public boolean hasCreateArguments() { return createArgumentsBuilder_ != null || createArguments_ != null; } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; * @return The createArguments. */ public com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments() { if (createArgumentsBuilder_ == null) { return createArguments_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : createArguments_; } else { return createArgumentsBuilder_.getMessage(); } } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public Builder setCreateArguments(com.daml.ledger.api.v1.ValueOuterClass.Record value) { if (createArgumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createArguments_ = value; onChanged(); } else { createArgumentsBuilder_.setMessage(value); } return this; } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public Builder setCreateArguments( com.daml.ledger.api.v1.ValueOuterClass.Record.Builder builderForValue) { if (createArgumentsBuilder_ == null) { createArguments_ = builderForValue.build(); onChanged(); } else { createArgumentsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public Builder mergeCreateArguments(com.daml.ledger.api.v1.ValueOuterClass.Record value) { if (createArgumentsBuilder_ == null) { if (createArguments_ != null) { createArguments_ = com.daml.ledger.api.v1.ValueOuterClass.Record.newBuilder(createArguments_).mergeFrom(value).buildPartial(); } else { createArguments_ = value; } onChanged(); } else { createArgumentsBuilder_.mergeFrom(value); } return this; } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public Builder clearCreateArguments() { if (createArgumentsBuilder_ == null) { createArguments_ = null; onChanged(); } else { createArguments_ = null; createArgumentsBuilder_ = null; } return this; } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public com.daml.ledger.api.v1.ValueOuterClass.Record.Builder getCreateArgumentsBuilder() { onChanged(); return getCreateArgumentsFieldBuilder().getBuilder(); } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ public com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder() { if (createArgumentsBuilder_ != null) { return createArgumentsBuilder_.getMessageOrBuilder(); } else { return createArguments_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : createArguments_; } } /** *
       * The arguments required for creating a contract from this template.
       * Required
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder> getCreateArgumentsFieldBuilder() { if (createArgumentsBuilder_ == null) { createArgumentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder>( getCreateArguments(), getParentForChildren(), isClean()); createArguments_ = null; } return createArgumentsBuilder_; } private java.lang.Object choice_ = ""; /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``).
       * Required
       * 
* * string choice = 3; * @return The choice. */ public java.lang.String getChoice() { java.lang.Object ref = choice_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); choice_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``).
       * Required
       * 
* * string choice = 3; * @return The bytes for choice. */ public com.google.protobuf.ByteString getChoiceBytes() { java.lang.Object ref = choice_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); choice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``).
       * Required
       * 
* * string choice = 3; * @param value The choice to set. * @return This builder for chaining. */ public Builder setChoice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } choice_ = value; onChanged(); return this; } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``).
       * Required
       * 
* * string choice = 3; * @return This builder for chaining. */ public Builder clearChoice() { choice_ = getDefaultInstance().getChoice(); onChanged(); return this; } /** *
       * The name of the choice the client wants to exercise.
       * Must be a valid NameString (as described in ``value.proto``).
       * Required
       * 
* * string choice = 3; * @param value The bytes for choice to set. * @return This builder for chaining. */ public Builder setChoiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); choice_ = value; onChanged(); return this; } private com.daml.ledger.api.v1.ValueOuterClass.Value choiceArgument_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> choiceArgumentBuilder_; /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return Whether the choiceArgument field is set. */ public boolean hasChoiceArgument() { return choiceArgumentBuilder_ != null || choiceArgument_ != null; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; * @return The choiceArgument. */ public com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument() { if (choiceArgumentBuilder_ == null) { return choiceArgument_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_; } else { return choiceArgumentBuilder_.getMessage(); } } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder setChoiceArgument(com.daml.ledger.api.v1.ValueOuterClass.Value value) { if (choiceArgumentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } choiceArgument_ = value; onChanged(); } else { choiceArgumentBuilder_.setMessage(value); } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder setChoiceArgument( com.daml.ledger.api.v1.ValueOuterClass.Value.Builder builderForValue) { if (choiceArgumentBuilder_ == null) { choiceArgument_ = builderForValue.build(); onChanged(); } else { choiceArgumentBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder mergeChoiceArgument(com.daml.ledger.api.v1.ValueOuterClass.Value value) { if (choiceArgumentBuilder_ == null) { if (choiceArgument_ != null) { choiceArgument_ = com.daml.ledger.api.v1.ValueOuterClass.Value.newBuilder(choiceArgument_).mergeFrom(value).buildPartial(); } else { choiceArgument_ = value; } onChanged(); } else { choiceArgumentBuilder_.mergeFrom(value); } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public Builder clearChoiceArgument() { if (choiceArgumentBuilder_ == null) { choiceArgument_ = null; onChanged(); } else { choiceArgument_ = null; choiceArgumentBuilder_ = null; } return this; } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public com.daml.ledger.api.v1.ValueOuterClass.Value.Builder getChoiceArgumentBuilder() { onChanged(); return getChoiceArgumentFieldBuilder().getBuilder(); } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder() { if (choiceArgumentBuilder_ != null) { return choiceArgumentBuilder_.getMessageOrBuilder(); } else { return choiceArgument_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_; } } /** *
       * The argument for this choice.
       * Required
       * 
* * .com.daml.ledger.api.v1.Value choice_argument = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> getChoiceArgumentFieldBuilder() { if (choiceArgumentBuilder_ == null) { choiceArgumentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>( getChoiceArgument(), getParentForChildren(), isClean()); choiceArgument_ = null; } return choiceArgumentBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.CreateAndExerciseCommand) } // @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.CreateAndExerciseCommand) private static final com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand(); } public static com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateAndExerciseCommand parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CreateAndExerciseCommand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DisclosedContractOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.DisclosedContract) com.google.protobuf.MessageOrBuilder { /** *
     * The template id of the contract.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ boolean hasTemplateId(); /** *
     * The template id of the contract.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId(); /** *
     * The template id of the contract.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder(); /** *
     * The contract id
     * Required
     * 
* * string contract_id = 2; * @return The contractId. */ java.lang.String getContractId(); /** *
     * The contract id
     * Required
     * 
* * string contract_id = 2; * @return The bytes for contractId. */ com.google.protobuf.ByteString getContractIdBytes(); /** *
     * The contract arguments as typed Record
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; * @return Whether the createArguments field is set. */ boolean hasCreateArguments(); /** *
     * The contract arguments as typed Record
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; * @return The createArguments. */ com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments(); /** *
     * The contract arguments as typed Record
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; */ com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder(); /** *
     * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
     * of a ``com.daml.ledger.api.v1.CreatedEvent``.
     * 
* * .google.protobuf.Any create_arguments_blob = 5; * @return Whether the createArgumentsBlob field is set. */ boolean hasCreateArgumentsBlob(); /** *
     * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
     * of a ``com.daml.ledger.api.v1.CreatedEvent``.
     * 
* * .google.protobuf.Any create_arguments_blob = 5; * @return The createArgumentsBlob. */ com.google.protobuf.Any getCreateArgumentsBlob(); /** *
     * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
     * of a ``com.daml.ledger.api.v1.CreatedEvent``.
     * 
* * .google.protobuf.Any create_arguments_blob = 5; */ com.google.protobuf.AnyOrBuilder getCreateArgumentsBlobOrBuilder(); /** *
     * The contract metadata from the create event.
     * Required
     * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; * @return Whether the metadata field is set. */ boolean hasMetadata(); /** *
     * The contract metadata from the create event.
     * Required
     * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; * @return The metadata. */ com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata getMetadata(); /** *
     * The contract metadata from the create event.
     * Required
     * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; */ com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder getMetadataOrBuilder(); public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.ArgumentsCase getArgumentsCase(); } /** *
   * An additional contract that is used to resolve
   * contract & contract key lookups.
   * 
* * Protobuf type {@code com.daml.ledger.api.v1.DisclosedContract} */ public static final class DisclosedContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.DisclosedContract) DisclosedContractOrBuilder { private static final long serialVersionUID = 0L; // Use DisclosedContract.newBuilder() to construct. private DisclosedContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DisclosedContract() { contractId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisclosedContract(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_DisclosedContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_DisclosedContract_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.class, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.Builder.class); } private int argumentsCase_ = 0; private java.lang.Object arguments_; public enum ArgumentsCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CREATE_ARGUMENTS(3), CREATE_ARGUMENTS_BLOB(5), ARGUMENTS_NOT_SET(0); private final int value; private ArgumentsCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ArgumentsCase valueOf(int value) { return forNumber(value); } public static ArgumentsCase forNumber(int value) { switch (value) { case 3: return CREATE_ARGUMENTS; case 5: return CREATE_ARGUMENTS_BLOB; case 0: return ARGUMENTS_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ArgumentsCase getArgumentsCase() { return ArgumentsCase.forNumber( argumentsCase_); } public static final int TEMPLATE_ID_FIELD_NUMBER = 1; private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_; /** *
     * The template id of the contract.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ @java.lang.Override public boolean hasTemplateId() { return templateId_ != null; } /** *
     * The template id of the contract.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } /** *
     * The template id of the contract.
     * Required
     * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() { return getTemplateId(); } public static final int CONTRACT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object contractId_; /** *
     * The contract id
     * Required
     * 
* * string contract_id = 2; * @return The contractId. */ @java.lang.Override public java.lang.String getContractId() { java.lang.Object ref = contractId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contractId_ = s; return s; } } /** *
     * The contract id
     * Required
     * 
* * string contract_id = 2; * @return The bytes for contractId. */ @java.lang.Override public com.google.protobuf.ByteString getContractIdBytes() { java.lang.Object ref = contractId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contractId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATE_ARGUMENTS_FIELD_NUMBER = 3; /** *
     * The contract arguments as typed Record
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; * @return Whether the createArguments field is set. */ @java.lang.Override public boolean hasCreateArguments() { return argumentsCase_ == 3; } /** *
     * The contract arguments as typed Record
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; * @return The createArguments. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments() { if (argumentsCase_ == 3) { return (com.daml.ledger.api.v1.ValueOuterClass.Record) arguments_; } return com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance(); } /** *
     * The contract arguments as typed Record
     * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder() { if (argumentsCase_ == 3) { return (com.daml.ledger.api.v1.ValueOuterClass.Record) arguments_; } return com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance(); } public static final int CREATE_ARGUMENTS_BLOB_FIELD_NUMBER = 5; /** *
     * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
     * of a ``com.daml.ledger.api.v1.CreatedEvent``.
     * 
* * .google.protobuf.Any create_arguments_blob = 5; * @return Whether the createArgumentsBlob field is set. */ @java.lang.Override public boolean hasCreateArgumentsBlob() { return argumentsCase_ == 5; } /** *
     * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
     * of a ``com.daml.ledger.api.v1.CreatedEvent``.
     * 
* * .google.protobuf.Any create_arguments_blob = 5; * @return The createArgumentsBlob. */ @java.lang.Override public com.google.protobuf.Any getCreateArgumentsBlob() { if (argumentsCase_ == 5) { return (com.google.protobuf.Any) arguments_; } return com.google.protobuf.Any.getDefaultInstance(); } /** *
     * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
     * of a ``com.daml.ledger.api.v1.CreatedEvent``.
     * 
* * .google.protobuf.Any create_arguments_blob = 5; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getCreateArgumentsBlobOrBuilder() { if (argumentsCase_ == 5) { return (com.google.protobuf.Any) arguments_; } return com.google.protobuf.Any.getDefaultInstance(); } public static final int METADATA_FIELD_NUMBER = 4; private com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata metadata_; /** *
     * The contract metadata from the create event.
     * Required
     * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return metadata_ != null; } /** *
     * The contract metadata from the create event.
     * Required
     * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; * @return The metadata. */ @java.lang.Override public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata getMetadata() { return metadata_ == null ? com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.getDefaultInstance() : metadata_; } /** *
     * The contract metadata from the create event.
     * Required
     * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; */ @java.lang.Override public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder getMetadataOrBuilder() { return getMetadata(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (templateId_ != null) { output.writeMessage(1, getTemplateId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractId_); } if (argumentsCase_ == 3) { output.writeMessage(3, (com.daml.ledger.api.v1.ValueOuterClass.Record) arguments_); } if (metadata_ != null) { output.writeMessage(4, getMetadata()); } if (argumentsCase_ == 5) { output.writeMessage(5, (com.google.protobuf.Any) arguments_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (templateId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplateId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractId_); } if (argumentsCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.ledger.api.v1.ValueOuterClass.Record) arguments_); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMetadata()); } if (argumentsCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.google.protobuf.Any) arguments_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract)) { return super.equals(obj); } com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract other = (com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract) obj; if (hasTemplateId() != other.hasTemplateId()) return false; if (hasTemplateId()) { if (!getTemplateId() .equals(other.getTemplateId())) return false; } if (!getContractId() .equals(other.getContractId())) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata() .equals(other.getMetadata())) return false; } if (!getArgumentsCase().equals(other.getArgumentsCase())) return false; switch (argumentsCase_) { case 3: if (!getCreateArguments() .equals(other.getCreateArguments())) return false; break; case 5: if (!getCreateArgumentsBlob() .equals(other.getCreateArgumentsBlob())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTemplateId()) { hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER; hash = (53 * hash) + getTemplateId().hashCode(); } hash = (37 * hash) + CONTRACT_ID_FIELD_NUMBER; hash = (53 * hash) + getContractId().hashCode(); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } switch (argumentsCase_) { case 3: hash = (37 * hash) + CREATE_ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getCreateArguments().hashCode(); break; case 5: hash = (37 * hash) + CREATE_ARGUMENTS_BLOB_FIELD_NUMBER; hash = (53 * hash) + getCreateArgumentsBlob().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * An additional contract that is used to resolve
     * contract & contract key lookups.
     * 
* * Protobuf type {@code com.daml.ledger.api.v1.DisclosedContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.DisclosedContract) com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_DisclosedContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_DisclosedContract_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.class, com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.Builder.class); } // Construct using com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (templateIdBuilder_ == null) { templateId_ = null; } else { templateId_ = null; templateIdBuilder_ = null; } contractId_ = ""; if (createArgumentsBuilder_ != null) { createArgumentsBuilder_.clear(); } if (createArgumentsBlobBuilder_ != null) { createArgumentsBlobBuilder_.clear(); } if (metadataBuilder_ == null) { metadata_ = null; } else { metadata_ = null; metadataBuilder_ = null; } argumentsCase_ = 0; arguments_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.ledger.api.v1.CommandsOuterClass.internal_static_com_daml_ledger_api_v1_DisclosedContract_descriptor; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract getDefaultInstanceForType() { return com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.getDefaultInstance(); } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract build() { com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract buildPartial() { com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract result = new com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract(this); if (templateIdBuilder_ == null) { result.templateId_ = templateId_; } else { result.templateId_ = templateIdBuilder_.build(); } result.contractId_ = contractId_; if (argumentsCase_ == 3) { if (createArgumentsBuilder_ == null) { result.arguments_ = arguments_; } else { result.arguments_ = createArgumentsBuilder_.build(); } } if (argumentsCase_ == 5) { if (createArgumentsBlobBuilder_ == null) { result.arguments_ = arguments_; } else { result.arguments_ = createArgumentsBlobBuilder_.build(); } } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } result.argumentsCase_ = argumentsCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract) { return mergeFrom((com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract other) { if (other == com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract.getDefaultInstance()) return this; if (other.hasTemplateId()) { mergeTemplateId(other.getTemplateId()); } if (!other.getContractId().isEmpty()) { contractId_ = other.contractId_; onChanged(); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } switch (other.getArgumentsCase()) { case CREATE_ARGUMENTS: { mergeCreateArguments(other.getCreateArguments()); break; } case CREATE_ARGUMENTS_BLOB: { mergeCreateArgumentsBlob(other.getCreateArgumentsBlob()); break; } case ARGUMENTS_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateIdFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { contractId_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { input.readMessage( getCreateArgumentsFieldBuilder().getBuilder(), extensionRegistry); argumentsCase_ = 3; break; } // case 26 case 34: { input.readMessage( getMetadataFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 case 42: { input.readMessage( getCreateArgumentsBlobFieldBuilder().getBuilder(), extensionRegistry); argumentsCase_ = 5; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int argumentsCase_ = 0; private java.lang.Object arguments_; public ArgumentsCase getArgumentsCase() { return ArgumentsCase.forNumber( argumentsCase_); } public Builder clearArguments() { argumentsCase_ = 0; arguments_ = null; onChanged(); return this; } private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> templateIdBuilder_; /** *
       * The template id of the contract.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return Whether the templateId field is set. */ public boolean hasTemplateId() { return templateIdBuilder_ != null || templateId_ != null; } /** *
       * The template id of the contract.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; * @return The templateId. */ public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() { if (templateIdBuilder_ == null) { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } else { return templateIdBuilder_.getMessage(); } } /** *
       * The template id of the contract.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder setTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) { if (templateIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateId_ = value; onChanged(); } else { templateIdBuilder_.setMessage(value); } return this; } /** *
       * The template id of the contract.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder setTemplateId( com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder builderForValue) { if (templateIdBuilder_ == null) { templateId_ = builderForValue.build(); onChanged(); } else { templateIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The template id of the contract.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder mergeTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) { if (templateIdBuilder_ == null) { if (templateId_ != null) { templateId_ = com.daml.ledger.api.v1.ValueOuterClass.Identifier.newBuilder(templateId_).mergeFrom(value).buildPartial(); } else { templateId_ = value; } onChanged(); } else { templateIdBuilder_.mergeFrom(value); } return this; } /** *
       * The template id of the contract.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public Builder clearTemplateId() { if (templateIdBuilder_ == null) { templateId_ = null; onChanged(); } else { templateId_ = null; templateIdBuilder_ = null; } return this; } /** *
       * The template id of the contract.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() { onChanged(); return getTemplateIdFieldBuilder().getBuilder(); } /** *
       * The template id of the contract.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() { if (templateIdBuilder_ != null) { return templateIdBuilder_.getMessageOrBuilder(); } else { return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_; } } /** *
       * The template id of the contract.
       * Required
       * 
* * .com.daml.ledger.api.v1.Identifier template_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> getTemplateIdFieldBuilder() { if (templateIdBuilder_ == null) { templateIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>( getTemplateId(), getParentForChildren(), isClean()); templateId_ = null; } return templateIdBuilder_; } private java.lang.Object contractId_ = ""; /** *
       * The contract id
       * Required
       * 
* * string contract_id = 2; * @return The contractId. */ public java.lang.String getContractId() { java.lang.Object ref = contractId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contractId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The contract id
       * Required
       * 
* * string contract_id = 2; * @return The bytes for contractId. */ public com.google.protobuf.ByteString getContractIdBytes() { java.lang.Object ref = contractId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contractId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The contract id
       * Required
       * 
* * string contract_id = 2; * @param value The contractId to set. * @return This builder for chaining. */ public Builder setContractId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contractId_ = value; onChanged(); return this; } /** *
       * The contract id
       * Required
       * 
* * string contract_id = 2; * @return This builder for chaining. */ public Builder clearContractId() { contractId_ = getDefaultInstance().getContractId(); onChanged(); return this; } /** *
       * The contract id
       * Required
       * 
* * string contract_id = 2; * @param value The bytes for contractId to set. * @return This builder for chaining. */ public Builder setContractIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contractId_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder> createArgumentsBuilder_; /** *
       * The contract arguments as typed Record
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; * @return Whether the createArguments field is set. */ @java.lang.Override public boolean hasCreateArguments() { return argumentsCase_ == 3; } /** *
       * The contract arguments as typed Record
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; * @return The createArguments. */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments() { if (createArgumentsBuilder_ == null) { if (argumentsCase_ == 3) { return (com.daml.ledger.api.v1.ValueOuterClass.Record) arguments_; } return com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance(); } else { if (argumentsCase_ == 3) { return createArgumentsBuilder_.getMessage(); } return com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance(); } } /** *
       * The contract arguments as typed Record
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; */ public Builder setCreateArguments(com.daml.ledger.api.v1.ValueOuterClass.Record value) { if (createArgumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arguments_ = value; onChanged(); } else { createArgumentsBuilder_.setMessage(value); } argumentsCase_ = 3; return this; } /** *
       * The contract arguments as typed Record
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; */ public Builder setCreateArguments( com.daml.ledger.api.v1.ValueOuterClass.Record.Builder builderForValue) { if (createArgumentsBuilder_ == null) { arguments_ = builderForValue.build(); onChanged(); } else { createArgumentsBuilder_.setMessage(builderForValue.build()); } argumentsCase_ = 3; return this; } /** *
       * The contract arguments as typed Record
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; */ public Builder mergeCreateArguments(com.daml.ledger.api.v1.ValueOuterClass.Record value) { if (createArgumentsBuilder_ == null) { if (argumentsCase_ == 3 && arguments_ != com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance()) { arguments_ = com.daml.ledger.api.v1.ValueOuterClass.Record.newBuilder((com.daml.ledger.api.v1.ValueOuterClass.Record) arguments_) .mergeFrom(value).buildPartial(); } else { arguments_ = value; } onChanged(); } else { if (argumentsCase_ == 3) { createArgumentsBuilder_.mergeFrom(value); } createArgumentsBuilder_.setMessage(value); } argumentsCase_ = 3; return this; } /** *
       * The contract arguments as typed Record
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; */ public Builder clearCreateArguments() { if (createArgumentsBuilder_ == null) { if (argumentsCase_ == 3) { argumentsCase_ = 0; arguments_ = null; onChanged(); } } else { if (argumentsCase_ == 3) { argumentsCase_ = 0; arguments_ = null; } createArgumentsBuilder_.clear(); } return this; } /** *
       * The contract arguments as typed Record
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; */ public com.daml.ledger.api.v1.ValueOuterClass.Record.Builder getCreateArgumentsBuilder() { return getCreateArgumentsFieldBuilder().getBuilder(); } /** *
       * The contract arguments as typed Record
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; */ @java.lang.Override public com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder() { if ((argumentsCase_ == 3) && (createArgumentsBuilder_ != null)) { return createArgumentsBuilder_.getMessageOrBuilder(); } else { if (argumentsCase_ == 3) { return (com.daml.ledger.api.v1.ValueOuterClass.Record) arguments_; } return com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance(); } } /** *
       * The contract arguments as typed Record
       * 
* * .com.daml.ledger.api.v1.Record create_arguments = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder> getCreateArgumentsFieldBuilder() { if (createArgumentsBuilder_ == null) { if (!(argumentsCase_ == 3)) { arguments_ = com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance(); } createArgumentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder>( (com.daml.ledger.api.v1.ValueOuterClass.Record) arguments_, getParentForChildren(), isClean()); arguments_ = null; } argumentsCase_ = 3; onChanged();; return createArgumentsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> createArgumentsBlobBuilder_; /** *
       * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
       * of a ``com.daml.ledger.api.v1.CreatedEvent``.
       * 
* * .google.protobuf.Any create_arguments_blob = 5; * @return Whether the createArgumentsBlob field is set. */ @java.lang.Override public boolean hasCreateArgumentsBlob() { return argumentsCase_ == 5; } /** *
       * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
       * of a ``com.daml.ledger.api.v1.CreatedEvent``.
       * 
* * .google.protobuf.Any create_arguments_blob = 5; * @return The createArgumentsBlob. */ @java.lang.Override public com.google.protobuf.Any getCreateArgumentsBlob() { if (createArgumentsBlobBuilder_ == null) { if (argumentsCase_ == 5) { return (com.google.protobuf.Any) arguments_; } return com.google.protobuf.Any.getDefaultInstance(); } else { if (argumentsCase_ == 5) { return createArgumentsBlobBuilder_.getMessage(); } return com.google.protobuf.Any.getDefaultInstance(); } } /** *
       * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
       * of a ``com.daml.ledger.api.v1.CreatedEvent``.
       * 
* * .google.protobuf.Any create_arguments_blob = 5; */ public Builder setCreateArgumentsBlob(com.google.protobuf.Any value) { if (createArgumentsBlobBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arguments_ = value; onChanged(); } else { createArgumentsBlobBuilder_.setMessage(value); } argumentsCase_ = 5; return this; } /** *
       * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
       * of a ``com.daml.ledger.api.v1.CreatedEvent``.
       * 
* * .google.protobuf.Any create_arguments_blob = 5; */ public Builder setCreateArgumentsBlob( com.google.protobuf.Any.Builder builderForValue) { if (createArgumentsBlobBuilder_ == null) { arguments_ = builderForValue.build(); onChanged(); } else { createArgumentsBlobBuilder_.setMessage(builderForValue.build()); } argumentsCase_ = 5; return this; } /** *
       * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
       * of a ``com.daml.ledger.api.v1.CreatedEvent``.
       * 
* * .google.protobuf.Any create_arguments_blob = 5; */ public Builder mergeCreateArgumentsBlob(com.google.protobuf.Any value) { if (createArgumentsBlobBuilder_ == null) { if (argumentsCase_ == 5 && arguments_ != com.google.protobuf.Any.getDefaultInstance()) { arguments_ = com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) arguments_) .mergeFrom(value).buildPartial(); } else { arguments_ = value; } onChanged(); } else { if (argumentsCase_ == 5) { createArgumentsBlobBuilder_.mergeFrom(value); } createArgumentsBlobBuilder_.setMessage(value); } argumentsCase_ = 5; return this; } /** *
       * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
       * of a ``com.daml.ledger.api.v1.CreatedEvent``.
       * 
* * .google.protobuf.Any create_arguments_blob = 5; */ public Builder clearCreateArgumentsBlob() { if (createArgumentsBlobBuilder_ == null) { if (argumentsCase_ == 5) { argumentsCase_ = 0; arguments_ = null; onChanged(); } } else { if (argumentsCase_ == 5) { argumentsCase_ = 0; arguments_ = null; } createArgumentsBlobBuilder_.clear(); } return this; } /** *
       * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
       * of a ``com.daml.ledger.api.v1.CreatedEvent``.
       * 
* * .google.protobuf.Any create_arguments_blob = 5; */ public com.google.protobuf.Any.Builder getCreateArgumentsBlobBuilder() { return getCreateArgumentsBlobFieldBuilder().getBuilder(); } /** *
       * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
       * of a ``com.daml.ledger.api.v1.CreatedEvent``.
       * 
* * .google.protobuf.Any create_arguments_blob = 5; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getCreateArgumentsBlobOrBuilder() { if ((argumentsCase_ == 5) && (createArgumentsBlobBuilder_ != null)) { return createArgumentsBlobBuilder_.getMessageOrBuilder(); } else { if (argumentsCase_ == 5) { return (com.google.protobuf.Any) arguments_; } return com.google.protobuf.Any.getDefaultInstance(); } } /** *
       * The contract arguments specified using an opaque blob extracted from the ``create_arguments_blob`` field
       * of a ``com.daml.ledger.api.v1.CreatedEvent``.
       * 
* * .google.protobuf.Any create_arguments_blob = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getCreateArgumentsBlobFieldBuilder() { if (createArgumentsBlobBuilder_ == null) { if (!(argumentsCase_ == 5)) { arguments_ = com.google.protobuf.Any.getDefaultInstance(); } createArgumentsBlobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( (com.google.protobuf.Any) arguments_, getParentForChildren(), isClean()); arguments_ = null; } argumentsCase_ = 5; onChanged();; return createArgumentsBlobBuilder_; } private com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder> metadataBuilder_; /** *
       * The contract metadata from the create event.
       * Required
       * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** *
       * The contract metadata from the create event.
       * Required
       * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; * @return The metadata. */ public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** *
       * The contract metadata from the create event.
       * Required
       * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; */ public Builder setMetadata(com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } return this; } /** *
       * The contract metadata from the create event.
       * Required
       * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; */ public Builder setMetadata( com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The contract metadata from the create event.
       * Required
       * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; */ public Builder mergeMetadata(com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } return this; } /** *
       * The contract metadata from the create event.
       * Required
       * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadata_ = null; metadataBuilder_ = null; } return this; } /** *
       * The contract metadata from the create event.
       * Required
       * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; */ public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** *
       * The contract metadata from the create event.
       * Required
       * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; */ public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.getDefaultInstance() : metadata_; } } /** *
       * The contract metadata from the create event.
       * Required
       * 
* * .com.daml.ledger.api.v1.ContractMetadata metadata = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.DisclosedContract) } // @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.DisclosedContract) private static final com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract(); } public static com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DisclosedContract parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_ledger_api_v1_Commands_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_ledger_api_v1_Commands_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_ledger_api_v1_Command_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_ledger_api_v1_Command_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_ledger_api_v1_CreateCommand_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_ledger_api_v1_CreateCommand_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_ledger_api_v1_ExerciseCommand_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_ledger_api_v1_ExerciseCommand_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_ledger_api_v1_ExerciseByKeyCommand_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_ledger_api_v1_ExerciseByKeyCommand_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_ledger_api_v1_CreateAndExerciseCommand_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_ledger_api_v1_CreateAndExerciseCommand_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_ledger_api_v1_DisclosedContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_ledger_api_v1_DisclosedContract_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n%com/daml/ledger/api/v1/commands.proto\022" + "\026com.daml.ledger.api.v1\032.com/daml/ledger" + "/api/v1/contract_metadata.proto\032\"com/dam" + "l/ledger/api/v1/value.proto\032\031google/prot" + "obuf/any.proto\032\037google/protobuf/timestam" + "p.proto\032\036google/protobuf/duration.proto\"" + "\317\004\n\010Commands\022\021\n\tledger_id\030\001 \001(\t\022\023\n\013workf" + "low_id\030\002 \001(\t\022\026\n\016application_id\030\003 \001(\t\022\022\n\n" + "command_id\030\004 \001(\t\022\r\n\005party\030\005 \001(\t\0221\n\010comma" + "nds\030\010 \003(\0132\037.com.daml.ledger.api.v1.Comma" + "nd\022;\n\022deduplication_time\030\t \001(\0132\031.google." + "protobuf.DurationB\002\030\001H\000\022;\n\026deduplication" + "_duration\030\017 \001(\0132\031.google.protobuf.Durati" + "onH\000\022\036\n\024deduplication_offset\030\020 \001(\tH\000\0227\n\023" + "min_ledger_time_abs\030\n \001(\0132\032.google.proto" + "buf.Timestamp\0226\n\023min_ledger_time_rel\030\013 \001" + "(\0132\031.google.protobuf.Duration\022\016\n\006act_as\030" + "\014 \003(\t\022\017\n\007read_as\030\r \003(\t\022\025\n\rsubmission_id\030" + "\016 \001(\t\022F\n\023disclosed_contracts\030\021 \003(\0132).com" + ".daml.ledger.api.v1.DisclosedContractB\026\n" + "\024deduplication_periodJ\004\010\006\020\007J\004\010\007\020\010\"\240\002\n\007Co" + "mmand\0227\n\006create\030\001 \001(\0132%.com.daml.ledger." + "api.v1.CreateCommandH\000\022;\n\010exercise\030\002 \001(\013" + "2\'.com.daml.ledger.api.v1.ExerciseComman" + "dH\000\022E\n\rexerciseByKey\030\004 \001(\0132,.com.daml.le" + "dger.api.v1.ExerciseByKeyCommandH\000\022M\n\021cr" + "eateAndExercise\030\003 \001(\01320.com.daml.ledger." + "api.v1.CreateAndExerciseCommandH\000B\t\n\007com" + "mand\"\202\001\n\rCreateCommand\0227\n\013template_id\030\001 " + "\001(\0132\".com.daml.ledger.api.v1.Identifier\022" + "8\n\020create_arguments\030\002 \001(\0132\036.com.daml.led" + "ger.api.v1.Record\"\247\001\n\017ExerciseCommand\0227\n" + "\013template_id\030\001 \001(\0132\".com.daml.ledger.api" + ".v1.Identifier\022\023\n\013contract_id\030\002 \001(\t\022\016\n\006c" + "hoice\030\003 \001(\t\0226\n\017choice_argument\030\004 \001(\0132\035.c" + "om.daml.ledger.api.v1.Value\"\314\001\n\024Exercise" + "ByKeyCommand\0227\n\013template_id\030\001 \001(\0132\".com." + "daml.ledger.api.v1.Identifier\0223\n\014contrac" + "t_key\030\002 \001(\0132\035.com.daml.ledger.api.v1.Val" + "ue\022\016\n\006choice\030\003 \001(\t\0226\n\017choice_argument\030\004 " + "\001(\0132\035.com.daml.ledger.api.v1.Value\"\325\001\n\030C" + "reateAndExerciseCommand\0227\n\013template_id\030\001" + " \001(\0132\".com.daml.ledger.api.v1.Identifier" + "\0228\n\020create_arguments\030\002 \001(\0132\036.com.daml.le" + "dger.api.v1.Record\022\016\n\006choice\030\003 \001(\t\0226\n\017ch" + "oice_argument\030\004 \001(\0132\035.com.daml.ledger.ap" + "i.v1.Value\"\235\002\n\021DisclosedContract\0227\n\013temp" + "late_id\030\001 \001(\0132\".com.daml.ledger.api.v1.I" + "dentifier\022\023\n\013contract_id\030\002 \001(\t\022:\n\020create" + "_arguments\030\003 \001(\0132\036.com.daml.ledger.api.v" + "1.RecordH\000\0225\n\025create_arguments_blob\030\005 \001(" + "\0132\024.google.protobuf.AnyH\000\022:\n\010metadata\030\004 " + "\001(\0132(.com.daml.ledger.api.v1.ContractMet" + "adataB\013\n\targumentsBE\n\026com.daml.ledger.ap" + "i.v1B\022CommandsOuterClass\252\002\026Com.Daml.Ledg" + "er.Api.V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.daml.ledger.api.v1.ContractMetadataOuterClass.getDescriptor(), com.daml.ledger.api.v1.ValueOuterClass.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), }); internal_static_com_daml_ledger_api_v1_Commands_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_daml_ledger_api_v1_Commands_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_ledger_api_v1_Commands_descriptor, new java.lang.String[] { "LedgerId", "WorkflowId", "ApplicationId", "CommandId", "Party", "Commands", "DeduplicationTime", "DeduplicationDuration", "DeduplicationOffset", "MinLedgerTimeAbs", "MinLedgerTimeRel", "ActAs", "ReadAs", "SubmissionId", "DisclosedContracts", "DeduplicationPeriod", }); internal_static_com_daml_ledger_api_v1_Command_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_daml_ledger_api_v1_Command_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_ledger_api_v1_Command_descriptor, new java.lang.String[] { "Create", "Exercise", "ExerciseByKey", "CreateAndExercise", "Command", }); internal_static_com_daml_ledger_api_v1_CreateCommand_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_daml_ledger_api_v1_CreateCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_ledger_api_v1_CreateCommand_descriptor, new java.lang.String[] { "TemplateId", "CreateArguments", }); internal_static_com_daml_ledger_api_v1_ExerciseCommand_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_daml_ledger_api_v1_ExerciseCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_ledger_api_v1_ExerciseCommand_descriptor, new java.lang.String[] { "TemplateId", "ContractId", "Choice", "ChoiceArgument", }); internal_static_com_daml_ledger_api_v1_ExerciseByKeyCommand_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_daml_ledger_api_v1_ExerciseByKeyCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_ledger_api_v1_ExerciseByKeyCommand_descriptor, new java.lang.String[] { "TemplateId", "ContractKey", "Choice", "ChoiceArgument", }); internal_static_com_daml_ledger_api_v1_CreateAndExerciseCommand_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_daml_ledger_api_v1_CreateAndExerciseCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_ledger_api_v1_CreateAndExerciseCommand_descriptor, new java.lang.String[] { "TemplateId", "CreateArguments", "Choice", "ChoiceArgument", }); internal_static_com_daml_ledger_api_v1_DisclosedContract_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_daml_ledger_api_v1_DisclosedContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_ledger_api_v1_DisclosedContract_descriptor, new java.lang.String[] { "TemplateId", "ContractId", "CreateArguments", "CreateArgumentsBlob", "Metadata", "Arguments", }); com.daml.ledger.api.v1.ContractMetadataOuterClass.getDescriptor(); com.daml.ledger.api.v1.ValueOuterClass.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy