public static final class RecipeList.Builder extends GeneratedMessage.Builder<RecipeList.Builder> implements RecipeListOrBuilder
A RecipeList contains a list of KeyRecipes, which share the same
schema generation.
Protobuf type google.spanner.v1.RecipeList
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addRecipe(KeyRecipe value)
public RecipeList.Builder addRecipe(KeyRecipe value)
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3;
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;
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;
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;
addRecipeBuilder()
public KeyRecipe.Builder addRecipeBuilder()
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3;
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
|
build()
public RecipeList build()
buildPartial()
public RecipeList buildPartial()
clear()
public RecipeList.Builder clear()
Overrides
clearRecipe()
public RecipeList.Builder clearRecipe()
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3;
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;
getDefaultInstanceForType()
public RecipeList getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
getRecipeBuilderList()
public List<KeyRecipe.Builder> getRecipeBuilderList()
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3;
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;
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
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public RecipeList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RecipeList.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeFrom(RecipeList other)
public RecipeList.Builder mergeFrom(RecipeList other)
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
|
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;
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;
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.
|