Package com.daml.ledger.api.v2
Class CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder
- All Implemented Interfaces:
CommandCompletionServiceOuterClass.CompletionStreamRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CommandCompletionServiceOuterClass.CompletionStreamRequest
public static final class CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
implements CommandCompletionServiceOuterClass.CompletionStreamRequestOrBuilder
Protobuf type
com.daml.ledger.api.v2.CompletionStreamRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllParties(Iterable<String> values) Non-empty list of parties whose data should be included.addParties(String value) Non-empty list of parties whose data should be included.addPartiesBytes(com.google.protobuf.ByteString value) Non-empty list of parties whose data should be included.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()This optional field indicates the minimum offset for completions.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Non-empty list of parties whose data should be included.Only completions of commands submitted with the same user_id will be visible in the stream.clone()longThis optional field indicates the minimum offset for completions.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetParties(int index) Non-empty list of parties whose data should be included.com.google.protobuf.ByteStringgetPartiesBytes(int index) Non-empty list of parties whose data should be included.intNon-empty list of parties whose data should be included.com.google.protobuf.ProtocolStringListNon-empty list of parties whose data should be included.Only completions of commands submitted with the same user_id will be visible in the stream.com.google.protobuf.ByteStringOnly completions of commands submitted with the same user_id will be visible in the stream.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBeginExclusive(long value) This optional field indicates the minimum offset for completions.setParties(int index, String value) Non-empty list of parties whose data should be included.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Only completions of commands submitted with the same user_id will be visible in the stream.setUserIdBytes(com.google.protobuf.ByteString value) Only completions of commands submitted with the same user_id will be visible in the stream.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
setField
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
clearField
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
clearOneof
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
setRepeatedField
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
addRepeatedField
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
mergeFrom
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
mergeFrom
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>- Throws:
IOException
-
getUserId
Only completions of commands submitted with the same user_id will be visible in the stream. Must be a valid UserIdString (as described in ``value.proto``). Required unless authentication is used with a user token. In that case, the token's user-id will be used for the request's user_id.
string user_id = 1 [json_name = "userId"];- Specified by:
getUserIdin interfaceCommandCompletionServiceOuterClass.CompletionStreamRequestOrBuilder- Returns:
- The userId.
-
getUserIdBytes
public com.google.protobuf.ByteString getUserIdBytes()Only completions of commands submitted with the same user_id will be visible in the stream. Must be a valid UserIdString (as described in ``value.proto``). Required unless authentication is used with a user token. In that case, the token's user-id will be used for the request's user_id.
string user_id = 1 [json_name = "userId"];- Specified by:
getUserIdBytesin interfaceCommandCompletionServiceOuterClass.CompletionStreamRequestOrBuilder- Returns:
- The bytes for userId.
-
setUserId
Only completions of commands submitted with the same user_id will be visible in the stream. Must be a valid UserIdString (as described in ``value.proto``). Required unless authentication is used with a user token. In that case, the token's user-id will be used for the request's user_id.
string user_id = 1 [json_name = "userId"];- Parameters:
value- The userId to set.- Returns:
- This builder for chaining.
-
clearUserId
Only completions of commands submitted with the same user_id will be visible in the stream. Must be a valid UserIdString (as described in ``value.proto``). Required unless authentication is used with a user token. In that case, the token's user-id will be used for the request's user_id.
string user_id = 1 [json_name = "userId"];- Returns:
- This builder for chaining.
-
setUserIdBytes
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder setUserIdBytes(com.google.protobuf.ByteString value) Only completions of commands submitted with the same user_id will be visible in the stream. Must be a valid UserIdString (as described in ``value.proto``). Required unless authentication is used with a user token. In that case, the token's user-id will be used for the request's user_id.
string user_id = 1 [json_name = "userId"];- Parameters:
value- The bytes for userId to set.- Returns:
- This builder for chaining.
-
getPartiesList
public com.google.protobuf.ProtocolStringList getPartiesList()Non-empty list of parties whose data should be included. The stream shows only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties. Must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string parties = 2 [json_name = "parties"];- Specified by:
getPartiesListin interfaceCommandCompletionServiceOuterClass.CompletionStreamRequestOrBuilder- Returns:
- A list containing the parties.
-
getPartiesCount
public int getPartiesCount()Non-empty list of parties whose data should be included. The stream shows only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties. Must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string parties = 2 [json_name = "parties"];- Specified by:
getPartiesCountin interfaceCommandCompletionServiceOuterClass.CompletionStreamRequestOrBuilder- Returns:
- The count of parties.
-
getParties
Non-empty list of parties whose data should be included. The stream shows only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties. Must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string parties = 2 [json_name = "parties"];- Specified by:
getPartiesin interfaceCommandCompletionServiceOuterClass.CompletionStreamRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The parties at the given index.
-
getPartiesBytes
public com.google.protobuf.ByteString getPartiesBytes(int index) Non-empty list of parties whose data should be included. The stream shows only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties. Must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string parties = 2 [json_name = "parties"];- Specified by:
getPartiesBytesin interfaceCommandCompletionServiceOuterClass.CompletionStreamRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the parties at the given index.
-
setParties
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder setParties(int index, String value) Non-empty list of parties whose data should be included. The stream shows only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties. Must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string parties = 2 [json_name = "parties"];- Parameters:
index- The index to set the value at.value- The parties to set.- Returns:
- This builder for chaining.
-
addParties
Non-empty list of parties whose data should be included. The stream shows only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties. Must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string parties = 2 [json_name = "parties"];- Parameters:
value- The parties to add.- Returns:
- This builder for chaining.
-
addAllParties
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder addAllParties(Iterable<String> values) Non-empty list of parties whose data should be included. The stream shows only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties. Must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string parties = 2 [json_name = "parties"];- Parameters:
values- The parties to add.- Returns:
- This builder for chaining.
-
clearParties
Non-empty list of parties whose data should be included. The stream shows only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties. Must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string parties = 2 [json_name = "parties"];- Returns:
- This builder for chaining.
-
addPartiesBytes
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder addPartiesBytes(com.google.protobuf.ByteString value) Non-empty list of parties whose data should be included. The stream shows only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties. Must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string parties = 2 [json_name = "parties"];- Parameters:
value- The bytes of the parties to add.- Returns:
- This builder for chaining.
-
getBeginExclusive
public long getBeginExclusive()This optional field indicates the minimum offset for completions. This can be used to resume an earlier completion stream. If not set the ledger uses the ledger begin offset instead. If specified, it must be a valid absolute offset (positive integer) or zero (ledger begin offset). If the ledger has been pruned, this parameter must be specified and greater than the pruning offset.
int64 begin_exclusive = 3 [json_name = "beginExclusive"];- Specified by:
getBeginExclusivein interfaceCommandCompletionServiceOuterClass.CompletionStreamRequestOrBuilder- Returns:
- The beginExclusive.
-
setBeginExclusive
public CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder setBeginExclusive(long value) This optional field indicates the minimum offset for completions. This can be used to resume an earlier completion stream. If not set the ledger uses the ledger begin offset instead. If specified, it must be a valid absolute offset (positive integer) or zero (ledger begin offset). If the ledger has been pruned, this parameter must be specified and greater than the pruning offset.
int64 begin_exclusive = 3 [json_name = "beginExclusive"];- Parameters:
value- The beginExclusive to set.- Returns:
- This builder for chaining.
-
clearBeginExclusive
This optional field indicates the minimum offset for completions. This can be used to resume an earlier completion stream. If not set the ledger uses the ledger begin offset instead. If specified, it must be a valid absolute offset (positive integer) or zero (ledger begin offset). If the ledger has been pruned, this parameter must be specified and greater than the pruning offset.
int64 begin_exclusive = 3 [json_name = "beginExclusive"];- Returns:
- This builder for chaining.
-
setUnknownFields
public final CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-
mergeUnknownFields
public final CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder>
-