All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.cel.expr.MapValue Maven / Gradle / Ivy

There is a newer version: 0.7.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cel/expr/value.proto

package dev.cel.expr;

/**
 * 
 * A map.
 * Wrapped in a message so 'not set' and empty can be differentiated, which is
 * required for use in a 'oneof'.
 * 
* * Protobuf type {@code cel.expr.MapValue} */ public final class MapValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cel.expr.MapValue) MapValueOrBuilder { private static final long serialVersionUID = 0L; // Use MapValue.newBuilder() to construct. private MapValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MapValue() { entries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MapValue(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return dev.cel.expr.ValueProto.internal_static_cel_expr_MapValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return dev.cel.expr.ValueProto.internal_static_cel_expr_MapValue_fieldAccessorTable .ensureFieldAccessorsInitialized( dev.cel.expr.MapValue.class, dev.cel.expr.MapValue.Builder.class); } public interface EntryOrBuilder extends // @@protoc_insertion_point(interface_extends:cel.expr.MapValue.Entry) com.google.protobuf.MessageOrBuilder { /** *
     * The key.
     * Must be unique with in the map.
     * Currently only boolean, int, uint, and string values can be keys.
     * 
* * .cel.expr.Value key = 1; * @return Whether the key field is set. */ boolean hasKey(); /** *
     * The key.
     * Must be unique with in the map.
     * Currently only boolean, int, uint, and string values can be keys.
     * 
* * .cel.expr.Value key = 1; * @return The key. */ dev.cel.expr.Value getKey(); /** *
     * The key.
     * Must be unique with in the map.
     * Currently only boolean, int, uint, and string values can be keys.
     * 
* * .cel.expr.Value key = 1; */ dev.cel.expr.ValueOrBuilder getKeyOrBuilder(); /** *
     * The value.
     * 
* * .cel.expr.Value value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** *
     * The value.
     * 
* * .cel.expr.Value value = 2; * @return The value. */ dev.cel.expr.Value getValue(); /** *
     * The value.
     * 
* * .cel.expr.Value value = 2; */ dev.cel.expr.ValueOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code cel.expr.MapValue.Entry} */ public static final class Entry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cel.expr.MapValue.Entry) EntryOrBuilder { private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Entry() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Entry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return dev.cel.expr.ValueProto.internal_static_cel_expr_MapValue_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return dev.cel.expr.ValueProto.internal_static_cel_expr_MapValue_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( dev.cel.expr.MapValue.Entry.class, dev.cel.expr.MapValue.Entry.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private dev.cel.expr.Value key_; /** *
     * The key.
     * Must be unique with in the map.
     * Currently only boolean, int, uint, and string values can be keys.
     * 
* * .cel.expr.Value key = 1; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return key_ != null; } /** *
     * The key.
     * Must be unique with in the map.
     * Currently only boolean, int, uint, and string values can be keys.
     * 
* * .cel.expr.Value key = 1; * @return The key. */ @java.lang.Override public dev.cel.expr.Value getKey() { return key_ == null ? dev.cel.expr.Value.getDefaultInstance() : key_; } /** *
     * The key.
     * Must be unique with in the map.
     * Currently only boolean, int, uint, and string values can be keys.
     * 
* * .cel.expr.Value key = 1; */ @java.lang.Override public dev.cel.expr.ValueOrBuilder getKeyOrBuilder() { return getKey(); } public static final int VALUE_FIELD_NUMBER = 2; private dev.cel.expr.Value value_; /** *
     * The value.
     * 
* * .cel.expr.Value value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return value_ != null; } /** *
     * The value.
     * 
* * .cel.expr.Value value = 2; * @return The value. */ @java.lang.Override public dev.cel.expr.Value getValue() { return value_ == null ? dev.cel.expr.Value.getDefaultInstance() : value_; } /** *
     * The value.
     * 
* * .cel.expr.Value value = 2; */ @java.lang.Override public dev.cel.expr.ValueOrBuilder getValueOrBuilder() { return getValue(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (key_ != null) { output.writeMessage(1, getKey()); } if (value_ != null) { output.writeMessage(2, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getKey()); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof dev.cel.expr.MapValue.Entry)) { return super.equals(obj); } dev.cel.expr.MapValue.Entry other = (dev.cel.expr.MapValue.Entry) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static dev.cel.expr.MapValue.Entry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.MapValue.Entry parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dev.cel.expr.MapValue.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.MapValue.Entry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dev.cel.expr.MapValue.Entry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.MapValue.Entry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dev.cel.expr.MapValue.Entry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static dev.cel.expr.MapValue.Entry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static dev.cel.expr.MapValue.Entry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static dev.cel.expr.MapValue.Entry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static dev.cel.expr.MapValue.Entry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static dev.cel.expr.MapValue.Entry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(dev.cel.expr.MapValue.Entry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cel.expr.MapValue.Entry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cel.expr.MapValue.Entry) dev.cel.expr.MapValue.EntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return dev.cel.expr.ValueProto.internal_static_cel_expr_MapValue_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return dev.cel.expr.ValueProto.internal_static_cel_expr_MapValue_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( dev.cel.expr.MapValue.Entry.class, dev.cel.expr.MapValue.Entry.Builder.class); } // Construct using dev.cel.expr.MapValue.Entry.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (keyBuilder_ == null) { key_ = null; } else { key_ = null; keyBuilder_ = null; } if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return dev.cel.expr.ValueProto.internal_static_cel_expr_MapValue_Entry_descriptor; } @java.lang.Override public dev.cel.expr.MapValue.Entry getDefaultInstanceForType() { return dev.cel.expr.MapValue.Entry.getDefaultInstance(); } @java.lang.Override public dev.cel.expr.MapValue.Entry build() { dev.cel.expr.MapValue.Entry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public dev.cel.expr.MapValue.Entry buildPartial() { dev.cel.expr.MapValue.Entry result = new dev.cel.expr.MapValue.Entry(this); if (keyBuilder_ == null) { result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof dev.cel.expr.MapValue.Entry) { return mergeFrom((dev.cel.expr.MapValue.Entry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(dev.cel.expr.MapValue.Entry other) { if (other == dev.cel.expr.MapValue.Entry.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getKeyFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private dev.cel.expr.Value key_; private com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.Value, dev.cel.expr.Value.Builder, dev.cel.expr.ValueOrBuilder> keyBuilder_; /** *
       * The key.
       * Must be unique with in the map.
       * Currently only boolean, int, uint, and string values can be keys.
       * 
* * .cel.expr.Value key = 1; * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
       * The key.
       * Must be unique with in the map.
       * Currently only boolean, int, uint, and string values can be keys.
       * 
* * .cel.expr.Value key = 1; * @return The key. */ public dev.cel.expr.Value getKey() { if (keyBuilder_ == null) { return key_ == null ? dev.cel.expr.Value.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
       * The key.
       * Must be unique with in the map.
       * Currently only boolean, int, uint, and string values can be keys.
       * 
* * .cel.expr.Value key = 1; */ public Builder setKey(dev.cel.expr.Value value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** *
       * The key.
       * Must be unique with in the map.
       * Currently only boolean, int, uint, and string values can be keys.
       * 
* * .cel.expr.Value key = 1; */ public Builder setKey( dev.cel.expr.Value.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The key.
       * Must be unique with in the map.
       * Currently only boolean, int, uint, and string values can be keys.
       * 
* * .cel.expr.Value key = 1; */ public Builder mergeKey(dev.cel.expr.Value value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = dev.cel.expr.Value.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** *
       * The key.
       * Must be unique with in the map.
       * Currently only boolean, int, uint, and string values can be keys.
       * 
* * .cel.expr.Value key = 1; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** *
       * The key.
       * Must be unique with in the map.
       * Currently only boolean, int, uint, and string values can be keys.
       * 
* * .cel.expr.Value key = 1; */ public dev.cel.expr.Value.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
       * The key.
       * Must be unique with in the map.
       * Currently only boolean, int, uint, and string values can be keys.
       * 
* * .cel.expr.Value key = 1; */ public dev.cel.expr.ValueOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? dev.cel.expr.Value.getDefaultInstance() : key_; } } /** *
       * The key.
       * Must be unique with in the map.
       * Currently only boolean, int, uint, and string values can be keys.
       * 
* * .cel.expr.Value key = 1; */ private com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.Value, dev.cel.expr.Value.Builder, dev.cel.expr.ValueOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.Value, dev.cel.expr.Value.Builder, dev.cel.expr.ValueOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private dev.cel.expr.Value value_; private com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.Value, dev.cel.expr.Value.Builder, dev.cel.expr.ValueOrBuilder> valueBuilder_; /** *
       * The value.
       * 
* * .cel.expr.Value value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** *
       * The value.
       * 
* * .cel.expr.Value value = 2; * @return The value. */ public dev.cel.expr.Value getValue() { if (valueBuilder_ == null) { return value_ == null ? dev.cel.expr.Value.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** *
       * The value.
       * 
* * .cel.expr.Value value = 2; */ public Builder setValue(dev.cel.expr.Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** *
       * The value.
       * 
* * .cel.expr.Value value = 2; */ public Builder setValue( dev.cel.expr.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The value.
       * 
* * .cel.expr.Value value = 2; */ public Builder mergeValue(dev.cel.expr.Value value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = dev.cel.expr.Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** *
       * The value.
       * 
* * .cel.expr.Value value = 2; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** *
       * The value.
       * 
* * .cel.expr.Value value = 2; */ public dev.cel.expr.Value.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** *
       * The value.
       * 
* * .cel.expr.Value value = 2; */ public dev.cel.expr.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? dev.cel.expr.Value.getDefaultInstance() : value_; } } /** *
       * The value.
       * 
* * .cel.expr.Value value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.Value, dev.cel.expr.Value.Builder, dev.cel.expr.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.Value, dev.cel.expr.Value.Builder, dev.cel.expr.ValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cel.expr.MapValue.Entry) } // @@protoc_insertion_point(class_scope:cel.expr.MapValue.Entry) private static final dev.cel.expr.MapValue.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new dev.cel.expr.MapValue.Entry(); } public static dev.cel.expr.MapValue.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Entry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public dev.cel.expr.MapValue.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ENTRIES_FIELD_NUMBER = 1; private java.util.List entries_; /** *
   * 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; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** *
   * 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; */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** *
   * 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; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** *
   * 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; */ @java.lang.Override public dev.cel.expr.MapValue.Entry getEntries(int index) { return entries_.get(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; */ @java.lang.Override public dev.cel.expr.MapValue.EntryOrBuilder getEntriesOrBuilder( int index) { return entries_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entries_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof dev.cel.expr.MapValue)) { return super.equals(obj); } dev.cel.expr.MapValue other = (dev.cel.expr.MapValue) obj; if (!getEntriesList() .equals(other.getEntriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static dev.cel.expr.MapValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.MapValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dev.cel.expr.MapValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.MapValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dev.cel.expr.MapValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.MapValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dev.cel.expr.MapValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static dev.cel.expr.MapValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static dev.cel.expr.MapValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static dev.cel.expr.MapValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static dev.cel.expr.MapValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static dev.cel.expr.MapValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(dev.cel.expr.MapValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * A map.
   * Wrapped in a message so 'not set' and empty can be differentiated, which is
   * required for use in a 'oneof'.
   * 
* * Protobuf type {@code cel.expr.MapValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cel.expr.MapValue) dev.cel.expr.MapValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return dev.cel.expr.ValueProto.internal_static_cel_expr_MapValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return dev.cel.expr.ValueProto.internal_static_cel_expr_MapValue_fieldAccessorTable .ensureFieldAccessorsInitialized( dev.cel.expr.MapValue.class, dev.cel.expr.MapValue.Builder.class); } // Construct using dev.cel.expr.MapValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); } else { entries_ = null; entriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return dev.cel.expr.ValueProto.internal_static_cel_expr_MapValue_descriptor; } @java.lang.Override public dev.cel.expr.MapValue getDefaultInstanceForType() { return dev.cel.expr.MapValue.getDefaultInstance(); } @java.lang.Override public dev.cel.expr.MapValue build() { dev.cel.expr.MapValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public dev.cel.expr.MapValue buildPartial() { dev.cel.expr.MapValue result = new dev.cel.expr.MapValue(this); int from_bitField0_ = bitField0_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof dev.cel.expr.MapValue) { return mergeFrom((dev.cel.expr.MapValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(dev.cel.expr.MapValue other) { if (other == dev.cel.expr.MapValue.getDefaultInstance()) return this; if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { dev.cel.expr.MapValue.Entry m = input.readMessage( dev.cel.expr.MapValue.Entry.parser(), extensionRegistry); if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(m); } else { entriesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< dev.cel.expr.MapValue.Entry, dev.cel.expr.MapValue.Entry.Builder, dev.cel.expr.MapValue.EntryOrBuilder> entriesBuilder_; /** *
     * 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; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** *
     * 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; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** *
     * 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; */ public dev.cel.expr.MapValue.Entry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(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; */ public Builder setEntries( int index, dev.cel.expr.MapValue.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** *
     * 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; */ public Builder setEntries( int index, dev.cel.expr.MapValue.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * 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; */ public Builder addEntries(dev.cel.expr.MapValue.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** *
     * 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; */ public Builder addEntries( int index, dev.cel.expr.MapValue.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** *
     * 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; */ public Builder addEntries( dev.cel.expr.MapValue.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * 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; */ public Builder addEntries( int index, dev.cel.expr.MapValue.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * 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; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** *
     * 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; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** *
     * 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; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** *
     * 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; */ public dev.cel.expr.MapValue.Entry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(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; */ public dev.cel.expr.MapValue.EntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(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; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** *
     * 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; */ public dev.cel.expr.MapValue.Entry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( dev.cel.expr.MapValue.Entry.getDefaultInstance()); } /** *
     * 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; */ public dev.cel.expr.MapValue.Entry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, dev.cel.expr.MapValue.Entry.getDefaultInstance()); } /** *
     * 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; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< dev.cel.expr.MapValue.Entry, dev.cel.expr.MapValue.Entry.Builder, dev.cel.expr.MapValue.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< dev.cel.expr.MapValue.Entry, dev.cel.expr.MapValue.Entry.Builder, dev.cel.expr.MapValue.EntryOrBuilder>( entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cel.expr.MapValue) } // @@protoc_insertion_point(class_scope:cel.expr.MapValue) private static final dev.cel.expr.MapValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new dev.cel.expr.MapValue(); } public static dev.cel.expr.MapValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MapValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public dev.cel.expr.MapValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy