| Package | Description |
|---|---|
| com.buf.validate |
| Modifier and Type | Method and Description |
|---|---|
FieldConstraints.Builder |
FieldConstraints.Builder.addAllCel(Iterable<? extends Constraint> values)
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
FieldConstraints.Builder |
FieldConstraints.Builder.addCel(Constraint.Builder builderForValue)
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
FieldConstraints.Builder |
FieldConstraints.Builder.addCel(Constraint value)
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
FieldConstraints.Builder |
FieldConstraints.Builder.addCel(int index,
Constraint.Builder builderForValue)
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
FieldConstraints.Builder |
FieldConstraints.Builder.addCel(int index,
Constraint value)
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
FieldConstraints.Builder |
FieldConstraints.Builder.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FieldConstraints.Builder |
FieldConstraints.Builder.clear() |
FieldConstraints.Builder |
FieldConstraints.Builder.clearAny()
Well-Known Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.clearBool()
.buf.validate.BoolRules bool = 13 [json_name = "bool"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearBytes()
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearCel()
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
FieldConstraints.Builder |
FieldConstraints.Builder.clearDouble()
.buf.validate.DoubleRules double = 2 [json_name = "double"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearDuration()
.buf.validate.DurationRules duration = 21 [json_name = "duration"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearEnum()
Complex Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
FieldConstraints.Builder |
FieldConstraints.Builder.clearFixed32()
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearFixed64()
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearFloat()
Scalar Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.clearIgnoreEmpty()
If `ignore_empty` is true and applied to a non-nullable field (see
`required` for more details), validation is skipped on the field if it is
the default or empty value.
|
FieldConstraints.Builder |
FieldConstraints.Builder.clearInt32()
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearInt64()
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearMap()
.buf.validate.MapRules map = 19 [json_name = "map"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
FieldConstraints.Builder |
FieldConstraints.Builder.clearRepeated()
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearRequired()
If `required` is true, the field must be populated.
|
FieldConstraints.Builder |
FieldConstraints.Builder.clearSfixed32()
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearSfixed64()
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearSint32()
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearSint64()
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearSkipped()
`skipped` is an optional boolean attribute that specifies that the
validation rules of this field should not be evaluated.
|
FieldConstraints.Builder |
FieldConstraints.Builder.clearString()
.buf.validate.StringRules string = 14 [json_name = "string"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearTimestamp()
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearType() |
FieldConstraints.Builder |
FieldConstraints.Builder.clearUint32()
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clearUint64()
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.clone() |
FieldConstraints.Builder |
RepeatedRules.Builder.getItemsBuilder()
`items` details the constraints to be applied to each item
in the field.
|
FieldConstraints.Builder |
MapRules.Builder.getKeysBuilder()
Specifies the constraints to be applied to each key in the field.
|
FieldConstraints.Builder |
MapRules.Builder.getValuesBuilder()
Specifies the constraints to be applied to the value of each key in the
field.
|
FieldConstraints.Builder |
FieldConstraints.Builder.mergeAny(AnyRules value)
Well-Known Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.mergeBool(BoolRules value)
.buf.validate.BoolRules bool = 13 [json_name = "bool"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeBytes(BytesRules value)
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeDouble(DoubleRules value)
.buf.validate.DoubleRules double = 2 [json_name = "double"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeDuration(DurationRules value)
.buf.validate.DurationRules duration = 21 [json_name = "duration"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeEnum(EnumRules value)
Complex Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.mergeFixed32(Fixed32Rules value)
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeFixed64(Fixed64Rules value)
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeFloat(FloatRules value)
Scalar Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.mergeInt32(Int32Rules value)
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeInt64(Int64Rules value)
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeMap(MapRules value)
.buf.validate.MapRules map = 19 [json_name = "map"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeRepeated(RepeatedRules value)
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeSfixed32(SFixed32Rules value)
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeSfixed64(SFixed64Rules value)
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeSint32(SInt32Rules value)
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeSint64(SInt64Rules value)
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeString(StringRules value)
.buf.validate.StringRules string = 14 [json_name = "string"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeTimestamp(TimestampRules value)
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeUint32(UInt32Rules value)
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeUint64(UInt64Rules value)
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
static FieldConstraints.Builder |
FieldConstraints.newBuilder() |
static FieldConstraints.Builder |
FieldConstraints.newBuilder(FieldConstraints prototype) |
FieldConstraints.Builder |
FieldConstraints.newBuilderForType() |
protected FieldConstraints.Builder |
FieldConstraints.newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
FieldConstraints.Builder |
FieldConstraints.Builder.removeCel(int index)
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
FieldConstraints.Builder |
FieldConstraints.Builder.setAny(AnyRules.Builder builderForValue)
Well-Known Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.setAny(AnyRules value)
Well-Known Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.setBool(BoolRules.Builder builderForValue)
.buf.validate.BoolRules bool = 13 [json_name = "bool"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setBool(BoolRules value)
.buf.validate.BoolRules bool = 13 [json_name = "bool"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setBytes(BytesRules.Builder builderForValue)
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setBytes(BytesRules value)
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setCel(int index,
Constraint.Builder builderForValue)
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
FieldConstraints.Builder |
FieldConstraints.Builder.setCel(int index,
Constraint value)
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
FieldConstraints.Builder |
FieldConstraints.Builder.setDouble(DoubleRules.Builder builderForValue)
.buf.validate.DoubleRules double = 2 [json_name = "double"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setDouble(DoubleRules value)
.buf.validate.DoubleRules double = 2 [json_name = "double"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setDuration(DurationRules.Builder builderForValue)
.buf.validate.DurationRules duration = 21 [json_name = "duration"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setDuration(DurationRules value)
.buf.validate.DurationRules duration = 21 [json_name = "duration"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setEnum(EnumRules.Builder builderForValue)
Complex Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.setEnum(EnumRules value)
Complex Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FieldConstraints.Builder |
FieldConstraints.Builder.setFixed32(Fixed32Rules.Builder builderForValue)
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setFixed32(Fixed32Rules value)
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setFixed64(Fixed64Rules.Builder builderForValue)
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setFixed64(Fixed64Rules value)
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setFloat(FloatRules.Builder builderForValue)
Scalar Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.setFloat(FloatRules value)
Scalar Field Types
|
FieldConstraints.Builder |
FieldConstraints.Builder.setIgnoreEmpty(boolean value)
If `ignore_empty` is true and applied to a non-nullable field (see
`required` for more details), validation is skipped on the field if it is
the default or empty value.
|
FieldConstraints.Builder |
FieldConstraints.Builder.setInt32(Int32Rules.Builder builderForValue)
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setInt32(Int32Rules value)
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setInt64(Int64Rules.Builder builderForValue)
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setInt64(Int64Rules value)
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setMap(MapRules.Builder builderForValue)
.buf.validate.MapRules map = 19 [json_name = "map"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setMap(MapRules value)
.buf.validate.MapRules map = 19 [json_name = "map"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setRepeated(RepeatedRules.Builder builderForValue)
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setRepeated(RepeatedRules value)
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
FieldConstraints.Builder |
FieldConstraints.Builder.setRequired(boolean value)
If `required` is true, the field must be populated.
|
FieldConstraints.Builder |
FieldConstraints.Builder.setSfixed32(SFixed32Rules.Builder builderForValue)
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setSfixed32(SFixed32Rules value)
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setSfixed64(SFixed64Rules.Builder builderForValue)
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setSfixed64(SFixed64Rules value)
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setSint32(SInt32Rules.Builder builderForValue)
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setSint32(SInt32Rules value)
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setSint64(SInt64Rules.Builder builderForValue)
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setSint64(SInt64Rules value)
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setSkipped(boolean value)
`skipped` is an optional boolean attribute that specifies that the
validation rules of this field should not be evaluated.
|
FieldConstraints.Builder |
FieldConstraints.Builder.setString(StringRules.Builder builderForValue)
.buf.validate.StringRules string = 14 [json_name = "string"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setString(StringRules value)
.buf.validate.StringRules string = 14 [json_name = "string"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setTimestamp(TimestampRules.Builder builderForValue)
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setTimestamp(TimestampRules value)
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setUint32(UInt32Rules.Builder builderForValue)
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setUint32(UInt32Rules value)
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setUint64(UInt64Rules.Builder builderForValue)
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setUint64(UInt64Rules value)
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; |
FieldConstraints.Builder |
FieldConstraints.Builder.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FieldConstraints.Builder |
FieldConstraints.toBuilder() |
| Modifier and Type | Method and Description |
|---|---|
RepeatedRules.Builder |
RepeatedRules.Builder.setItems(FieldConstraints.Builder builderForValue)
`items` details the constraints to be applied to each item
in the field.
|
MapRules.Builder |
MapRules.Builder.setKeys(FieldConstraints.Builder builderForValue)
Specifies the constraints to be applied to each key in the field.
|
MapRules.Builder |
MapRules.Builder.setValues(FieldConstraints.Builder builderForValue)
Specifies the constraints to be applied to the value of each key in the
field.
|
Copyright © 2024. All rights reserved.