Package com.daml.ledger.api.v2
Class CompletionOuterClass.Completion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
com.daml.ledger.api.v2.CompletionOuterClass.Completion.Builder
- All Implemented Interfaces:
CompletionOuterClass.CompletionOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CompletionOuterClass.Completion
public static final class CompletionOuterClass.Completion.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
implements CompletionOuterClass.CompletionOrBuilder
A completion represents the status of a submitted command on the ledger: it can be successful or failed.Protobuf type
com.daml.ledger.api.v2.Completion
-
Method Summary
Modifier and TypeMethodDescriptionThe set of parties on whose behalf the commands were executed.addActAsBytes
(com.google.protobuf.ByteString value) The set of parties on whose behalf the commands were executed.addAllActAs
(Iterable<String> values) The set of parties on whose behalf the commands were executed.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The set of parties on whose behalf the commands were executed.The ID of the succeeded or failed command.Specifies the length of the deduplication period.Specifies the start of the deduplication period by a completion stream offset (exclusive).clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Identifies the exact type of the error.The submission ID this completion refers to, as described in ``commands.proto``.The synchronizer along with its record time.Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission.The update_id of the transaction or reassignment that resulted from the command with command_id.The user-id that was used for the submission, as described in ``commands.proto``.clone()
getActAs
(int index) The set of parties on whose behalf the commands were executed.com.google.protobuf.ByteString
getActAsBytes
(int index) The set of parties on whose behalf the commands were executed.int
The set of parties on whose behalf the commands were executed.com.google.protobuf.ProtocolStringList
The set of parties on whose behalf the commands were executed.The ID of the succeeded or failed command.com.google.protobuf.ByteString
The ID of the succeeded or failed command.com.google.protobuf.Duration
Specifies the length of the deduplication period.com.google.protobuf.Duration.Builder
Specifies the length of the deduplication period.com.google.protobuf.DurationOrBuilder
Specifies the length of the deduplication period.long
Specifies the start of the deduplication period by a completion stream offset (exclusive).static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time.com.google.rpc.Status
Identifies the exact type of the error.com.google.rpc.Status.Builder
Identifies the exact type of the error.com.google.rpc.StatusOrBuilder
Identifies the exact type of the error.The submission ID this completion refers to, as described in ``commands.proto``.com.google.protobuf.ByteString
The submission ID this completion refers to, as described in ``commands.proto``.The synchronizer along with its record time.The synchronizer along with its record time.The synchronizer along with its record time.Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission.Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission.Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission.The update_id of the transaction or reassignment that resulted from the command with command_id.com.google.protobuf.ByteString
The update_id of the transaction or reassignment that resulted from the command with command_id.The user-id that was used for the submission, as described in ``commands.proto``.com.google.protobuf.ByteString
The user-id that was used for the submission, as described in ``commands.proto``.boolean
Specifies the length of the deduplication period.boolean
Specifies the start of the deduplication period by a completion stream offset (exclusive).boolean
Identifies the exact type of the error.boolean
The synchronizer along with its record time.boolean
Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeDeduplicationDuration
(com.google.protobuf.Duration value) Specifies the length of the deduplication period.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeStatus
(com.google.rpc.Status value) Identifies the exact type of the error.The synchronizer along with its record time.Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) The set of parties on whose behalf the commands were executed.setCommandId
(String value) The ID of the succeeded or failed command.setCommandIdBytes
(com.google.protobuf.ByteString value) The ID of the succeeded or failed command.setDeduplicationDuration
(com.google.protobuf.Duration value) Specifies the length of the deduplication period.setDeduplicationDuration
(com.google.protobuf.Duration.Builder builderForValue) Specifies the length of the deduplication period.setDeduplicationOffset
(long value) Specifies the start of the deduplication period by a completion stream offset (exclusive).setOffset
(long value) May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStatus
(com.google.rpc.Status value) Identifies the exact type of the error.setStatus
(com.google.rpc.Status.Builder builderForValue) Identifies the exact type of the error.setSubmissionId
(String value) The submission ID this completion refers to, as described in ``commands.proto``.setSubmissionIdBytes
(com.google.protobuf.ByteString value) The submission ID this completion refers to, as described in ``commands.proto``.The synchronizer along with its record time.setSynchronizerTime
(OffsetCheckpointOuterClass.SynchronizerTime.Builder builderForValue) The synchronizer along with its record time.Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission.setTraceContext
(TraceContextOuterClass.TraceContext.Builder builderForValue) Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setUpdateId
(String value) The update_id of the transaction or reassignment that resulted from the command with command_id.setUpdateIdBytes
(com.google.protobuf.ByteString value) The update_id of the transaction or reassignment that resulted from the command with command_id.The user-id that was used for the submission, as described in ``commands.proto``.setUserIdBytes
(com.google.protobuf.ByteString value) The user-id that was used for the submission, as described in ``commands.proto``.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-
setField
public CompletionOuterClass.Completion.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-
clearField
public CompletionOuterClass.Completion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-
clearOneof
public CompletionOuterClass.Completion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-
setRepeatedField
public CompletionOuterClass.Completion.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-
addRepeatedField
public CompletionOuterClass.Completion.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CompletionOuterClass.Completion.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-
mergeFrom
public CompletionOuterClass.Completion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CompletionOuterClass.Completion.Builder>
- Throws:
IOException
-
getDeduplicationPeriodCase
- Specified by:
getDeduplicationPeriodCase
in interfaceCompletionOuterClass.CompletionOrBuilder
-
clearDeduplicationPeriod
-
getCommandId
The ID of the succeeded or failed command. Must be a valid LedgerString (as described in ``value.proto``). Required
string command_id = 1 [json_name = "commandId"];
- Specified by:
getCommandId
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The commandId.
-
getCommandIdBytes
public com.google.protobuf.ByteString getCommandIdBytes()The ID of the succeeded or failed command. Must be a valid LedgerString (as described in ``value.proto``). Required
string command_id = 1 [json_name = "commandId"];
- Specified by:
getCommandIdBytes
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The bytes for commandId.
-
setCommandId
The ID of the succeeded or failed command. Must be a valid LedgerString (as described in ``value.proto``). Required
string command_id = 1 [json_name = "commandId"];
- Parameters:
value
- The commandId to set.- Returns:
- This builder for chaining.
-
clearCommandId
The ID of the succeeded or failed command. Must be a valid LedgerString (as described in ``value.proto``). Required
string command_id = 1 [json_name = "commandId"];
- Returns:
- This builder for chaining.
-
setCommandIdBytes
public CompletionOuterClass.Completion.Builder setCommandIdBytes(com.google.protobuf.ByteString value) The ID of the succeeded or failed command. Must be a valid LedgerString (as described in ``value.proto``). Required
string command_id = 1 [json_name = "commandId"];
- Parameters:
value
- The bytes for commandId to set.- Returns:
- This builder for chaining.
-
hasStatus
public 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 [json_name = "status"];
- Specified by:
hasStatus
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
public 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 [json_name = "status"];
- Specified by:
getStatus
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The status.
-
setStatus
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 [json_name = "status"];
-
setStatus
public CompletionOuterClass.Completion.Builder setStatus(com.google.rpc.Status.Builder builderForValue) 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 [json_name = "status"];
-
mergeStatus
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 [json_name = "status"];
-
clearStatus
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 [json_name = "status"];
-
getStatusBuilder
public com.google.rpc.Status.Builder getStatusBuilder()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 [json_name = "status"];
-
getStatusOrBuilder
public com.google.rpc.StatusOrBuilder getStatusOrBuilder()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 [json_name = "status"];
- Specified by:
getStatusOrBuilder
in interfaceCompletionOuterClass.CompletionOrBuilder
-
getUpdateId
The update_id of the transaction or reassignment that resulted from the command with command_id. Only set for successfully executed commands. Must be a valid LedgerString (as described in ``value.proto``).
string update_id = 3 [json_name = "updateId"];
- Specified by:
getUpdateId
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The updateId.
-
getUpdateIdBytes
public com.google.protobuf.ByteString getUpdateIdBytes()The update_id of the transaction or reassignment that resulted from the command with command_id. Only set for successfully executed commands. Must be a valid LedgerString (as described in ``value.proto``).
string update_id = 3 [json_name = "updateId"];
- Specified by:
getUpdateIdBytes
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The bytes for updateId.
-
setUpdateId
The update_id of the transaction or reassignment that resulted from the command with command_id. Only set for successfully executed commands. Must be a valid LedgerString (as described in ``value.proto``).
string update_id = 3 [json_name = "updateId"];
- Parameters:
value
- The updateId to set.- Returns:
- This builder for chaining.
-
clearUpdateId
The update_id of the transaction or reassignment that resulted from the command with command_id. Only set for successfully executed commands. Must be a valid LedgerString (as described in ``value.proto``).
string update_id = 3 [json_name = "updateId"];
- Returns:
- This builder for chaining.
-
setUpdateIdBytes
public CompletionOuterClass.Completion.Builder setUpdateIdBytes(com.google.protobuf.ByteString value) The update_id of the transaction or reassignment that resulted from the command with command_id. Only set for successfully executed commands. Must be a valid LedgerString (as described in ``value.proto``).
string update_id = 3 [json_name = "updateId"];
- Parameters:
value
- The bytes for updateId to set.- Returns:
- This builder for chaining.
-
getUserId
The user-id that was used for the submission, as described in ``commands.proto``. Must be a valid UserIdString (as described in ``value.proto``). Optional for historic completions where this data is not available.
string user_id = 4 [json_name = "userId"];
- Specified by:
getUserId
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The userId.
-
getUserIdBytes
public com.google.protobuf.ByteString getUserIdBytes()The user-id that was used for the submission, as described in ``commands.proto``. Must be a valid UserIdString (as described in ``value.proto``). Optional for historic completions where this data is not available.
string user_id = 4 [json_name = "userId"];
- Specified by:
getUserIdBytes
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The bytes for userId.
-
setUserId
The user-id that was used for the submission, as described in ``commands.proto``. Must be a valid UserIdString (as described in ``value.proto``). Optional for historic completions where this data is not available.
string user_id = 4 [json_name = "userId"];
- Parameters:
value
- The userId to set.- Returns:
- This builder for chaining.
-
clearUserId
The user-id that was used for the submission, as described in ``commands.proto``. Must be a valid UserIdString (as described in ``value.proto``). Optional for historic completions where this data is not available.
string user_id = 4 [json_name = "userId"];
- Returns:
- This builder for chaining.
-
setUserIdBytes
The user-id that was used for the submission, as described in ``commands.proto``. Must be a valid UserIdString (as described in ``value.proto``). Optional for historic completions where this data is not available.
string user_id = 4 [json_name = "userId"];
- Parameters:
value
- The bytes for userId to set.- Returns:
- This builder for chaining.
-
getActAsList
public com.google.protobuf.ProtocolStringList getActAsList()The set of parties on whose behalf the commands were executed. Contains the ``act_as`` parties from ``commands.proto`` filtered to the requesting parties in CompletionStreamRequest. 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 [json_name = "actAs"];
- Specified by:
getActAsList
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- A list containing the actAs.
-
getActAsCount
public int getActAsCount()The set of parties on whose behalf the commands were executed. Contains the ``act_as`` parties from ``commands.proto`` filtered to the requesting parties in CompletionStreamRequest. 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 [json_name = "actAs"];
- Specified by:
getActAsCount
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The count of actAs.
-
getActAs
The set of parties on whose behalf the commands were executed. Contains the ``act_as`` parties from ``commands.proto`` filtered to the requesting parties in CompletionStreamRequest. 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 [json_name = "actAs"];
- Specified by:
getActAs
in interfaceCompletionOuterClass.CompletionOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The actAs at the given index.
-
getActAsBytes
public com.google.protobuf.ByteString getActAsBytes(int index) The set of parties on whose behalf the commands were executed. Contains the ``act_as`` parties from ``commands.proto`` filtered to the requesting parties in CompletionStreamRequest. 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 [json_name = "actAs"];
- Specified by:
getActAsBytes
in interfaceCompletionOuterClass.CompletionOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the actAs at the given index.
-
setActAs
The set of parties on whose behalf the commands were executed. Contains the ``act_as`` parties from ``commands.proto`` filtered to the requesting parties in CompletionStreamRequest. 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 [json_name = "actAs"];
- Parameters:
index
- The index to set the value at.value
- The actAs to set.- Returns:
- This builder for chaining.
-
addActAs
The set of parties on whose behalf the commands were executed. Contains the ``act_as`` parties from ``commands.proto`` filtered to the requesting parties in CompletionStreamRequest. 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 [json_name = "actAs"];
- Parameters:
value
- The actAs to add.- Returns:
- This builder for chaining.
-
addAllActAs
The set of parties on whose behalf the commands were executed. Contains the ``act_as`` parties from ``commands.proto`` filtered to the requesting parties in CompletionStreamRequest. 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 [json_name = "actAs"];
- Parameters:
values
- The actAs to add.- Returns:
- This builder for chaining.
-
clearActAs
The set of parties on whose behalf the commands were executed. Contains the ``act_as`` parties from ``commands.proto`` filtered to the requesting parties in CompletionStreamRequest. 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 [json_name = "actAs"];
- Returns:
- This builder for chaining.
-
addActAsBytes
The set of parties on whose behalf the commands were executed. Contains the ``act_as`` parties from ``commands.proto`` filtered to the requesting parties in CompletionStreamRequest. 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 [json_name = "actAs"];
- Parameters:
value
- The bytes of the actAs to add.- Returns:
- This builder for chaining.
-
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 [json_name = "submissionId"];
- Specified by:
getSubmissionId
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The submissionId.
-
getSubmissionIdBytes
public com.google.protobuf.ByteString getSubmissionIdBytes()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 [json_name = "submissionId"];
- Specified by:
getSubmissionIdBytes
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The bytes for submissionId.
-
setSubmissionId
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 [json_name = "submissionId"];
- Parameters:
value
- The submissionId to set.- Returns:
- This builder for chaining.
-
clearSubmissionId
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 [json_name = "submissionId"];
- Returns:
- This builder for chaining.
-
setSubmissionIdBytes
public CompletionOuterClass.Completion.Builder setSubmissionIdBytes(com.google.protobuf.ByteString value) 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 [json_name = "submissionId"];
- Parameters:
value
- The bytes for submissionId to set.- Returns:
- This builder for chaining.
-
hasDeduplicationOffset
public boolean hasDeduplicationOffset()Specifies the start of the deduplication period by a completion stream offset (exclusive). Must be a valid absolute offset (positive integer) or participant begin (zero).
int64 deduplication_offset = 7 [json_name = "deduplicationOffset"];
- Specified by:
hasDeduplicationOffset
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- Whether the deduplicationOffset field is set.
-
getDeduplicationOffset
public long getDeduplicationOffset()Specifies the start of the deduplication period by a completion stream offset (exclusive). Must be a valid absolute offset (positive integer) or participant begin (zero).
int64 deduplication_offset = 7 [json_name = "deduplicationOffset"];
- Specified by:
getDeduplicationOffset
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The deduplicationOffset.
-
setDeduplicationOffset
Specifies the start of the deduplication period by a completion stream offset (exclusive). Must be a valid absolute offset (positive integer) or participant begin (zero).
int64 deduplication_offset = 7 [json_name = "deduplicationOffset"];
- Parameters:
value
- The deduplicationOffset to set.- Returns:
- This builder for chaining.
-
clearDeduplicationOffset
Specifies the start of the deduplication period by a completion stream offset (exclusive). Must be a valid absolute offset (positive integer) or participant begin (zero).
int64 deduplication_offset = 7 [json_name = "deduplicationOffset"];
- Returns:
- This builder for chaining.
-
hasDeduplicationDuration
public 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 = 8 [json_name = "deduplicationDuration"];
- Specified by:
hasDeduplicationDuration
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- Whether the deduplicationDuration field is set.
-
getDeduplicationDuration
public 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 = 8 [json_name = "deduplicationDuration"];
- Specified by:
getDeduplicationDuration
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The deduplicationDuration.
-
setDeduplicationDuration
public CompletionOuterClass.Completion.Builder setDeduplicationDuration(com.google.protobuf.Duration value) Specifies the length of the deduplication period. It is measured in record time of completions. Must be non-negative.
.google.protobuf.Duration deduplication_duration = 8 [json_name = "deduplicationDuration"];
-
setDeduplicationDuration
public CompletionOuterClass.Completion.Builder setDeduplicationDuration(com.google.protobuf.Duration.Builder builderForValue) Specifies the length of the deduplication period. It is measured in record time of completions. Must be non-negative.
.google.protobuf.Duration deduplication_duration = 8 [json_name = "deduplicationDuration"];
-
mergeDeduplicationDuration
public CompletionOuterClass.Completion.Builder mergeDeduplicationDuration(com.google.protobuf.Duration value) Specifies the length of the deduplication period. It is measured in record time of completions. Must be non-negative.
.google.protobuf.Duration deduplication_duration = 8 [json_name = "deduplicationDuration"];
-
clearDeduplicationDuration
Specifies the length of the deduplication period. It is measured in record time of completions. Must be non-negative.
.google.protobuf.Duration deduplication_duration = 8 [json_name = "deduplicationDuration"];
-
getDeduplicationDurationBuilder
public com.google.protobuf.Duration.Builder getDeduplicationDurationBuilder()Specifies the length of the deduplication period. It is measured in record time of completions. Must be non-negative.
.google.protobuf.Duration deduplication_duration = 8 [json_name = "deduplicationDuration"];
-
getDeduplicationDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDeduplicationDurationOrBuilder()Specifies the length of the deduplication period. It is measured in record time of completions. Must be non-negative.
.google.protobuf.Duration deduplication_duration = 8 [json_name = "deduplicationDuration"];
- Specified by:
getDeduplicationDurationOrBuilder
in interfaceCompletionOuterClass.CompletionOrBuilder
-
hasTraceContext
public boolean hasTraceContext()Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission. We typically use a header to transfer this type of information. Here we use message body, because it is used in gRPC streams which do not support per message headers. This field will be populated with the trace context contained in the original submission. If that was not provided, a unique ledger-api-server generated trace context will be used instead.
.com.daml.ledger.api.v2.TraceContext trace_context = 9 [json_name = "traceContext"];
- Specified by:
hasTraceContext
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- Whether the traceContext field is set.
-
getTraceContext
Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission. We typically use a header to transfer this type of information. Here we use message body, because it is used in gRPC streams which do not support per message headers. This field will be populated with the trace context contained in the original submission. If that was not provided, a unique ledger-api-server generated trace context will be used instead.
.com.daml.ledger.api.v2.TraceContext trace_context = 9 [json_name = "traceContext"];
- Specified by:
getTraceContext
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The traceContext.
-
setTraceContext
public CompletionOuterClass.Completion.Builder setTraceContext(TraceContextOuterClass.TraceContext value) Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission. We typically use a header to transfer this type of information. Here we use message body, because it is used in gRPC streams which do not support per message headers. This field will be populated with the trace context contained in the original submission. If that was not provided, a unique ledger-api-server generated trace context will be used instead.
.com.daml.ledger.api.v2.TraceContext trace_context = 9 [json_name = "traceContext"];
-
setTraceContext
public CompletionOuterClass.Completion.Builder setTraceContext(TraceContextOuterClass.TraceContext.Builder builderForValue) Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission. We typically use a header to transfer this type of information. Here we use message body, because it is used in gRPC streams which do not support per message headers. This field will be populated with the trace context contained in the original submission. If that was not provided, a unique ledger-api-server generated trace context will be used instead.
.com.daml.ledger.api.v2.TraceContext trace_context = 9 [json_name = "traceContext"];
-
mergeTraceContext
public CompletionOuterClass.Completion.Builder mergeTraceContext(TraceContextOuterClass.TraceContext value) Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission. We typically use a header to transfer this type of information. Here we use message body, because it is used in gRPC streams which do not support per message headers. This field will be populated with the trace context contained in the original submission. If that was not provided, a unique ledger-api-server generated trace context will be used instead.
.com.daml.ledger.api.v2.TraceContext trace_context = 9 [json_name = "traceContext"];
-
clearTraceContext
Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission. We typically use a header to transfer this type of information. Here we use message body, because it is used in gRPC streams which do not support per message headers. This field will be populated with the trace context contained in the original submission. If that was not provided, a unique ledger-api-server generated trace context will be used instead.
.com.daml.ledger.api.v2.TraceContext trace_context = 9 [json_name = "traceContext"];
-
getTraceContextBuilder
Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission. We typically use a header to transfer this type of information. Here we use message body, because it is used in gRPC streams which do not support per message headers. This field will be populated with the trace context contained in the original submission. If that was not provided, a unique ledger-api-server generated trace context will be used instead.
.com.daml.ledger.api.v2.TraceContext trace_context = 9 [json_name = "traceContext"];
-
getTraceContextOrBuilder
Optional; ledger API trace context The trace context transported in this message corresponds to the trace context supplied by the client application in a HTTP2 header of the original command submission. We typically use a header to transfer this type of information. Here we use message body, because it is used in gRPC streams which do not support per message headers. This field will be populated with the trace context contained in the original submission. If that was not provided, a unique ledger-api-server generated trace context will be used instead.
.com.daml.ledger.api.v2.TraceContext trace_context = 9 [json_name = "traceContext"];
- Specified by:
getTraceContextOrBuilder
in interfaceCompletionOuterClass.CompletionOrBuilder
-
getOffset
public long getOffset()May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required, must be a valid absolute offset (positive integer).
int64 offset = 10 [json_name = "offset"];
- Specified by:
getOffset
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The offset.
-
setOffset
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required, must be a valid absolute offset (positive integer).
int64 offset = 10 [json_name = "offset"];
- Parameters:
value
- The offset to set.- Returns:
- This builder for chaining.
-
clearOffset
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required, must be a valid absolute offset (positive integer).
int64 offset = 10 [json_name = "offset"];
- Returns:
- This builder for chaining.
-
hasSynchronizerTime
public boolean hasSynchronizerTime()The synchronizer along with its record time. The synchronizer id provided, in case of - successful/failed transactions: identifies the synchronizer of the transaction - for successful/failed unassign commands: identifies the source synchronizer - for successful/failed assign commands: identifies the target synchronizer Required
.com.daml.ledger.api.v2.SynchronizerTime synchronizer_time = 11 [json_name = "synchronizerTime"];
- Specified by:
hasSynchronizerTime
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- Whether the synchronizerTime field is set.
-
getSynchronizerTime
The synchronizer along with its record time. The synchronizer id provided, in case of - successful/failed transactions: identifies the synchronizer of the transaction - for successful/failed unassign commands: identifies the source synchronizer - for successful/failed assign commands: identifies the target synchronizer Required
.com.daml.ledger.api.v2.SynchronizerTime synchronizer_time = 11 [json_name = "synchronizerTime"];
- Specified by:
getSynchronizerTime
in interfaceCompletionOuterClass.CompletionOrBuilder
- Returns:
- The synchronizerTime.
-
setSynchronizerTime
public CompletionOuterClass.Completion.Builder setSynchronizerTime(OffsetCheckpointOuterClass.SynchronizerTime value) The synchronizer along with its record time. The synchronizer id provided, in case of - successful/failed transactions: identifies the synchronizer of the transaction - for successful/failed unassign commands: identifies the source synchronizer - for successful/failed assign commands: identifies the target synchronizer Required
.com.daml.ledger.api.v2.SynchronizerTime synchronizer_time = 11 [json_name = "synchronizerTime"];
-
setSynchronizerTime
public CompletionOuterClass.Completion.Builder setSynchronizerTime(OffsetCheckpointOuterClass.SynchronizerTime.Builder builderForValue) The synchronizer along with its record time. The synchronizer id provided, in case of - successful/failed transactions: identifies the synchronizer of the transaction - for successful/failed unassign commands: identifies the source synchronizer - for successful/failed assign commands: identifies the target synchronizer Required
.com.daml.ledger.api.v2.SynchronizerTime synchronizer_time = 11 [json_name = "synchronizerTime"];
-
mergeSynchronizerTime
public CompletionOuterClass.Completion.Builder mergeSynchronizerTime(OffsetCheckpointOuterClass.SynchronizerTime value) The synchronizer along with its record time. The synchronizer id provided, in case of - successful/failed transactions: identifies the synchronizer of the transaction - for successful/failed unassign commands: identifies the source synchronizer - for successful/failed assign commands: identifies the target synchronizer Required
.com.daml.ledger.api.v2.SynchronizerTime synchronizer_time = 11 [json_name = "synchronizerTime"];
-
clearSynchronizerTime
The synchronizer along with its record time. The synchronizer id provided, in case of - successful/failed transactions: identifies the synchronizer of the transaction - for successful/failed unassign commands: identifies the source synchronizer - for successful/failed assign commands: identifies the target synchronizer Required
.com.daml.ledger.api.v2.SynchronizerTime synchronizer_time = 11 [json_name = "synchronizerTime"];
-
getSynchronizerTimeBuilder
The synchronizer along with its record time. The synchronizer id provided, in case of - successful/failed transactions: identifies the synchronizer of the transaction - for successful/failed unassign commands: identifies the source synchronizer - for successful/failed assign commands: identifies the target synchronizer Required
.com.daml.ledger.api.v2.SynchronizerTime synchronizer_time = 11 [json_name = "synchronizerTime"];
-
getSynchronizerTimeOrBuilder
The synchronizer along with its record time. The synchronizer id provided, in case of - successful/failed transactions: identifies the synchronizer of the transaction - for successful/failed unassign commands: identifies the source synchronizer - for successful/failed assign commands: identifies the target synchronizer Required
.com.daml.ledger.api.v2.SynchronizerTime synchronizer_time = 11 [json_name = "synchronizerTime"];
- Specified by:
getSynchronizerTimeOrBuilder
in interfaceCompletionOuterClass.CompletionOrBuilder
-
setUnknownFields
public final CompletionOuterClass.Completion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-
mergeUnknownFields
public final CompletionOuterClass.Completion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompletionOuterClass.Completion.Builder>
-