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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RecipeList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RecipeList build()
buildPartial()
public RecipeList buildPartial()
clear()
public RecipeList.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public RecipeList.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RecipeList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public RecipeList.Builder clone()
Overrides
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 GeneratedMessageV3.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)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RecipeList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public RecipeList.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RecipeList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final RecipeList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides