public static final class GetWithProof.UpdateToLatestLedgerRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder> implements GetWithProof.UpdateToLatestLedgerRequestOrBuilder
This API is used to update the client to the latest ledger version and optionally also request 1..n other pieces of data. This allows for batch queries. All queries return proofs that a client should check to validate the data. Note that if a client only wishes to update to the latest LedgerInfo and receive the proof that this latest ledger extends the client_known_version ledger the client had, they can simply set the requested_items to an empty list.Protobuf type
types.UpdateToLatestLedgerRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public GetWithProof.UpdateToLatestLedgerRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public GetWithProof.UpdateToLatestLedgerRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GetWithProof.UpdateToLatestLedgerRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GetWithProof.UpdateToLatestLedgerRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GetWithProof.UpdateToLatestLedgerRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public GetWithProof.UpdateToLatestLedgerRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public GetWithProof.UpdateToLatestLedgerRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public GetWithProof.UpdateToLatestLedgerRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public GetWithProof.UpdateToLatestLedgerRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public GetWithProof.UpdateToLatestLedgerRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public GetWithProof.UpdateToLatestLedgerRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public GetWithProof.UpdateToLatestLedgerRequest.Builder mergeFrom(GetWithProof.UpdateToLatestLedgerRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public GetWithProof.UpdateToLatestLedgerRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>IOExceptionpublic long getClientKnownVersion()
This is the version the client already trusts. Usually the client should set this to the version it obtained the last time it synced with the chain. If this is the first time ever the client sends a request, it must use the waypoint hard-coded in its software.
uint64 client_known_version = 1;getClientKnownVersion in interface GetWithProof.UpdateToLatestLedgerRequestOrBuilderpublic GetWithProof.UpdateToLatestLedgerRequest.Builder setClientKnownVersion(long value)
This is the version the client already trusts. Usually the client should set this to the version it obtained the last time it synced with the chain. If this is the first time ever the client sends a request, it must use the waypoint hard-coded in its software.
uint64 client_known_version = 1;public GetWithProof.UpdateToLatestLedgerRequest.Builder clearClientKnownVersion()
This is the version the client already trusts. Usually the client should set this to the version it obtained the last time it synced with the chain. If this is the first time ever the client sends a request, it must use the waypoint hard-coded in its software.
uint64 client_known_version = 1;public List<GetWithProof.RequestItem> getRequestedItemsList()
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;getRequestedItemsList in interface GetWithProof.UpdateToLatestLedgerRequestOrBuilderpublic int getRequestedItemsCount()
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;getRequestedItemsCount in interface GetWithProof.UpdateToLatestLedgerRequestOrBuilderpublic GetWithProof.RequestItem getRequestedItems(int index)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;getRequestedItems in interface GetWithProof.UpdateToLatestLedgerRequestOrBuilderpublic GetWithProof.UpdateToLatestLedgerRequest.Builder setRequestedItems(int index, GetWithProof.RequestItem value)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public GetWithProof.UpdateToLatestLedgerRequest.Builder setRequestedItems(int index, GetWithProof.RequestItem.Builder builderForValue)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public GetWithProof.UpdateToLatestLedgerRequest.Builder addRequestedItems(GetWithProof.RequestItem value)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public GetWithProof.UpdateToLatestLedgerRequest.Builder addRequestedItems(int index, GetWithProof.RequestItem value)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public GetWithProof.UpdateToLatestLedgerRequest.Builder addRequestedItems(GetWithProof.RequestItem.Builder builderForValue)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public GetWithProof.UpdateToLatestLedgerRequest.Builder addRequestedItems(int index, GetWithProof.RequestItem.Builder builderForValue)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public GetWithProof.UpdateToLatestLedgerRequest.Builder addAllRequestedItems(Iterable<? extends GetWithProof.RequestItem> values)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public GetWithProof.UpdateToLatestLedgerRequest.Builder clearRequestedItems()
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public GetWithProof.UpdateToLatestLedgerRequest.Builder removeRequestedItems(int index)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public GetWithProof.RequestItem.Builder getRequestedItemsBuilder(int index)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public GetWithProof.RequestItemOrBuilder getRequestedItemsOrBuilder(int index)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;getRequestedItemsOrBuilder in interface GetWithProof.UpdateToLatestLedgerRequestOrBuilderpublic List<? extends GetWithProof.RequestItemOrBuilder> getRequestedItemsOrBuilderList()
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;getRequestedItemsOrBuilderList in interface GetWithProof.UpdateToLatestLedgerRequestOrBuilderpublic GetWithProof.RequestItem.Builder addRequestedItemsBuilder()
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public GetWithProof.RequestItem.Builder addRequestedItemsBuilder(int index)
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public List<GetWithProof.RequestItem.Builder> getRequestedItemsBuilderList()
The items for which we are requesting data in this API call.
repeated .types.RequestItem requested_items = 2;public final GetWithProof.UpdateToLatestLedgerRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>public final GetWithProof.UpdateToLatestLedgerRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.UpdateToLatestLedgerRequest.Builder>Copyright © 2019. All rights reserved.