Package com.daml.ledger.api.v2
Class UpdateServiceOuterClass.GetUpdatesPageRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
com.daml.ledger.api.v2.UpdateServiceOuterClass.GetUpdatesPageRequest.Builder
- All Implemented Interfaces:
UpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
UpdateServiceOuterClass.GetUpdatesPageRequest
public static final class UpdateServiceOuterClass.GetUpdatesPageRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
implements UpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder
Protobuf type
com.daml.ledger.api.v2.GetUpdatesPageRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Exclusive lower bound offset of the requested ledger section (non-negative integer).If set, the page will populate the elements in descending order starting from the end_offset_inclusive.Inclusive upper bound offset of the requested ledger section.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The result page will contain the first max_page_size Updates of all matching updates.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) To get the next page of updates, the ``page_token`` should be set to the ``next_page_token`` of the last ``GetUpdatesPageResponse``.Requiredclone()longExclusive lower bound offset of the requested ledger section (non-negative integer).booleanIf set, the page will populate the elements in descending order starting from the end_offset_inclusive.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongInclusive upper bound offset of the requested ledger section.intThe result page will contain the first max_page_size Updates of all matching updates.com.google.protobuf.ByteStringTo get the next page of updates, the ``page_token`` should be set to the ``next_page_token`` of the last ``GetUpdatesPageResponse``.RequiredRequiredRequiredbooleanExclusive lower bound offset of the requested ledger section (non-negative integer).booleanInclusive upper bound offset of the requested ledger section.booleanThe result page will contain the first max_page_size Updates of all matching updates.booleanTo get the next page of updates, the ``page_token`` should be set to the ``next_page_token`` of the last ``GetUpdatesPageResponse``.booleanRequiredprotected 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) RequiredsetBeginOffsetExclusive(long value) Exclusive lower bound offset of the requested ledger section (non-negative integer).setDescendingOrder(boolean value) If set, the page will populate the elements in descending order starting from the end_offset_inclusive.setEndOffsetInclusive(long value) Inclusive upper bound offset of the requested ledger section.setMaxPageSize(int value) The result page will contain the first max_page_size Updates of all matching updates.setPageToken(com.google.protobuf.ByteString value) To get the next page of updates, the ``page_token`` should be set to the ``next_page_token`` of the last ``GetUpdatesPageResponse``.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) RequiredsetUpdateFormat(TransactionFilterOuterClass.UpdateFormat.Builder builderForValue) RequiredMethods 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<UpdateServiceOuterClass.GetUpdatesPageRequest.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<UpdateServiceOuterClass.GetUpdatesPageRequest.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<UpdateServiceOuterClass.GetUpdatesPageRequest.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<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
-
setField
public UpdateServiceOuterClass.GetUpdatesPageRequest.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<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
-
clearField
public UpdateServiceOuterClass.GetUpdatesPageRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
-
clearOneof
public UpdateServiceOuterClass.GetUpdatesPageRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
-
setRepeatedField
public UpdateServiceOuterClass.GetUpdatesPageRequest.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<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
-
addRepeatedField
public UpdateServiceOuterClass.GetUpdatesPageRequest.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<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
-
mergeFrom
public UpdateServiceOuterClass.GetUpdatesPageRequest.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
-
mergeFrom
public UpdateServiceOuterClass.GetUpdatesPageRequest.Builder mergeFrom(UpdateServiceOuterClass.GetUpdatesPageRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
-
mergeFrom
public UpdateServiceOuterClass.GetUpdatesPageRequest.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<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>- Throws:
IOException
-
hasBeginOffsetExclusive
public boolean hasBeginOffsetExclusive()Exclusive lower bound offset of the requested ledger section (non-negative integer). The response page will only contain updates whose offset is strictly greater than this. If set to zero or not defined, the lower bound is set to the actual pruning offset or to the beginning of the ledger if the participant was not pruned yet. If set to positive and the ledger has been pruned, this parameter must be greater or equal than the pruning offset. Optional
optional int64 begin_offset_exclusive = 1;- Specified by:
hasBeginOffsetExclusivein interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder- Returns:
- Whether the beginOffsetExclusive field is set.
-
getBeginOffsetExclusive
public long getBeginOffsetExclusive()Exclusive lower bound offset of the requested ledger section (non-negative integer). The response page will only contain updates whose offset is strictly greater than this. If set to zero or not defined, the lower bound is set to the actual pruning offset or to the beginning of the ledger if the participant was not pruned yet. If set to positive and the ledger has been pruned, this parameter must be greater or equal than the pruning offset. Optional
optional int64 begin_offset_exclusive = 1;- Specified by:
getBeginOffsetExclusivein interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder- Returns:
- The beginOffsetExclusive.
-
setBeginOffsetExclusive
Exclusive lower bound offset of the requested ledger section (non-negative integer). The response page will only contain updates whose offset is strictly greater than this. If set to zero or not defined, the lower bound is set to the actual pruning offset or to the beginning of the ledger if the participant was not pruned yet. If set to positive and the ledger has been pruned, this parameter must be greater or equal than the pruning offset. Optional
optional int64 begin_offset_exclusive = 1;- Parameters:
value- The beginOffsetExclusive to set.- Returns:
- This builder for chaining.
-
clearBeginOffsetExclusive
Exclusive lower bound offset of the requested ledger section (non-negative integer). The response page will only contain updates whose offset is strictly greater than this. If set to zero or not defined, the lower bound is set to the actual pruning offset or to the beginning of the ledger if the participant was not pruned yet. If set to positive and the ledger has been pruned, this parameter must be greater or equal than the pruning offset. Optional
optional int64 begin_offset_exclusive = 1;- Returns:
- This builder for chaining.
-
hasEndOffsetInclusive
public boolean hasEndOffsetInclusive()Inclusive upper bound offset of the requested ledger section. If specified the response will only contain updates whose offset is less than or equal to this. If not specified response will only contain updates whose offset is less than the current ledger-end. Optional
optional int64 end_offset_inclusive = 2;- Specified by:
hasEndOffsetInclusivein interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder- Returns:
- Whether the endOffsetInclusive field is set.
-
getEndOffsetInclusive
public long getEndOffsetInclusive()Inclusive upper bound offset of the requested ledger section. If specified the response will only contain updates whose offset is less than or equal to this. If not specified response will only contain updates whose offset is less than the current ledger-end. Optional
optional int64 end_offset_inclusive = 2;- Specified by:
getEndOffsetInclusivein interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder- Returns:
- The endOffsetInclusive.
-
setEndOffsetInclusive
Inclusive upper bound offset of the requested ledger section. If specified the response will only contain updates whose offset is less than or equal to this. If not specified response will only contain updates whose offset is less than the current ledger-end. Optional
optional int64 end_offset_inclusive = 2;- Parameters:
value- The endOffsetInclusive to set.- Returns:
- This builder for chaining.
-
clearEndOffsetInclusive
Inclusive upper bound offset of the requested ledger section. If specified the response will only contain updates whose offset is less than or equal to this. If not specified response will only contain updates whose offset is less than the current ledger-end. Optional
optional int64 end_offset_inclusive = 2;- Returns:
- This builder for chaining.
-
hasMaxPageSize
public boolean hasMaxPageSize()The result page will contain the first max_page_size Updates of all matching updates. The server may reject queries with max_page_size above server specified limits. If not specified, the default max_page_size is determined by the server. Optional
optional int32 max_page_size = 3;- Specified by:
hasMaxPageSizein interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder- Returns:
- Whether the maxPageSize field is set.
-
getMaxPageSize
public int getMaxPageSize()The result page will contain the first max_page_size Updates of all matching updates. The server may reject queries with max_page_size above server specified limits. If not specified, the default max_page_size is determined by the server. Optional
optional int32 max_page_size = 3;- Specified by:
getMaxPageSizein interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder- Returns:
- The maxPageSize.
-
setMaxPageSize
The result page will contain the first max_page_size Updates of all matching updates. The server may reject queries with max_page_size above server specified limits. If not specified, the default max_page_size is determined by the server. Optional
optional int32 max_page_size = 3;- Parameters:
value- The maxPageSize to set.- Returns:
- This builder for chaining.
-
clearMaxPageSize
The result page will contain the first max_page_size Updates of all matching updates. The server may reject queries with max_page_size above server specified limits. If not specified, the default max_page_size is determined by the server. Optional
optional int32 max_page_size = 3;- Returns:
- This builder for chaining.
-
hasUpdateFormat
public boolean hasUpdateFormat()Required
.com.daml.ledger.api.v2.UpdateFormat update_format = 4;- Specified by:
hasUpdateFormatin interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder- Returns:
- Whether the updateFormat field is set.
-
getUpdateFormat
Required
.com.daml.ledger.api.v2.UpdateFormat update_format = 4;- Specified by:
getUpdateFormatin interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder- Returns:
- The updateFormat.
-
setUpdateFormat
public UpdateServiceOuterClass.GetUpdatesPageRequest.Builder setUpdateFormat(TransactionFilterOuterClass.UpdateFormat value) Required
.com.daml.ledger.api.v2.UpdateFormat update_format = 4; -
setUpdateFormat
public UpdateServiceOuterClass.GetUpdatesPageRequest.Builder setUpdateFormat(TransactionFilterOuterClass.UpdateFormat.Builder builderForValue) Required
.com.daml.ledger.api.v2.UpdateFormat update_format = 4; -
mergeUpdateFormat
public UpdateServiceOuterClass.GetUpdatesPageRequest.Builder mergeUpdateFormat(TransactionFilterOuterClass.UpdateFormat value) Required
.com.daml.ledger.api.v2.UpdateFormat update_format = 4; -
clearUpdateFormat
Required
.com.daml.ledger.api.v2.UpdateFormat update_format = 4; -
getUpdateFormatBuilder
Required
.com.daml.ledger.api.v2.UpdateFormat update_format = 4; -
getUpdateFormatOrBuilder
Required
.com.daml.ledger.api.v2.UpdateFormat update_format = 4;- Specified by:
getUpdateFormatOrBuilderin interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder
-
getDescendingOrder
public boolean getDescendingOrder()If set, the page will populate the elements in descending order starting from the end_offset_inclusive. Optional
bool descending_order = 5;- Specified by:
getDescendingOrderin interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder- Returns:
- The descendingOrder.
-
setDescendingOrder
If set, the page will populate the elements in descending order starting from the end_offset_inclusive. Optional
bool descending_order = 5;- Parameters:
value- The descendingOrder to set.- Returns:
- This builder for chaining.
-
clearDescendingOrder
If set, the page will populate the elements in descending order starting from the end_offset_inclusive. Optional
bool descending_order = 5;- Returns:
- This builder for chaining.
-
hasPageToken
public boolean hasPageToken()To get the next page of updates, the ``page_token`` should be set to the ``next_page_token`` of the last ``GetUpdatesPageResponse``. To achieve correct paging: subsequent requests must - be executed on the same participant, - have the same begin_offset_exclusive, - have the same end_offset_inclusive, - have the same update_format and - have the same descending_order. If not specified, the first page of updates will be returned. Optional: can be empty
optional bytes page_token = 6;- Specified by:
hasPageTokenin interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder- Returns:
- Whether the pageToken field is set.
-
getPageToken
public com.google.protobuf.ByteString getPageToken()To get the next page of updates, the ``page_token`` should be set to the ``next_page_token`` of the last ``GetUpdatesPageResponse``. To achieve correct paging: subsequent requests must - be executed on the same participant, - have the same begin_offset_exclusive, - have the same end_offset_inclusive, - have the same update_format and - have the same descending_order. If not specified, the first page of updates will be returned. Optional: can be empty
optional bytes page_token = 6;- Specified by:
getPageTokenin interfaceUpdateServiceOuterClass.GetUpdatesPageRequestOrBuilder- Returns:
- The pageToken.
-
setPageToken
public UpdateServiceOuterClass.GetUpdatesPageRequest.Builder setPageToken(com.google.protobuf.ByteString value) To get the next page of updates, the ``page_token`` should be set to the ``next_page_token`` of the last ``GetUpdatesPageResponse``. To achieve correct paging: subsequent requests must - be executed on the same participant, - have the same begin_offset_exclusive, - have the same end_offset_inclusive, - have the same update_format and - have the same descending_order. If not specified, the first page of updates will be returned. Optional: can be empty
optional bytes page_token = 6;- Parameters:
value- The pageToken to set.- Returns:
- This builder for chaining.
-
clearPageToken
To get the next page of updates, the ``page_token`` should be set to the ``next_page_token`` of the last ``GetUpdatesPageResponse``. To achieve correct paging: subsequent requests must - be executed on the same participant, - have the same begin_offset_exclusive, - have the same end_offset_inclusive, - have the same update_format and - have the same descending_order. If not specified, the first page of updates will be returned. Optional: can be empty
optional bytes page_token = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final UpdateServiceOuterClass.GetUpdatesPageRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
-
mergeUnknownFields
public final UpdateServiceOuterClass.GetUpdatesPageRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageRequest.Builder>
-