Package com.google.spanner.v1
Class RecipeList.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RecipeList.Builder>
com.google.spanner.v1.RecipeList.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RecipeListOrBuilder,Cloneable
- Enclosing class:
- RecipeList
public static final class RecipeList.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RecipeList.Builder>
implements RecipeListOrBuilder
A `RecipeList` contains a list of `KeyRecipe`s, which share the same schema generation.Protobuf type
google.spanner.v1.RecipeList-
Method Summary
Modifier and TypeMethodDescriptionaddAllRecipe(Iterable<? extends KeyRecipe> values) A list of recipes to be cached.A list of recipes to be cached.addRecipe(int index, KeyRecipe.Builder builderForValue) A list of recipes to be cached.A list of recipes to be cached.addRecipe(KeyRecipe.Builder builderForValue) A list of recipes to be cached.A list of recipes to be cached.addRecipeBuilder(int index) A list of recipes to be cached.build()clear()A list of recipes to be cached.The schema generation of the recipes.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetRecipe(int index) A list of recipes to be cached.getRecipeBuilder(int index) A list of recipes to be cached.A list of recipes to be cached.intA list of recipes to be cached.A list of recipes to be cached.getRecipeOrBuilder(int index) A list of recipes to be cached.List<? extends KeyRecipeOrBuilder>A list of recipes to be cached.com.google.protobuf.ByteStringThe schema generation of the recipes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RecipeList other) removeRecipe(int index) A list of recipes to be cached.A list of recipes to be cached.setRecipe(int index, KeyRecipe.Builder builderForValue) A list of recipes to be cached.setSchemaGeneration(com.google.protobuf.ByteString value) The schema generation of the recipes.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RecipeList.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RecipeList.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RecipeList.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RecipeList.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RecipeList.Builder>
-
mergeFrom
public RecipeList.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RecipeList.Builder>- Throws:
IOException
-
getSchemaGeneration
public com.google.protobuf.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;- Specified by:
getSchemaGenerationin interfaceRecipeListOrBuilder- Returns:
- The schemaGeneration.
-
setSchemaGeneration
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;- Parameters:
value- The schemaGeneration to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getRecipeList
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3;- Specified by:
getRecipeListin interfaceRecipeListOrBuilder
-
getRecipeCount
public int getRecipeCount()A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3;- Specified by:
getRecipeCountin interfaceRecipeListOrBuilder
-
getRecipe
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3;- Specified by:
getRecipein interfaceRecipeListOrBuilder
-
setRecipe
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
setRecipe
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
addRecipe
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
addRecipe
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
addRecipe
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
addRecipe
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
addAllRecipe
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
clearRecipe
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
removeRecipe
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
getRecipeBuilder
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
getRecipeOrBuilder
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3;- Specified by:
getRecipeOrBuilderin interfaceRecipeListOrBuilder
-
getRecipeOrBuilderList
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3;- Specified by:
getRecipeOrBuilderListin interfaceRecipeListOrBuilder
-
addRecipeBuilder
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
addRecipeBuilder
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3; -
getRecipeBuilderList
A list of recipes to be cached.
repeated .google.spanner.v1.KeyRecipe recipe = 3;
-