Package com.google.api.expr.v1beta1
Class Value.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Value,Value.Builder>
com.google.api.expr.v1beta1.Value.Builder
- All Implemented Interfaces:
ValueOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- Value
public static final class Value.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Value,Value.Builder>
implements ValueOrBuilder
Represents a CEL value. This is similar to `google.protobuf.Value`, but can represent CEL's full range of values.Protobuf type
google.api.expr.v1beta1.Value
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionBoolean value.Byte string value.Floating point value.An enum value.Signed integer value.List value.Map value.Null value.The proto message backing an object value.UTF-8 string value.A Type value represented by the fully qualified name of the type.Unsigned integer value.boolean
Boolean value.com.google.protobuf.ByteString
Byte string value.double
Floating point value.An enum value.long
Signed integer value.List value.Map value.com.google.protobuf.NullValue
Null value.int
Null value.com.google.protobuf.Any
The proto message backing an object value.UTF-8 string value.com.google.protobuf.ByteString
UTF-8 string value.A Type value represented by the fully qualified name of the type.com.google.protobuf.ByteString
A Type value represented by the fully qualified name of the type.long
Unsigned integer value.boolean
Boolean value.boolean
Byte string value.boolean
Floating point value.boolean
An enum value.boolean
Signed integer value.boolean
List value.boolean
Map value.boolean
Null value.boolean
The proto message backing an object value.boolean
UTF-8 string value.boolean
A Type value represented by the fully qualified name of the type.boolean
Unsigned integer value.mergeEnumValue
(EnumValue value) An enum value.mergeListValue
(ListValue value) List value.mergeMapValue
(MapValue value) Map value.mergeObjectValue
(com.google.protobuf.Any value) The proto message backing an object value.setBoolValue
(boolean value) Boolean value.setBytesValue
(com.google.protobuf.ByteString value) Byte string value.setDoubleValue
(double value) Floating point value.setEnumValue
(EnumValue value) An enum value.setEnumValue
(EnumValue.Builder builderForValue) An enum value.setInt64Value
(long value) Signed integer value.setListValue
(ListValue value) List value.setListValue
(ListValue.Builder builderForValue) List value.setMapValue
(MapValue value) Map value.setMapValue
(MapValue.Builder builderForValue) Map value.setNullValue
(com.google.protobuf.NullValue value) Null value.setNullValueValue
(int value) Null value.setObjectValue
(com.google.protobuf.Any value) The proto message backing an object value.setObjectValue
(com.google.protobuf.Any.Builder builderForValue) The proto message backing an object value.setStringValue
(String value) UTF-8 string value.setStringValueBytes
(com.google.protobuf.ByteString value) UTF-8 string value.setTypeValue
(String value) A Type value represented by the fully qualified name of the type.setTypeValueBytes
(com.google.protobuf.ByteString value) A Type value represented by the fully qualified name of the type.setUint64Value
(long value) Unsigned integer 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
-
getKindCase
- Specified by:
getKindCase
in interfaceValueOrBuilder
-
clearKind
-
hasNullValue
public boolean hasNullValue()Null value.
.google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];
- Specified by:
hasNullValue
in interfaceValueOrBuilder
- 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 interfaceValueOrBuilder
- 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 interfaceValueOrBuilder
- 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 interfaceValueOrBuilder
- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()Boolean value.
bool bool_value = 2 [json_name = "boolValue"];
- Specified by:
getBoolValue
in interfaceValueOrBuilder
- 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()Signed integer value.
int64 int64_value = 3 [json_name = "int64Value"];
- Specified by:
hasInt64Value
in interfaceValueOrBuilder
- Returns:
- Whether the int64Value field is set.
-
getInt64Value
public long getInt64Value()Signed integer value.
int64 int64_value = 3 [json_name = "int64Value"];
- Specified by:
getInt64Value
in interfaceValueOrBuilder
- Returns:
- The int64Value.
-
setInt64Value
Signed integer value.
int64 int64_value = 3 [json_name = "int64Value"];
- Parameters:
value
- The int64Value to set.- Returns:
- This builder for chaining.
-
clearInt64Value
Signed integer value.
int64 int64_value = 3 [json_name = "int64Value"];
- Returns:
- This builder for chaining.
-
hasUint64Value
public boolean hasUint64Value()Unsigned integer value.
uint64 uint64_value = 4 [json_name = "uint64Value"];
- Specified by:
hasUint64Value
in interfaceValueOrBuilder
- Returns:
- Whether the uint64Value field is set.
-
getUint64Value
public long getUint64Value()Unsigned integer value.
uint64 uint64_value = 4 [json_name = "uint64Value"];
- Specified by:
getUint64Value
in interfaceValueOrBuilder
- Returns:
- The uint64Value.
-
setUint64Value
Unsigned integer value.
uint64 uint64_value = 4 [json_name = "uint64Value"];
- Parameters:
value
- The uint64Value to set.- Returns:
- This builder for chaining.
-
clearUint64Value
Unsigned integer value.
uint64 uint64_value = 4 [json_name = "uint64Value"];
- Returns:
- This builder for chaining.
-
hasDoubleValue
public boolean hasDoubleValue()Floating point value.
double double_value = 5 [json_name = "doubleValue"];
- Specified by:
hasDoubleValue
in interfaceValueOrBuilder
- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()Floating point value.
double double_value = 5 [json_name = "doubleValue"];
- Specified by:
getDoubleValue
in interfaceValueOrBuilder
- Returns:
- The doubleValue.
-
setDoubleValue
Floating point value.
double double_value = 5 [json_name = "doubleValue"];
- Parameters:
value
- The doubleValue to set.- Returns:
- This builder for chaining.
-
clearDoubleValue
Floating point value.
double double_value = 5 [json_name = "doubleValue"];
- Returns:
- This builder for chaining.
-
hasStringValue
public boolean hasStringValue()UTF-8 string value.
string string_value = 6 [json_name = "stringValue"];
- Specified by:
hasStringValue
in interfaceValueOrBuilder
- Returns:
- Whether the stringValue field is set.
-
getStringValue
UTF-8 string value.
string string_value = 6 [json_name = "stringValue"];
- Specified by:
getStringValue
in interfaceValueOrBuilder
- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()UTF-8 string value.
string string_value = 6 [json_name = "stringValue"];
- Specified by:
getStringValueBytes
in interfaceValueOrBuilder
- Returns:
- The bytes for stringValue.
-
setStringValue
UTF-8 string value.
string string_value = 6 [json_name = "stringValue"];
- Parameters:
value
- The stringValue to set.- Returns:
- This builder for chaining.
-
clearStringValue
UTF-8 string value.
string string_value = 6 [json_name = "stringValue"];
- Returns:
- This builder for chaining.
-
setStringValueBytes
UTF-8 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()Byte string value.
bytes bytes_value = 7 [json_name = "bytesValue"];
- Specified by:
hasBytesValue
in interfaceValueOrBuilder
- Returns:
- Whether the bytesValue field is set.
-
getBytesValue
public com.google.protobuf.ByteString getBytesValue()Byte string value.
bytes bytes_value = 7 [json_name = "bytesValue"];
- Specified by:
getBytesValue
in interfaceValueOrBuilder
- Returns:
- The bytesValue.
-
setBytesValue
Byte string value.
bytes bytes_value = 7 [json_name = "bytesValue"];
- Parameters:
value
- The bytesValue to set.- Returns:
- This builder for chaining.
-
clearBytesValue
Byte string value.
bytes bytes_value = 7 [json_name = "bytesValue"];
- Returns:
- This builder for chaining.
-
hasEnumValue
public boolean hasEnumValue()An enum value.
.google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];
- Specified by:
hasEnumValue
in interfaceValueOrBuilder
- Returns:
- Whether the enumValue field is set.
-
getEnumValue
An enum value.
.google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];
- Specified by:
getEnumValue
in interfaceValueOrBuilder
- Returns:
- The enumValue.
-
setEnumValue
An enum value.
.google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];
-
setEnumValue
An enum value.
.google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];
-
mergeEnumValue
An enum value.
.google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];
-
clearEnumValue
An enum value.
.google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];
-
hasObjectValue
public boolean hasObjectValue()The proto message backing an object value.
.google.protobuf.Any object_value = 10 [json_name = "objectValue"];
- Specified by:
hasObjectValue
in interfaceValueOrBuilder
- Returns:
- Whether the objectValue field is set.
-
getObjectValue
public com.google.protobuf.Any getObjectValue()The proto message backing an object value.
.google.protobuf.Any object_value = 10 [json_name = "objectValue"];
- Specified by:
getObjectValue
in interfaceValueOrBuilder
- Returns:
- The objectValue.
-
setObjectValue
The proto message backing an object value.
.google.protobuf.Any object_value = 10 [json_name = "objectValue"];
-
setObjectValue
The proto message backing an object value.
.google.protobuf.Any object_value = 10 [json_name = "objectValue"];
-
mergeObjectValue
The proto message backing an object value.
.google.protobuf.Any object_value = 10 [json_name = "objectValue"];
-
clearObjectValue
The proto message backing an object value.
.google.protobuf.Any object_value = 10 [json_name = "objectValue"];
-
hasMapValue
public boolean hasMapValue()Map value.
.google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];
- Specified by:
hasMapValue
in interfaceValueOrBuilder
- Returns:
- Whether the mapValue field is set.
-
getMapValue
Map value.
.google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];
- Specified by:
getMapValue
in interfaceValueOrBuilder
- Returns:
- The mapValue.
-
setMapValue
Map value.
.google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];
-
setMapValue
Map value.
.google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];
-
mergeMapValue
Map value.
.google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];
-
clearMapValue
Map value.
.google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];
-
hasListValue
public boolean hasListValue()List value.
.google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];
- Specified by:
hasListValue
in interfaceValueOrBuilder
- Returns:
- Whether the listValue field is set.
-
getListValue
List value.
.google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];
- Specified by:
getListValue
in interfaceValueOrBuilder
- Returns:
- The listValue.
-
setListValue
List value.
.google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];
-
setListValue
List value.
.google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];
-
mergeListValue
List value.
.google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];
-
clearListValue
List value.
.google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];
-
hasTypeValue
public boolean hasTypeValue()A Type value represented by the fully qualified name of the type.
string type_value = 15 [json_name = "typeValue"];
- Specified by:
hasTypeValue
in interfaceValueOrBuilder
- Returns:
- Whether the typeValue field is set.
-
getTypeValue
A Type value represented by the fully qualified name of the type.
string type_value = 15 [json_name = "typeValue"];
- Specified by:
getTypeValue
in interfaceValueOrBuilder
- Returns:
- The typeValue.
-
getTypeValueBytes
public com.google.protobuf.ByteString getTypeValueBytes()A Type value represented by the fully qualified name of the type.
string type_value = 15 [json_name = "typeValue"];
- Specified by:
getTypeValueBytes
in interfaceValueOrBuilder
- Returns:
- The bytes for typeValue.
-
setTypeValue
A Type value represented by the fully qualified name of the type.
string type_value = 15 [json_name = "typeValue"];
- Parameters:
value
- The typeValue to set.- Returns:
- This builder for chaining.
-
clearTypeValue
A Type value represented by the fully qualified name of the type.
string type_value = 15 [json_name = "typeValue"];
- Returns:
- This builder for chaining.
-
setTypeValueBytes
A Type value represented by the fully qualified name of the type.
string type_value = 15 [json_name = "typeValue"];
- Parameters:
value
- The bytes for typeValue to set.- Returns:
- This builder for chaining.
-