Class MapValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MapValue.Builder>
com.google.firestore.v1.MapValue.Builder
All Implemented Interfaces:
MapValueOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MapValue

public static final class MapValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MapValue.Builder> implements MapValueOrBuilder
 A map value.
 
Protobuf type google.firestore.v1.MapValue
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<MapValue.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<MapValue.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

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

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

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

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

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

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

      public MapValue.Builder mergeFrom(MapValue other)
    • isInitialized

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

      public MapValue.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<MapValue.Builder>
      Throws:
      IOException
    • getFieldsCount

      public int getFieldsCount()
      Description copied from interface: MapValueOrBuilder
       The map's fields.
      
       The map keys represent field names. Field names matching the regular
       expression `__.*__` are reserved. Reserved field names are forbidden except
       in certain documented contexts. The map keys, represented as UTF-8, must
       not exceed 1,500 bytes and cannot be empty.
       
      map<string, .google.firestore.v1.Value> fields = 1;
      Specified by:
      getFieldsCount in interface MapValueOrBuilder
    • containsFields

      public boolean containsFields(String key)
       The map's fields.
      
       The map keys represent field names. Field names matching the regular
       expression `__.*__` are reserved. Reserved field names are forbidden except
       in certain documented contexts. The map keys, represented as UTF-8, must
       not exceed 1,500 bytes and cannot be empty.
       
      map<string, .google.firestore.v1.Value> fields = 1;
      Specified by:
      containsFields in interface MapValueOrBuilder
    • getFields

      @Deprecated public Map<String,Value> getFields()
      Deprecated.
      Use getFieldsMap() instead.
      Specified by:
      getFields in interface MapValueOrBuilder
    • getFieldsMap

      public Map<String,Value> getFieldsMap()
       The map's fields.
      
       The map keys represent field names. Field names matching the regular
       expression `__.*__` are reserved. Reserved field names are forbidden except
       in certain documented contexts. The map keys, represented as UTF-8, must
       not exceed 1,500 bytes and cannot be empty.
       
      map<string, .google.firestore.v1.Value> fields = 1;
      Specified by:
      getFieldsMap in interface MapValueOrBuilder
    • getFieldsOrDefault

      public Value getFieldsOrDefault(String key, Value defaultValue)
       The map's fields.
      
       The map keys represent field names. Field names matching the regular
       expression `__.*__` are reserved. Reserved field names are forbidden except
       in certain documented contexts. The map keys, represented as UTF-8, must
       not exceed 1,500 bytes and cannot be empty.
       
      map<string, .google.firestore.v1.Value> fields = 1;
      Specified by:
      getFieldsOrDefault in interface MapValueOrBuilder
    • getFieldsOrThrow

      public Value getFieldsOrThrow(String key)
       The map's fields.
      
       The map keys represent field names. Field names matching the regular
       expression `__.*__` are reserved. Reserved field names are forbidden except
       in certain documented contexts. The map keys, represented as UTF-8, must
       not exceed 1,500 bytes and cannot be empty.
       
      map<string, .google.firestore.v1.Value> fields = 1;
      Specified by:
      getFieldsOrThrow in interface MapValueOrBuilder
    • clearFields

      public MapValue.Builder clearFields()
    • removeFields

      public MapValue.Builder removeFields(String key)
       The map's fields.
      
       The map keys represent field names. Field names matching the regular
       expression `__.*__` are reserved. Reserved field names are forbidden except
       in certain documented contexts. The map keys, represented as UTF-8, must
       not exceed 1,500 bytes and cannot be empty.
       
      map<string, .google.firestore.v1.Value> fields = 1;
    • getMutableFields

      @Deprecated public Map<String,Value> getMutableFields()
      Deprecated.
      Use alternate mutation accessors instead.
    • putFields

      public MapValue.Builder putFields(String key, Value value)
       The map's fields.
      
       The map keys represent field names. Field names matching the regular
       expression `__.*__` are reserved. Reserved field names are forbidden except
       in certain documented contexts. The map keys, represented as UTF-8, must
       not exceed 1,500 bytes and cannot be empty.
       
      map<string, .google.firestore.v1.Value> fields = 1;
    • putAllFields

      public MapValue.Builder putAllFields(Map<String,Value> values)
       The map's fields.
      
       The map keys represent field names. Field names matching the regular
       expression `__.*__` are reserved. Reserved field names are forbidden except
       in certain documented contexts. The map keys, represented as UTF-8, must
       not exceed 1,500 bytes and cannot be empty.
       
      map<string, .google.firestore.v1.Value> fields = 1;
    • putFieldsBuilderIfAbsent

      public Value.Builder putFieldsBuilderIfAbsent(String key)
       The map's fields.
      
       The map keys represent field names. Field names matching the regular
       expression `__.*__` are reserved. Reserved field names are forbidden except
       in certain documented contexts. The map keys, represented as UTF-8, must
       not exceed 1,500 bytes and cannot be empty.
       
      map<string, .google.firestore.v1.Value> fields = 1;
    • setUnknownFields

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

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