Class CacheUpdate.Builder (6.107.0)

public static final class CacheUpdate.Builder extends GeneratedMessageV3.Builder<CacheUpdate.Builder> 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 Methods

getDescriptor()

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

Methods

addAllGroup(Iterable<? extends Group> values)

public CacheUpdate.Builder addAllGroup(Iterable<? extends Group> values)

A list of groups to be cached.

repeated .google.spanner.v1.Group group = 3;

Parameter
Name Description
values Iterable<? extends com.google.spanner.v1.Group>
Returns
Type Description
CacheUpdate.Builder

addAllRange(Iterable<? extends Range> values)

public CacheUpdate.Builder addAllRange(Iterable<? extends Range> values)

A list of ranges to be cached.

repeated .google.spanner.v1.Range range = 2;

Parameter
Name Description
values Iterable<? extends com.google.spanner.v1.Range>
Returns
Type Description
CacheUpdate.Builder

addGroup(Group value)

public CacheUpdate.Builder addGroup(Group value)

A list of groups to be cached.

repeated .google.spanner.v1.Group group = 3;

Parameter
Name Description
value Group
Returns
Type Description
CacheUpdate.Builder

addGroup(Group.Builder builderForValue)

public CacheUpdate.Builder addGroup(Group.Builder builderForValue)

A list of groups to be cached.

repeated .google.spanner.v1.Group group = 3;

Parameter
Name Description
builderForValue Group.Builder
Returns
Type Description
CacheUpdate.Builder

addGroup(int index, Group value)

public CacheUpdate.Builder addGroup(int index, Group value)

A list of groups to be cached.

repeated .google.spanner.v1.Group group = 3;

Parameters
Name Description
index int
value Group
Returns
Type Description
CacheUpdate.Builder

addGroup(int index, Group.Builder builderForValue)

public CacheUpdate.Builder addGroup(int index, Group.Builder builderForValue)

A list of groups to be cached.

repeated .google.spanner.v1.Group group = 3;

Parameters
Name Description
index int
builderForValue Group.Builder
Returns
Type Description
CacheUpdate.Builder

addGroupBuilder()

public Group.Builder addGroupBuilder()

A list of groups to be cached.

repeated .google.spanner.v1.Group group = 3;

Returns
Type Description
Group.Builder

addGroupBuilder(int index)

public Group.Builder addGroupBuilder(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.Builder

addRange(Range value)

public CacheUpdate.Builder addRange(Range value)

A list of ranges to be cached.

repeated .google.spanner.v1.Range range = 2;

Parameter
Name Description
value Range
Returns
Type Description
CacheUpdate.Builder

addRange(Range.Builder builderForValue)

public CacheUpdate.Builder addRange(Range.Builder builderForValue)

A list of ranges to be cached.

repeated .google.spanner.v1.Range range = 2;

Parameter
Name Description
builderForValue Range.Builder
Returns
Type Description
CacheUpdate.Builder

addRange(int index, Range value)

public CacheUpdate.Builder addRange(int index, Range value)

A list of ranges to be cached.

repeated .google.spanner.v1.Range range = 2;

Parameters
Name Description
index int
value Range
Returns
Type Description
CacheUpdate.Builder

addRange(int index, Range.Builder builderForValue)

public CacheUpdate.Builder addRange(int index, Range.Builder builderForValue)

A list of ranges to be cached.

repeated .google.spanner.v1.Range range = 2;

Parameters
Name Description
index int
builderForValue Range.Builder
Returns
Type Description
CacheUpdate.Builder

addRangeBuilder()

public Range.Builder addRangeBuilder()

A list of ranges to be cached.

repeated .google.spanner.v1.Range range = 2;

Returns
Type Description
Range.Builder

addRangeBuilder(int index)

public Range.Builder addRangeBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CacheUpdate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CacheUpdate.Builder
Overrides

build()

public CacheUpdate build()
Returns
Type Description
CacheUpdate

buildPartial()

public CacheUpdate buildPartial()
Returns
Type Description
CacheUpdate

clear()

public CacheUpdate.Builder clear()
Returns
Type Description
CacheUpdate.Builder
Overrides

clearDatabaseId()

public CacheUpdate.Builder clearDatabaseId()

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
CacheUpdate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CacheUpdate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CacheUpdate.Builder
Overrides

clearGroup()

public CacheUpdate.Builder clearGroup()

A list of groups to be cached.

repeated .google.spanner.v1.Group group = 3;

Returns
Type Description
CacheUpdate.Builder

clearKeyRecipes()

public CacheUpdate.Builder clearKeyRecipes()

A list of recipes to be cached.

.google.spanner.v1.RecipeList key_recipes = 5;

Returns
Type Description
CacheUpdate.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CacheUpdate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CacheUpdate.Builder
Overrides

clearRange()

public CacheUpdate.Builder clearRange()

A list of ranges to be cached.

repeated .google.spanner.v1.Range range = 2;

Returns
Type Description
CacheUpdate.Builder

clone()

public CacheUpdate.Builder clone()
Returns
Type Description
CacheUpdate.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getGroupBuilder(int index)

public Group.Builder getGroupBuilder(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.Builder

getGroupBuilderList()

public List<Group.Builder> getGroupBuilderList()

A list of groups to be cached.

repeated .google.spanner.v1.Group group = 3;

Returns
Type Description
List<Builder>

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.

getKeyRecipesBuilder()

public RecipeList.Builder getKeyRecipesBuilder()

A list of recipes to be cached.

.google.spanner.v1.RecipeList key_recipes = 5;

Returns
Type Description
RecipeList.Builder

getKeyRecipesOrBuilder()

public RecipeListOrBuilder getKeyRecipesOrBuilder()

A list of recipes to be cached.

.google.spanner.v1.RecipeList key_recipes = 5;

Returns
Type Description
RecipeListOrBuilder

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

getRangeBuilder(int index)

public Range.Builder getRangeBuilder(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.Builder

getRangeBuilderList()

public List<Range.Builder> getRangeBuilderList()

A list of ranges to be cached.

repeated .google.spanner.v1.Range range = 2;

Returns
Type Description
List<Builder>

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>

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CacheUpdate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CacheUpdate.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CacheUpdate.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CacheUpdate.Builder
Overrides

mergeFrom(CacheUpdate other)

public CacheUpdate.Builder mergeFrom(CacheUpdate other)
Parameter
Name Description
other CacheUpdate
Returns
Type Description
CacheUpdate.Builder

mergeKeyRecipes(RecipeList value)

public CacheUpdate.Builder mergeKeyRecipes(RecipeList value)

A list of recipes to be cached.

.google.spanner.v1.RecipeList key_recipes = 5;

Parameter
Name Description
value RecipeList
Returns
Type Description
CacheUpdate.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CacheUpdate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CacheUpdate.Builder
Overrides

removeGroup(int index)

public CacheUpdate.Builder removeGroup(int index)

A list of groups to be cached.

repeated .google.spanner.v1.Group group = 3;

Parameter
Name Description
index int
Returns
Type Description
CacheUpdate.Builder

removeRange(int index)

public CacheUpdate.Builder removeRange(int index)

A list of ranges to be cached.

repeated .google.spanner.v1.Range range = 2;

Parameter
Name Description
index int
Returns
Type Description
CacheUpdate.Builder

setDatabaseId(long value)

public CacheUpdate.Builder setDatabaseId(long value)

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;

Parameter
Name Description
value long

The databaseId to set.

Returns
Type Description
CacheUpdate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CacheUpdate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CacheUpdate.Builder
Overrides

setGroup(int index, Group value)

public CacheUpdate.Builder setGroup(int index, Group value)

A list of groups to be cached.

repeated .google.spanner.v1.Group group = 3;

Parameters
Name Description
index int
value Group
Returns
Type Description
CacheUpdate.Builder

setGroup(int index, Group.Builder builderForValue)

public CacheUpdate.Builder setGroup(int index, Group.Builder builderForValue)

A list of groups to be cached.

repeated .google.spanner.v1.Group group = 3;

Parameters
Name Description
index int
builderForValue Group.Builder
Returns
Type Description
CacheUpdate.Builder

setKeyRecipes(RecipeList value)

public CacheUpdate.Builder setKeyRecipes(RecipeList value)

A list of recipes to be cached.

.google.spanner.v1.RecipeList key_recipes = 5;

Parameter
Name Description
value RecipeList
Returns
Type Description
CacheUpdate.Builder

setKeyRecipes(RecipeList.Builder builderForValue)

public CacheUpdate.Builder setKeyRecipes(RecipeList.Builder builderForValue)

A list of recipes to be cached.

.google.spanner.v1.RecipeList key_recipes = 5;

Parameter
Name Description
builderForValue RecipeList.Builder
Returns
Type Description
CacheUpdate.Builder

setRange(int index, Range value)

public CacheUpdate.Builder setRange(int index, Range value)

A list of ranges to be cached.

repeated .google.spanner.v1.Range range = 2;

Parameters
Name Description
index int
value Range
Returns
Type Description
CacheUpdate.Builder

setRange(int index, Range.Builder builderForValue)

public CacheUpdate.Builder setRange(int index, Range.Builder builderForValue)

A list of ranges to be cached.

repeated .google.spanner.v1.Range range = 2;

Parameters
Name Description
index int
builderForValue Range.Builder
Returns
Type Description
CacheUpdate.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CacheUpdate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CacheUpdate.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CacheUpdate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CacheUpdate.Builder
Overrides