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 Details

  • Constructor Details

    • Constant

      public Constant()
  • Method Details

    • nullValue

      public Constant nullValue(String nullValue)
    • getNullValue

      @Nullable public String getNullValue()
      null value.
      Returns:
      nullValue
    • setNullValue

      public void setNullValue(String nullValue)
    • boolValue

      public Constant boolValue(Boolean boolValue)
    • getBoolValue

      @Nullable public Boolean getBoolValue()
      boolean value.
      Returns:
      boolValue
    • setBoolValue

      public void setBoolValue(Boolean boolValue)
    • int64Value

      public Constant int64Value(String int64Value)
    • getInt64Value

      @Nullable public String getInt64Value()
      int64 value.
      Returns:
      int64Value
    • setInt64Value

      public void setInt64Value(String int64Value)
    • uint64Value

      public Constant uint64Value(String uint64Value)
    • getUint64Value

      @Nullable public String getUint64Value()
      uint64 value.
      Returns:
      uint64Value
    • setUint64Value

      public void setUint64Value(String uint64Value)
    • doubleValue

      public Constant doubleValue(Double doubleValue)
    • getDoubleValue

      @Nullable public Double getDoubleValue()
      double value.
      Returns:
      doubleValue
    • setDoubleValue

      public void setDoubleValue(Double doubleValue)
    • stringValue

      public Constant stringValue(String stringValue)
    • getStringValue

      @Nullable public String getStringValue()
      string value.
      Returns:
      stringValue
    • setStringValue

      public void setStringValue(String stringValue)
    • bytesValue

      public Constant bytesValue(byte[] bytesValue)
    • getBytesValue

      @Nullable public byte[] getBytesValue()
      bytes value.
      Returns:
      bytesValue
    • setBytesValue

      public void setBytesValue(byte[] bytesValue)
    • durationValue

      public Constant durationValue(String durationValue)
    • getDurationValue

      @Nullable public String getDurationValue()
      protobuf.Duration value. Deprecated: duration is no longer considered a builtin cel type.
      Returns:
      durationValue
    • setDurationValue

      public void setDurationValue(String durationValue)
    • timestampValue

      public Constant timestampValue(OffsetDateTime timestampValue)
    • getTimestampValue

      @Nullable public OffsetDateTime getTimestampValue()
      protobuf.Timestamp value. Deprecated: timestamp is no longer considered a builtin cel type.
      Returns:
      timestampValue
    • setTimestampValue

      public void setTimestampValue(OffsetDateTime timestampValue)
    • equals

      public boolean equals(Object o)
      Return true if this Constant object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string