Package build.buf.validate
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetExpression()`expression` is the actual CEL expression that will be evaluated for validation.com.google.protobuf.ByteStringgetExpressionBytes()`expression` is the actual CEL expression that will be evaluated for validation.java.lang.StringgetId()`id` is a string that serves as a machine-readable name for this Constraint.com.google.protobuf.ByteStringgetIdBytes()`id` is a string that serves as a machine-readable name for this Constraint.java.lang.StringgetMessage()`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.ByteStringgetMessageBytes()`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.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getId
java.lang.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;- 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;- Returns:
- The bytes for id.
-
getMessage
java.lang.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;- 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;- Returns:
- The bytes for message.
-
getExpression
java.lang.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;- 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;- Returns:
- The bytes for expression.
-
-