Class RecipeList (6.107.0)

public final class RecipeList extends GeneratedMessageV3 implements RecipeListOrBuilder

A RecipeList contains a list of KeyRecipes, which share the same schema generation.

Protobuf type google.spanner.v1.RecipeList

Implements

RecipeListOrBuilder

Static Fields

RECIPE_FIELD_NUMBER

public static final int RECIPE_FIELD_NUMBER
Field Value
Type Description
int

SCHEMA_GENERATION_FIELD_NUMBER

public static final int SCHEMA_GENERATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RecipeList getDefaultInstance()
Returns
Type Description
RecipeList

getDescriptor()

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

newBuilder()

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

newBuilder(RecipeList prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RecipeList getDefaultInstanceForType()
Returns
Type Description
RecipeList

getParserForType()

public Parser<RecipeList> getParserForType()
Returns
Type Description
Parser<RecipeList>
Overrides

getRecipe(int index)

public KeyRecipe getRecipe(int index)

A list of recipes to be cached.

repeated .google.spanner.v1.KeyRecipe recipe = 3;

Parameter
Name Description
index int
Returns
Type Description
KeyRecipe

getRecipeCount()

public int getRecipeCount()

A list of recipes to be cached.

repeated .google.spanner.v1.KeyRecipe recipe = 3;

Returns
Type Description
int

getRecipeList()

public List<KeyRecipe> getRecipeList()

A list of recipes to be cached.

repeated .google.spanner.v1.KeyRecipe recipe = 3;

Returns
Type Description
List<KeyRecipe>

getRecipeOrBuilder(int index)

public KeyRecipeOrBuilder getRecipeOrBuilder(int index)

A list of recipes to be cached.

repeated .google.spanner.v1.KeyRecipe recipe = 3;

Parameter
Name Description
index int
Returns
Type Description
KeyRecipeOrBuilder

getRecipeOrBuilderList()

public List<? extends KeyRecipeOrBuilder> getRecipeOrBuilderList()

A list of recipes to be cached.

repeated .google.spanner.v1.KeyRecipe recipe = 3;

Returns
Type Description
List<? extends com.google.spanner.v1.KeyRecipeOrBuilder>

getSchemaGeneration()

public ByteString getSchemaGeneration()

The schema generation of the recipes. To be sent to the server in RoutingHint.schema_generation whenever one of the recipes is used. schema_generation values are comparable with each other; if generation A compares greater than generation B, then A is a more recent schema than B. Clients should in general aim to cache only the latest schema generation, and discard more stale recipes.

bytes schema_generation = 1;

Returns
Type Description
ByteString

The schemaGeneration.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 RecipeList.Builder newBuilderForType()
Returns
Type Description
RecipeList.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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