public interface MessageConstraintsOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
Constraint |
getCel(int index)
`cel` is a repeated field of type Constraint.
|
int |
getCelCount()
`cel` is a repeated field of type Constraint.
|
List<Constraint> |
getCelList()
`cel` is a repeated field of type Constraint.
|
ConstraintOrBuilder |
getCelOrBuilder(int index)
`cel` is a repeated field of type Constraint.
|
List<? extends ConstraintOrBuilder> |
getCelOrBuilderList()
`cel` is a repeated field of type Constraint.
|
boolean |
getDisabled()
`disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
|
boolean |
hasDisabled()
`disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean 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"];boolean getDisabled()
`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"];List<Constraint> 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"];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"];List<? extends ConstraintOrBuilder> 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"];ConstraintOrBuilder getCelOrBuilder(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"];Copyright © 2024. All rights reserved.