build.buf.validate.MessageConstraintsOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protovalidate Show documentation
Show all versions of protovalidate Show documentation
Protocol Buffer Validation
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: buf/validate/validate.proto
// Protobuf Java Version: 4.28.1
package build.buf.validate;
public interface MessageConstraintsOrBuilder extends
// @@protoc_insertion_point(interface_extends:buf.validate.MessageConstraints)
com.google.protobuf.MessageOrBuilder {
/**
*
* `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
* This includes any fields within the message that would otherwise support validation.
*
* ```proto
* message MyMessage {
* // validation will be bypassed for this message
* option (buf.validate.message).disabled = true;
* }
* ```
*
*
* optional bool disabled = 1 [json_name = "disabled"];
* @return Whether the disabled field is set.
*/
boolean hasDisabled();
/**
*
* `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
* This includes any fields within the message that would otherwise support validation.
*
* ```proto
* message MyMessage {
* // validation will be bypassed for this message
* option (buf.validate.message).disabled = true;
* }
* ```
*
*
* optional bool disabled = 1 [json_name = "disabled"];
* @return The disabled.
*/
boolean getDisabled();
/**
*
* `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
* These constraints are written in Common Expression Language (CEL) syntax. For more information on
* CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
*
*
* ```proto
* message MyMessage {
* // The field `foo` must be greater than 42.
* option (buf.validate.message).cel = {
* id: "my_message.value",
* message: "value must be greater than 42",
* expression: "this.foo > 42",
* };
* optional int32 foo = 1;
* }
* ```
*
*
* repeated .buf.validate.Constraint cel = 3 [json_name = "cel"];
*/
java.util.List
getCelList();
/**
*
* `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
* These constraints are written in Common Expression Language (CEL) syntax. For more information on
* CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
*
*
* ```proto
* message MyMessage {
* // The field `foo` must be greater than 42.
* option (buf.validate.message).cel = {
* id: "my_message.value",
* message: "value must be greater than 42",
* expression: "this.foo > 42",
* };
* optional int32 foo = 1;
* }
* ```
*
*
* repeated .buf.validate.Constraint cel = 3 [json_name = "cel"];
*/
build.buf.validate.Constraint getCel(int index);
/**
*
* `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
* These constraints are written in Common Expression Language (CEL) syntax. For more information on
* CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
*
*
* ```proto
* message MyMessage {
* // The field `foo` must be greater than 42.
* option (buf.validate.message).cel = {
* id: "my_message.value",
* message: "value must be greater than 42",
* expression: "this.foo > 42",
* };
* optional int32 foo = 1;
* }
* ```
*
*
* repeated .buf.validate.Constraint cel = 3 [json_name = "cel"];
*/
int getCelCount();
/**
*
* `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
* These constraints are written in Common Expression Language (CEL) syntax. For more information on
* CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
*
*
* ```proto
* message MyMessage {
* // The field `foo` must be greater than 42.
* option (buf.validate.message).cel = {
* id: "my_message.value",
* message: "value must be greater than 42",
* expression: "this.foo > 42",
* };
* optional int32 foo = 1;
* }
* ```
*
*
* repeated .buf.validate.Constraint cel = 3 [json_name = "cel"];
*/
java.util.List
getCelOrBuilderList();
/**
*
* `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
* These constraints are written in Common Expression Language (CEL) syntax. For more information on
* CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
*
*
* ```proto
* message MyMessage {
* // The field `foo` must be greater than 42.
* option (buf.validate.message).cel = {
* id: "my_message.value",
* message: "value must be greater than 42",
* expression: "this.foo > 42",
* };
* optional int32 foo = 1;
* }
* ```
*
*
* repeated .buf.validate.Constraint cel = 3 [json_name = "cel"];
*/
build.buf.validate.ConstraintOrBuilder getCelOrBuilder(
int index);
}