Package com.google.api.expr.v1alpha1
Class Constant.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Constant,Constant.Builder>
com.google.api.expr.v1alpha1.Constant.Builder
- All Implemented Interfaces:
ConstantOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- Constant
public static final class Constant.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Constant,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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionboolean value.bytes value.double value.Deprecated.int64 value.null value.string value.Deprecated.uint64 value.boolean
boolean value.com.google.protobuf.ByteString
bytes value.double
double value.com.google.protobuf.Duration
Deprecated.long
int64 value.com.google.protobuf.NullValue
null value.int
null value.string value.com.google.protobuf.ByteString
string value.com.google.protobuf.Timestamp
Deprecated.long
uint64 value.boolean
boolean value.boolean
bytes value.boolean
double value.boolean
Deprecated.boolean
int64 value.boolean
null value.boolean
string value.boolean
Deprecated.boolean
uint64 value.mergeDurationValue
(com.google.protobuf.Duration value) Deprecated.mergeTimestampValue
(com.google.protobuf.Timestamp value) Deprecated.setBoolValue
(boolean value) boolean value.setBytesValue
(com.google.protobuf.ByteString value) bytes value.setDoubleValue
(double value) double value.setDurationValue
(com.google.protobuf.Duration value) Deprecated.setDurationValue
(com.google.protobuf.Duration.Builder builderForValue) Deprecated.setInt64Value
(long value) int64 value.setNullValue
(com.google.protobuf.NullValue value) null value.setNullValueValue
(int value) null value.setStringValue
(String value) string value.setStringValueBytes
(com.google.protobuf.ByteString value) string value.setTimestampValue
(com.google.protobuf.Timestamp value) Deprecated.setTimestampValue
(com.google.protobuf.Timestamp.Builder builderForValue) Deprecated.setUint64Value
(long value) uint64 value.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getConstantKindCase
- Specified by:
getConstantKindCase
in interfaceConstantOrBuilder
-
clearConstantKind
-
hasNullValue
public boolean hasNullValue()null value.
.google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];
- Specified by:
hasNullValue
in interfaceConstantOrBuilder
- Returns:
- Whether the nullValue field is set.
-
getNullValueValue
public int getNullValueValue()null value.
.google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];
- Specified by:
getNullValueValue
in interfaceConstantOrBuilder
- Returns:
- The enum numeric value on the wire for nullValue.
-
setNullValueValue
null value.
.google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];
- Parameters:
value
- The enum numeric value on the wire for nullValue to set.- Returns:
- This builder for chaining.
-
getNullValue
public com.google.protobuf.NullValue getNullValue()null value.
.google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];
- Specified by:
getNullValue
in interfaceConstantOrBuilder
- Returns:
- The nullValue.
-
setNullValue
null value.
.google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];
- Parameters:
value
- The nullValue to set.- Returns:
- This builder for chaining.
-
clearNullValue
null value.
.google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];
- Returns:
- This builder for chaining.
-
hasBoolValue
public boolean hasBoolValue()boolean value.
bool bool_value = 2 [json_name = "boolValue"];
- Specified by:
hasBoolValue
in interfaceConstantOrBuilder
- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()boolean value.
bool bool_value = 2 [json_name = "boolValue"];
- Specified by:
getBoolValue
in interfaceConstantOrBuilder
- Returns:
- The boolValue.
-
setBoolValue
boolean value.
bool bool_value = 2 [json_name = "boolValue"];
- Parameters:
value
- The boolValue to set.- Returns:
- This builder for chaining.
-
clearBoolValue
boolean value.
bool bool_value = 2 [json_name = "boolValue"];
- Returns:
- This builder for chaining.
-
hasInt64Value
public boolean hasInt64Value()int64 value.
int64 int64_value = 3 [json_name = "int64Value"];
- Specified by:
hasInt64Value
in interfaceConstantOrBuilder
- Returns:
- Whether the int64Value field is set.
-
getInt64Value
public long getInt64Value()int64 value.
int64 int64_value = 3 [json_name = "int64Value"];
- Specified by:
getInt64Value
in interfaceConstantOrBuilder
- Returns:
- The int64Value.
-
setInt64Value
int64 value.
int64 int64_value = 3 [json_name = "int64Value"];
- Parameters:
value
- The int64Value to set.- Returns:
- This builder for chaining.
-
clearInt64Value
int64 value.
int64 int64_value = 3 [json_name = "int64Value"];
- Returns:
- This builder for chaining.
-
hasUint64Value
public boolean hasUint64Value()uint64 value.
uint64 uint64_value = 4 [json_name = "uint64Value"];
- Specified by:
hasUint64Value
in interfaceConstantOrBuilder
- Returns:
- Whether the uint64Value field is set.
-
getUint64Value
public long getUint64Value()uint64 value.
uint64 uint64_value = 4 [json_name = "uint64Value"];
- Specified by:
getUint64Value
in interfaceConstantOrBuilder
- Returns:
- The uint64Value.
-
setUint64Value
uint64 value.
uint64 uint64_value = 4 [json_name = "uint64Value"];
- Parameters:
value
- The uint64Value to set.- Returns:
- This builder for chaining.
-
clearUint64Value
uint64 value.
uint64 uint64_value = 4 [json_name = "uint64Value"];
- Returns:
- This builder for chaining.
-
hasDoubleValue
public boolean hasDoubleValue()double value.
double double_value = 5 [json_name = "doubleValue"];
- Specified by:
hasDoubleValue
in interfaceConstantOrBuilder
- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()double value.
double double_value = 5 [json_name = "doubleValue"];
- Specified by:
getDoubleValue
in interfaceConstantOrBuilder
- Returns:
- The doubleValue.
-
setDoubleValue
double value.
double double_value = 5 [json_name = "doubleValue"];
- Parameters:
value
- The doubleValue to set.- Returns:
- This builder for chaining.
-
clearDoubleValue
double value.
double double_value = 5 [json_name = "doubleValue"];
- Returns:
- This builder for chaining.
-
hasStringValue
public boolean hasStringValue()string value.
string string_value = 6 [json_name = "stringValue"];
- Specified by:
hasStringValue
in interfaceConstantOrBuilder
- Returns:
- Whether the stringValue field is set.
-
getStringValue
string value.
string string_value = 6 [json_name = "stringValue"];
- Specified by:
getStringValue
in interfaceConstantOrBuilder
- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()string value.
string string_value = 6 [json_name = "stringValue"];
- Specified by:
getStringValueBytes
in interfaceConstantOrBuilder
- Returns:
- The bytes for stringValue.
-
setStringValue
string value.
string string_value = 6 [json_name = "stringValue"];
- Parameters:
value
- The stringValue to set.- Returns:
- This builder for chaining.
-
clearStringValue
string value.
string string_value = 6 [json_name = "stringValue"];
- Returns:
- This builder for chaining.
-
setStringValueBytes
string value.
string string_value = 6 [json_name = "stringValue"];
- Parameters:
value
- The bytes for stringValue to set.- Returns:
- This builder for chaining.
-
hasBytesValue
public boolean hasBytesValue()bytes value.
bytes bytes_value = 7 [json_name = "bytesValue"];
- Specified by:
hasBytesValue
in interfaceConstantOrBuilder
- Returns:
- Whether the bytesValue field is set.
-
getBytesValue
public com.google.protobuf.ByteString getBytesValue()bytes value.
bytes bytes_value = 7 [json_name = "bytesValue"];
- Specified by:
getBytesValue
in interfaceConstantOrBuilder
- Returns:
- The bytesValue.
-
setBytesValue
bytes value.
bytes bytes_value = 7 [json_name = "bytesValue"];
- Parameters:
value
- The bytesValue to set.- Returns:
- This builder for chaining.
-
clearBytesValue
bytes value.
bytes bytes_value = 7 [json_name = "bytesValue"];
- Returns:
- This builder for chaining.
-
hasDurationValue
Deprecated.protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true];
- Specified by:
hasDurationValue
in interfaceConstantOrBuilder
- Returns:
- Whether the durationValue field is set.
-
getDurationValue
Deprecated.protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true];
- Specified by:
getDurationValue
in interfaceConstantOrBuilder
- Returns:
- The durationValue.
-
setDurationValue
Deprecated.protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true];
-
setDurationValue
@Deprecated public Constant.Builder setDurationValue(com.google.protobuf.Duration.Builder builderForValue) Deprecated.protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true];
-
mergeDurationValue
Deprecated.protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true];
-
clearDurationValue
Deprecated.protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
.google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true];
-
hasTimestampValue
Deprecated.protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true];
- Specified by:
hasTimestampValue
in interfaceConstantOrBuilder
- Returns:
- Whether the timestampValue field is set.
-
getTimestampValue
Deprecated.protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true];
- Specified by:
getTimestampValue
in interfaceConstantOrBuilder
- Returns:
- The timestampValue.
-
setTimestampValue
Deprecated.protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true];
-
setTimestampValue
@Deprecated public Constant.Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue) Deprecated.protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true];
-
mergeTimestampValue
Deprecated.protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true];
-
clearTimestampValue
Deprecated.protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
.google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true];
-