Package com.daml.ledger.api.v2
Class StateServiceOuterClass.GetActiveContractsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<StateServiceOuterClass.GetActiveContractsRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<StateServiceOuterClass.GetActiveContractsRequest.Builder>
com.daml.ledger.api.v2.StateServiceOuterClass.GetActiveContractsRequest.Builder
- All Implemented Interfaces:
StateServiceOuterClass.GetActiveContractsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
StateServiceOuterClass.GetActiveContractsRequest
public static final class StateServiceOuterClass.GetActiveContractsRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<StateServiceOuterClass.GetActiveContractsRequest.Builder>
implements StateServiceOuterClass.GetActiveContractsRequestOrBuilder
If the given offset is different than the ledger end, and there are (un)assignments in-flight at the given offset, the snapshot may fail with "FAILED_PRECONDITION/PARTICIPANT_PRUNED_DATA_ACCESSED". Note that it is ok to request acs snapshots for party migration with offsets other than ledger end, because party migration is not concerned with incomplete (un)assignments.Protobuf type
com.daml.ledger.api.v2.GetActiveContractsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The offset at which the snapshot of the active contracts will be computed.Format of the contract_entries in the result.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Opaque representation of a continuation token defining a position in the active contracts snapshot.clone()longThe offset at which the snapshot of the active contracts will be computed.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorFormat of the contract_entries in the result.Format of the contract_entries in the result.Format of the contract_entries in the result.com.google.protobuf.ByteStringOpaque representation of a continuation token defining a position in the active contracts snapshot.booleanFormat of the contract_entries in the result.booleanOpaque representation of a continuation token defining a position in the active contracts snapshot.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanFormat of the contract_entries in the result.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setActiveAtOffset(long value) The offset at which the snapshot of the active contracts will be computed.Format of the contract_entries in the result.setEventFormat(TransactionFilterOuterClass.EventFormat.Builder builderForValue) Format of the contract_entries in the result.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStreamContinuationToken(com.google.protobuf.ByteString value) Opaque representation of a continuation token defining a position in the active contracts snapshot.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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<StateServiceOuterClass.GetActiveContractsRequest.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<StateServiceOuterClass.GetActiveContractsRequest.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<StateServiceOuterClass.GetActiveContractsRequest.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<StateServiceOuterClass.GetActiveContractsRequest.Builder>
-
setField
public StateServiceOuterClass.GetActiveContractsRequest.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<StateServiceOuterClass.GetActiveContractsRequest.Builder>
-
clearField
public StateServiceOuterClass.GetActiveContractsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StateServiceOuterClass.GetActiveContractsRequest.Builder>
-
clearOneof
public StateServiceOuterClass.GetActiveContractsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StateServiceOuterClass.GetActiveContractsRequest.Builder>
-
setRepeatedField
public StateServiceOuterClass.GetActiveContractsRequest.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<StateServiceOuterClass.GetActiveContractsRequest.Builder>
-
addRepeatedField
public StateServiceOuterClass.GetActiveContractsRequest.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<StateServiceOuterClass.GetActiveContractsRequest.Builder>
-
mergeFrom
public StateServiceOuterClass.GetActiveContractsRequest.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StateServiceOuterClass.GetActiveContractsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<StateServiceOuterClass.GetActiveContractsRequest.Builder>
-
mergeFrom
public StateServiceOuterClass.GetActiveContractsRequest.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<StateServiceOuterClass.GetActiveContractsRequest.Builder>- Throws:
IOException
-
getActiveAtOffset
public long getActiveAtOffset()The offset at which the snapshot of the active contracts will be computed. Must be no greater than the current ledger end offset. Must be greater than or equal to the last pruning offset. Must be a valid absolute offset (positive integer) or ledger begin offset (zero). If zero, the empty set will be returned. Required
int64 active_at_offset = 3;- Specified by:
getActiveAtOffsetin interfaceStateServiceOuterClass.GetActiveContractsRequestOrBuilder- Returns:
- The activeAtOffset.
-
setActiveAtOffset
The offset at which the snapshot of the active contracts will be computed. Must be no greater than the current ledger end offset. Must be greater than or equal to the last pruning offset. Must be a valid absolute offset (positive integer) or ledger begin offset (zero). If zero, the empty set will be returned. Required
int64 active_at_offset = 3;- Parameters:
value- The activeAtOffset to set.- Returns:
- This builder for chaining.
-
clearActiveAtOffset
The offset at which the snapshot of the active contracts will be computed. Must be no greater than the current ledger end offset. Must be greater than or equal to the last pruning offset. Must be a valid absolute offset (positive integer) or ledger begin offset (zero). If zero, the empty set will be returned. Required
int64 active_at_offset = 3;- Returns:
- This builder for chaining.
-
hasEventFormat
public boolean hasEventFormat()Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Required
.com.daml.ledger.api.v2.EventFormat event_format = 4;- Specified by:
hasEventFormatin interfaceStateServiceOuterClass.GetActiveContractsRequestOrBuilder- Returns:
- Whether the eventFormat field is set.
-
getEventFormat
Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Required
.com.daml.ledger.api.v2.EventFormat event_format = 4;- Specified by:
getEventFormatin interfaceStateServiceOuterClass.GetActiveContractsRequestOrBuilder- Returns:
- The eventFormat.
-
setEventFormat
public StateServiceOuterClass.GetActiveContractsRequest.Builder setEventFormat(TransactionFilterOuterClass.EventFormat value) Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Required
.com.daml.ledger.api.v2.EventFormat event_format = 4; -
setEventFormat
public StateServiceOuterClass.GetActiveContractsRequest.Builder setEventFormat(TransactionFilterOuterClass.EventFormat.Builder builderForValue) Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Required
.com.daml.ledger.api.v2.EventFormat event_format = 4; -
mergeEventFormat
public StateServiceOuterClass.GetActiveContractsRequest.Builder mergeEventFormat(TransactionFilterOuterClass.EventFormat value) Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Required
.com.daml.ledger.api.v2.EventFormat event_format = 4; -
clearEventFormat
Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Required
.com.daml.ledger.api.v2.EventFormat event_format = 4; -
getEventFormatBuilder
Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Required
.com.daml.ledger.api.v2.EventFormat event_format = 4; -
getEventFormatOrBuilder
Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Required
.com.daml.ledger.api.v2.EventFormat event_format = 4;- Specified by:
getEventFormatOrBuilderin interfaceStateServiceOuterClass.GetActiveContractsRequestOrBuilder
-
hasStreamContinuationToken
public boolean hasStreamContinuationToken()Opaque representation of a continuation token defining a position in the active contracts snapshot. The prefix of the active contracts snapshot will be omitted up to and including the element from which the continuation token was read. To reuse the continuation token from a `GetActiveContractsPageResponse`: - subsequent request must be executed on the same participant with the same version of canton, - subsequent request must have the same active_at_offset, - subsequent request must have the same event_format - and the participant must not have been pruned after the active_at_offset. If not specified, the whole active contracts snapshot will be returned. Optional: can be empty
optional bytes stream_continuation_token = 5;- Specified by:
hasStreamContinuationTokenin interfaceStateServiceOuterClass.GetActiveContractsRequestOrBuilder- Returns:
- Whether the streamContinuationToken field is set.
-
getStreamContinuationToken
public com.google.protobuf.ByteString getStreamContinuationToken()Opaque representation of a continuation token defining a position in the active contracts snapshot. The prefix of the active contracts snapshot will be omitted up to and including the element from which the continuation token was read. To reuse the continuation token from a `GetActiveContractsPageResponse`: - subsequent request must be executed on the same participant with the same version of canton, - subsequent request must have the same active_at_offset, - subsequent request must have the same event_format - and the participant must not have been pruned after the active_at_offset. If not specified, the whole active contracts snapshot will be returned. Optional: can be empty
optional bytes stream_continuation_token = 5;- Specified by:
getStreamContinuationTokenin interfaceStateServiceOuterClass.GetActiveContractsRequestOrBuilder- Returns:
- The streamContinuationToken.
-
setStreamContinuationToken
public StateServiceOuterClass.GetActiveContractsRequest.Builder setStreamContinuationToken(com.google.protobuf.ByteString value) Opaque representation of a continuation token defining a position in the active contracts snapshot. The prefix of the active contracts snapshot will be omitted up to and including the element from which the continuation token was read. To reuse the continuation token from a `GetActiveContractsPageResponse`: - subsequent request must be executed on the same participant with the same version of canton, - subsequent request must have the same active_at_offset, - subsequent request must have the same event_format - and the participant must not have been pruned after the active_at_offset. If not specified, the whole active contracts snapshot will be returned. Optional: can be empty
optional bytes stream_continuation_token = 5;- Parameters:
value- The streamContinuationToken to set.- Returns:
- This builder for chaining.
-
clearStreamContinuationToken
Opaque representation of a continuation token defining a position in the active contracts snapshot. The prefix of the active contracts snapshot will be omitted up to and including the element from which the continuation token was read. To reuse the continuation token from a `GetActiveContractsPageResponse`: - subsequent request must be executed on the same participant with the same version of canton, - subsequent request must have the same active_at_offset, - subsequent request must have the same event_format - and the participant must not have been pruned after the active_at_offset. If not specified, the whole active contracts snapshot will be returned. Optional: can be empty
optional bytes stream_continuation_token = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final StateServiceOuterClass.GetActiveContractsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StateServiceOuterClass.GetActiveContractsRequest.Builder>
-
mergeUnknownFields
public final StateServiceOuterClass.GetActiveContractsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StateServiceOuterClass.GetActiveContractsRequest.Builder>
-