Interface ConstraintOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Constraint, Constraint.Builder

public interface ConstraintOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    `expression` is the actual CEL expression that will be evaluated for validation.
    com.google.protobuf.ByteString
    `expression` is the actual CEL expression that will be evaluated for validation.
    `id` is a string that serves as a machine-readable name for this Constraint.
    com.google.protobuf.ByteString
    `id` is a string that serves as a machine-readable name for this Constraint.
    `message` is an optional field that provides a human-readable error message for this Constraint when the CEL expression evaluates to false.
    com.google.protobuf.ByteString
    `message` is an optional field that provides a human-readable error message for this Constraint when the CEL expression evaluates to false.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getId

      String getId()
       `id` is a string that serves as a machine-readable name for this Constraint.
       It should be unique within its scope, which could be either a message or a field.
       
      string id = 1 [json_name = "id"];
      Returns:
      The id.
    • getIdBytes

      com.google.protobuf.ByteString getIdBytes()
       `id` is a string that serves as a machine-readable name for this Constraint.
       It should be unique within its scope, which could be either a message or a field.
       
      string id = 1 [json_name = "id"];
      Returns:
      The bytes for id.
    • getMessage

      String getMessage()
       `message` is an optional field that provides a human-readable error message
       for this Constraint when the CEL expression evaluates to false. If a
       non-empty message is provided, any strings resulting from the CEL
       expression evaluation are ignored.
       
      string message = 2 [json_name = "message"];
      Returns:
      The message.
    • getMessageBytes

      com.google.protobuf.ByteString getMessageBytes()
       `message` is an optional field that provides a human-readable error message
       for this Constraint when the CEL expression evaluates to false. If a
       non-empty message is provided, any strings resulting from the CEL
       expression evaluation are ignored.
       
      string message = 2 [json_name = "message"];
      Returns:
      The bytes for message.
    • getExpression

      String getExpression()
       `expression` is the actual CEL expression that will be evaluated for
       validation. This string must resolve to either a boolean or a string
       value. If the expression evaluates to false or a non-empty string, the
       validation is considered failed, and the message is rejected.
       
      string expression = 3 [json_name = "expression"];
      Returns:
      The expression.
    • getExpressionBytes

      com.google.protobuf.ByteString getExpressionBytes()
       `expression` is the actual CEL expression that will be evaluated for
       validation. This string must resolve to either a boolean or a string
       value. If the expression evaluates to false or a non-empty string, the
       validation is considered failed, and the message is rejected.
       
      string expression = 3 [json_name = "expression"];
      Returns:
      The bytes for expression.