dev.cel.expr.Constant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime Show documentation
Show all versions of runtime Show documentation
Common Expression Language Runtime for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: cel/expr/syntax.proto
// Protobuf Java Version: 4.28.2
package dev.cel.expr;
/**
*
* Represents a primitive literal.
*
* Named 'Constant' here for backwards compatibility.
*
* This is similar as the primitives supported in the well-known type
* `google.protobuf.Value`, but richer so it can represent CEL's full range of
* primitives.
*
* Lists and structs are not included as constants as these aggregate types may
* contain [Expr][cel.expr.Expr] elements which require evaluation and
* are thus not constant.
*
* Examples of constants include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
* `true`, `null`.
*
*
* Protobuf type {@code cel.expr.Constant}
*/
public final class Constant extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:cel.expr.Constant)
ConstantOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
Constant.class.getName());
}
// Use Constant.newBuilder() to construct.
private Constant(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Constant() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.cel.expr.SyntaxProto.internal_static_cel_expr_Constant_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.cel.expr.SyntaxProto.internal_static_cel_expr_Constant_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.cel.expr.Constant.class, dev.cel.expr.Constant.Builder.class);
}
private int constantKindCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object constantKind_;
public enum ConstantKindCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
NULL_VALUE(1),
BOOL_VALUE(2),
INT64_VALUE(3),
UINT64_VALUE(4),
DOUBLE_VALUE(5),
STRING_VALUE(6),
BYTES_VALUE(7),
@java.lang.Deprecated DURATION_VALUE(8),
@java.lang.Deprecated TIMESTAMP_VALUE(9),
CONSTANTKIND_NOT_SET(0);
private final int value;
private ConstantKindCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConstantKindCase valueOf(int value) {
return forNumber(value);
}
public static ConstantKindCase forNumber(int value) {
switch (value) {
case 1: return NULL_VALUE;
case 2: return BOOL_VALUE;
case 3: return INT64_VALUE;
case 4: return UINT64_VALUE;
case 5: return DOUBLE_VALUE;
case 6: return STRING_VALUE;
case 7: return BYTES_VALUE;
case 8: return DURATION_VALUE;
case 9: return TIMESTAMP_VALUE;
case 0: return CONSTANTKIND_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ConstantKindCase
getConstantKindCase() {
return ConstantKindCase.forNumber(
constantKindCase_);
}
public static final int NULL_VALUE_FIELD_NUMBER = 1;
/**
*
* null value.
*
*
* .google.protobuf.NullValue null_value = 1;
* @return Whether the nullValue field is set.
*/
public boolean hasNullValue() {
return constantKindCase_ == 1;
}
/**
*
* null value.
*
*
* .google.protobuf.NullValue null_value = 1;
* @return The enum numeric value on the wire for nullValue.
*/
public int getNullValueValue() {
if (constantKindCase_ == 1) {
return (java.lang.Integer) constantKind_;
}
return 0;
}
/**
*
* null value.
*
*
* .google.protobuf.NullValue null_value = 1;
* @return The nullValue.
*/
public com.google.protobuf.NullValue getNullValue() {
if (constantKindCase_ == 1) {
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber(
(java.lang.Integer) constantKind_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
public static final int BOOL_VALUE_FIELD_NUMBER = 2;
/**
*
* boolean value.
*
*
* bool bool_value = 2;
* @return Whether the boolValue field is set.
*/
@java.lang.Override
public boolean hasBoolValue() {
return constantKindCase_ == 2;
}
/**
*
* boolean value.
*
*
* bool bool_value = 2;
* @return The boolValue.
*/
@java.lang.Override
public boolean getBoolValue() {
if (constantKindCase_ == 2) {
return (java.lang.Boolean) constantKind_;
}
return false;
}
public static final int INT64_VALUE_FIELD_NUMBER = 3;
/**
*
* int64 value.
*
*
* int64 int64_value = 3;
* @return Whether the int64Value field is set.
*/
@java.lang.Override
public boolean hasInt64Value() {
return constantKindCase_ == 3;
}
/**
*
* int64 value.
*
*
* int64 int64_value = 3;
* @return The int64Value.
*/
@java.lang.Override
public long getInt64Value() {
if (constantKindCase_ == 3) {
return (java.lang.Long) constantKind_;
}
return 0L;
}
public static final int UINT64_VALUE_FIELD_NUMBER = 4;
/**
*
* uint64 value.
*
*
* uint64 uint64_value = 4;
* @return Whether the uint64Value field is set.
*/
@java.lang.Override
public boolean hasUint64Value() {
return constantKindCase_ == 4;
}
/**
*
* uint64 value.
*
*
* uint64 uint64_value = 4;
* @return The uint64Value.
*/
@java.lang.Override
public long getUint64Value() {
if (constantKindCase_ == 4) {
return (java.lang.Long) constantKind_;
}
return 0L;
}
public static final int DOUBLE_VALUE_FIELD_NUMBER = 5;
/**
*
* double value.
*
*
* double double_value = 5;
* @return Whether the doubleValue field is set.
*/
@java.lang.Override
public boolean hasDoubleValue() {
return constantKindCase_ == 5;
}
/**
*
* double value.
*
*
* double double_value = 5;
* @return The doubleValue.
*/
@java.lang.Override
public double getDoubleValue() {
if (constantKindCase_ == 5) {
return (java.lang.Double) constantKind_;
}
return 0D;
}
public static final int STRING_VALUE_FIELD_NUMBER = 6;
/**
*
* string value.
*
*
* string string_value = 6;
* @return Whether the stringValue field is set.
*/
public boolean hasStringValue() {
return constantKindCase_ == 6;
}
/**
*
* string value.
*
*
* string string_value = 6;
* @return The stringValue.
*/
public java.lang.String getStringValue() {
java.lang.Object ref = "";
if (constantKindCase_ == 6) {
ref = constantKind_;
}
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();
if (constantKindCase_ == 6) {
constantKind_ = s;
}
return s;
}
}
/**
*
* string value.
*
*
* string string_value = 6;
* @return The bytes for stringValue.
*/
public com.google.protobuf.ByteString
getStringValueBytes() {
java.lang.Object ref = "";
if (constantKindCase_ == 6) {
ref = constantKind_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (constantKindCase_ == 6) {
constantKind_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BYTES_VALUE_FIELD_NUMBER = 7;
/**
*
* bytes value.
*
*
* bytes bytes_value = 7;
* @return Whether the bytesValue field is set.
*/
@java.lang.Override
public boolean hasBytesValue() {
return constantKindCase_ == 7;
}
/**
*
* bytes value.
*
*
* bytes bytes_value = 7;
* @return The bytesValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBytesValue() {
if (constantKindCase_ == 7) {
return (com.google.protobuf.ByteString) constantKind_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int DURATION_VALUE_FIELD_NUMBER = 8;
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
* @deprecated cel.expr.Constant.duration_value is deprecated.
* See cel/expr/syntax.proto;l=325
* @return Whether the durationValue field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDurationValue() {
return constantKindCase_ == 8;
}
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
* @deprecated cel.expr.Constant.duration_value is deprecated.
* See cel/expr/syntax.proto;l=325
* @return The durationValue.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.Duration getDurationValue() {
if (constantKindCase_ == 8) {
return (com.google.protobuf.Duration) constantKind_;
}
return com.google.protobuf.Duration.getDefaultInstance();
}
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.DurationOrBuilder getDurationValueOrBuilder() {
if (constantKindCase_ == 8) {
return (com.google.protobuf.Duration) constantKind_;
}
return com.google.protobuf.Duration.getDefaultInstance();
}
public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 9;
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
* @deprecated cel.expr.Constant.timestamp_value is deprecated.
* See cel/expr/syntax.proto;l=330
* @return Whether the timestampValue field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasTimestampValue() {
return constantKindCase_ == 9;
}
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
* @deprecated cel.expr.Constant.timestamp_value is deprecated.
* See cel/expr/syntax.proto;l=330
* @return The timestampValue.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.Timestamp getTimestampValue() {
if (constantKindCase_ == 9) {
return (com.google.protobuf.Timestamp) constantKind_;
}
return com.google.protobuf.Timestamp.getDefaultInstance();
}
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
if (constantKindCase_ == 9) {
return (com.google.protobuf.Timestamp) constantKind_;
}
return com.google.protobuf.Timestamp.getDefaultInstance();
}
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 (constantKindCase_ == 1) {
output.writeEnum(1, ((java.lang.Integer) constantKind_));
}
if (constantKindCase_ == 2) {
output.writeBool(
2, (boolean)((java.lang.Boolean) constantKind_));
}
if (constantKindCase_ == 3) {
output.writeInt64(
3, (long)((java.lang.Long) constantKind_));
}
if (constantKindCase_ == 4) {
output.writeUInt64(
4, (long)((java.lang.Long) constantKind_));
}
if (constantKindCase_ == 5) {
output.writeDouble(
5, (double)((java.lang.Double) constantKind_));
}
if (constantKindCase_ == 6) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, constantKind_);
}
if (constantKindCase_ == 7) {
output.writeBytes(
7, (com.google.protobuf.ByteString) constantKind_);
}
if (constantKindCase_ == 8) {
output.writeMessage(8, (com.google.protobuf.Duration) constantKind_);
}
if (constantKindCase_ == 9) {
output.writeMessage(9, (com.google.protobuf.Timestamp) constantKind_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (constantKindCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, ((java.lang.Integer) constantKind_));
}
if (constantKindCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
2, (boolean)((java.lang.Boolean) constantKind_));
}
if (constantKindCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
3, (long)((java.lang.Long) constantKind_));
}
if (constantKindCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
4, (long)((java.lang.Long) constantKind_));
}
if (constantKindCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
5, (double)((java.lang.Double) constantKind_));
}
if (constantKindCase_ == 6) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(6, constantKind_);
}
if (constantKindCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
7, (com.google.protobuf.ByteString) constantKind_);
}
if (constantKindCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.google.protobuf.Duration) constantKind_);
}
if (constantKindCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (com.google.protobuf.Timestamp) constantKind_);
}
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.Constant)) {
return super.equals(obj);
}
dev.cel.expr.Constant other = (dev.cel.expr.Constant) obj;
if (!getConstantKindCase().equals(other.getConstantKindCase())) return false;
switch (constantKindCase_) {
case 1:
if (getNullValueValue()
!= other.getNullValueValue()) return false;
break;
case 2:
if (getBoolValue()
!= other.getBoolValue()) return false;
break;
case 3:
if (getInt64Value()
!= other.getInt64Value()) return false;
break;
case 4:
if (getUint64Value()
!= other.getUint64Value()) return false;
break;
case 5:
if (java.lang.Double.doubleToLongBits(getDoubleValue())
!= java.lang.Double.doubleToLongBits(
other.getDoubleValue())) return false;
break;
case 6:
if (!getStringValue()
.equals(other.getStringValue())) return false;
break;
case 7:
if (!getBytesValue()
.equals(other.getBytesValue())) return false;
break;
case 8:
if (!getDurationValue()
.equals(other.getDurationValue())) return false;
break;
case 9:
if (!getTimestampValue()
.equals(other.getTimestampValue())) return false;
break;
case 0:
default:
}
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();
switch (constantKindCase_) {
case 1:
hash = (37 * hash) + NULL_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getNullValueValue();
break;
case 2:
hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBoolValue());
break;
case 3:
hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInt64Value());
break;
case 4:
hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUint64Value());
break;
case 5:
hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDoubleValue()));
break;
case 6:
hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStringValue().hashCode();
break;
case 7:
hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getBytesValue().hashCode();
break;
case 8:
hash = (37 * hash) + DURATION_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getDurationValue().hashCode();
break;
case 9:
hash = (37 * hash) + TIMESTAMP_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getTimestampValue().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static dev.cel.expr.Constant parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.Constant 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.Constant parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.Constant 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.Constant parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.Constant parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.cel.expr.Constant parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static dev.cel.expr.Constant parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static dev.cel.expr.Constant parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static dev.cel.expr.Constant parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static dev.cel.expr.Constant parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static dev.cel.expr.Constant parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.Constant 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents a primitive literal.
*
* Named 'Constant' here for backwards compatibility.
*
* This is similar as the primitives supported in the well-known type
* `google.protobuf.Value`, but richer so it can represent CEL's full range of
* primitives.
*
* Lists and structs are not included as constants as these aggregate types may
* contain [Expr][cel.expr.Expr] elements which require evaluation and
* are thus not constant.
*
* Examples of constants include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
* `true`, `null`.
*
*
* Protobuf type {@code cel.expr.Constant}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:cel.expr.Constant)
dev.cel.expr.ConstantOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.cel.expr.SyntaxProto.internal_static_cel_expr_Constant_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.cel.expr.SyntaxProto.internal_static_cel_expr_Constant_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.cel.expr.Constant.class, dev.cel.expr.Constant.Builder.class);
}
// Construct using dev.cel.expr.Constant.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (durationValueBuilder_ != null) {
durationValueBuilder_.clear();
}
if (timestampValueBuilder_ != null) {
timestampValueBuilder_.clear();
}
constantKindCase_ = 0;
constantKind_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return dev.cel.expr.SyntaxProto.internal_static_cel_expr_Constant_descriptor;
}
@java.lang.Override
public dev.cel.expr.Constant getDefaultInstanceForType() {
return dev.cel.expr.Constant.getDefaultInstance();
}
@java.lang.Override
public dev.cel.expr.Constant build() {
dev.cel.expr.Constant result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public dev.cel.expr.Constant buildPartial() {
dev.cel.expr.Constant result = new dev.cel.expr.Constant(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(dev.cel.expr.Constant result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(dev.cel.expr.Constant result) {
result.constantKindCase_ = constantKindCase_;
result.constantKind_ = this.constantKind_;
if (constantKindCase_ == 8 &&
durationValueBuilder_ != null) {
result.constantKind_ = durationValueBuilder_.build();
}
if (constantKindCase_ == 9 &&
timestampValueBuilder_ != null) {
result.constantKind_ = timestampValueBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof dev.cel.expr.Constant) {
return mergeFrom((dev.cel.expr.Constant)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(dev.cel.expr.Constant other) {
if (other == dev.cel.expr.Constant.getDefaultInstance()) return this;
switch (other.getConstantKindCase()) {
case NULL_VALUE: {
setNullValueValue(other.getNullValueValue());
break;
}
case BOOL_VALUE: {
setBoolValue(other.getBoolValue());
break;
}
case INT64_VALUE: {
setInt64Value(other.getInt64Value());
break;
}
case UINT64_VALUE: {
setUint64Value(other.getUint64Value());
break;
}
case DOUBLE_VALUE: {
setDoubleValue(other.getDoubleValue());
break;
}
case STRING_VALUE: {
constantKindCase_ = 6;
constantKind_ = other.constantKind_;
onChanged();
break;
}
case BYTES_VALUE: {
setBytesValue(other.getBytesValue());
break;
}
case DURATION_VALUE: {
mergeDurationValue(other.getDurationValue());
break;
}
case TIMESTAMP_VALUE: {
mergeTimestampValue(other.getTimestampValue());
break;
}
case CONSTANTKIND_NOT_SET: {
break;
}
}
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 8: {
int rawValue = input.readEnum();
constantKindCase_ = 1;
constantKind_ = rawValue;
break;
} // case 8
case 16: {
constantKind_ = input.readBool();
constantKindCase_ = 2;
break;
} // case 16
case 24: {
constantKind_ = input.readInt64();
constantKindCase_ = 3;
break;
} // case 24
case 32: {
constantKind_ = input.readUInt64();
constantKindCase_ = 4;
break;
} // case 32
case 41: {
constantKind_ = input.readDouble();
constantKindCase_ = 5;
break;
} // case 41
case 50: {
java.lang.String s = input.readStringRequireUtf8();
constantKindCase_ = 6;
constantKind_ = s;
break;
} // case 50
case 58: {
constantKind_ = input.readBytes();
constantKindCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getDurationValueFieldBuilder().getBuilder(),
extensionRegistry);
constantKindCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getTimestampValueFieldBuilder().getBuilder(),
extensionRegistry);
constantKindCase_ = 9;
break;
} // case 74
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 constantKindCase_ = 0;
private java.lang.Object constantKind_;
public ConstantKindCase
getConstantKindCase() {
return ConstantKindCase.forNumber(
constantKindCase_);
}
public Builder clearConstantKind() {
constantKindCase_ = 0;
constantKind_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
*
* null value.
*
*
* .google.protobuf.NullValue null_value = 1;
* @return Whether the nullValue field is set.
*/
@java.lang.Override
public boolean hasNullValue() {
return constantKindCase_ == 1;
}
/**
*
* null value.
*
*
* .google.protobuf.NullValue null_value = 1;
* @return The enum numeric value on the wire for nullValue.
*/
@java.lang.Override
public int getNullValueValue() {
if (constantKindCase_ == 1) {
return ((java.lang.Integer) constantKind_).intValue();
}
return 0;
}
/**
*
* null value.
*
*
* .google.protobuf.NullValue null_value = 1;
* @param value The enum numeric value on the wire for nullValue to set.
* @return This builder for chaining.
*/
public Builder setNullValueValue(int value) {
constantKindCase_ = 1;
constantKind_ = value;
onChanged();
return this;
}
/**
*
* null value.
*
*
* .google.protobuf.NullValue null_value = 1;
* @return The nullValue.
*/
@java.lang.Override
public com.google.protobuf.NullValue getNullValue() {
if (constantKindCase_ == 1) {
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber(
(java.lang.Integer) constantKind_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
/**
*
* null value.
*
*
* .google.protobuf.NullValue null_value = 1;
* @param value The nullValue to set.
* @return This builder for chaining.
*/
public Builder setNullValue(com.google.protobuf.NullValue value) {
if (value == null) {
throw new NullPointerException();
}
constantKindCase_ = 1;
constantKind_ = value.getNumber();
onChanged();
return this;
}
/**
*
* null value.
*
*
* .google.protobuf.NullValue null_value = 1;
* @return This builder for chaining.
*/
public Builder clearNullValue() {
if (constantKindCase_ == 1) {
constantKindCase_ = 0;
constantKind_ = null;
onChanged();
}
return this;
}
/**
*
* boolean value.
*
*
* bool bool_value = 2;
* @return Whether the boolValue field is set.
*/
public boolean hasBoolValue() {
return constantKindCase_ == 2;
}
/**
*
* boolean value.
*
*
* bool bool_value = 2;
* @return The boolValue.
*/
public boolean getBoolValue() {
if (constantKindCase_ == 2) {
return (java.lang.Boolean) constantKind_;
}
return false;
}
/**
*
* boolean value.
*
*
* bool bool_value = 2;
* @param value The boolValue to set.
* @return This builder for chaining.
*/
public Builder setBoolValue(boolean value) {
constantKindCase_ = 2;
constantKind_ = value;
onChanged();
return this;
}
/**
*
* boolean value.
*
*
* bool bool_value = 2;
* @return This builder for chaining.
*/
public Builder clearBoolValue() {
if (constantKindCase_ == 2) {
constantKindCase_ = 0;
constantKind_ = null;
onChanged();
}
return this;
}
/**
*
* int64 value.
*
*
* int64 int64_value = 3;
* @return Whether the int64Value field is set.
*/
public boolean hasInt64Value() {
return constantKindCase_ == 3;
}
/**
*
* int64 value.
*
*
* int64 int64_value = 3;
* @return The int64Value.
*/
public long getInt64Value() {
if (constantKindCase_ == 3) {
return (java.lang.Long) constantKind_;
}
return 0L;
}
/**
*
* int64 value.
*
*
* int64 int64_value = 3;
* @param value The int64Value to set.
* @return This builder for chaining.
*/
public Builder setInt64Value(long value) {
constantKindCase_ = 3;
constantKind_ = value;
onChanged();
return this;
}
/**
*
* int64 value.
*
*
* int64 int64_value = 3;
* @return This builder for chaining.
*/
public Builder clearInt64Value() {
if (constantKindCase_ == 3) {
constantKindCase_ = 0;
constantKind_ = null;
onChanged();
}
return this;
}
/**
*
* uint64 value.
*
*
* uint64 uint64_value = 4;
* @return Whether the uint64Value field is set.
*/
public boolean hasUint64Value() {
return constantKindCase_ == 4;
}
/**
*
* uint64 value.
*
*
* uint64 uint64_value = 4;
* @return The uint64Value.
*/
public long getUint64Value() {
if (constantKindCase_ == 4) {
return (java.lang.Long) constantKind_;
}
return 0L;
}
/**
*
* uint64 value.
*
*
* uint64 uint64_value = 4;
* @param value The uint64Value to set.
* @return This builder for chaining.
*/
public Builder setUint64Value(long value) {
constantKindCase_ = 4;
constantKind_ = value;
onChanged();
return this;
}
/**
*
* uint64 value.
*
*
* uint64 uint64_value = 4;
* @return This builder for chaining.
*/
public Builder clearUint64Value() {
if (constantKindCase_ == 4) {
constantKindCase_ = 0;
constantKind_ = null;
onChanged();
}
return this;
}
/**
*
* double value.
*
*
* double double_value = 5;
* @return Whether the doubleValue field is set.
*/
public boolean hasDoubleValue() {
return constantKindCase_ == 5;
}
/**
*
* double value.
*
*
* double double_value = 5;
* @return The doubleValue.
*/
public double getDoubleValue() {
if (constantKindCase_ == 5) {
return (java.lang.Double) constantKind_;
}
return 0D;
}
/**
*
* double value.
*
*
* double double_value = 5;
* @param value The doubleValue to set.
* @return This builder for chaining.
*/
public Builder setDoubleValue(double value) {
constantKindCase_ = 5;
constantKind_ = value;
onChanged();
return this;
}
/**
*
* double value.
*
*
* double double_value = 5;
* @return This builder for chaining.
*/
public Builder clearDoubleValue() {
if (constantKindCase_ == 5) {
constantKindCase_ = 0;
constantKind_ = null;
onChanged();
}
return this;
}
/**
*
* string value.
*
*
* string string_value = 6;
* @return Whether the stringValue field is set.
*/
@java.lang.Override
public boolean hasStringValue() {
return constantKindCase_ == 6;
}
/**
*
* string value.
*
*
* string string_value = 6;
* @return The stringValue.
*/
@java.lang.Override
public java.lang.String getStringValue() {
java.lang.Object ref = "";
if (constantKindCase_ == 6) {
ref = constantKind_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (constantKindCase_ == 6) {
constantKind_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* string value.
*
*
* string string_value = 6;
* @return The bytes for stringValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStringValueBytes() {
java.lang.Object ref = "";
if (constantKindCase_ == 6) {
ref = constantKind_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (constantKindCase_ == 6) {
constantKind_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* string value.
*
*
* string string_value = 6;
* @param value The stringValue to set.
* @return This builder for chaining.
*/
public Builder setStringValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
constantKindCase_ = 6;
constantKind_ = value;
onChanged();
return this;
}
/**
*
* string value.
*
*
* string string_value = 6;
* @return This builder for chaining.
*/
public Builder clearStringValue() {
if (constantKindCase_ == 6) {
constantKindCase_ = 0;
constantKind_ = null;
onChanged();
}
return this;
}
/**
*
* string value.
*
*
* string string_value = 6;
* @param value The bytes for stringValue to set.
* @return This builder for chaining.
*/
public Builder setStringValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
constantKindCase_ = 6;
constantKind_ = value;
onChanged();
return this;
}
/**
*
* bytes value.
*
*
* bytes bytes_value = 7;
* @return Whether the bytesValue field is set.
*/
public boolean hasBytesValue() {
return constantKindCase_ == 7;
}
/**
*
* bytes value.
*
*
* bytes bytes_value = 7;
* @return The bytesValue.
*/
public com.google.protobuf.ByteString getBytesValue() {
if (constantKindCase_ == 7) {
return (com.google.protobuf.ByteString) constantKind_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
*
* bytes value.
*
*
* bytes bytes_value = 7;
* @param value The bytesValue to set.
* @return This builder for chaining.
*/
public Builder setBytesValue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
constantKindCase_ = 7;
constantKind_ = value;
onChanged();
return this;
}
/**
*
* bytes value.
*
*
* bytes bytes_value = 7;
* @return This builder for chaining.
*/
public Builder clearBytesValue() {
if (constantKindCase_ == 7) {
constantKindCase_ = 0;
constantKind_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationValueBuilder_;
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
* @deprecated cel.expr.Constant.duration_value is deprecated.
* See cel/expr/syntax.proto;l=325
* @return Whether the durationValue field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDurationValue() {
return constantKindCase_ == 8;
}
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
* @deprecated cel.expr.Constant.duration_value is deprecated.
* See cel/expr/syntax.proto;l=325
* @return The durationValue.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.Duration getDurationValue() {
if (durationValueBuilder_ == null) {
if (constantKindCase_ == 8) {
return (com.google.protobuf.Duration) constantKind_;
}
return com.google.protobuf.Duration.getDefaultInstance();
} else {
if (constantKindCase_ == 8) {
return durationValueBuilder_.getMessage();
}
return com.google.protobuf.Duration.getDefaultInstance();
}
}
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder setDurationValue(com.google.protobuf.Duration value) {
if (durationValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
constantKind_ = value;
onChanged();
} else {
durationValueBuilder_.setMessage(value);
}
constantKindCase_ = 8;
return this;
}
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder setDurationValue(
com.google.protobuf.Duration.Builder builderForValue) {
if (durationValueBuilder_ == null) {
constantKind_ = builderForValue.build();
onChanged();
} else {
durationValueBuilder_.setMessage(builderForValue.build());
}
constantKindCase_ = 8;
return this;
}
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeDurationValue(com.google.protobuf.Duration value) {
if (durationValueBuilder_ == null) {
if (constantKindCase_ == 8 &&
constantKind_ != com.google.protobuf.Duration.getDefaultInstance()) {
constantKind_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) constantKind_)
.mergeFrom(value).buildPartial();
} else {
constantKind_ = value;
}
onChanged();
} else {
if (constantKindCase_ == 8) {
durationValueBuilder_.mergeFrom(value);
} else {
durationValueBuilder_.setMessage(value);
}
}
constantKindCase_ = 8;
return this;
}
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearDurationValue() {
if (durationValueBuilder_ == null) {
if (constantKindCase_ == 8) {
constantKindCase_ = 0;
constantKind_ = null;
onChanged();
}
} else {
if (constantKindCase_ == 8) {
constantKindCase_ = 0;
constantKind_ = null;
}
durationValueBuilder_.clear();
}
return this;
}
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.Duration.Builder getDurationValueBuilder() {
return getDurationValueFieldBuilder().getBuilder();
}
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.DurationOrBuilder getDurationValueOrBuilder() {
if ((constantKindCase_ == 8) && (durationValueBuilder_ != null)) {
return durationValueBuilder_.getMessageOrBuilder();
} else {
if (constantKindCase_ == 8) {
return (com.google.protobuf.Duration) constantKind_;
}
return com.google.protobuf.Duration.getDefaultInstance();
}
}
/**
*
* protobuf.Duration value.
*
* Deprecated: duration is no longer considered a builtin cel type.
*
*
* .google.protobuf.Duration duration_value = 8 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getDurationValueFieldBuilder() {
if (durationValueBuilder_ == null) {
if (!(constantKindCase_ == 8)) {
constantKind_ = com.google.protobuf.Duration.getDefaultInstance();
}
durationValueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
(com.google.protobuf.Duration) constantKind_,
getParentForChildren(),
isClean());
constantKind_ = null;
}
constantKindCase_ = 8;
onChanged();
return durationValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampValueBuilder_;
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
* @deprecated cel.expr.Constant.timestamp_value is deprecated.
* See cel/expr/syntax.proto;l=330
* @return Whether the timestampValue field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasTimestampValue() {
return constantKindCase_ == 9;
}
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
* @deprecated cel.expr.Constant.timestamp_value is deprecated.
* See cel/expr/syntax.proto;l=330
* @return The timestampValue.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.Timestamp getTimestampValue() {
if (timestampValueBuilder_ == null) {
if (constantKindCase_ == 9) {
return (com.google.protobuf.Timestamp) constantKind_;
}
return com.google.protobuf.Timestamp.getDefaultInstance();
} else {
if (constantKindCase_ == 9) {
return timestampValueBuilder_.getMessage();
}
return com.google.protobuf.Timestamp.getDefaultInstance();
}
}
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
*/
@java.lang.Deprecated public Builder setTimestampValue(com.google.protobuf.Timestamp value) {
if (timestampValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
constantKind_ = value;
onChanged();
} else {
timestampValueBuilder_.setMessage(value);
}
constantKindCase_ = 9;
return this;
}
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
*/
@java.lang.Deprecated public Builder setTimestampValue(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampValueBuilder_ == null) {
constantKind_ = builderForValue.build();
onChanged();
} else {
timestampValueBuilder_.setMessage(builderForValue.build());
}
constantKindCase_ = 9;
return this;
}
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) {
if (timestampValueBuilder_ == null) {
if (constantKindCase_ == 9 &&
constantKind_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
constantKind_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) constantKind_)
.mergeFrom(value).buildPartial();
} else {
constantKind_ = value;
}
onChanged();
} else {
if (constantKindCase_ == 9) {
timestampValueBuilder_.mergeFrom(value);
} else {
timestampValueBuilder_.setMessage(value);
}
}
constantKindCase_ = 9;
return this;
}
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearTimestampValue() {
if (timestampValueBuilder_ == null) {
if (constantKindCase_ == 9) {
constantKindCase_ = 0;
constantKind_ = null;
onChanged();
}
} else {
if (constantKindCase_ == 9) {
constantKindCase_ = 0;
constantKind_ = null;
}
timestampValueBuilder_.clear();
}
return this;
}
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder() {
return getTimestampValueFieldBuilder().getBuilder();
}
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
if ((constantKindCase_ == 9) && (timestampValueBuilder_ != null)) {
return timestampValueBuilder_.getMessageOrBuilder();
} else {
if (constantKindCase_ == 9) {
return (com.google.protobuf.Timestamp) constantKind_;
}
return com.google.protobuf.Timestamp.getDefaultInstance();
}
}
/**
*
* protobuf.Timestamp value.
*
* Deprecated: timestamp is no longer considered a builtin cel type.
*
*
* .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampValueFieldBuilder() {
if (timestampValueBuilder_ == null) {
if (!(constantKindCase_ == 9)) {
constantKind_ = com.google.protobuf.Timestamp.getDefaultInstance();
}
timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
(com.google.protobuf.Timestamp) constantKind_,
getParentForChildren(),
isClean());
constantKind_ = null;
}
constantKindCase_ = 9;
onChanged();
return timestampValueBuilder_;
}
// @@protoc_insertion_point(builder_scope:cel.expr.Constant)
}
// @@protoc_insertion_point(class_scope:cel.expr.Constant)
private static final dev.cel.expr.Constant DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new dev.cel.expr.Constant();
}
public static dev.cel.expr.Constant getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Constant 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.Constant getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy