Package com.daml.ledger.api.v2
Class UpdateServiceOuterClass.GetUpdatesPageResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UpdateServiceOuterClass.GetUpdatesPageResponse.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageResponse.Builder>
com.daml.ledger.api.v2.UpdateServiceOuterClass.GetUpdatesPageResponse.Builder
- All Implemented Interfaces:
UpdateServiceOuterClass.GetUpdatesPageResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
UpdateServiceOuterClass.GetUpdatesPageResponse
public static final class UpdateServiceOuterClass.GetUpdatesPageResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageResponse.Builder>
implements UpdateServiceOuterClass.GetUpdatesPageResponseOrBuilder
Protobuf type
com.daml.ledger.api.v2.GetUpdatesPageResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllUpdates(Iterable<? extends UpdateServiceOuterClass.GetUpdateResponse> values) The first max_page_size updates that match the filter in the request.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addUpdates(int index, UpdateServiceOuterClass.GetUpdateResponse value) The first max_page_size updates that match the filter in the request.addUpdates(int index, UpdateServiceOuterClass.GetUpdateResponse.Builder builderForValue) The first max_page_size updates that match the filter in the request.The first max_page_size updates that match the filter in the request.addUpdates(UpdateServiceOuterClass.GetUpdateResponse.Builder builderForValue) The first max_page_size updates that match the filter in the request.The first max_page_size updates that match the filter in the request.addUpdatesBuilder(int index) The first max_page_size updates that match the filter in the request.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Represents the upper bound of the page.Represents the lower bound of this page.If the value is not populated, this is the last page.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The first max_page_size updates that match the filter in the request.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongRepresents the upper bound of the page.longRepresents the lower bound of this page.com.google.protobuf.ByteStringIf the value is not populated, this is the last page.getUpdates(int index) The first max_page_size updates that match the filter in the request.getUpdatesBuilder(int index) The first max_page_size updates that match the filter in the request.The first max_page_size updates that match the filter in the request.intThe first max_page_size updates that match the filter in the request.The first max_page_size updates that match the filter in the request.getUpdatesOrBuilder(int index) The first max_page_size updates that match the filter in the request.The first max_page_size updates that match the filter in the request.booleanIf the value is not populated, this is the last page.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) removeUpdates(int index) The first max_page_size updates that match the filter in the request.setHighestPageOffsetInclusive(long value) Represents the upper bound of the page.setLowestPageOffsetExclusive(long value) Represents the lower bound of this page.setNextPageToken(com.google.protobuf.ByteString value) If the value is not populated, this is the last page.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUpdates(int index, UpdateServiceOuterClass.GetUpdateResponse value) The first max_page_size updates that match the filter in the request.setUpdates(int index, UpdateServiceOuterClass.GetUpdateResponse.Builder builderForValue) The first max_page_size updates that match the filter in the request.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<UpdateServiceOuterClass.GetUpdatesPageResponse.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.GetUpdatesPageResponse.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.GetUpdatesPageResponse.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.GetUpdatesPageResponse.Builder>
-
setField
public UpdateServiceOuterClass.GetUpdatesPageResponse.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.GetUpdatesPageResponse.Builder>
-
clearField
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageResponse.Builder>
-
clearOneof
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageResponse.Builder>
-
setRepeatedField
public UpdateServiceOuterClass.GetUpdatesPageResponse.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.GetUpdatesPageResponse.Builder>
-
addRepeatedField
public UpdateServiceOuterClass.GetUpdatesPageResponse.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.GetUpdatesPageResponse.Builder>
-
mergeFrom
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateServiceOuterClass.GetUpdatesPageResponse.Builder>
-
mergeFrom
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder mergeFrom(UpdateServiceOuterClass.GetUpdatesPageResponse other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageResponse.Builder>
-
mergeFrom
public UpdateServiceOuterClass.GetUpdatesPageResponse.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.GetUpdatesPageResponse.Builder>- Throws:
IOException
-
getUpdatesList
The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1;- Specified by:
getUpdatesListin interfaceUpdateServiceOuterClass.GetUpdatesPageResponseOrBuilder
-
getUpdatesCount
public int getUpdatesCount()The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1;- Specified by:
getUpdatesCountin interfaceUpdateServiceOuterClass.GetUpdatesPageResponseOrBuilder
-
getUpdates
The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1;- Specified by:
getUpdatesin interfaceUpdateServiceOuterClass.GetUpdatesPageResponseOrBuilder
-
setUpdates
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder setUpdates(int index, UpdateServiceOuterClass.GetUpdateResponse value) The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
setUpdates
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder setUpdates(int index, UpdateServiceOuterClass.GetUpdateResponse.Builder builderForValue) The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
addUpdates
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder addUpdates(UpdateServiceOuterClass.GetUpdateResponse value) The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
addUpdates
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder addUpdates(int index, UpdateServiceOuterClass.GetUpdateResponse value) The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
addUpdates
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder addUpdates(UpdateServiceOuterClass.GetUpdateResponse.Builder builderForValue) The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
addUpdates
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder addUpdates(int index, UpdateServiceOuterClass.GetUpdateResponse.Builder builderForValue) The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
addAllUpdates
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder addAllUpdates(Iterable<? extends UpdateServiceOuterClass.GetUpdateResponse> values) The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
clearUpdates
The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
removeUpdates
The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
getUpdatesBuilder
The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
getUpdatesOrBuilder
The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1;- Specified by:
getUpdatesOrBuilderin interfaceUpdateServiceOuterClass.GetUpdatesPageResponseOrBuilder
-
getUpdatesOrBuilderList
The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1;- Specified by:
getUpdatesOrBuilderListin interfaceUpdateServiceOuterClass.GetUpdatesPageResponseOrBuilder
-
addUpdatesBuilder
The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
addUpdatesBuilder
The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
getUpdatesBuilderList
The first max_page_size updates that match the filter in the request. In case descending_order was selected, the order of the updates is in reversed offset order. Optional: can be empty
repeated .com.daml.ledger.api.v2.GetUpdateResponse updates = 1; -
getLowestPageOffsetExclusive
public long getLowestPageOffsetExclusive()Represents the lower bound of this page. Required
int64 lowest_page_offset_exclusive = 2;- Specified by:
getLowestPageOffsetExclusivein interfaceUpdateServiceOuterClass.GetUpdatesPageResponseOrBuilder- Returns:
- The lowestPageOffsetExclusive.
-
setLowestPageOffsetExclusive
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder setLowestPageOffsetExclusive(long value) Represents the lower bound of this page. Required
int64 lowest_page_offset_exclusive = 2;- Parameters:
value- The lowestPageOffsetExclusive to set.- Returns:
- This builder for chaining.
-
clearLowestPageOffsetExclusive
Represents the lower bound of this page. Required
int64 lowest_page_offset_exclusive = 2;- Returns:
- This builder for chaining.
-
getHighestPageOffsetInclusive
public long getHighestPageOffsetInclusive()Represents the upper bound of the page. Required
int64 highest_page_offset_inclusive = 3;- Specified by:
getHighestPageOffsetInclusivein interfaceUpdateServiceOuterClass.GetUpdatesPageResponseOrBuilder- Returns:
- The highestPageOffsetInclusive.
-
setHighestPageOffsetInclusive
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder setHighestPageOffsetInclusive(long value) Represents the upper bound of the page. Required
int64 highest_page_offset_inclusive = 3;- Parameters:
value- The highestPageOffsetInclusive to set.- Returns:
- This builder for chaining.
-
clearHighestPageOffsetInclusive
Represents the upper bound of the page. Required
int64 highest_page_offset_inclusive = 3;- Returns:
- This builder for chaining.
-
hasNextPageToken
public boolean hasNextPageToken()If the value is not populated, this is the last page. If the value is populated, this token can be used to get the next page. If the original ``GetFirstUpdatePageRequest`` end_offset_inclusive was not specified and the request uses ascending order, then this token will always be populated, so you can use it to "tail" the ledger by repeatedly polling with the new page token returned. Optional: can be empty
optional bytes next_page_token = 4;- Specified by:
hasNextPageTokenin interfaceUpdateServiceOuterClass.GetUpdatesPageResponseOrBuilder- Returns:
- Whether the nextPageToken field is set.
-
getNextPageToken
public com.google.protobuf.ByteString getNextPageToken()If the value is not populated, this is the last page. If the value is populated, this token can be used to get the next page. If the original ``GetFirstUpdatePageRequest`` end_offset_inclusive was not specified and the request uses ascending order, then this token will always be populated, so you can use it to "tail" the ledger by repeatedly polling with the new page token returned. Optional: can be empty
optional bytes next_page_token = 4;- Specified by:
getNextPageTokenin interfaceUpdateServiceOuterClass.GetUpdatesPageResponseOrBuilder- Returns:
- The nextPageToken.
-
setNextPageToken
public UpdateServiceOuterClass.GetUpdatesPageResponse.Builder setNextPageToken(com.google.protobuf.ByteString value) If the value is not populated, this is the last page. If the value is populated, this token can be used to get the next page. If the original ``GetFirstUpdatePageRequest`` end_offset_inclusive was not specified and the request uses ascending order, then this token will always be populated, so you can use it to "tail" the ledger by repeatedly polling with the new page token returned. Optional: can be empty
optional bytes next_page_token = 4;- Parameters:
value- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
If the value is not populated, this is the last page. If the value is populated, this token can be used to get the next page. If the original ``GetFirstUpdatePageRequest`` end_offset_inclusive was not specified and the request uses ascending order, then this token will always be populated, so you can use it to "tail" the ledger by repeatedly polling with the new page token returned. Optional: can be empty
optional bytes next_page_token = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final UpdateServiceOuterClass.GetUpdatesPageResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageResponse.Builder>
-
mergeUnknownFields
public final UpdateServiceOuterClass.GetUpdatesPageResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateServiceOuterClass.GetUpdatesPageResponse.Builder>
-