public static final class GetWithProof.UpdateToLatestLedgerRequest extends com.google.protobuf.GeneratedMessageV3 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.UpdateToLatestLedgerRequest| Modifier and Type | Class and Description |
|---|---|
static class |
GetWithProof.UpdateToLatestLedgerRequest.Builder
This API is used to update the client to the latest ledger version and
optionally also request 1..n other pieces of data.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CLIENT_KNOWN_VERSION_FIELD_NUMBER |
static int |
REQUESTED_ITEMS_FIELD_NUMBER |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CLIENT_KNOWN_VERSION_FIELD_NUMBER
public static final int REQUESTED_ITEMS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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.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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GetWithProof.UpdateToLatestLedgerRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.UpdateToLatestLedgerRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.UpdateToLatestLedgerRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.UpdateToLatestLedgerRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.UpdateToLatestLedgerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.UpdateToLatestLedgerRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.UpdateToLatestLedgerRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static GetWithProof.UpdateToLatestLedgerRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GetWithProof.UpdateToLatestLedgerRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GetWithProof.UpdateToLatestLedgerRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GetWithProof.UpdateToLatestLedgerRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GetWithProof.UpdateToLatestLedgerRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GetWithProof.UpdateToLatestLedgerRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GetWithProof.UpdateToLatestLedgerRequest.Builder newBuilder()
public static GetWithProof.UpdateToLatestLedgerRequest.Builder newBuilder(GetWithProof.UpdateToLatestLedgerRequest prototype)
public GetWithProof.UpdateToLatestLedgerRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GetWithProof.UpdateToLatestLedgerRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GetWithProof.UpdateToLatestLedgerRequest getDefaultInstance()
public static com.google.protobuf.Parser<GetWithProof.UpdateToLatestLedgerRequest> parser()
public com.google.protobuf.Parser<GetWithProof.UpdateToLatestLedgerRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GetWithProof.UpdateToLatestLedgerRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.