public final class CacheUpdate extends GeneratedMessage 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.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CacheUpdate.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CacheUpdate.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public CacheUpdate.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides