Class RecipeList.Builder (6.107.0)

public static final class RecipeList.Builder extends GeneratedMessageV3.Builder<RecipeList.Builder> implements RecipeListOrBuilder

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

Protobuf type google.spanner.v1.RecipeList

Implements

RecipeListOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllRecipe(Iterable<? extends KeyRecipe> values)

public RecipeList.Builder addAllRecipe(Iterable<? extends KeyRecipe> values)

A list of recipes to be cached.

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

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

addRecipe(KeyRecipe value)

public RecipeList.Builder addRecipe(KeyRecipe value)

A list of recipes to be cached.

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

Parameter
Name Description
value KeyRecipe
Returns
Type Description
RecipeList.Builder

addRecipe(KeyRecipe.Builder builderForValue)

public RecipeList.Builder addRecipe(KeyRecipe.Builder builderForValue)

A list of recipes to be cached.

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

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

addRecipe(int index, KeyRecipe value)

public RecipeList.Builder addRecipe(int index, KeyRecipe value)

A list of recipes to be cached.

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

Parameters
Name Description
index int
value KeyRecipe
Returns
Type Description
RecipeList.Builder

addRecipe(int index, KeyRecipe.Builder builderForValue)

public RecipeList.Builder addRecipe(int index, KeyRecipe.Builder builderForValue)

A list of recipes to be cached.

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

Parameters
Name Description
index int
builderForValue KeyRecipe.Builder
Returns
Type Description
RecipeList.Builder

addRecipeBuilder()

public KeyRecipe.Builder addRecipeBuilder()

A list of recipes to be cached.

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

Returns
Type Description
KeyRecipe.Builder

addRecipeBuilder(int index)

public KeyRecipe.Builder addRecipeBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RecipeList build()
Returns
Type Description
RecipeList

buildPartial()

public RecipeList buildPartial()
Returns
Type Description
RecipeList

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRecipe()

public RecipeList.Builder clearRecipe()

A list of recipes to be cached.

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

Returns
Type Description
RecipeList.Builder

clearSchemaGeneration()

public RecipeList.Builder clearSchemaGeneration()

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

This builder for chaining.

clone()

public RecipeList.Builder clone()
Returns
Type Description
RecipeList.Builder
Overrides

getDefaultInstanceForType()

public RecipeList getDefaultInstanceForType()
Returns
Type Description
RecipeList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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

getRecipeBuilder(int index)

public KeyRecipe.Builder getRecipeBuilder(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.Builder

getRecipeBuilderList()

public List<KeyRecipe.Builder> getRecipeBuilderList()

A list of recipes to be cached.

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

Returns
Type Description
List<Builder>

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.

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 RecipeList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecipeList.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(RecipeList other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRecipe(int index)

public RecipeList.Builder removeRecipe(int index)

A list of recipes to be cached.

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

Parameter
Name Description
index int
Returns
Type Description
RecipeList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRecipe(int index, KeyRecipe value)

public RecipeList.Builder setRecipe(int index, KeyRecipe value)

A list of recipes to be cached.

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

Parameters
Name Description
index int
value KeyRecipe
Returns
Type Description
RecipeList.Builder

setRecipe(int index, KeyRecipe.Builder builderForValue)

public RecipeList.Builder setRecipe(int index, KeyRecipe.Builder builderForValue)

A list of recipes to be cached.

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

Parameters
Name Description
index int
builderForValue KeyRecipe.Builder
Returns
Type Description
RecipeList.Builder

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

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

setSchemaGeneration(ByteString value)

public RecipeList.Builder setSchemaGeneration(ByteString value)

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;

Parameter
Name Description
value ByteString

The schemaGeneration to set.

Returns
Type Description
RecipeList.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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