Package dev.cel.expr

Class MapValue.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MapValueOrBuilder, java.lang.Cloneable
    Enclosing class:
    MapValue

    public static final class MapValue.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<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 cel.expr.MapValue
    • Method Detail

      • 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<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.GeneratedMessage.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.GeneratedMessage.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
      • 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>
      • isInitialized

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

        public MapValue.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws java.io.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:
        java.io.IOException
      • getEntriesList

        public java.util.List<MapValue.Entry> getEntriesList()
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
        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 representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
        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 representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
        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 representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • 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 representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • addEntries

        public MapValue.Builder addEntries​(MapValue.Entry value)
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • 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 representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • addEntries

        public MapValue.Builder addEntries​(MapValue.Entry.Builder builderForValue)
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • 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 representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • addAllEntries

        public MapValue.Builder addAllEntries​(java.lang.Iterable<? extends MapValue.Entry> values)
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • clearEntries

        public MapValue.Builder clearEntries()
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • removeEntries

        public MapValue.Builder removeEntries​(int index)
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • getEntriesBuilder

        public MapValue.Entry.Builder getEntriesBuilder​(int index)
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • getEntriesOrBuilder

        public MapValue.EntryOrBuilder getEntriesOrBuilder​(int index)
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
        Specified by:
        getEntriesOrBuilder in interface MapValueOrBuilder
      • getEntriesOrBuilderList

        public java.util.List<? extends MapValue.EntryOrBuilder> getEntriesOrBuilderList()
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
        Specified by:
        getEntriesOrBuilderList in interface MapValueOrBuilder
      • addEntriesBuilder

        public MapValue.Entry.Builder addEntriesBuilder()
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • addEntriesBuilder

        public MapValue.Entry.Builder addEntriesBuilder​(int index)
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;
      • getEntriesBuilderList

        public java.util.List<MapValue.Entry.Builder> getEntriesBuilderList()
         The set of map entries.
        
         CEL has fewer restrictions on keys, so a protobuf map representation
         cannot be used.
         
        repeated .cel.expr.MapValue.Entry entries = 1;