Class KeyRecipe.Part.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<KeyRecipe.Part.Builder>
com.google.spanner.v1.KeyRecipe.Part.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, KeyRecipe.PartOrBuilder, Cloneable
Enclosing class:
KeyRecipe.Part

public static final class KeyRecipe.Part.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<KeyRecipe.Part.Builder> implements KeyRecipe.PartOrBuilder
 An ssformat key is composed of a sequence of tag numbers and key column
 values. `Part` represents a single tag or key column value.
 
Protobuf type google.spanner.v1.KeyRecipe.Part
  • 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<KeyRecipe.Part.Builder>
    • clear

      public KeyRecipe.Part.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<KeyRecipe.Part.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<KeyRecipe.Part.Builder>
    • getDefaultInstanceForType

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

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

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

      public KeyRecipe.Part.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<KeyRecipe.Part.Builder>
    • setField

      public KeyRecipe.Part.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<KeyRecipe.Part.Builder>
    • clearField

      public KeyRecipe.Part.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<KeyRecipe.Part.Builder>
    • clearOneof

      public KeyRecipe.Part.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<KeyRecipe.Part.Builder>
    • setRepeatedField

      public KeyRecipe.Part.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<KeyRecipe.Part.Builder>
    • addRepeatedField

      public KeyRecipe.Part.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<KeyRecipe.Part.Builder>
    • mergeFrom

      public KeyRecipe.Part.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<KeyRecipe.Part.Builder>
    • mergeFrom

      public KeyRecipe.Part.Builder mergeFrom(KeyRecipe.Part other)
    • isInitialized

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

      public KeyRecipe.Part.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<KeyRecipe.Part.Builder>
      Throws:
      IOException
    • getValueTypeCase

      public KeyRecipe.Part.ValueTypeCase getValueTypeCase()
      Specified by:
      getValueTypeCase in interface KeyRecipe.PartOrBuilder
    • clearValueType

      public KeyRecipe.Part.Builder clearValueType()
    • getTag

      public int getTag()
       If non-zero, `tag` is the only field present in this `Part`. The part
       is encoded by appending `tag` to the ssformat key.
       
      uint32 tag = 1;
      Specified by:
      getTag in interface KeyRecipe.PartOrBuilder
      Returns:
      The tag.
    • setTag

      public KeyRecipe.Part.Builder setTag(int value)
       If non-zero, `tag` is the only field present in this `Part`. The part
       is encoded by appending `tag` to the ssformat key.
       
      uint32 tag = 1;
      Parameters:
      value - The tag to set.
      Returns:
      This builder for chaining.
    • clearTag

      public KeyRecipe.Part.Builder clearTag()
       If non-zero, `tag` is the only field present in this `Part`. The part
       is encoded by appending `tag` to the ssformat key.
       
      uint32 tag = 1;
      Returns:
      This builder for chaining.
    • getOrderValue

      public int getOrderValue()
       Whether the key column is sorted ascending or descending. Only present
       if `tag` is zero.
       
      .google.spanner.v1.KeyRecipe.Part.Order order = 2;
      Specified by:
      getOrderValue in interface KeyRecipe.PartOrBuilder
      Returns:
      The enum numeric value on the wire for order.
    • setOrderValue

      public KeyRecipe.Part.Builder setOrderValue(int value)
       Whether the key column is sorted ascending or descending. Only present
       if `tag` is zero.
       
      .google.spanner.v1.KeyRecipe.Part.Order order = 2;
      Parameters:
      value - The enum numeric value on the wire for order to set.
      Returns:
      This builder for chaining.
    • getOrder

      public KeyRecipe.Part.Order getOrder()
       Whether the key column is sorted ascending or descending. Only present
       if `tag` is zero.
       
      .google.spanner.v1.KeyRecipe.Part.Order order = 2;
      Specified by:
      getOrder in interface KeyRecipe.PartOrBuilder
      Returns:
      The order.
    • setOrder

       Whether the key column is sorted ascending or descending. Only present
       if `tag` is zero.
       
      .google.spanner.v1.KeyRecipe.Part.Order order = 2;
      Parameters:
      value - The order to set.
      Returns:
      This builder for chaining.
    • clearOrder

      public KeyRecipe.Part.Builder clearOrder()
       Whether the key column is sorted ascending or descending. Only present
       if `tag` is zero.
       
      .google.spanner.v1.KeyRecipe.Part.Order order = 2;
      Returns:
      This builder for chaining.
    • getNullOrderValue

      public int getNullOrderValue()
       How NULLs are represented in the encoded key part. Only present if `tag`
       is zero.
       
      .google.spanner.v1.KeyRecipe.Part.NullOrder null_order = 3;
      Specified by:
      getNullOrderValue in interface KeyRecipe.PartOrBuilder
      Returns:
      The enum numeric value on the wire for nullOrder.
    • setNullOrderValue

      public KeyRecipe.Part.Builder setNullOrderValue(int value)
       How NULLs are represented in the encoded key part. Only present if `tag`
       is zero.
       
      .google.spanner.v1.KeyRecipe.Part.NullOrder null_order = 3;
      Parameters:
      value - The enum numeric value on the wire for nullOrder to set.
      Returns:
      This builder for chaining.
    • getNullOrder

      public KeyRecipe.Part.NullOrder getNullOrder()
       How NULLs are represented in the encoded key part. Only present if `tag`
       is zero.
       
      .google.spanner.v1.KeyRecipe.Part.NullOrder null_order = 3;
      Specified by:
      getNullOrder in interface KeyRecipe.PartOrBuilder
      Returns:
      The nullOrder.
    • setNullOrder

      public KeyRecipe.Part.Builder setNullOrder(KeyRecipe.Part.NullOrder value)
       How NULLs are represented in the encoded key part. Only present if `tag`
       is zero.
       
      .google.spanner.v1.KeyRecipe.Part.NullOrder null_order = 3;
      Parameters:
      value - The nullOrder to set.
      Returns:
      This builder for chaining.
    • clearNullOrder

      public KeyRecipe.Part.Builder clearNullOrder()
       How NULLs are represented in the encoded key part. Only present if `tag`
       is zero.
       
      .google.spanner.v1.KeyRecipe.Part.NullOrder null_order = 3;
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       The type of the key part. Only present if `tag` is zero.
       
      .google.spanner.v1.Type type = 4;
      Specified by:
      hasType in interface KeyRecipe.PartOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public Type getType()
       The type of the key part. Only present if `tag` is zero.
       
      .google.spanner.v1.Type type = 4;
      Specified by:
      getType in interface KeyRecipe.PartOrBuilder
      Returns:
      The type.
    • setType

      public KeyRecipe.Part.Builder setType(Type value)
       The type of the key part. Only present if `tag` is zero.
       
      .google.spanner.v1.Type type = 4;
    • setType

      public KeyRecipe.Part.Builder setType(Type.Builder builderForValue)
       The type of the key part. Only present if `tag` is zero.
       
      .google.spanner.v1.Type type = 4;
    • mergeType

      public KeyRecipe.Part.Builder mergeType(Type value)
       The type of the key part. Only present if `tag` is zero.
       
      .google.spanner.v1.Type type = 4;
    • clearType

      public KeyRecipe.Part.Builder clearType()
       The type of the key part. Only present if `tag` is zero.
       
      .google.spanner.v1.Type type = 4;
    • getTypeBuilder

      public Type.Builder getTypeBuilder()
       The type of the key part. Only present if `tag` is zero.
       
      .google.spanner.v1.Type type = 4;
    • getTypeOrBuilder

      public TypeOrBuilder getTypeOrBuilder()
       The type of the key part. Only present if `tag` is zero.
       
      .google.spanner.v1.Type type = 4;
      Specified by:
      getTypeOrBuilder in interface KeyRecipe.PartOrBuilder
    • hasIdentifier

      public boolean hasIdentifier()
       `identifier` is the name of the column or query parameter.
       
      string identifier = 5;
      Specified by:
      hasIdentifier in interface KeyRecipe.PartOrBuilder
      Returns:
      Whether the identifier field is set.
    • getIdentifier

      public String getIdentifier()
       `identifier` is the name of the column or query parameter.
       
      string identifier = 5;
      Specified by:
      getIdentifier in interface KeyRecipe.PartOrBuilder
      Returns:
      The identifier.
    • getIdentifierBytes

      public com.google.protobuf.ByteString getIdentifierBytes()
       `identifier` is the name of the column or query parameter.
       
      string identifier = 5;
      Specified by:
      getIdentifierBytes in interface KeyRecipe.PartOrBuilder
      Returns:
      The bytes for identifier.
    • setIdentifier

      public KeyRecipe.Part.Builder setIdentifier(String value)
       `identifier` is the name of the column or query parameter.
       
      string identifier = 5;
      Parameters:
      value - The identifier to set.
      Returns:
      This builder for chaining.
    • clearIdentifier

      public KeyRecipe.Part.Builder clearIdentifier()
       `identifier` is the name of the column or query parameter.
       
      string identifier = 5;
      Returns:
      This builder for chaining.
    • setIdentifierBytes

      public KeyRecipe.Part.Builder setIdentifierBytes(com.google.protobuf.ByteString value)
       `identifier` is the name of the column or query parameter.
       
      string identifier = 5;
      Parameters:
      value - The bytes for identifier to set.
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       The constant value of the key part.
       It is present when query uses a constant as a part of the key.
       
      .google.protobuf.Value value = 6;
      Specified by:
      hasValue in interface KeyRecipe.PartOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public com.google.protobuf.Value getValue()
       The constant value of the key part.
       It is present when query uses a constant as a part of the key.
       
      .google.protobuf.Value value = 6;
      Specified by:
      getValue in interface KeyRecipe.PartOrBuilder
      Returns:
      The value.
    • setValue

      public KeyRecipe.Part.Builder setValue(com.google.protobuf.Value value)
       The constant value of the key part.
       It is present when query uses a constant as a part of the key.
       
      .google.protobuf.Value value = 6;
    • setValue

      public KeyRecipe.Part.Builder setValue(com.google.protobuf.Value.Builder builderForValue)
       The constant value of the key part.
       It is present when query uses a constant as a part of the key.
       
      .google.protobuf.Value value = 6;
    • mergeValue

      public KeyRecipe.Part.Builder mergeValue(com.google.protobuf.Value value)
       The constant value of the key part.
       It is present when query uses a constant as a part of the key.
       
      .google.protobuf.Value value = 6;
    • clearValue

      public KeyRecipe.Part.Builder clearValue()
       The constant value of the key part.
       It is present when query uses a constant as a part of the key.
       
      .google.protobuf.Value value = 6;
    • getValueBuilder

      public com.google.protobuf.Value.Builder getValueBuilder()
       The constant value of the key part.
       It is present when query uses a constant as a part of the key.
       
      .google.protobuf.Value value = 6;
    • getValueOrBuilder

      public com.google.protobuf.ValueOrBuilder getValueOrBuilder()
       The constant value of the key part.
       It is present when query uses a constant as a part of the key.
       
      .google.protobuf.Value value = 6;
      Specified by:
      getValueOrBuilder in interface KeyRecipe.PartOrBuilder
    • hasRandom

      public boolean hasRandom()
       If true, the client is responsible to fill in the value randomly.
       It's relevant only for the INT64 type.
       
      bool random = 8;
      Specified by:
      hasRandom in interface KeyRecipe.PartOrBuilder
      Returns:
      Whether the random field is set.
    • getRandom

      public boolean getRandom()
       If true, the client is responsible to fill in the value randomly.
       It's relevant only for the INT64 type.
       
      bool random = 8;
      Specified by:
      getRandom in interface KeyRecipe.PartOrBuilder
      Returns:
      The random.
    • setRandom

      public KeyRecipe.Part.Builder setRandom(boolean value)
       If true, the client is responsible to fill in the value randomly.
       It's relevant only for the INT64 type.
       
      bool random = 8;
      Parameters:
      value - The random to set.
      Returns:
      This builder for chaining.
    • clearRandom

      public KeyRecipe.Part.Builder clearRandom()
       If true, the client is responsible to fill in the value randomly.
       It's relevant only for the INT64 type.
       
      bool random = 8;
      Returns:
      This builder for chaining.
    • getStructIdentifiersList

      public List<Integer> getStructIdentifiersList()
       It is a repeated field to support fetching key columns from nested
       structs, such as `STRUCT` query parameters.
       
      repeated int32 struct_identifiers = 7;
      Specified by:
      getStructIdentifiersList in interface KeyRecipe.PartOrBuilder
      Returns:
      A list containing the structIdentifiers.
    • getStructIdentifiersCount

      public int getStructIdentifiersCount()
       It is a repeated field to support fetching key columns from nested
       structs, such as `STRUCT` query parameters.
       
      repeated int32 struct_identifiers = 7;
      Specified by:
      getStructIdentifiersCount in interface KeyRecipe.PartOrBuilder
      Returns:
      The count of structIdentifiers.
    • getStructIdentifiers

      public int getStructIdentifiers(int index)
       It is a repeated field to support fetching key columns from nested
       structs, such as `STRUCT` query parameters.
       
      repeated int32 struct_identifiers = 7;
      Specified by:
      getStructIdentifiers in interface KeyRecipe.PartOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The structIdentifiers at the given index.
    • setStructIdentifiers

      public KeyRecipe.Part.Builder setStructIdentifiers(int index, int value)
       It is a repeated field to support fetching key columns from nested
       structs, such as `STRUCT` query parameters.
       
      repeated int32 struct_identifiers = 7;
      Parameters:
      index - The index to set the value at.
      value - The structIdentifiers to set.
      Returns:
      This builder for chaining.
    • addStructIdentifiers

      public KeyRecipe.Part.Builder addStructIdentifiers(int value)
       It is a repeated field to support fetching key columns from nested
       structs, such as `STRUCT` query parameters.
       
      repeated int32 struct_identifiers = 7;
      Parameters:
      value - The structIdentifiers to add.
      Returns:
      This builder for chaining.
    • addAllStructIdentifiers

      public KeyRecipe.Part.Builder addAllStructIdentifiers(Iterable<? extends Integer> values)
       It is a repeated field to support fetching key columns from nested
       structs, such as `STRUCT` query parameters.
       
      repeated int32 struct_identifiers = 7;
      Parameters:
      values - The structIdentifiers to add.
      Returns:
      This builder for chaining.
    • clearStructIdentifiers

      public KeyRecipe.Part.Builder clearStructIdentifiers()
       It is a repeated field to support fetching key columns from nested
       structs, such as `STRUCT` query parameters.
       
      repeated int32 struct_identifiers = 7;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final KeyRecipe.Part.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<KeyRecipe.Part.Builder>
    • mergeUnknownFields

      public final KeyRecipe.Part.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<KeyRecipe.Part.Builder>