Send feedback
Class CacheUpdate (6.107.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public final class CacheUpdate extends 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. CacheUpdates
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DATABASE_ID_FIELD_NUMBER
public static final int DATABASE_ID_FIELD_NUMBER
Field Value
Type
Description
int
GROUP_FIELD_NUMBER
public static final int GROUP_FIELD_NUMBER
Field Value
Type
Description
int
KEY_RECIPES_FIELD_NUMBER
public static final int KEY_RECIPES_FIELD_NUMBER
Field Value
Type
Description
int
RANGE_FIELD_NUMBER
public static final int RANGE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static CacheUpdate getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static CacheUpdate . Builder newBuilder ()
newBuilder(CacheUpdate prototype)
public static CacheUpdate . Builder newBuilder ( CacheUpdate prototype )
public static CacheUpdate parseDelimitedFrom ( InputStream input )
public static CacheUpdate parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static CacheUpdate parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CacheUpdate parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static CacheUpdate parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CacheUpdate parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static CacheUpdate parseFrom ( CodedInputStream input )
public static CacheUpdate parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static CacheUpdate parseFrom ( InputStream input )
public static CacheUpdate parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static CacheUpdate parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CacheUpdate parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<CacheUpdate> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
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;
Returns
Type
Description
long
The databaseId.
getDefaultInstanceForType()
public CacheUpdate getDefaultInstanceForType ()
getGroup(int index)
public Group getGroup ( int index )
A list of groups to be cached.
repeated .google.spanner.v1.Group group = 3;
Parameter
Name
Description
index
int
Returns
Type
Description
Group
getGroupCount()
public int getGroupCount ()
A list of groups to be cached.
repeated .google.spanner.v1.Group group = 3;
Returns
Type
Description
int
getGroupList()
public List<Group> getGroupList ()
A list of groups to be cached.
repeated .google.spanner.v1.Group group = 3;
getGroupOrBuilder(int index)
public GroupOrBuilder getGroupOrBuilder ( int index )
A list of groups to be cached.
repeated .google.spanner.v1.Group group = 3;
Parameter
Name
Description
index
int
getGroupOrBuilderList()
public List <? extends GroupOrBuilder > getGroupOrBuilderList ()
A list of groups to be cached.
repeated .google.spanner.v1.Group group = 3;
Returns
Type
Description
List <? extends com.google.spanner.v1.GroupOrBuilder >
getKeyRecipes()
public RecipeList getKeyRecipes ()
A list of recipes to be cached.
.google.spanner.v1.RecipeList key_recipes = 5;
Returns
Type
Description
RecipeList
The keyRecipes.
getKeyRecipesOrBuilder()
public RecipeListOrBuilder getKeyRecipesOrBuilder ()
A list of recipes to be cached.
.google.spanner.v1.RecipeList key_recipes = 5;
getParserForType()
public Parser<CacheUpdate> getParserForType ()
Overrides
getRange(int index)
public Range getRange ( int index )
A list of ranges to be cached.
repeated .google.spanner.v1.Range range = 2;
Parameter
Name
Description
index
int
Returns
Type
Description
Range
getRangeCount()
public int getRangeCount ()
A list of ranges to be cached.
repeated .google.spanner.v1.Range range = 2;
Returns
Type
Description
int
getRangeList()
public List<Range> getRangeList ()
A list of ranges to be cached.
repeated .google.spanner.v1.Range range = 2;
getRangeOrBuilder(int index)
public RangeOrBuilder getRangeOrBuilder ( int index )
A list of ranges to be cached.
repeated .google.spanner.v1.Range range = 2;
Parameter
Name
Description
index
int
getRangeOrBuilderList()
public List <? extends RangeOrBuilder > getRangeOrBuilderList ()
A list of ranges to be cached.
repeated .google.spanner.v1.Range range = 2;
Returns
Type
Description
List <? extends com.google.spanner.v1.RangeOrBuilder >
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hasKeyRecipes()
public boolean hasKeyRecipes ()
A list of recipes to be cached.
.google.spanner.v1.RecipeList key_recipes = 5;
Returns
Type
Description
boolean
Whether the keyRecipes field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public CacheUpdate . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CacheUpdate . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public CacheUpdate . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-21 UTC."],[],[]]