Class RecipeList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>
    • clear

      public RecipeList.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>
    • getDefaultInstanceForType

      public RecipeList getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public RecipeList build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RecipeList buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public RecipeList.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>
    • setField

      public RecipeList.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>
    • clearField

      public RecipeList.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>
    • clearOneof

      public RecipeList.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>
    • setRepeatedField

      public RecipeList.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>
    • addRepeatedField

      public RecipeList.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>
    • mergeFrom

      public RecipeList.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RecipeList.Builder>
    • mergeFrom

      public RecipeList.Builder mergeFrom(RecipeList other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>
    • mergeFrom

      public RecipeList.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getSchemaGeneration in interface RecipeListOrBuilder
      Returns:
      The schemaGeneration.
    • setSchemaGeneration

      public RecipeList.Builder setSchemaGeneration(com.google.protobuf.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;
      Parameters:
      value - The schemaGeneration to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • getRecipeList

      public List<KeyRecipe> getRecipeList()
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
      Specified by:
      getRecipeList in interface RecipeListOrBuilder
    • getRecipeCount

      public int getRecipeCount()
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
      Specified by:
      getRecipeCount in interface RecipeListOrBuilder
    • getRecipe

      public KeyRecipe getRecipe(int index)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
      Specified by:
      getRecipe in interface RecipeListOrBuilder
    • setRecipe

      public RecipeList.Builder setRecipe(int index, KeyRecipe value)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • setRecipe

      public RecipeList.Builder setRecipe(int index, KeyRecipe.Builder builderForValue)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • addRecipe

      public RecipeList.Builder addRecipe(KeyRecipe value)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • addRecipe

      public RecipeList.Builder addRecipe(int index, KeyRecipe value)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • addRecipe

      public RecipeList.Builder addRecipe(KeyRecipe.Builder builderForValue)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • addRecipe

      public RecipeList.Builder addRecipe(int index, KeyRecipe.Builder builderForValue)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • addAllRecipe

      public RecipeList.Builder addAllRecipe(Iterable<? extends KeyRecipe> values)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • clearRecipe

      public RecipeList.Builder clearRecipe()
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • removeRecipe

      public RecipeList.Builder removeRecipe(int index)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • getRecipeBuilder

      public KeyRecipe.Builder getRecipeBuilder(int index)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • getRecipeOrBuilder

      public KeyRecipeOrBuilder getRecipeOrBuilder(int index)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
      Specified by:
      getRecipeOrBuilder in interface RecipeListOrBuilder
    • getRecipeOrBuilderList

      public List<? extends KeyRecipeOrBuilder> getRecipeOrBuilderList()
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
      Specified by:
      getRecipeOrBuilderList in interface RecipeListOrBuilder
    • addRecipeBuilder

      public KeyRecipe.Builder addRecipeBuilder()
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • addRecipeBuilder

      public KeyRecipe.Builder addRecipeBuilder(int index)
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • getRecipeBuilderList

      public List<KeyRecipe.Builder> getRecipeBuilderList()
       A list of recipes to be cached.
       
      repeated .google.spanner.v1.KeyRecipe recipe = 3;
    • setUnknownFields

      public final RecipeList.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>
    • mergeUnknownFields

      public final RecipeList.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecipeList.Builder>