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

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

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

package com.daml.ledger.api.v2;

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.v2.Commands)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * 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 = 1 [json_name = "workflowId"]; * @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 = 1 [json_name = "workflowId"]; * @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 = 2 [json_name = "applicationId"]; * @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 = 2 [json_name = "applicationId"]; * @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 = 3 [json_name = "commandId"]; * @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 = 3 [json_name = "commandId"]; * @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 = 4 [json_name = "party"]; * @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 = 4 [json_name = "party"]; * @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 = 5 [json_name = "commands"]; */ java.util.List getCommandsList(); /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ int getCommandsCount(); /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 5 [json_name = "commands"]; */ java.util.List getCommandsOrBuilderList(); /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 5 [json_name = "commands"]; */ com.daml.ledger.api.v1.CommandsOuterClass.CommandOrBuilder getCommandsOrBuilder( int index); /** *
     * 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 = 6 [json_name = "deduplicationDuration"]; * @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 = 6 [json_name = "deduplicationDuration"]; * @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 = 6 [json_name = "deduplicationDuration"]; */ 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 ``participant_offset.proto``).
     * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @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 ``participant_offset.proto``).
     * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @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 ``participant_offset.proto``).
     * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @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 = 8 [json_name = "minLedgerTimeAbs"]; * @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 = 8 [json_name = "minLedgerTimeAbs"]; * @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 = 8 [json_name = "minLedgerTimeAbs"]; */ 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 = 9 [json_name = "minLedgerTimeRel"]; * @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 = 9 [json_name = "minLedgerTimeRel"]; * @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 = 9 [json_name = "minLedgerTimeRel"]; */ 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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 12 [json_name = "submissionId"]; * @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 = 12 [json_name = "submissionId"]; * @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 = 13 [json_name = "disclosedContracts"]; */ java.util.List getDisclosedContractsList(); /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ int getDisclosedContractsCount(); /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 13 [json_name = "disclosedContracts"]; */ java.util.List getDisclosedContractsOrBuilderList(); /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 13 [json_name = "disclosedContracts"]; */ com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContractOrBuilder getDisclosedContractsOrBuilder( int index); /** *
     * Must be a valid domain ID
     * Required
     * 
* * string domain_id = 14 [json_name = "domainId"]; * @return The domainId. */ java.lang.String getDomainId(); /** *
     * Must be a valid domain ID
     * Required
     * 
* * string domain_id = 14 [json_name = "domainId"]; * @return The bytes for domainId. */ com.google.protobuf.ByteString getDomainIdBytes(); public com.daml.ledger.api.v2.CommandsOuterClass.Commands.DeduplicationPeriodCase getDeduplicationPeriodCase(); } /** *
   * A composite command that groups multiple commands together.
   * 
* * Protobuf type {@code com.daml.ledger.api.v2.Commands} */ public static final class Commands extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.ledger.api.v2.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() { 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(); domainId_ = ""; } @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.v2.CommandsOuterClass.internal_static_com_daml_ledger_api_v2_Commands_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v2.CommandsOuterClass.internal_static_com_daml_ledger_api_v2_Commands_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v2.CommandsOuterClass.Commands.class, com.daml.ledger.api.v2.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 { DEDUPLICATION_DURATION(6), DEDUPLICATION_OFFSET(7), 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 6: return DEDUPLICATION_DURATION; case 7: 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 WORKFLOW_ID_FIELD_NUMBER = 1; 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 = 1 [json_name = "workflowId"]; * @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 = 1 [json_name = "workflowId"]; * @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 = 2; 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 = 2 [json_name = "applicationId"]; * @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 = 2 [json_name = "applicationId"]; * @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 = 3; 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 = 3 [json_name = "commandId"]; * @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 = 3 [json_name = "commandId"]; * @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 = 4; 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 = 4 [json_name = "party"]; * @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 = 4 [json_name = "party"]; * @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 = 5; private java.util.List commands_; /** *
     * Individual elements of this atomic command. Must be non-empty.
     * Required
     * 
* * repeated .com.daml.ledger.api.v1.Command commands = 5 [json_name = "commands"]; */ @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 = 5 [json_name = "commands"]; */ @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 = 5 [json_name = "commands"]; */ @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 = 5 [json_name = "commands"]; */ @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 = 5 [json_name = "commands"]; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.CommandOrBuilder getCommandsOrBuilder( int index) { return commands_.get(index); } public static final int DEDUPLICATION_DURATION_FIELD_NUMBER = 6; /** *
     * 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 = 6 [json_name = "deduplicationDuration"]; * @return Whether the deduplicationDuration field is set. */ @java.lang.Override public boolean hasDeduplicationDuration() { return deduplicationPeriodCase_ == 6; } /** *
     * 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 = 6 [json_name = "deduplicationDuration"]; * @return The deduplicationDuration. */ @java.lang.Override public com.google.protobuf.Duration getDeduplicationDuration() { if (deduplicationPeriodCase_ == 6) { 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 = 6 [json_name = "deduplicationDuration"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDeduplicationDurationOrBuilder() { if (deduplicationPeriodCase_ == 6) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } public static final int DEDUPLICATION_OFFSET_FIELD_NUMBER = 7; /** *
     * Specifies the start of the deduplication period by a completion stream offset (exclusive).
     * Must be a valid LedgerString (as described in ``participant_offset.proto``).
     * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @return Whether the deduplicationOffset field is set. */ public boolean hasDeduplicationOffset() { return deduplicationPeriodCase_ == 7; } /** *
     * Specifies the start of the deduplication period by a completion stream offset (exclusive).
     * Must be a valid LedgerString (as described in ``participant_offset.proto``).
     * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @return The deduplicationOffset. */ public java.lang.String getDeduplicationOffset() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 7) { 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_ == 7) { 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 ``participant_offset.proto``).
     * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @return The bytes for deduplicationOffset. */ public com.google.protobuf.ByteString getDeduplicationOffsetBytes() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 7) { ref = deduplicationPeriod_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (deduplicationPeriodCase_ == 7) { deduplicationPeriod_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MIN_LEDGER_TIME_ABS_FIELD_NUMBER = 8; 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 = 8 [json_name = "minLedgerTimeAbs"]; * @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 = 8 [json_name = "minLedgerTimeAbs"]; * @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 = 8 [json_name = "minLedgerTimeAbs"]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMinLedgerTimeAbsOrBuilder() { return getMinLedgerTimeAbs(); } public static final int MIN_LEDGER_TIME_REL_FIELD_NUMBER = 9; 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 = 9 [json_name = "minLedgerTimeRel"]; * @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 = 9 [json_name = "minLedgerTimeRel"]; * @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 = 9 [json_name = "minLedgerTimeRel"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinLedgerTimeRelOrBuilder() { return getMinLedgerTimeRel(); } public static final int ACT_AS_FIELD_NUMBER = 10; 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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 11; 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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 12; 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 = 12 [json_name = "submissionId"]; * @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 = 12 [json_name = "submissionId"]; * @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 = 13; private java.util.List disclosedContracts_; /** *
     * Additional contracts used to resolve contract & contract key lookups.
     * Optional
     * 
* * repeated .com.daml.ledger.api.v1.DisclosedContract disclosed_contracts = 13 [json_name = "disclosedContracts"]; */ @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 = 13 [json_name = "disclosedContracts"]; */ @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 = 13 [json_name = "disclosedContracts"]; */ @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 = 13 [json_name = "disclosedContracts"]; */ @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 = 13 [json_name = "disclosedContracts"]; */ @java.lang.Override public com.daml.ledger.api.v1.CommandsOuterClass.DisclosedContractOrBuilder getDisclosedContractsOrBuilder( int index) { return disclosedContracts_.get(index); } public static final int DOMAIN_ID_FIELD_NUMBER = 14; private volatile java.lang.Object domainId_; /** *
     * Must be a valid domain ID
     * Required
     * 
* * string domain_id = 14 [json_name = "domainId"]; * @return The domainId. */ @java.lang.Override public java.lang.String getDomainId() { java.lang.Object ref = domainId_; 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(); domainId_ = s; return s; } } /** *
     * Must be a valid domain ID
     * Required
     * 
* * string domain_id = 14 [json_name = "domainId"]; * @return The bytes for domainId. */ @java.lang.Override public com.google.protobuf.ByteString getDomainIdBytes() { java.lang.Object ref = domainId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domainId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(workflowId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workflowId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applicationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, commandId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(party_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, party_); } for (int i = 0; i < commands_.size(); i++) { output.writeMessage(5, commands_.get(i)); } if (deduplicationPeriodCase_ == 6) { output.writeMessage(6, (com.google.protobuf.Duration) deduplicationPeriod_); } if (deduplicationPeriodCase_ == 7) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deduplicationPeriod_); } if (minLedgerTimeAbs_ != null) { output.writeMessage(8, getMinLedgerTimeAbs()); } if (minLedgerTimeRel_ != null) { output.writeMessage(9, getMinLedgerTimeRel()); } for (int i = 0; i < actAs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, actAs_.getRaw(i)); } for (int i = 0; i < readAs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, readAs_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submissionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, submissionId_); } for (int i = 0; i < disclosedContracts_.size(); i++) { output.writeMessage(13, disclosedContracts_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, domainId_); } 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(workflowId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workflowId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applicationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, applicationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, commandId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(party_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, party_); } for (int i = 0; i < commands_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, commands_.get(i)); } if (deduplicationPeriodCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.google.protobuf.Duration) deduplicationPeriod_); } if (deduplicationPeriodCase_ == 7) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deduplicationPeriod_); } if (minLedgerTimeAbs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getMinLedgerTimeAbs()); } if (minLedgerTimeRel_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, 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(12, submissionId_); } for (int i = 0; i < disclosedContracts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, disclosedContracts_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, domainId_); } 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.v2.CommandsOuterClass.Commands)) { return super.equals(obj); } com.daml.ledger.api.v2.CommandsOuterClass.Commands other = (com.daml.ledger.api.v2.CommandsOuterClass.Commands) obj; 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 (!getDomainId() .equals(other.getDomainId())) return false; if (!getDeduplicationPeriodCase().equals(other.getDeduplicationPeriodCase())) return false; switch (deduplicationPeriodCase_) { case 6: if (!getDeduplicationDuration() .equals(other.getDeduplicationDuration())) return false; break; case 7: 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) + 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(); } hash = (37 * hash) + DOMAIN_ID_FIELD_NUMBER; hash = (53 * hash) + getDomainId().hashCode(); switch (deduplicationPeriodCase_) { case 6: hash = (37 * hash) + DEDUPLICATION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getDeduplicationDuration().hashCode(); break; case 7: 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.v2.CommandsOuterClass.Commands parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v2.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.v2.CommandsOuterClass.Commands parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v2.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.v2.CommandsOuterClass.Commands parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.Commands} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v2.Commands) com.daml.ledger.api.v2.CommandsOuterClass.CommandsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v2.CommandsOuterClass.internal_static_com_daml_ledger_api_v2_Commands_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v2.CommandsOuterClass.internal_static_com_daml_ledger_api_v2_Commands_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v2.CommandsOuterClass.Commands.class, com.daml.ledger.api.v2.CommandsOuterClass.Commands.Builder.class); } // Construct using com.daml.ledger.api.v2.CommandsOuterClass.Commands.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); workflowId_ = ""; applicationId_ = ""; commandId_ = ""; party_ = ""; if (commandsBuilder_ == null) { commands_ = java.util.Collections.emptyList(); } else { commands_ = null; commandsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); 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); domainId_ = ""; deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.ledger.api.v2.CommandsOuterClass.internal_static_com_daml_ledger_api_v2_Commands_descriptor; } @java.lang.Override public com.daml.ledger.api.v2.CommandsOuterClass.Commands getDefaultInstanceForType() { return com.daml.ledger.api.v2.CommandsOuterClass.Commands.getDefaultInstance(); } @java.lang.Override public com.daml.ledger.api.v2.CommandsOuterClass.Commands build() { com.daml.ledger.api.v2.CommandsOuterClass.Commands result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.ledger.api.v2.CommandsOuterClass.Commands buildPartial() { com.daml.ledger.api.v2.CommandsOuterClass.Commands result = new com.daml.ledger.api.v2.CommandsOuterClass.Commands(this); int from_bitField0_ = bitField0_; 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_ == 6) { if (deduplicationDurationBuilder_ == null) { result.deduplicationPeriod_ = deduplicationPeriod_; } else { result.deduplicationPeriod_ = deduplicationDurationBuilder_.build(); } } if (deduplicationPeriodCase_ == 7) { 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.domainId_ = domainId_; 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.v2.CommandsOuterClass.Commands) { return mergeFrom((com.daml.ledger.api.v2.CommandsOuterClass.Commands)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.ledger.api.v2.CommandsOuterClass.Commands other) { if (other == com.daml.ledger.api.v2.CommandsOuterClass.Commands.getDefaultInstance()) return this; 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_); } } } if (!other.getDomainId().isEmpty()) { domainId_ = other.domainId_; onChanged(); } switch (other.getDeduplicationPeriodCase()) { case DEDUPLICATION_DURATION: { mergeDeduplicationDuration(other.getDeduplicationDuration()); break; } case DEDUPLICATION_OFFSET: { deduplicationPeriodCase_ = 7; 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: { workflowId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { applicationId_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { commandId_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { party_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { 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 42 case 50: { input.readMessage( getDeduplicationDurationFieldBuilder().getBuilder(), extensionRegistry); deduplicationPeriodCase_ = 6; break; } // case 50 case 58: { java.lang.String s = input.readStringRequireUtf8(); deduplicationPeriodCase_ = 7; deduplicationPeriod_ = s; break; } // case 58 case 66: { input.readMessage( getMinLedgerTimeAbsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 66 case 74: { input.readMessage( getMinLedgerTimeRelFieldBuilder().getBuilder(), extensionRegistry); break; } // case 74 case 82: { java.lang.String s = input.readStringRequireUtf8(); ensureActAsIsMutable(); actAs_.add(s); break; } // case 82 case 90: { java.lang.String s = input.readStringRequireUtf8(); ensureReadAsIsMutable(); readAs_.add(s); break; } // case 90 case 98: { submissionId_ = input.readStringRequireUtf8(); break; } // case 98 case 106: { 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 106 case 114: { domainId_ = input.readStringRequireUtf8(); break; } // case 114 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 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 = 1 [json_name = "workflowId"]; * @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 = 1 [json_name = "workflowId"]; * @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 = 1 [json_name = "workflowId"]; * @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 = 1 [json_name = "workflowId"]; * @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 = 1 [json_name = "workflowId"]; * @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 = 2 [json_name = "applicationId"]; * @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 = 2 [json_name = "applicationId"]; * @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 = 2 [json_name = "applicationId"]; * @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 = 2 [json_name = "applicationId"]; * @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 = 2 [json_name = "applicationId"]; * @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 = 3 [json_name = "commandId"]; * @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 = 3 [json_name = "commandId"]; * @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 = 3 [json_name = "commandId"]; * @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 = 3 [json_name = "commandId"]; * @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 = 3 [json_name = "commandId"]; * @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 = 4 [json_name = "party"]; * @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 = 4 [json_name = "party"]; * @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 = 4 [json_name = "party"]; * @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 = 4 [json_name = "party"]; * @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 = 4 [json_name = "party"]; * @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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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 = 5 [json_name = "commands"]; */ 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> 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 = 6 [json_name = "deduplicationDuration"]; * @return Whether the deduplicationDuration field is set. */ @java.lang.Override public boolean hasDeduplicationDuration() { return deduplicationPeriodCase_ == 6; } /** *
       * 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 = 6 [json_name = "deduplicationDuration"]; * @return The deduplicationDuration. */ @java.lang.Override public com.google.protobuf.Duration getDeduplicationDuration() { if (deduplicationDurationBuilder_ == null) { if (deduplicationPeriodCase_ == 6) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } else { if (deduplicationPeriodCase_ == 6) { 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 = 6 [json_name = "deduplicationDuration"]; */ 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_ = 6; 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 = 6 [json_name = "deduplicationDuration"]; */ public Builder setDeduplicationDuration( com.google.protobuf.Duration.Builder builderForValue) { if (deduplicationDurationBuilder_ == null) { deduplicationPeriod_ = builderForValue.build(); onChanged(); } else { deduplicationDurationBuilder_.setMessage(builderForValue.build()); } deduplicationPeriodCase_ = 6; 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 = 6 [json_name = "deduplicationDuration"]; */ public Builder mergeDeduplicationDuration(com.google.protobuf.Duration value) { if (deduplicationDurationBuilder_ == null) { if (deduplicationPeriodCase_ == 6 && 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_ == 6) { deduplicationDurationBuilder_.mergeFrom(value); } deduplicationDurationBuilder_.setMessage(value); } deduplicationPeriodCase_ = 6; 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 = 6 [json_name = "deduplicationDuration"]; */ public Builder clearDeduplicationDuration() { if (deduplicationDurationBuilder_ == null) { if (deduplicationPeriodCase_ == 6) { deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; onChanged(); } } else { if (deduplicationPeriodCase_ == 6) { 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 = 6 [json_name = "deduplicationDuration"]; */ 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 = 6 [json_name = "deduplicationDuration"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDeduplicationDurationOrBuilder() { if ((deduplicationPeriodCase_ == 6) && (deduplicationDurationBuilder_ != null)) { return deduplicationDurationBuilder_.getMessageOrBuilder(); } else { if (deduplicationPeriodCase_ == 6) { 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 = 6 [json_name = "deduplicationDuration"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDeduplicationDurationFieldBuilder() { if (deduplicationDurationBuilder_ == null) { if (!(deduplicationPeriodCase_ == 6)) { 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_ = 6; onChanged();; return deduplicationDurationBuilder_; } /** *
       * Specifies the start of the deduplication period by a completion stream offset (exclusive).
       * Must be a valid LedgerString (as described in ``participant_offset.proto``).
       * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @return Whether the deduplicationOffset field is set. */ @java.lang.Override public boolean hasDeduplicationOffset() { return deduplicationPeriodCase_ == 7; } /** *
       * Specifies the start of the deduplication period by a completion stream offset (exclusive).
       * Must be a valid LedgerString (as described in ``participant_offset.proto``).
       * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @return The deduplicationOffset. */ @java.lang.Override public java.lang.String getDeduplicationOffset() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 7) { 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_ == 7) { 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 ``participant_offset.proto``).
       * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @return The bytes for deduplicationOffset. */ @java.lang.Override public com.google.protobuf.ByteString getDeduplicationOffsetBytes() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 7) { ref = deduplicationPeriod_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (deduplicationPeriodCase_ == 7) { 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 ``participant_offset.proto``).
       * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @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_ = 7; 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 ``participant_offset.proto``).
       * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @return This builder for chaining. */ public Builder clearDeduplicationOffset() { if (deduplicationPeriodCase_ == 7) { 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 ``participant_offset.proto``).
       * 
* * string deduplication_offset = 7 [json_name = "deduplicationOffset"]; * @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_ = 7; 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 = 8 [json_name = "minLedgerTimeAbs"]; * @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 = 8 [json_name = "minLedgerTimeAbs"]; * @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 = 8 [json_name = "minLedgerTimeAbs"]; */ 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 = 8 [json_name = "minLedgerTimeAbs"]; */ 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 = 8 [json_name = "minLedgerTimeAbs"]; */ 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 = 8 [json_name = "minLedgerTimeAbs"]; */ 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 = 8 [json_name = "minLedgerTimeAbs"]; */ 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 = 8 [json_name = "minLedgerTimeAbs"]; */ 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 = 8 [json_name = "minLedgerTimeAbs"]; */ 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 = 9 [json_name = "minLedgerTimeRel"]; * @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 = 9 [json_name = "minLedgerTimeRel"]; * @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 = 9 [json_name = "minLedgerTimeRel"]; */ 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 = 9 [json_name = "minLedgerTimeRel"]; */ 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 = 9 [json_name = "minLedgerTimeRel"]; */ 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 = 9 [json_name = "minLedgerTimeRel"]; */ 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 = 9 [json_name = "minLedgerTimeRel"]; */ 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 = 9 [json_name = "minLedgerTimeRel"]; */ 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 = 9 [json_name = "minLedgerTimeRel"]; */ 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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 10 [json_name = "actAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 11 [json_name = "readAs"]; * @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 = 12 [json_name = "submissionId"]; * @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 = 12 [json_name = "submissionId"]; * @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 = 12 [json_name = "submissionId"]; * @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 = 12 [json_name = "submissionId"]; * @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 = 12 [json_name = "submissionId"]; * @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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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 = 13 [json_name = "disclosedContracts"]; */ 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_; } private java.lang.Object domainId_ = ""; /** *
       * Must be a valid domain ID
       * Required
       * 
* * string domain_id = 14 [json_name = "domainId"]; * @return The domainId. */ public java.lang.String getDomainId() { java.lang.Object ref = domainId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domainId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Must be a valid domain ID
       * Required
       * 
* * string domain_id = 14 [json_name = "domainId"]; * @return The bytes for domainId. */ public com.google.protobuf.ByteString getDomainIdBytes() { java.lang.Object ref = domainId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domainId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Must be a valid domain ID
       * Required
       * 
* * string domain_id = 14 [json_name = "domainId"]; * @param value The domainId to set. * @return This builder for chaining. */ public Builder setDomainId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } domainId_ = value; onChanged(); return this; } /** *
       * Must be a valid domain ID
       * Required
       * 
* * string domain_id = 14 [json_name = "domainId"]; * @return This builder for chaining. */ public Builder clearDomainId() { domainId_ = getDefaultInstance().getDomainId(); onChanged(); return this; } /** *
       * Must be a valid domain ID
       * Required
       * 
* * string domain_id = 14 [json_name = "domainId"]; * @param value The bytes for domainId to set. * @return This builder for chaining. */ public Builder setDomainIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); domainId_ = value; onChanged(); return this; } @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.v2.Commands) } // @@protoc_insertion_point(class_scope:com.daml.ledger.api.v2.Commands) private static final com.daml.ledger.api.v2.CommandsOuterClass.Commands DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.ledger.api.v2.CommandsOuterClass.Commands(); } public static com.daml.ledger.api.v2.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.v2.CommandsOuterClass.Commands getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_ledger_api_v2_Commands_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_ledger_api_v2_Commands_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/v2/commands.proto\022" + "\026com.daml.ledger.api.v2\032%com/daml/ledger" + "/api/v1/commands.proto\032\037google/protobuf/" + "timestamp.proto\032\036google/protobuf/duratio" + "n.proto\"\310\005\n\010Commands\022\037\n\013workflow_id\030\001 \001(" + "\tR\nworkflowId\022%\n\016application_id\030\002 \001(\tR\ra" + "pplicationId\022\035\n\ncommand_id\030\003 \001(\tR\tcomman" + "dId\022\024\n\005party\030\004 \001(\tR\005party\022;\n\010commands\030\005 " + "\003(\0132\037.com.daml.ledger.api.v1.CommandR\010co" + "mmands\022R\n\026deduplication_duration\030\006 \001(\0132\031" + ".google.protobuf.DurationH\000R\025deduplicati" + "onDuration\0223\n\024deduplication_offset\030\007 \001(\t" + "H\000R\023deduplicationOffset\022I\n\023min_ledger_ti" + "me_abs\030\010 \001(\0132\032.google.protobuf.Timestamp" + "R\020minLedgerTimeAbs\022H\n\023min_ledger_time_re" + "l\030\t \001(\0132\031.google.protobuf.DurationR\020minL" + "edgerTimeRel\022\025\n\006act_as\030\n \003(\tR\005actAs\022\027\n\007r" + "ead_as\030\013 \003(\tR\006readAs\022#\n\rsubmission_id\030\014 " + "\001(\tR\014submissionId\022Z\n\023disclosed_contracts" + "\030\r \003(\0132).com.daml.ledger.api.v1.Disclose" + "dContractR\022disclosedContracts\022\033\n\tdomain_" + "id\030\016 \001(\tR\010domainIdB\026\n\024deduplication_peri" + "odBE\n\026com.daml.ledger.api.v2B\022CommandsOu" + "terClass\252\002\026Com.Daml.Ledger.Api.V2b\006proto" + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.daml.ledger.api.v1.CommandsOuterClass.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), }); internal_static_com_daml_ledger_api_v2_Commands_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_daml_ledger_api_v2_Commands_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_ledger_api_v2_Commands_descriptor, new java.lang.String[] { "WorkflowId", "ApplicationId", "CommandId", "Party", "Commands", "DeduplicationDuration", "DeduplicationOffset", "MinLedgerTimeAbs", "MinLedgerTimeRel", "ActAs", "ReadAs", "SubmissionId", "DisclosedContracts", "DomainId", "DeduplicationPeriod", }); com.daml.ledger.api.v1.CommandsOuterClass.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy