Package com.google.spanner.v1
Class CacheUpdate
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.v1.CacheUpdate
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CacheUpdateOrBuilder,Serializable
public final class CacheUpdate
extends com.google.protobuf.GeneratedMessageV3
implements CacheUpdateOrBuilder
A `CacheUpdate` expresses a set of changes the client should incorporate into its location cache. These changes may or may not be newer than what the client has in its cache, and should be discarded if necessary. `CacheUpdate`s can be obtained in response to requests that included a `RoutingHint` field, but may also be obtained by explicit location-fetching RPCs which may be added in the future.Protobuf type
google.spanner.v1.CacheUpdate- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA `CacheUpdate` expresses a set of changes the client should incorporate into its location cache.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongAn internal ID for the database.static CacheUpdatestatic final com.google.protobuf.Descriptors.DescriptorgetGroup(int index) A list of groups to be cached.intA list of groups to be cached.A list of groups to be cached.getGroupOrBuilder(int index) A list of groups to be cached.List<? extends GroupOrBuilder>A list of groups to be cached.A list of recipes to be cached.A list of recipes to be cached.com.google.protobuf.Parser<CacheUpdate>getRange(int index) A list of ranges to be cached.intA list of ranges to be cached.A list of ranges to be cached.getRangeOrBuilder(int index) A list of ranges to be cached.List<? extends RangeOrBuilder>A list of ranges to be cached.intinthashCode()booleanA list of recipes to be cached.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic CacheUpdate.Builderstatic CacheUpdate.BuildernewBuilder(CacheUpdate prototype) protected CacheUpdate.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static CacheUpdateparseDelimitedFrom(InputStream input) static CacheUpdateparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CacheUpdateparseFrom(byte[] data) static CacheUpdateparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CacheUpdateparseFrom(com.google.protobuf.ByteString data) static CacheUpdateparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CacheUpdateparseFrom(com.google.protobuf.CodedInputStream input) static CacheUpdateparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CacheUpdateparseFrom(InputStream input) static CacheUpdateparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CacheUpdateparseFrom(ByteBuffer data) static CacheUpdateparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CacheUpdate>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DATABASE_ID_FIELD_NUMBER
public static final int DATABASE_ID_FIELD_NUMBER- See Also:
-
RANGE_FIELD_NUMBER
public static final int RANGE_FIELD_NUMBER- See Also:
-
GROUP_FIELD_NUMBER
public static final int GROUP_FIELD_NUMBER- See Also:
-
KEY_RECIPES_FIELD_NUMBER
public static final int KEY_RECIPES_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getDatabaseId
public long getDatabaseId()An internal ID for the database. Database names can be reused if a database is deleted and re-created. Each time the database is re-created, it will get a new database ID, which will never be re-used for any other database.
uint64 database_id = 1;- Specified by:
getDatabaseIdin interfaceCacheUpdateOrBuilder- Returns:
- The databaseId.
-
getRangeList
A list of ranges to be cached.
repeated .google.spanner.v1.Range range = 2;- Specified by:
getRangeListin interfaceCacheUpdateOrBuilder
-
getRangeOrBuilderList
A list of ranges to be cached.
repeated .google.spanner.v1.Range range = 2;- Specified by:
getRangeOrBuilderListin interfaceCacheUpdateOrBuilder
-
getRangeCount
public int getRangeCount()A list of ranges to be cached.
repeated .google.spanner.v1.Range range = 2;- Specified by:
getRangeCountin interfaceCacheUpdateOrBuilder
-
getRange
A list of ranges to be cached.
repeated .google.spanner.v1.Range range = 2;- Specified by:
getRangein interfaceCacheUpdateOrBuilder
-
getRangeOrBuilder
A list of ranges to be cached.
repeated .google.spanner.v1.Range range = 2;- Specified by:
getRangeOrBuilderin interfaceCacheUpdateOrBuilder
-
getGroupList
A list of groups to be cached.
repeated .google.spanner.v1.Group group = 3;- Specified by:
getGroupListin interfaceCacheUpdateOrBuilder
-
getGroupOrBuilderList
A list of groups to be cached.
repeated .google.spanner.v1.Group group = 3;- Specified by:
getGroupOrBuilderListin interfaceCacheUpdateOrBuilder
-
getGroupCount
public int getGroupCount()A list of groups to be cached.
repeated .google.spanner.v1.Group group = 3;- Specified by:
getGroupCountin interfaceCacheUpdateOrBuilder
-
getGroup
A list of groups to be cached.
repeated .google.spanner.v1.Group group = 3;- Specified by:
getGroupin interfaceCacheUpdateOrBuilder
-
getGroupOrBuilder
A list of groups to be cached.
repeated .google.spanner.v1.Group group = 3;- Specified by:
getGroupOrBuilderin interfaceCacheUpdateOrBuilder
-
hasKeyRecipes
public boolean hasKeyRecipes()A list of recipes to be cached.
.google.spanner.v1.RecipeList key_recipes = 5;- Specified by:
hasKeyRecipesin interfaceCacheUpdateOrBuilder- Returns:
- Whether the keyRecipes field is set.
-
getKeyRecipes
A list of recipes to be cached.
.google.spanner.v1.RecipeList key_recipes = 5;- Specified by:
getKeyRecipesin interfaceCacheUpdateOrBuilder- Returns:
- The keyRecipes.
-
getKeyRecipesOrBuilder
A list of recipes to be cached.
.google.spanner.v1.RecipeList key_recipes = 5;- Specified by:
getKeyRecipesOrBuilderin interfaceCacheUpdateOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CacheUpdate parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CacheUpdate parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CacheUpdate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CacheUpdate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CacheUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CacheUpdate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CacheUpdate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CacheUpdate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CacheUpdate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CacheUpdate.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-