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

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

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

package com.daml.ledger.api.v1;

public final class CompletionOuterClass {
  private CompletionOuterClass() {}
  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 CompletionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.Completion)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * The ID of the succeeded or failed command.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Required
     * 
* * string command_id = 1; * @return The commandId. */ java.lang.String getCommandId(); /** *
     * The ID of the succeeded or failed command.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Required
     * 
* * string command_id = 1; * @return The bytes for commandId. */ com.google.protobuf.ByteString getCommandIdBytes(); /** *
     * Identifies the exact type of the error.
     * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
     * Optional
     * 
* * .google.rpc.Status status = 2; * @return Whether the status field is set. */ boolean hasStatus(); /** *
     * Identifies the exact type of the error.
     * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
     * Optional
     * 
* * .google.rpc.Status status = 2; * @return The status. */ com.google.rpc.Status getStatus(); /** *
     * Identifies the exact type of the error.
     * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
     * Optional
     * 
* * .google.rpc.Status status = 2; */ com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** *
     * The transaction_id of the transaction that resulted from the command with command_id.
     * Only set for successfully executed commands.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string transaction_id = 3; * @return The transactionId. */ java.lang.String getTransactionId(); /** *
     * The transaction_id of the transaction that resulted from the command with command_id.
     * Only set for successfully executed commands.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string transaction_id = 3; * @return The bytes for transactionId. */ com.google.protobuf.ByteString getTransactionIdBytes(); /** *
     * The application-id or user-id that was used for the submission, as described in ``commands.proto``.
     * Must be a valid ApplicationIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * string application_id = 4; * @return The applicationId. */ java.lang.String getApplicationId(); /** *
     * The application-id or user-id that was used for the submission, as described in ``commands.proto``.
     * Must be a valid ApplicationIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * string application_id = 4; * @return The bytes for applicationId. */ com.google.protobuf.ByteString getApplicationIdBytes(); /** *
     * The set of parties on whose behalf the commands were executed.
     * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
     * The order of the parties need not be the same as in the submission.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * repeated string act_as = 5; * @return A list containing the actAs. */ java.util.List getActAsList(); /** *
     * The set of parties on whose behalf the commands were executed.
     * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
     * The order of the parties need not be the same as in the submission.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * repeated string act_as = 5; * @return The count of actAs. */ int getActAsCount(); /** *
     * The set of parties on whose behalf the commands were executed.
     * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
     * The order of the parties need not be the same as in the submission.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * repeated string act_as = 5; * @param index The index of the element to return. * @return The actAs at the given index. */ java.lang.String getActAs(int index); /** *
     * The set of parties on whose behalf the commands were executed.
     * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
     * The order of the parties need not be the same as in the submission.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * repeated string act_as = 5; * @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); /** *
     * The submission ID this completion refers to, as described in ``commands.proto``.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string submission_id = 6; * @return The submissionId. */ java.lang.String getSubmissionId(); /** *
     * The submission ID this completion refers to, as described in ``commands.proto``.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string submission_id = 6; * @return The bytes for submissionId. */ com.google.protobuf.ByteString getSubmissionIdBytes(); /** *
     * Specifies the start of the deduplication period by a completion stream offset (exclusive).
     * Must be a valid LedgerString (as described in ``value.proto``).
     * 
* * string deduplication_offset = 8; * @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 ``value.proto``).
     * 
* * string deduplication_offset = 8; * @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 ``value.proto``).
     * 
* * string deduplication_offset = 8; * @return The bytes for deduplicationOffset. */ com.google.protobuf.ByteString getDeduplicationOffsetBytes(); /** *
     * Specifies the length of the deduplication period.
     * It is measured in record time of completions.
     * Must be non-negative.
     * 
* * .google.protobuf.Duration deduplication_duration = 9; * @return Whether the deduplicationDuration field is set. */ boolean hasDeduplicationDuration(); /** *
     * Specifies the length of the deduplication period.
     * It is measured in record time of completions.
     * Must be non-negative.
     * 
* * .google.protobuf.Duration deduplication_duration = 9; * @return The deduplicationDuration. */ com.google.protobuf.Duration getDeduplicationDuration(); /** *
     * Specifies the length of the deduplication period.
     * It is measured in record time of completions.
     * Must be non-negative.
     * 
* * .google.protobuf.Duration deduplication_duration = 9; */ com.google.protobuf.DurationOrBuilder getDeduplicationDurationOrBuilder(); public com.daml.ledger.api.v1.CompletionOuterClass.Completion.DeduplicationPeriodCase getDeduplicationPeriodCase(); } /** *
   * A completion represents the status of a submitted command on the ledger: it can be successful or failed.
   * 
* * Protobuf type {@code com.daml.ledger.api.v1.Completion} */ public static final class Completion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.Completion) CompletionOrBuilder { private static final long serialVersionUID = 0L; // Use Completion.newBuilder() to construct. private Completion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Completion() { commandId_ = ""; transactionId_ = ""; applicationId_ = ""; actAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; submissionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Completion(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CompletionOuterClass.internal_static_com_daml_ledger_api_v1_Completion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CompletionOuterClass.internal_static_com_daml_ledger_api_v1_Completion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CompletionOuterClass.Completion.class, com.daml.ledger.api.v1.CompletionOuterClass.Completion.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_OFFSET(8), DEDUPLICATION_DURATION(9), 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 8: return DEDUPLICATION_OFFSET; case 9: return DEDUPLICATION_DURATION; 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 COMMAND_ID_FIELD_NUMBER = 1; private volatile java.lang.Object commandId_; /** *
     * The ID of the succeeded or failed command.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Required
     * 
* * string command_id = 1; * @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; } } /** *
     * The ID of the succeeded or failed command.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Required
     * 
* * string command_id = 1; * @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 STATUS_FIELD_NUMBER = 2; private com.google.rpc.Status status_; /** *
     * Identifies the exact type of the error.
     * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
     * Optional
     * 
* * .google.rpc.Status status = 2; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return status_ != null; } /** *
     * Identifies the exact type of the error.
     * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
     * Optional
     * 
* * .google.rpc.Status status = 2; * @return The status. */ @java.lang.Override public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** *
     * Identifies the exact type of the error.
     * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
     * Optional
     * 
* * .google.rpc.Status status = 2; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { return getStatus(); } public static final int TRANSACTION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object transactionId_; /** *
     * The transaction_id of the transaction that resulted from the command with command_id.
     * Only set for successfully executed commands.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string transaction_id = 3; * @return The transactionId. */ @java.lang.Override public java.lang.String getTransactionId() { java.lang.Object ref = transactionId_; 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(); transactionId_ = s; return s; } } /** *
     * The transaction_id of the transaction that resulted from the command with command_id.
     * Only set for successfully executed commands.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string transaction_id = 3; * @return The bytes for transactionId. */ @java.lang.Override public com.google.protobuf.ByteString getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transactionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APPLICATION_ID_FIELD_NUMBER = 4; private volatile java.lang.Object applicationId_; /** *
     * The application-id or user-id that was used for the submission, as described in ``commands.proto``.
     * Must be a valid ApplicationIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * string application_id = 4; * @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; } } /** *
     * The application-id or user-id that was used for the submission, as described in ``commands.proto``.
     * Must be a valid ApplicationIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * string application_id = 4; * @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 ACT_AS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList actAs_; /** *
     * The set of parties on whose behalf the commands were executed.
     * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
     * The order of the parties need not be the same as in the submission.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * repeated string act_as = 5; * @return A list containing the actAs. */ public com.google.protobuf.ProtocolStringList getActAsList() { return actAs_; } /** *
     * The set of parties on whose behalf the commands were executed.
     * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
     * The order of the parties need not be the same as in the submission.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * repeated string act_as = 5; * @return The count of actAs. */ public int getActAsCount() { return actAs_.size(); } /** *
     * The set of parties on whose behalf the commands were executed.
     * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
     * The order of the parties need not be the same as in the submission.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * repeated string act_as = 5; * @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); } /** *
     * The set of parties on whose behalf the commands were executed.
     * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
     * The order of the parties need not be the same as in the submission.
     * Each element must be a valid PartyIdString (as described in ``value.proto``).
     * Optional for historic completions where this data is not available.
     * 
* * repeated string act_as = 5; * @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 SUBMISSION_ID_FIELD_NUMBER = 6; private volatile java.lang.Object submissionId_; /** *
     * The submission ID this completion refers to, as described in ``commands.proto``.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string submission_id = 6; * @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; } } /** *
     * The submission ID this completion refers to, as described in ``commands.proto``.
     * Must be a valid LedgerString (as described in ``value.proto``).
     * Optional
     * 
* * string submission_id = 6; * @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 DEDUPLICATION_OFFSET_FIELD_NUMBER = 8; /** *
     * Specifies the start of the deduplication period by a completion stream offset (exclusive).
     * Must be a valid LedgerString (as described in ``value.proto``).
     * 
* * string deduplication_offset = 8; * @return Whether the deduplicationOffset field is set. */ public boolean hasDeduplicationOffset() { return deduplicationPeriodCase_ == 8; } /** *
     * Specifies the start of the deduplication period by a completion stream offset (exclusive).
     * Must be a valid LedgerString (as described in ``value.proto``).
     * 
* * string deduplication_offset = 8; * @return The deduplicationOffset. */ public java.lang.String getDeduplicationOffset() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 8) { 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_ == 8) { 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 ``value.proto``).
     * 
* * string deduplication_offset = 8; * @return The bytes for deduplicationOffset. */ public com.google.protobuf.ByteString getDeduplicationOffsetBytes() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 8) { ref = deduplicationPeriod_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (deduplicationPeriodCase_ == 8) { deduplicationPeriod_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEDUPLICATION_DURATION_FIELD_NUMBER = 9; /** *
     * Specifies the length of the deduplication period.
     * It is measured in record time of completions.
     * Must be non-negative.
     * 
* * .google.protobuf.Duration deduplication_duration = 9; * @return Whether the deduplicationDuration field is set. */ @java.lang.Override public boolean hasDeduplicationDuration() { return deduplicationPeriodCase_ == 9; } /** *
     * Specifies the length of the deduplication period.
     * It is measured in record time of completions.
     * Must be non-negative.
     * 
* * .google.protobuf.Duration deduplication_duration = 9; * @return The deduplicationDuration. */ @java.lang.Override public com.google.protobuf.Duration getDeduplicationDuration() { if (deduplicationPeriodCase_ == 9) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** *
     * Specifies the length of the deduplication period.
     * It is measured in record time of completions.
     * Must be non-negative.
     * 
* * .google.protobuf.Duration deduplication_duration = 9; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDeduplicationDurationOrBuilder() { if (deduplicationPeriodCase_ == 9) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, commandId_); } if (status_ != null) { output.writeMessage(2, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, transactionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applicationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, applicationId_); } for (int i = 0; i < actAs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, actAs_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submissionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, submissionId_); } if (deduplicationPeriodCase_ == 8) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, deduplicationPeriod_); } if (deduplicationPeriodCase_ == 9) { output.writeMessage(9, (com.google.protobuf.Duration) deduplicationPeriod_); } 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(commandId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, commandId_); } if (status_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transactionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applicationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, applicationId_); } { int dataSize = 0; for (int i = 0; i < actAs_.size(); i++) { dataSize += computeStringSizeNoTag(actAs_.getRaw(i)); } size += dataSize; size += 1 * getActAsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submissionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, submissionId_); } if (deduplicationPeriodCase_ == 8) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, deduplicationPeriod_); } if (deduplicationPeriodCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.google.protobuf.Duration) deduplicationPeriod_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.ledger.api.v1.CompletionOuterClass.Completion)) { return super.equals(obj); } com.daml.ledger.api.v1.CompletionOuterClass.Completion other = (com.daml.ledger.api.v1.CompletionOuterClass.Completion) obj; if (!getCommandId() .equals(other.getCommandId())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (!getTransactionId() .equals(other.getTransactionId())) return false; if (!getApplicationId() .equals(other.getApplicationId())) return false; if (!getActAsList() .equals(other.getActAsList())) return false; if (!getSubmissionId() .equals(other.getSubmissionId())) return false; if (!getDeduplicationPeriodCase().equals(other.getDeduplicationPeriodCase())) return false; switch (deduplicationPeriodCase_) { case 8: if (!getDeduplicationOffset() .equals(other.getDeduplicationOffset())) return false; break; case 9: if (!getDeduplicationDuration() .equals(other.getDeduplicationDuration())) 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) + COMMAND_ID_FIELD_NUMBER; hash = (53 * hash) + getCommandId().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER; hash = (53 * hash) + getTransactionId().hashCode(); hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER; hash = (53 * hash) + getApplicationId().hashCode(); if (getActAsCount() > 0) { hash = (37 * hash) + ACT_AS_FIELD_NUMBER; hash = (53 * hash) + getActAsList().hashCode(); } hash = (37 * hash) + SUBMISSION_ID_FIELD_NUMBER; hash = (53 * hash) + getSubmissionId().hashCode(); switch (deduplicationPeriodCase_) { case 8: hash = (37 * hash) + DEDUPLICATION_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getDeduplicationOffset().hashCode(); break; case 9: hash = (37 * hash) + DEDUPLICATION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getDeduplicationDuration().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.ledger.api.v1.CompletionOuterClass.Completion 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 completion represents the status of a submitted command on the ledger: it can be successful or failed.
     * 
* * Protobuf type {@code com.daml.ledger.api.v1.Completion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.Completion) com.daml.ledger.api.v1.CompletionOuterClass.CompletionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.CompletionOuterClass.internal_static_com_daml_ledger_api_v1_Completion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.CompletionOuterClass.internal_static_com_daml_ledger_api_v1_Completion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.CompletionOuterClass.Completion.class, com.daml.ledger.api.v1.CompletionOuterClass.Completion.Builder.class); } // Construct using com.daml.ledger.api.v1.CompletionOuterClass.Completion.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); commandId_ = ""; if (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } transactionId_ = ""; applicationId_ = ""; actAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); submissionId_ = ""; if (deduplicationDurationBuilder_ != null) { deduplicationDurationBuilder_.clear(); } deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.ledger.api.v1.CompletionOuterClass.internal_static_com_daml_ledger_api_v1_Completion_descriptor; } @java.lang.Override public com.daml.ledger.api.v1.CompletionOuterClass.Completion getDefaultInstanceForType() { return com.daml.ledger.api.v1.CompletionOuterClass.Completion.getDefaultInstance(); } @java.lang.Override public com.daml.ledger.api.v1.CompletionOuterClass.Completion build() { com.daml.ledger.api.v1.CompletionOuterClass.Completion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.ledger.api.v1.CompletionOuterClass.Completion buildPartial() { com.daml.ledger.api.v1.CompletionOuterClass.Completion result = new com.daml.ledger.api.v1.CompletionOuterClass.Completion(this); int from_bitField0_ = bitField0_; result.commandId_ = commandId_; if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } result.transactionId_ = transactionId_; result.applicationId_ = applicationId_; if (((bitField0_ & 0x00000001) != 0)) { actAs_ = actAs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.actAs_ = actAs_; result.submissionId_ = submissionId_; if (deduplicationPeriodCase_ == 8) { result.deduplicationPeriod_ = deduplicationPeriod_; } if (deduplicationPeriodCase_ == 9) { if (deduplicationDurationBuilder_ == null) { result.deduplicationPeriod_ = deduplicationPeriod_; } else { result.deduplicationPeriod_ = deduplicationDurationBuilder_.build(); } } result.deduplicationPeriodCase_ = deduplicationPeriodCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.ledger.api.v1.CompletionOuterClass.Completion) { return mergeFrom((com.daml.ledger.api.v1.CompletionOuterClass.Completion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.ledger.api.v1.CompletionOuterClass.Completion other) { if (other == com.daml.ledger.api.v1.CompletionOuterClass.Completion.getDefaultInstance()) return this; if (!other.getCommandId().isEmpty()) { commandId_ = other.commandId_; onChanged(); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (!other.getTransactionId().isEmpty()) { transactionId_ = other.transactionId_; onChanged(); } if (!other.getApplicationId().isEmpty()) { applicationId_ = other.applicationId_; onChanged(); } if (!other.actAs_.isEmpty()) { if (actAs_.isEmpty()) { actAs_ = other.actAs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureActAsIsMutable(); actAs_.addAll(other.actAs_); } onChanged(); } if (!other.getSubmissionId().isEmpty()) { submissionId_ = other.submissionId_; onChanged(); } switch (other.getDeduplicationPeriodCase()) { case DEDUPLICATION_OFFSET: { deduplicationPeriodCase_ = 8; deduplicationPeriod_ = other.deduplicationPeriod_; onChanged(); break; } case DEDUPLICATION_DURATION: { mergeDeduplicationDuration(other.getDeduplicationDuration()); 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: { commandId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { input.readMessage( getStatusFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { transactionId_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { applicationId_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureActAsIsMutable(); actAs_.add(s); break; } // case 42 case 50: { submissionId_ = input.readStringRequireUtf8(); break; } // case 50 case 66: { java.lang.String s = input.readStringRequireUtf8(); deduplicationPeriodCase_ = 8; deduplicationPeriod_ = s; break; } // case 66 case 74: { input.readMessage( getDeduplicationDurationFieldBuilder().getBuilder(), extensionRegistry); deduplicationPeriodCase_ = 9; break; } // case 74 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 commandId_ = ""; /** *
       * The ID of the succeeded or failed command.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Required
       * 
* * string command_id = 1; * @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; } } /** *
       * The ID of the succeeded or failed command.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Required
       * 
* * string command_id = 1; * @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; } } /** *
       * The ID of the succeeded or failed command.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Required
       * 
* * string command_id = 1; * @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; } /** *
       * The ID of the succeeded or failed command.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Required
       * 
* * string command_id = 1; * @return This builder for chaining. */ public Builder clearCommandId() { commandId_ = getDefaultInstance().getCommandId(); onChanged(); return this; } /** *
       * The ID of the succeeded or failed command.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Required
       * 
* * string command_id = 1; * @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 com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** *
       * Identifies the exact type of the error.
       * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
       * Optional
       * 
* * .google.rpc.Status status = 2; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** *
       * Identifies the exact type of the error.
       * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
       * Optional
       * 
* * .google.rpc.Status status = 2; * @return The status. */ public com.google.rpc.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
       * Identifies the exact type of the error.
       * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
       * Optional
       * 
* * .google.rpc.Status status = 2; */ public Builder setStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } return this; } /** *
       * Identifies the exact type of the error.
       * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
       * Optional
       * 
* * .google.rpc.Status status = 2; */ public Builder setStatus( com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Identifies the exact type of the error.
       * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
       * Optional
       * 
* * .google.rpc.Status status = 2; */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } return this; } /** *
       * Identifies the exact type of the error.
       * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
       * Optional
       * 
* * .google.rpc.Status status = 2; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /** *
       * Identifies the exact type of the error.
       * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
       * Optional
       * 
* * .google.rpc.Status status = 2; */ public com.google.rpc.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
       * Identifies the exact type of the error.
       * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
       * Optional
       * 
* * .google.rpc.Status status = 2; */ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** *
       * Identifies the exact type of the error.
       * It uses the same format of conveying error details as it is used for the RPC responses of the APIs.
       * Optional
       * 
* * .google.rpc.Status status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.lang.Object transactionId_ = ""; /** *
       * The transaction_id of the transaction that resulted from the command with command_id.
       * Only set for successfully executed commands.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string transaction_id = 3; * @return The transactionId. */ public java.lang.String getTransactionId() { java.lang.Object ref = transactionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The transaction_id of the transaction that resulted from the command with command_id.
       * Only set for successfully executed commands.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string transaction_id = 3; * @return The bytes for transactionId. */ public com.google.protobuf.ByteString getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transactionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The transaction_id of the transaction that resulted from the command with command_id.
       * Only set for successfully executed commands.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string transaction_id = 3; * @param value The transactionId to set. * @return This builder for chaining. */ public Builder setTransactionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } transactionId_ = value; onChanged(); return this; } /** *
       * The transaction_id of the transaction that resulted from the command with command_id.
       * Only set for successfully executed commands.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string transaction_id = 3; * @return This builder for chaining. */ public Builder clearTransactionId() { transactionId_ = getDefaultInstance().getTransactionId(); onChanged(); return this; } /** *
       * The transaction_id of the transaction that resulted from the command with command_id.
       * Only set for successfully executed commands.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string transaction_id = 3; * @param value The bytes for transactionId to set. * @return This builder for chaining. */ public Builder setTransactionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transactionId_ = value; onChanged(); return this; } private java.lang.Object applicationId_ = ""; /** *
       * The application-id or user-id that was used for the submission, as described in ``commands.proto``.
       * Must be a valid ApplicationIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * string application_id = 4; * @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; } } /** *
       * The application-id or user-id that was used for the submission, as described in ``commands.proto``.
       * Must be a valid ApplicationIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * string application_id = 4; * @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; } } /** *
       * The application-id or user-id that was used for the submission, as described in ``commands.proto``.
       * Must be a valid ApplicationIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * string application_id = 4; * @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; } /** *
       * The application-id or user-id that was used for the submission, as described in ``commands.proto``.
       * Must be a valid ApplicationIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * string application_id = 4; * @return This builder for chaining. */ public Builder clearApplicationId() { applicationId_ = getDefaultInstance().getApplicationId(); onChanged(); return this; } /** *
       * The application-id or user-id that was used for the submission, as described in ``commands.proto``.
       * Must be a valid ApplicationIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * string application_id = 4; * @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 com.google.protobuf.LazyStringList actAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureActAsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { actAs_ = new com.google.protobuf.LazyStringArrayList(actAs_); bitField0_ |= 0x00000001; } } /** *
       * The set of parties on whose behalf the commands were executed.
       * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
       * The order of the parties need not be the same as in the submission.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * repeated string act_as = 5; * @return A list containing the actAs. */ public com.google.protobuf.ProtocolStringList getActAsList() { return actAs_.getUnmodifiableView(); } /** *
       * The set of parties on whose behalf the commands were executed.
       * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
       * The order of the parties need not be the same as in the submission.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * repeated string act_as = 5; * @return The count of actAs. */ public int getActAsCount() { return actAs_.size(); } /** *
       * The set of parties on whose behalf the commands were executed.
       * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
       * The order of the parties need not be the same as in the submission.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * repeated string act_as = 5; * @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); } /** *
       * The set of parties on whose behalf the commands were executed.
       * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
       * The order of the parties need not be the same as in the submission.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * repeated string act_as = 5; * @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); } /** *
       * The set of parties on whose behalf the commands were executed.
       * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
       * The order of the parties need not be the same as in the submission.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * repeated string act_as = 5; * @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; } /** *
       * The set of parties on whose behalf the commands were executed.
       * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
       * The order of the parties need not be the same as in the submission.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * repeated string act_as = 5; * @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; } /** *
       * The set of parties on whose behalf the commands were executed.
       * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
       * The order of the parties need not be the same as in the submission.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * repeated string act_as = 5; * @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; } /** *
       * The set of parties on whose behalf the commands were executed.
       * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
       * The order of the parties need not be the same as in the submission.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * repeated string act_as = 5; * @return This builder for chaining. */ public Builder clearActAs() { actAs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The set of parties on whose behalf the commands were executed.
       * Contains the union of ``party`` and ``act_as`` from ``commands.proto``.
       * The order of the parties need not be the same as in the submission.
       * Each element must be a valid PartyIdString (as described in ``value.proto``).
       * Optional for historic completions where this data is not available.
       * 
* * repeated string act_as = 5; * @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 java.lang.Object submissionId_ = ""; /** *
       * The submission ID this completion refers to, as described in ``commands.proto``.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string submission_id = 6; * @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; } } /** *
       * The submission ID this completion refers to, as described in ``commands.proto``.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string submission_id = 6; * @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; } } /** *
       * The submission ID this completion refers to, as described in ``commands.proto``.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string submission_id = 6; * @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; } /** *
       * The submission ID this completion refers to, as described in ``commands.proto``.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string submission_id = 6; * @return This builder for chaining. */ public Builder clearSubmissionId() { submissionId_ = getDefaultInstance().getSubmissionId(); onChanged(); return this; } /** *
       * The submission ID this completion refers to, as described in ``commands.proto``.
       * Must be a valid LedgerString (as described in ``value.proto``).
       * Optional
       * 
* * string submission_id = 6; * @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; } /** *
       * Specifies the start of the deduplication period by a completion stream offset (exclusive).
       * Must be a valid LedgerString (as described in ``value.proto``).
       * 
* * string deduplication_offset = 8; * @return Whether the deduplicationOffset field is set. */ @java.lang.Override public boolean hasDeduplicationOffset() { return deduplicationPeriodCase_ == 8; } /** *
       * Specifies the start of the deduplication period by a completion stream offset (exclusive).
       * Must be a valid LedgerString (as described in ``value.proto``).
       * 
* * string deduplication_offset = 8; * @return The deduplicationOffset. */ @java.lang.Override public java.lang.String getDeduplicationOffset() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 8) { 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_ == 8) { 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 ``value.proto``).
       * 
* * string deduplication_offset = 8; * @return The bytes for deduplicationOffset. */ @java.lang.Override public com.google.protobuf.ByteString getDeduplicationOffsetBytes() { java.lang.Object ref = ""; if (deduplicationPeriodCase_ == 8) { ref = deduplicationPeriod_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (deduplicationPeriodCase_ == 8) { 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 ``value.proto``).
       * 
* * string deduplication_offset = 8; * @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_ = 8; 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 ``value.proto``).
       * 
* * string deduplication_offset = 8; * @return This builder for chaining. */ public Builder clearDeduplicationOffset() { if (deduplicationPeriodCase_ == 8) { 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 ``value.proto``).
       * 
* * string deduplication_offset = 8; * @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_ = 8; deduplicationPeriod_ = value; onChanged(); return this; } 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 measured in record time of completions.
       * Must be non-negative.
       * 
* * .google.protobuf.Duration deduplication_duration = 9; * @return Whether the deduplicationDuration field is set. */ @java.lang.Override public boolean hasDeduplicationDuration() { return deduplicationPeriodCase_ == 9; } /** *
       * Specifies the length of the deduplication period.
       * It is measured in record time of completions.
       * Must be non-negative.
       * 
* * .google.protobuf.Duration deduplication_duration = 9; * @return The deduplicationDuration. */ @java.lang.Override public com.google.protobuf.Duration getDeduplicationDuration() { if (deduplicationDurationBuilder_ == null) { if (deduplicationPeriodCase_ == 9) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } else { if (deduplicationPeriodCase_ == 9) { return deduplicationDurationBuilder_.getMessage(); } return com.google.protobuf.Duration.getDefaultInstance(); } } /** *
       * Specifies the length of the deduplication period.
       * It is measured in record time of completions.
       * Must be non-negative.
       * 
* * .google.protobuf.Duration deduplication_duration = 9; */ 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_ = 9; return this; } /** *
       * Specifies the length of the deduplication period.
       * It is measured in record time of completions.
       * Must be non-negative.
       * 
* * .google.protobuf.Duration deduplication_duration = 9; */ public Builder setDeduplicationDuration( com.google.protobuf.Duration.Builder builderForValue) { if (deduplicationDurationBuilder_ == null) { deduplicationPeriod_ = builderForValue.build(); onChanged(); } else { deduplicationDurationBuilder_.setMessage(builderForValue.build()); } deduplicationPeriodCase_ = 9; return this; } /** *
       * Specifies the length of the deduplication period.
       * It is measured in record time of completions.
       * Must be non-negative.
       * 
* * .google.protobuf.Duration deduplication_duration = 9; */ public Builder mergeDeduplicationDuration(com.google.protobuf.Duration value) { if (deduplicationDurationBuilder_ == null) { if (deduplicationPeriodCase_ == 9 && deduplicationPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { deduplicationPeriod_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) deduplicationPeriod_) .mergeFrom(value).buildPartial(); } else { deduplicationPeriod_ = value; } onChanged(); } else { if (deduplicationPeriodCase_ == 9) { deduplicationDurationBuilder_.mergeFrom(value); } deduplicationDurationBuilder_.setMessage(value); } deduplicationPeriodCase_ = 9; return this; } /** *
       * Specifies the length of the deduplication period.
       * It is measured in record time of completions.
       * Must be non-negative.
       * 
* * .google.protobuf.Duration deduplication_duration = 9; */ public Builder clearDeduplicationDuration() { if (deduplicationDurationBuilder_ == null) { if (deduplicationPeriodCase_ == 9) { deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; onChanged(); } } else { if (deduplicationPeriodCase_ == 9) { deduplicationPeriodCase_ = 0; deduplicationPeriod_ = null; } deduplicationDurationBuilder_.clear(); } return this; } /** *
       * Specifies the length of the deduplication period.
       * It is measured in record time of completions.
       * Must be non-negative.
       * 
* * .google.protobuf.Duration deduplication_duration = 9; */ public com.google.protobuf.Duration.Builder getDeduplicationDurationBuilder() { return getDeduplicationDurationFieldBuilder().getBuilder(); } /** *
       * Specifies the length of the deduplication period.
       * It is measured in record time of completions.
       * Must be non-negative.
       * 
* * .google.protobuf.Duration deduplication_duration = 9; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDeduplicationDurationOrBuilder() { if ((deduplicationPeriodCase_ == 9) && (deduplicationDurationBuilder_ != null)) { return deduplicationDurationBuilder_.getMessageOrBuilder(); } else { if (deduplicationPeriodCase_ == 9) { return (com.google.protobuf.Duration) deduplicationPeriod_; } return com.google.protobuf.Duration.getDefaultInstance(); } } /** *
       * Specifies the length of the deduplication period.
       * It is measured in record time of completions.
       * Must be non-negative.
       * 
* * .google.protobuf.Duration deduplication_duration = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDeduplicationDurationFieldBuilder() { if (deduplicationDurationBuilder_ == null) { if (!(deduplicationPeriodCase_ == 9)) { 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_ = 9; onChanged();; return deduplicationDurationBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.Completion) } // @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.Completion) private static final com.daml.ledger.api.v1.CompletionOuterClass.Completion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.ledger.api.v1.CompletionOuterClass.Completion(); } public static com.daml.ledger.api.v1.CompletionOuterClass.Completion getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Completion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.daml.ledger.api.v1.CompletionOuterClass.Completion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_ledger_api_v1_Completion_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_ledger_api_v1_Completion_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\'com/daml/ledger/api/v1/completion.prot" + "o\022\026com.daml.ledger.api.v1\032\036google/protob" + "uf/duration.proto\032\027google/rpc/status.pro" + "to\"\247\002\n\nCompletion\022\022\n\ncommand_id\030\001 \001(\t\022\"\n" + "\006status\030\002 \001(\0132\022.google.rpc.Status\022\026\n\016tra" + "nsaction_id\030\003 \001(\t\022\026\n\016application_id\030\004 \001(" + "\t\022\016\n\006act_as\030\005 \003(\t\022\025\n\rsubmission_id\030\006 \001(\t" + "\022\036\n\024deduplication_offset\030\010 \001(\tH\000\022;\n\026dedu" + "plication_duration\030\t \001(\0132\031.google.protob" + "uf.DurationH\000B\026\n\024deduplication_periodJ\004\010" + "\007\020\010R\017submission_rankBG\n\026com.daml.ledger." + "api.v1B\024CompletionOuterClass\252\002\026Com.Daml." + "Ledger.Api.V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DurationProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), }); internal_static_com_daml_ledger_api_v1_Completion_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_daml_ledger_api_v1_Completion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_ledger_api_v1_Completion_descriptor, new java.lang.String[] { "CommandId", "Status", "TransactionId", "ApplicationId", "ActAs", "SubmissionId", "DeduplicationOffset", "DeduplicationDuration", "DeduplicationPeriod", }); com.google.protobuf.DurationProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy