
cel.dev.expr.conformance.Validator Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cel/expr/conformance/env_config.proto
// Protobuf Java Version: 3.25.1
package cel.dev.expr.conformance;
/**
*
* Represents a named validator with an optional map-based configuration object.
* Naming convention followed by validators:
* <domain>.validator.<validator_name>
* For ex:
* `cel.validator.timestamp`
*
* Note: the map-keys must directly correspond to the internal representation of
* the original validator, and should only use primitive scalar types as values
* at this time.
*
*
* Protobuf type {@code cel.expr.conformance.Validator}
*/
public final class Validator extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cel.expr.conformance.Validator)
ValidatorOrBuilder {
private static final long serialVersionUID = 0L;
// Use Validator.newBuilder() to construct.
private Validator(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Validator() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Validator();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cel.dev.expr.conformance.EnvironmentProto.internal_static_cel_expr_conformance_Validator_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetConfig();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cel.dev.expr.conformance.EnvironmentProto.internal_static_cel_expr_conformance_Validator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cel.dev.expr.conformance.Validator.class, cel.dev.expr.conformance.Validator.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONFIG_FIELD_NUMBER = 2;
private static final class ConfigDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.protobuf.Value> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
cel.dev.expr.conformance.EnvironmentProto.internal_static_cel_expr_conformance_Validator_ConfigEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.protobuf.Value.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, com.google.protobuf.Value> config_;
private com.google.protobuf.MapField
internalGetConfig() {
if (config_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ConfigDefaultEntryHolder.defaultEntry);
}
return config_;
}
public int getConfigCount() {
return internalGetConfig().getMap().size();
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
@java.lang.Override
public boolean containsConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetConfig().getMap().containsKey(key);
}
/**
* Use {@link #getConfigMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getConfig() {
return getConfigMap();
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
@java.lang.Override
public java.util.Map getConfigMap() {
return internalGetConfig().getMap();
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
@java.lang.Override
public /* nullable */
com.google.protobuf.Value getConfigOrDefault(
java.lang.String key,
/* nullable */
com.google.protobuf.Value defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetConfig().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
@java.lang.Override
public com.google.protobuf.Value getConfigOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetConfig().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetConfig(),
ConfigDefaultEntryHolder.defaultEntry,
2);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (java.util.Map.Entry entry
: internalGetConfig().getMap().entrySet()) {
com.google.protobuf.MapEntry
config__ = ConfigDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, config__);
}
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 cel.dev.expr.conformance.Validator)) {
return super.equals(obj);
}
cel.dev.expr.conformance.Validator other = (cel.dev.expr.conformance.Validator) obj;
if (!getName()
.equals(other.getName())) return false;
if (!internalGetConfig().equals(
other.internalGetConfig())) 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();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (!internalGetConfig().getMap().isEmpty()) {
hash = (37 * hash) + CONFIG_FIELD_NUMBER;
hash = (53 * hash) + internalGetConfig().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cel.dev.expr.conformance.Validator parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cel.dev.expr.conformance.Validator parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cel.dev.expr.conformance.Validator parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cel.dev.expr.conformance.Validator parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cel.dev.expr.conformance.Validator parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cel.dev.expr.conformance.Validator parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cel.dev.expr.conformance.Validator parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cel.dev.expr.conformance.Validator 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 cel.dev.expr.conformance.Validator parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cel.dev.expr.conformance.Validator 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 cel.dev.expr.conformance.Validator parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cel.dev.expr.conformance.Validator 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(cel.dev.expr.conformance.Validator 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;
}
/**
*
* Represents a named validator with an optional map-based configuration object.
* Naming convention followed by validators:
* <domain>.validator.<validator_name>
* For ex:
* `cel.validator.timestamp`
*
* Note: the map-keys must directly correspond to the internal representation of
* the original validator, and should only use primitive scalar types as values
* at this time.
*
*
* Protobuf type {@code cel.expr.conformance.Validator}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cel.expr.conformance.Validator)
cel.dev.expr.conformance.ValidatorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cel.dev.expr.conformance.EnvironmentProto.internal_static_cel_expr_conformance_Validator_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetConfig();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetMutableConfig();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cel.dev.expr.conformance.EnvironmentProto.internal_static_cel_expr_conformance_Validator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cel.dev.expr.conformance.Validator.class, cel.dev.expr.conformance.Validator.Builder.class);
}
// Construct using cel.dev.expr.conformance.Validator.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
internalGetMutableConfig().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cel.dev.expr.conformance.EnvironmentProto.internal_static_cel_expr_conformance_Validator_descriptor;
}
@java.lang.Override
public cel.dev.expr.conformance.Validator getDefaultInstanceForType() {
return cel.dev.expr.conformance.Validator.getDefaultInstance();
}
@java.lang.Override
public cel.dev.expr.conformance.Validator build() {
cel.dev.expr.conformance.Validator result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cel.dev.expr.conformance.Validator buildPartial() {
cel.dev.expr.conformance.Validator result = new cel.dev.expr.conformance.Validator(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cel.dev.expr.conformance.Validator result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.config_ = internalGetConfig().build(ConfigDefaultEntryHolder.defaultEntry);
}
}
@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 cel.dev.expr.conformance.Validator) {
return mergeFrom((cel.dev.expr.conformance.Validator)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cel.dev.expr.conformance.Validator other) {
if (other == cel.dev.expr.conformance.Validator.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutableConfig().mergeFrom(
other.internalGetConfig());
bitField0_ |= 0x00000002;
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: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.MapEntry
config__ = input.readMessage(
ConfigDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableConfig().ensureBuilderMap().put(
config__.getKey(), config__.getValue());
bitField0_ |= 0x00000002;
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 int bitField0_;
private java.lang.Object name_ = "";
/**
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private static final class ConfigConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public com.google.protobuf.Value build(com.google.protobuf.ValueOrBuilder val) {
if (val instanceof com.google.protobuf.Value) { return (com.google.protobuf.Value) val; }
return ((com.google.protobuf.Value.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return ConfigDefaultEntryHolder.defaultEntry;
}
};
private static final ConfigConverter configConverter = new ConfigConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value, com.google.protobuf.Value.Builder> config_;
private com.google.protobuf.MapFieldBuilder
internalGetConfig() {
if (config_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(configConverter);
}
return config_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableConfig() {
if (config_ == null) {
config_ = new com.google.protobuf.MapFieldBuilder<>(configConverter);
}
bitField0_ |= 0x00000002;
onChanged();
return config_;
}
public int getConfigCount() {
return internalGetConfig().ensureBuilderMap().size();
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
@java.lang.Override
public boolean containsConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetConfig().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getConfigMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getConfig() {
return getConfigMap();
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
@java.lang.Override
public java.util.Map getConfigMap() {
return internalGetConfig().getImmutableMap();
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
@java.lang.Override
public /* nullable */
com.google.protobuf.Value getConfigOrDefault(
java.lang.String key,
/* nullable */
com.google.protobuf.Value defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableConfig().ensureBuilderMap();
return map.containsKey(key) ? configConverter.build(map.get(key)) : defaultValue;
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
@java.lang.Override
public com.google.protobuf.Value getConfigOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableConfig().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return configConverter.build(map.get(key));
}
public Builder clearConfig() {
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableConfig().clear();
return this;
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
public Builder removeConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableConfig().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableConfig() {
bitField0_ |= 0x00000002;
return internalGetMutableConfig().ensureMessageMap();
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
public Builder putConfig(
java.lang.String key,
com.google.protobuf.Value value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableConfig().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
public Builder putAllConfig(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableConfig().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Additional configurations to be included as part of the validation
*
*
* map<string, .google.protobuf.Value> config = 2;
*/
public com.google.protobuf.Value.Builder putConfigBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableConfig().ensureBuilderMap();
com.google.protobuf.ValueOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = com.google.protobuf.Value.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof com.google.protobuf.Value) {
entry = ((com.google.protobuf.Value) entry).toBuilder();
builderMap.put(key, entry);
}
return (com.google.protobuf.Value.Builder) entry;
}
@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.conformance.Validator)
}
// @@protoc_insertion_point(class_scope:cel.expr.conformance.Validator)
private static final cel.dev.expr.conformance.Validator DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cel.dev.expr.conformance.Validator();
}
public static cel.dev.expr.conformance.Validator getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Validator 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 cel.dev.expr.conformance.Validator getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy