Class CacheUpdate (6.107.0)

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

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()
Returns
Type Description
CacheUpdate

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CacheUpdate.Builder newBuilder()
Returns
Type Description
CacheUpdate.Builder

newBuilder(CacheUpdate prototype)

public static CacheUpdate.Builder newBuilder(CacheUpdate prototype)
Parameter
Name Description
prototype CacheUpdate
Returns
Type Description
CacheUpdate.Builder

parseDelimitedFrom(InputStream input)

public static CacheUpdate parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CacheUpdate
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CacheUpdate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CacheUpdate
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CacheUpdate parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CacheUpdate
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CacheUpdate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CacheUpdate
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CacheUpdate parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CacheUpdate
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CacheUpdate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CacheUpdate
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CacheUpdate parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CacheUpdate
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CacheUpdate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CacheUpdate
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CacheUpdate parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CacheUpdate
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CacheUpdate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CacheUpdate
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CacheUpdate parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CacheUpdate
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CacheUpdate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CacheUpdate
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CacheUpdate> parser()
Returns
Type Description
Parser<CacheUpdate>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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()
Returns
Type Description
CacheUpdate

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;

Returns
Type Description
List<Group>

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
Returns
Type Description
GroupOrBuilder

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;

Returns
Type Description
RecipeListOrBuilder

getParserForType()

public Parser<CacheUpdate> getParserForType()
Returns
Type Description
Parser<CacheUpdate>
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;

Returns
Type Description
List<Range>

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
Returns
Type Description
RangeOrBuilder

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CacheUpdate.Builder newBuilderForType()
Returns
Type Description
CacheUpdate.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CacheUpdate.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CacheUpdate.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CacheUpdate.Builder toBuilder()
Returns
Type Description
CacheUpdate.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException