Package com.daml.ledger.api.v2
Class StateServiceOuterClass.GetActiveContractsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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) Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.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.Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.booleanProvided for backwards compatibility, it will be removed in the Canton version 3.4.0.booleanFormat of the contract_entries in the result.booleanProvided for backwards compatibility, it will be removed in the Canton version 3.4.0.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanFormat of the contract_entries in the result.Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.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.Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.setFilter(TransactionFilterOuterClass.TransactionFilter.Builder builderForValue) Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVerbose(boolean value) Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.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
-
hasFilter
public boolean hasFilter()Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. Templates to include in the served snapshot, per party. Optional, if specified event_format must be unset, if not specified event_format must be set.
.com.daml.ledger.api.v2.TransactionFilter filter = 1 [json_name = "filter"];- Specified by:
hasFilterin interfaceStateServiceOuterClass.GetActiveContractsRequestOrBuilder- Returns:
- Whether the filter field is set.
-
getFilter
Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. Templates to include in the served snapshot, per party. Optional, if specified event_format must be unset, if not specified event_format must be set.
.com.daml.ledger.api.v2.TransactionFilter filter = 1 [json_name = "filter"];- Specified by:
getFilterin interfaceStateServiceOuterClass.GetActiveContractsRequestOrBuilder- Returns:
- The filter.
-
setFilter
public StateServiceOuterClass.GetActiveContractsRequest.Builder setFilter(TransactionFilterOuterClass.TransactionFilter value) Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. Templates to include in the served snapshot, per party. Optional, if specified event_format must be unset, if not specified event_format must be set.
.com.daml.ledger.api.v2.TransactionFilter filter = 1 [json_name = "filter"]; -
setFilter
public StateServiceOuterClass.GetActiveContractsRequest.Builder setFilter(TransactionFilterOuterClass.TransactionFilter.Builder builderForValue) Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. Templates to include in the served snapshot, per party. Optional, if specified event_format must be unset, if not specified event_format must be set.
.com.daml.ledger.api.v2.TransactionFilter filter = 1 [json_name = "filter"]; -
mergeFilter
public StateServiceOuterClass.GetActiveContractsRequest.Builder mergeFilter(TransactionFilterOuterClass.TransactionFilter value) Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. Templates to include in the served snapshot, per party. Optional, if specified event_format must be unset, if not specified event_format must be set.
.com.daml.ledger.api.v2.TransactionFilter filter = 1 [json_name = "filter"]; -
clearFilter
Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. Templates to include in the served snapshot, per party. Optional, if specified event_format must be unset, if not specified event_format must be set.
.com.daml.ledger.api.v2.TransactionFilter filter = 1 [json_name = "filter"]; -
getFilterBuilder
Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. Templates to include in the served snapshot, per party. Optional, if specified event_format must be unset, if not specified event_format must be set.
.com.daml.ledger.api.v2.TransactionFilter filter = 1 [json_name = "filter"]; -
getFilterOrBuilder
Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. Templates to include in the served snapshot, per party. Optional, if specified event_format must be unset, if not specified event_format must be set.
.com.daml.ledger.api.v2.TransactionFilter filter = 1 [json_name = "filter"];- Specified by:
getFilterOrBuilderin interfaceStateServiceOuterClass.GetActiveContractsRequestOrBuilder
-
getVerbose
public boolean getVerbose()Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. If enabled, values served over the API will contain more information than strictly necessary to interpret the data. In particular, setting the verbose flag to true triggers the ledger to include labels for record fields. Optional, if specified event_format must be unset.
bool verbose = 2 [json_name = "verbose"];- Specified by:
getVerbosein interfaceStateServiceOuterClass.GetActiveContractsRequestOrBuilder- Returns:
- The verbose.
-
setVerbose
Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. If enabled, values served over the API will contain more information than strictly necessary to interpret the data. In particular, setting the verbose flag to true triggers the ledger to include labels for record fields. Optional, if specified event_format must be unset.
bool verbose = 2 [json_name = "verbose"];- Parameters:
value- The verbose to set.- Returns:
- This builder for chaining.
-
clearVerbose
Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. If enabled, values served over the API will contain more information than strictly necessary to interpret the data. In particular, setting the verbose flag to true triggers the ledger to include labels for record fields. Optional, if specified event_format must be unset.
bool verbose = 2 [json_name = "verbose"];- Returns:
- This builder for chaining.
-
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. Required, must be a valid absolute offset (positive integer) or ledger begin offset (zero). If zero, the empty set will be returned.
int64 active_at_offset = 3 [json_name = "activeAtOffset"];- 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. Required, must be a valid absolute offset (positive integer) or ledger begin offset (zero). If zero, the empty set will be returned.
int64 active_at_offset = 3 [json_name = "activeAtOffset"];- 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. Required, must be a valid absolute offset (positive integer) or ledger begin offset (zero). If zero, the empty set will be returned.
int64 active_at_offset = 3 [json_name = "activeAtOffset"];- 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. Optional for backwards compatibility, defaults to an EventFormat where: - filters_by_party is the filter.filters_by_party from this request - filters_for_any_party is the filter.filters_for_any_party from this request - verbose is the verbose field from this request
.com.daml.ledger.api.v2.EventFormat event_format = 4 [json_name = "eventFormat"];- 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. Optional for backwards compatibility, defaults to an EventFormat where: - filters_by_party is the filter.filters_by_party from this request - filters_for_any_party is the filter.filters_for_any_party from this request - verbose is the verbose field from this request
.com.daml.ledger.api.v2.EventFormat event_format = 4 [json_name = "eventFormat"];- 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. Optional for backwards compatibility, defaults to an EventFormat where: - filters_by_party is the filter.filters_by_party from this request - filters_for_any_party is the filter.filters_for_any_party from this request - verbose is the verbose field from this request
.com.daml.ledger.api.v2.EventFormat event_format = 4 [json_name = "eventFormat"]; -
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. Optional for backwards compatibility, defaults to an EventFormat where: - filters_by_party is the filter.filters_by_party from this request - filters_for_any_party is the filter.filters_for_any_party from this request - verbose is the verbose field from this request
.com.daml.ledger.api.v2.EventFormat event_format = 4 [json_name = "eventFormat"]; -
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. Optional for backwards compatibility, defaults to an EventFormat where: - filters_by_party is the filter.filters_by_party from this request - filters_for_any_party is the filter.filters_for_any_party from this request - verbose is the verbose field from this request
.com.daml.ledger.api.v2.EventFormat event_format = 4 [json_name = "eventFormat"]; -
clearEventFormat
Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Optional for backwards compatibility, defaults to an EventFormat where: - filters_by_party is the filter.filters_by_party from this request - filters_for_any_party is the filter.filters_for_any_party from this request - verbose is the verbose field from this request
.com.daml.ledger.api.v2.EventFormat event_format = 4 [json_name = "eventFormat"]; -
getEventFormatBuilder
Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Optional for backwards compatibility, defaults to an EventFormat where: - filters_by_party is the filter.filters_by_party from this request - filters_for_any_party is the filter.filters_for_any_party from this request - verbose is the verbose field from this request
.com.daml.ledger.api.v2.EventFormat event_format = 4 [json_name = "eventFormat"]; -
getEventFormatOrBuilder
Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Optional for backwards compatibility, defaults to an EventFormat where: - filters_by_party is the filter.filters_by_party from this request - filters_for_any_party is the filter.filters_for_any_party from this request - verbose is the verbose field from this request
.com.daml.ledger.api.v2.EventFormat event_format = 4 [json_name = "eventFormat"];- Specified by:
getEventFormatOrBuilderin interfaceStateServiceOuterClass.GetActiveContractsRequestOrBuilder
-
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>
-