Class Type.Map.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Type.Map.Builder>
com.google.bigtable.v2.Type.Map.Builder
All Implemented Interfaces:
Type.MapOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Type.Map

public static final class Type.Map.Builder extends com.google.protobuf.GeneratedMessage.Builder<Type.Map.Builder> implements Type.MapOrBuilder
 A mapping of keys to values of a given type.
 Values of type `Map` are stored in a `Value.array_value` where each entry
 is another `Value.array_value` with two elements (the key and the value,
 in that order).
 Normally encoded Map values won't have repeated keys, however, clients are
 expected to handle the case in which they do. If the same key appears
 multiple times, the _last_ value takes precedence.
 
Protobuf type google.bigtable.v2.Type.Map
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Type.Map.Builder>
    • clear

      public Type.Map.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.GeneratedMessage.Builder<Type.Map.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.GeneratedMessage.Builder<Type.Map.Builder>
    • getDefaultInstanceForType

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

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

      public Type.Map buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Type.Map.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<Type.Map.Builder>
    • mergeFrom

      public Type.Map.Builder mergeFrom(Type.Map other)
    • isInitialized

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

      public Type.Map.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<Type.Map.Builder>
      Throws:
      IOException
    • hasKeyType

      public boolean hasKeyType()
       The type of a map key.
       Only `Bytes`, `String`, and `Int64` are allowed as key types.
       
      .google.bigtable.v2.Type key_type = 1;
      Specified by:
      hasKeyType in interface Type.MapOrBuilder
      Returns:
      Whether the keyType field is set.
    • getKeyType

      public Type getKeyType()
       The type of a map key.
       Only `Bytes`, `String`, and `Int64` are allowed as key types.
       
      .google.bigtable.v2.Type key_type = 1;
      Specified by:
      getKeyType in interface Type.MapOrBuilder
      Returns:
      The keyType.
    • setKeyType

      public Type.Map.Builder setKeyType(Type value)
       The type of a map key.
       Only `Bytes`, `String`, and `Int64` are allowed as key types.
       
      .google.bigtable.v2.Type key_type = 1;
    • setKeyType

      public Type.Map.Builder setKeyType(Type.Builder builderForValue)
       The type of a map key.
       Only `Bytes`, `String`, and `Int64` are allowed as key types.
       
      .google.bigtable.v2.Type key_type = 1;
    • mergeKeyType

      public Type.Map.Builder mergeKeyType(Type value)
       The type of a map key.
       Only `Bytes`, `String`, and `Int64` are allowed as key types.
       
      .google.bigtable.v2.Type key_type = 1;
    • clearKeyType

      public Type.Map.Builder clearKeyType()
       The type of a map key.
       Only `Bytes`, `String`, and `Int64` are allowed as key types.
       
      .google.bigtable.v2.Type key_type = 1;
    • getKeyTypeBuilder

      public Type.Builder getKeyTypeBuilder()
       The type of a map key.
       Only `Bytes`, `String`, and `Int64` are allowed as key types.
       
      .google.bigtable.v2.Type key_type = 1;
    • getKeyTypeOrBuilder

      public TypeOrBuilder getKeyTypeOrBuilder()
       The type of a map key.
       Only `Bytes`, `String`, and `Int64` are allowed as key types.
       
      .google.bigtable.v2.Type key_type = 1;
      Specified by:
      getKeyTypeOrBuilder in interface Type.MapOrBuilder
    • hasValueType

      public boolean hasValueType()
       The type of the values in a map.
       
      .google.bigtable.v2.Type value_type = 2;
      Specified by:
      hasValueType in interface Type.MapOrBuilder
      Returns:
      Whether the valueType field is set.
    • getValueType

      public Type getValueType()
       The type of the values in a map.
       
      .google.bigtable.v2.Type value_type = 2;
      Specified by:
      getValueType in interface Type.MapOrBuilder
      Returns:
      The valueType.
    • setValueType

      public Type.Map.Builder setValueType(Type value)
       The type of the values in a map.
       
      .google.bigtable.v2.Type value_type = 2;
    • setValueType

      public Type.Map.Builder setValueType(Type.Builder builderForValue)
       The type of the values in a map.
       
      .google.bigtable.v2.Type value_type = 2;
    • mergeValueType

      public Type.Map.Builder mergeValueType(Type value)
       The type of the values in a map.
       
      .google.bigtable.v2.Type value_type = 2;
    • clearValueType

      public Type.Map.Builder clearValueType()
       The type of the values in a map.
       
      .google.bigtable.v2.Type value_type = 2;
    • getValueTypeBuilder

      public Type.Builder getValueTypeBuilder()
       The type of the values in a map.
       
      .google.bigtable.v2.Type value_type = 2;
    • getValueTypeOrBuilder

      public TypeOrBuilder getValueTypeOrBuilder()
       The type of the values in a map.
       
      .google.bigtable.v2.Type value_type = 2;
      Specified by:
      getValueTypeOrBuilder in interface Type.MapOrBuilder