Class MapValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<MapValue,MapValue.Builder>
com.google.api.expr.v1beta1.MapValue.Builder
All Implemented Interfaces:
MapValueOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
MapValue

public static final class MapValue.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<MapValue,MapValue.Builder> implements MapValueOrBuilder
 A map.

 Wrapped in a message so 'not set' and empty can be differentiated, which is
 required for use in a 'oneof'.
 
Protobuf type google.api.expr.v1beta1.MapValue
  • Method Details

    • getEntriesList

      public List<MapValue.Entry> getEntriesList()
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];
      Specified by:
      getEntriesList in interface MapValueOrBuilder
    • getEntriesCount

      public int getEntriesCount()
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];
      Specified by:
      getEntriesCount in interface MapValueOrBuilder
    • getEntries

      public MapValue.Entry getEntries(int index)
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];
      Specified by:
      getEntries in interface MapValueOrBuilder
    • setEntries

      public MapValue.Builder setEntries(int index, MapValue.Entry value)
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];
    • setEntries

      public MapValue.Builder setEntries(int index, MapValue.Entry.Builder builderForValue)
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];
    • addEntries

      public MapValue.Builder addEntries(MapValue.Entry value)
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];
    • addEntries

      public MapValue.Builder addEntries(int index, MapValue.Entry value)
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];
    • addEntries

      public MapValue.Builder addEntries(MapValue.Entry.Builder builderForValue)
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];
    • addEntries

      public MapValue.Builder addEntries(int index, MapValue.Entry.Builder builderForValue)
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];
    • addAllEntries

      public MapValue.Builder addAllEntries(Iterable<? extends MapValue.Entry> values)
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];
    • clearEntries

      public MapValue.Builder clearEntries()
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];
    • removeEntries

      public MapValue.Builder removeEntries(int index)
       The set of map entries.
      
       CEL has fewer restrictions on keys, so a protobuf map represenation
       cannot be used.
       
      repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"];