public static final class Constant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder> implements ConstantOrBuilder
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][google.api.expr.v1alpha1.Expr] elements which require evaluation and are thus not constant. Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`, `true`, `null`.Protobuf type
google.api.expr.v1alpha1.Constant| Modifier and Type | Method and Description |
|---|---|
Constant.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Constant |
build() |
Constant |
buildPartial() |
Constant.Builder |
clear() |
Constant.Builder |
clearBoolValue()
boolean value.
|
Constant.Builder |
clearBytesValue()
bytes value.
|
Constant.Builder |
clearConstantKind() |
Constant.Builder |
clearDoubleValue()
double value.
|
Constant.Builder |
clearDurationValue()
Deprecated.
|
Constant.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Constant.Builder |
clearInt64Value()
int64 value.
|
Constant.Builder |
clearNullValue()
null value.
|
Constant.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Constant.Builder |
clearStringValue()
string value.
|
Constant.Builder |
clearTimestampValue()
Deprecated.
|
Constant.Builder |
clearUint64Value()
uint64 value.
|
Constant.Builder |
clone() |
boolean |
getBoolValue()
boolean value.
|
com.google.protobuf.ByteString |
getBytesValue()
bytes value.
|
Constant.ConstantKindCase |
getConstantKindCase() |
Constant |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getDoubleValue()
double value.
|
com.google.protobuf.Duration |
getDurationValue()
Deprecated.
|
com.google.protobuf.Duration.Builder |
getDurationValueBuilder()
Deprecated.
|
com.google.protobuf.DurationOrBuilder |
getDurationValueOrBuilder()
Deprecated.
|
long |
getInt64Value()
int64 value.
|
com.google.protobuf.NullValue |
getNullValue()
null value.
|
int |
getNullValueValue()
null value.
|
String |
getStringValue()
string value.
|
com.google.protobuf.ByteString |
getStringValueBytes()
string value.
|
com.google.protobuf.Timestamp |
getTimestampValue()
Deprecated.
|
com.google.protobuf.Timestamp.Builder |
getTimestampValueBuilder()
Deprecated.
|
com.google.protobuf.TimestampOrBuilder |
getTimestampValueOrBuilder()
Deprecated.
|
long |
getUint64Value()
uint64 value.
|
boolean |
hasDurationValue()
Deprecated.
|
boolean |
hasTimestampValue()
Deprecated.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Constant.Builder |
mergeDurationValue(com.google.protobuf.Duration value)
Deprecated.
|
Constant.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Constant.Builder |
mergeFrom(Constant other) |
Constant.Builder |
mergeFrom(com.google.protobuf.Message other) |
Constant.Builder |
mergeTimestampValue(com.google.protobuf.Timestamp value)
Deprecated.
|
Constant.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Constant.Builder |
setBoolValue(boolean value)
boolean value.
|
Constant.Builder |
setBytesValue(com.google.protobuf.ByteString value)
bytes value.
|
Constant.Builder |
setDoubleValue(double value)
double value.
|
Constant.Builder |
setDurationValue(com.google.protobuf.Duration.Builder builderForValue)
Deprecated.
|
Constant.Builder |
setDurationValue(com.google.protobuf.Duration value)
Deprecated.
|
Constant.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Constant.Builder |
setInt64Value(long value)
int64 value.
|
Constant.Builder |
setNullValue(com.google.protobuf.NullValue value)
null value.
|
Constant.Builder |
setNullValueValue(int value)
null value.
|
Constant.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Constant.Builder |
setStringValue(String value)
string value.
|
Constant.Builder |
setStringValueBytes(com.google.protobuf.ByteString value)
string value.
|
Constant.Builder |
setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue)
Deprecated.
|
Constant.Builder |
setTimestampValue(com.google.protobuf.Timestamp value)
Deprecated.
|
Constant.Builder |
setUint64Value(long value)
uint64 value.
|
Constant.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>public Constant.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>public Constant getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Constant build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Constant buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Constant.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>public Constant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>public Constant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>public Constant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>public Constant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>public Constant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>public Constant.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Constant.Builder>public Constant.Builder mergeFrom(Constant other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>public Constant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Constant.Builder>IOExceptionpublic Constant.ConstantKindCase getConstantKindCase()
getConstantKindCase in interface ConstantOrBuilderpublic Constant.Builder clearConstantKind()
public int getNullValueValue()
null value.
.google.protobuf.NullValue null_value = 1;getNullValueValue in interface ConstantOrBuilderpublic Constant.Builder setNullValueValue(int value)
null value.
.google.protobuf.NullValue null_value = 1;public com.google.protobuf.NullValue getNullValue()
null value.
.google.protobuf.NullValue null_value = 1;getNullValue in interface ConstantOrBuilderpublic Constant.Builder setNullValue(com.google.protobuf.NullValue value)
null value.
.google.protobuf.NullValue null_value = 1;public Constant.Builder clearNullValue()
null value.
.google.protobuf.NullValue null_value = 1;public boolean getBoolValue()
boolean value.
bool bool_value = 2;getBoolValue in interface ConstantOrBuilderpublic Constant.Builder setBoolValue(boolean value)
boolean value.
bool bool_value = 2;public Constant.Builder clearBoolValue()
boolean value.
bool bool_value = 2;public long getInt64Value()
int64 value.
int64 int64_value = 3;getInt64Value in interface ConstantOrBuilderpublic Constant.Builder setInt64Value(long value)
int64 value.
int64 int64_value = 3;public Constant.Builder clearInt64Value()
int64 value.
int64 int64_value = 3;public long getUint64Value()
uint64 value.
uint64 uint64_value = 4;getUint64Value in interface ConstantOrBuilderpublic Constant.Builder setUint64Value(long value)
uint64 value.
uint64 uint64_value = 4;public Constant.Builder clearUint64Value()
uint64 value.
uint64 uint64_value = 4;public double getDoubleValue()
double value.
double double_value = 5;getDoubleValue in interface ConstantOrBuilderpublic Constant.Builder setDoubleValue(double value)
double value.
double double_value = 5;public Constant.Builder clearDoubleValue()
double value.
double double_value = 5;public String getStringValue()
string value.
string string_value = 6;getStringValue in interface ConstantOrBuilderpublic com.google.protobuf.ByteString getStringValueBytes()
string value.
string string_value = 6;getStringValueBytes in interface ConstantOrBuilderpublic Constant.Builder setStringValue(String value)
string value.
string string_value = 6;public Constant.Builder clearStringValue()
string value.
string string_value = 6;public Constant.Builder setStringValueBytes(com.google.protobuf.ByteString value)
string value.
string string_value = 6;public com.google.protobuf.ByteString getBytesValue()
bytes value.
bytes bytes_value = 7;getBytesValue in interface ConstantOrBuilderpublic Constant.Builder setBytesValue(com.google.protobuf.ByteString value)
bytes value.
bytes bytes_value = 7;public Constant.Builder clearBytesValue()
bytes value.
bytes bytes_value = 7;@Deprecated public boolean hasDurationValue()
protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [deprecated = true];hasDurationValue in interface ConstantOrBuilder@Deprecated public com.google.protobuf.Duration getDurationValue()
protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [deprecated = true];getDurationValue in interface ConstantOrBuilder@Deprecated public Constant.Builder setDurationValue(com.google.protobuf.Duration value)
protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [deprecated = true];@Deprecated public Constant.Builder setDurationValue(com.google.protobuf.Duration.Builder builderForValue)
protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [deprecated = true];@Deprecated public Constant.Builder mergeDurationValue(com.google.protobuf.Duration value)
protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [deprecated = true];@Deprecated public Constant.Builder clearDurationValue()
protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [deprecated = true];@Deprecated public com.google.protobuf.Duration.Builder getDurationValueBuilder()
protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [deprecated = true];@Deprecated public com.google.protobuf.DurationOrBuilder getDurationValueOrBuilder()
protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [deprecated = true];getDurationValueOrBuilder in interface ConstantOrBuilder@Deprecated public boolean hasTimestampValue()
protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];hasTimestampValue in interface ConstantOrBuilder@Deprecated public com.google.protobuf.Timestamp getTimestampValue()
protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];getTimestampValue in interface ConstantOrBuilder@Deprecated public Constant.Builder setTimestampValue(com.google.protobuf.Timestamp value)
protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];@Deprecated public Constant.Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue)
protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];@Deprecated public Constant.Builder mergeTimestampValue(com.google.protobuf.Timestamp value)
protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];@Deprecated public Constant.Builder clearTimestampValue()
protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];@Deprecated public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder()
protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];@Deprecated public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder()
protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];getTimestampValueOrBuilder in interface ConstantOrBuilderpublic final Constant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>public final Constant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Constant.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.