Class Constant
java.lang.Object
co.permify.sdk.model.Constant
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Constant
extends Object
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`.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytesValue(byte[] bytesValue) doubleValue(Double doubleValue) durationValue(String durationValue) booleanReturn true if this Constant object is equal to o.boolean value.byte[]bytes value.double value.protobuf.Duration value.int64 value.null value.string value.protobuf.Timestamp value.uint64 value.inthashCode()int64Value(String int64Value) voidsetBoolValue(Boolean boolValue) voidsetBytesValue(byte[] bytesValue) voidsetDoubleValue(Double doubleValue) voidsetDurationValue(String durationValue) voidsetInt64Value(String int64Value) voidsetNullValue(String nullValue) voidsetStringValue(String stringValue) voidsetTimestampValue(OffsetDateTime timestampValue) voidsetUint64Value(String uint64Value) stringValue(String stringValue) timestampValue(OffsetDateTime timestampValue) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.uint64Value(String uint64Value)
-
Field Details
-
JSON_PROPERTY_NULL_VALUE
- See Also:
-
JSON_PROPERTY_BOOL_VALUE
- See Also:
-
JSON_PROPERTY_INT64_VALUE
- See Also:
-
JSON_PROPERTY_UINT64_VALUE
- See Also:
-
JSON_PROPERTY_DOUBLE_VALUE
- See Also:
-
JSON_PROPERTY_STRING_VALUE
- See Also:
-
JSON_PROPERTY_BYTES_VALUE
- See Also:
-
JSON_PROPERTY_DURATION_VALUE
- See Also:
-
JSON_PROPERTY_TIMESTAMP_VALUE
- See Also:
-
-
Constructor Details
-
Constant
public Constant()
-
-
Method Details
-
nullValue
-
getNullValue
-
setNullValue
-
boolValue
-
getBoolValue
-
setBoolValue
-
int64Value
-
getInt64Value
-
setInt64Value
-
uint64Value
-
getUint64Value
-
setUint64Value
-
doubleValue
-
getDoubleValue
-
setDoubleValue
-
stringValue
-
getStringValue
-
setStringValue
-
bytesValue
-
getBytesValue
@Nullable public byte[] getBytesValue()bytes value.- Returns:
- bytesValue
-
setBytesValue
public void setBytesValue(byte[] bytesValue) -
durationValue
-
getDurationValue
protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.- Returns:
- durationValue
-
setDurationValue
-
timestampValue
-
getTimestampValue
protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.- Returns:
- timestampValue
-
setTimestampValue
-
equals
-
hashCode
-
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
-