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
  • Method Details

    • getKindCase

      public Value.KindCase getKindCase()
      Specified by:
      getKindCase in interface ValueOrBuilder
    • clearKind

      public Value.Builder clearKind()
    • hasNullValue

      public boolean hasNullValue()
       Null value.
       
      .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];
      Specified by:
      hasNullValue in interface ValueOrBuilder
      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 interface ValueOrBuilder
      Returns:
      The enum numeric value on the wire for nullValue.
    • setNullValueValue

      public Value.Builder setNullValueValue(int value)
       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 interface ValueOrBuilder
      Returns:
      The nullValue.
    • setNullValue

      public Value.Builder setNullValue(com.google.protobuf.NullValue value)
       Null value.
       
      .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];
      Parameters:
      value - The nullValue to set.
      Returns:
      This builder for chaining.
    • clearNullValue

      public Value.Builder 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 interface ValueOrBuilder
      Returns:
      Whether the boolValue field is set.
    • getBoolValue

      public boolean getBoolValue()
       Boolean value.
       
      bool bool_value = 2 [json_name = "boolValue"];
      Specified by:
      getBoolValue in interface ValueOrBuilder
      Returns:
      The boolValue.
    • setBoolValue

      public Value.Builder setBoolValue(boolean value)
       Boolean value.
       
      bool bool_value = 2 [json_name = "boolValue"];
      Parameters:
      value - The boolValue to set.
      Returns:
      This builder for chaining.
    • clearBoolValue

      public Value.Builder 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 interface ValueOrBuilder
      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 interface ValueOrBuilder
      Returns:
      The int64Value.
    • setInt64Value

      public Value.Builder setInt64Value(long value)
       Signed integer value.
       
      int64 int64_value = 3 [json_name = "int64Value"];
      Parameters:
      value - The int64Value to set.
      Returns:
      This builder for chaining.
    • clearInt64Value

      public Value.Builder 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 interface ValueOrBuilder
      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 interface ValueOrBuilder
      Returns:
      The uint64Value.
    • setUint64Value

      public Value.Builder setUint64Value(long value)
       Unsigned integer value.
       
      uint64 uint64_value = 4 [json_name = "uint64Value"];
      Parameters:
      value - The uint64Value to set.
      Returns:
      This builder for chaining.
    • clearUint64Value

      public Value.Builder 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 interface ValueOrBuilder
      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 interface ValueOrBuilder
      Returns:
      The doubleValue.
    • setDoubleValue

      public Value.Builder setDoubleValue(double value)
       Floating point value.
       
      double double_value = 5 [json_name = "doubleValue"];
      Parameters:
      value - The doubleValue to set.
      Returns:
      This builder for chaining.
    • clearDoubleValue

      public Value.Builder 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 interface ValueOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
       UTF-8 string value.
       
      string string_value = 6 [json_name = "stringValue"];
      Specified by:
      getStringValue in interface ValueOrBuilder
      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 interface ValueOrBuilder
      Returns:
      The bytes for stringValue.
    • setStringValue

      public Value.Builder setStringValue(String value)
       UTF-8 string value.
       
      string string_value = 6 [json_name = "stringValue"];
      Parameters:
      value - The stringValue to set.
      Returns:
      This builder for chaining.
    • clearStringValue

      public Value.Builder clearStringValue()
       UTF-8 string value.
       
      string string_value = 6 [json_name = "stringValue"];
      Returns:
      This builder for chaining.
    • setStringValueBytes

      public Value.Builder setStringValueBytes(com.google.protobuf.ByteString value)
       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 interface ValueOrBuilder
      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 interface ValueOrBuilder
      Returns:
      The bytesValue.
    • setBytesValue

      public Value.Builder setBytesValue(com.google.protobuf.ByteString value)
       Byte string value.
       
      bytes bytes_value = 7 [json_name = "bytesValue"];
      Parameters:
      value - The bytesValue to set.
      Returns:
      This builder for chaining.
    • clearBytesValue

      public Value.Builder 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 interface ValueOrBuilder
      Returns:
      Whether the enumValue field is set.
    • getEnumValue

      public EnumValue getEnumValue()
       An enum value.
       
      .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];
      Specified by:
      getEnumValue in interface ValueOrBuilder
      Returns:
      The enumValue.
    • setEnumValue

      public Value.Builder setEnumValue(EnumValue value)
       An enum value.
       
      .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];
    • setEnumValue

      public Value.Builder setEnumValue(EnumValue.Builder builderForValue)
       An enum value.
       
      .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];
    • mergeEnumValue

      public Value.Builder mergeEnumValue(EnumValue value)
       An enum value.
       
      .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];
    • clearEnumValue

      public Value.Builder 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 interface ValueOrBuilder
      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 interface ValueOrBuilder
      Returns:
      The objectValue.
    • setObjectValue

      public Value.Builder setObjectValue(com.google.protobuf.Any value)
       The proto message backing an object value.
       
      .google.protobuf.Any object_value = 10 [json_name = "objectValue"];
    • setObjectValue

      public Value.Builder setObjectValue(com.google.protobuf.Any.Builder builderForValue)
       The proto message backing an object value.
       
      .google.protobuf.Any object_value = 10 [json_name = "objectValue"];
    • mergeObjectValue

      public Value.Builder mergeObjectValue(com.google.protobuf.Any value)
       The proto message backing an object value.
       
      .google.protobuf.Any object_value = 10 [json_name = "objectValue"];
    • clearObjectValue

      public Value.Builder 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 interface ValueOrBuilder
      Returns:
      Whether the mapValue field is set.
    • getMapValue

      public MapValue getMapValue()
       Map value.
       
      .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];
      Specified by:
      getMapValue in interface ValueOrBuilder
      Returns:
      The mapValue.
    • setMapValue

      public Value.Builder setMapValue(MapValue value)
       Map value.
       
      .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];
    • setMapValue

      public Value.Builder setMapValue(MapValue.Builder builderForValue)
       Map value.
       
      .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];
    • mergeMapValue

      public Value.Builder mergeMapValue(MapValue value)
       Map value.
       
      .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];
    • clearMapValue

      public Value.Builder 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 interface ValueOrBuilder
      Returns:
      Whether the listValue field is set.
    • getListValue

      public ListValue getListValue()
       List value.
       
      .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];
      Specified by:
      getListValue in interface ValueOrBuilder
      Returns:
      The listValue.
    • setListValue

      public Value.Builder setListValue(ListValue value)
       List value.
       
      .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];
    • setListValue

      public Value.Builder setListValue(ListValue.Builder builderForValue)
       List value.
       
      .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];
    • mergeListValue

      public Value.Builder mergeListValue(ListValue value)
       List value.
       
      .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];
    • clearListValue

      public Value.Builder 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 interface ValueOrBuilder
      Returns:
      Whether the typeValue field is set.
    • getTypeValue

      public String getTypeValue()
       A Type value represented by the fully qualified name of the type.
       
      string type_value = 15 [json_name = "typeValue"];
      Specified by:
      getTypeValue in interface ValueOrBuilder
      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 interface ValueOrBuilder
      Returns:
      The bytes for typeValue.
    • setTypeValue

      public Value.Builder setTypeValue(String value)
       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

      public Value.Builder 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

      public Value.Builder setTypeValueBytes(com.google.protobuf.ByteString value)
       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.