public final class FieldConstraints extends com.google.protobuf.GeneratedMessageV3 implements FieldConstraintsOrBuilder
FieldRules encapsulates the rules for each type of field. Depending on the field, the correct set should be used to ensure proper validations.Protobuf type
buf.validate.FieldConstraints| Modifier and Type | Class and Description |
|---|---|
static class |
FieldConstraints.Builder
FieldRules encapsulates the rules for each type of field.
|
static class |
FieldConstraints.TypeCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANY_FIELD_NUMBER |
static int |
BOOL_FIELD_NUMBER |
static int |
BYTES_FIELD_NUMBER |
static int |
CEL_FIELD_NUMBER |
static int |
DOUBLE_FIELD_NUMBER |
static int |
DURATION_FIELD_NUMBER |
static int |
ENUM_FIELD_NUMBER |
static int |
FIXED32_FIELD_NUMBER |
static int |
FIXED64_FIELD_NUMBER |
static int |
FLOAT_FIELD_NUMBER |
static int |
IGNORE_EMPTY_FIELD_NUMBER |
static int |
INT32_FIELD_NUMBER |
static int |
INT64_FIELD_NUMBER |
static int |
MAP_FIELD_NUMBER |
static int |
REPEATED_FIELD_NUMBER |
static int |
REQUIRED_FIELD_NUMBER |
static int |
SFIXED32_FIELD_NUMBER |
static int |
SFIXED64_FIELD_NUMBER |
static int |
SINT32_FIELD_NUMBER |
static int |
SINT64_FIELD_NUMBER |
static int |
SKIPPED_FIELD_NUMBER |
static int |
STRING_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
UINT32_FIELD_NUMBER |
static int |
UINT64_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
AnyRules |
getAny()
Well-Known Field Types
|
AnyRulesOrBuilder |
getAnyOrBuilder()
Well-Known Field Types
|
BoolRules |
getBool()
.buf.validate.BoolRules bool = 13 [json_name = "bool"]; |
BoolRulesOrBuilder |
getBoolOrBuilder()
.buf.validate.BoolRules bool = 13 [json_name = "bool"]; |
BytesRules |
getBytes()
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; |
BytesRulesOrBuilder |
getBytesOrBuilder()
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; |
Constraint |
getCel(int index)
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
int |
getCelCount()
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
List<Constraint> |
getCelList()
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
ConstraintOrBuilder |
getCelOrBuilder(int index)
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
List<? extends ConstraintOrBuilder> |
getCelOrBuilderList()
`cel` is a repeated field used to represent a textual expression
in the Common Expression Language (CEL) syntax.
|
static FieldConstraints |
getDefaultInstance() |
FieldConstraints |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
DoubleRules |
getDouble()
.buf.validate.DoubleRules double = 2 [json_name = "double"]; |
DoubleRulesOrBuilder |
getDoubleOrBuilder()
.buf.validate.DoubleRules double = 2 [json_name = "double"]; |
DurationRules |
getDuration()
.buf.validate.DurationRules duration = 21 [json_name = "duration"]; |
DurationRulesOrBuilder |
getDurationOrBuilder()
.buf.validate.DurationRules duration = 21 [json_name = "duration"]; |
EnumRules |
getEnum()
Complex Field Types
|
EnumRulesOrBuilder |
getEnumOrBuilder()
Complex Field Types
|
Fixed32Rules |
getFixed32()
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; |
Fixed32RulesOrBuilder |
getFixed32OrBuilder()
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; |
Fixed64Rules |
getFixed64()
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; |
Fixed64RulesOrBuilder |
getFixed64OrBuilder()
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; |
FloatRules |
getFloat()
Scalar Field Types
|
FloatRulesOrBuilder |
getFloatOrBuilder()
Scalar Field Types
|
boolean |
getIgnoreEmpty()
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.
|
Int32Rules |
getInt32()
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; |
Int32RulesOrBuilder |
getInt32OrBuilder()
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; |
Int64Rules |
getInt64()
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; |
Int64RulesOrBuilder |
getInt64OrBuilder()
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; |
MapRules |
getMap()
.buf.validate.MapRules map = 19 [json_name = "map"]; |
MapRulesOrBuilder |
getMapOrBuilder()
.buf.validate.MapRules map = 19 [json_name = "map"]; |
com.google.protobuf.Parser<FieldConstraints> |
getParserForType() |
RepeatedRules |
getRepeated()
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; |
RepeatedRulesOrBuilder |
getRepeatedOrBuilder()
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; |
boolean |
getRequired()
If `required` is true, the field must be populated.
|
SFixed32Rules |
getSfixed32()
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; |
SFixed32RulesOrBuilder |
getSfixed32OrBuilder()
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; |
SFixed64Rules |
getSfixed64()
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; |
SFixed64RulesOrBuilder |
getSfixed64OrBuilder()
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; |
SInt32Rules |
getSint32()
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; |
SInt32RulesOrBuilder |
getSint32OrBuilder()
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; |
SInt64Rules |
getSint64()
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; |
SInt64RulesOrBuilder |
getSint64OrBuilder()
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; |
boolean |
getSkipped()
`skipped` is an optional boolean attribute that specifies that the
validation rules of this field should not be evaluated.
|
StringRules |
getString()
.buf.validate.StringRules string = 14 [json_name = "string"]; |
StringRulesOrBuilder |
getStringOrBuilder()
.buf.validate.StringRules string = 14 [json_name = "string"]; |
TimestampRules |
getTimestamp()
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; |
TimestampRulesOrBuilder |
getTimestampOrBuilder()
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; |
FieldConstraints.TypeCase |
getTypeCase() |
UInt32Rules |
getUint32()
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; |
UInt32RulesOrBuilder |
getUint32OrBuilder()
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; |
UInt64Rules |
getUint64()
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; |
UInt64RulesOrBuilder |
getUint64OrBuilder()
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; |
boolean |
hasAny()
Well-Known Field Types
|
boolean |
hasBool()
.buf.validate.BoolRules bool = 13 [json_name = "bool"]; |
boolean |
hasBytes()
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; |
boolean |
hasDouble()
.buf.validate.DoubleRules double = 2 [json_name = "double"]; |
boolean |
hasDuration()
.buf.validate.DurationRules duration = 21 [json_name = "duration"]; |
boolean |
hasEnum()
Complex Field Types
|
boolean |
hasFixed32()
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; |
boolean |
hasFixed64()
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; |
boolean |
hasFloat()
Scalar Field Types
|
boolean |
hasInt32()
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; |
boolean |
hasInt64()
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; |
boolean |
hasMap()
.buf.validate.MapRules map = 19 [json_name = "map"]; |
boolean |
hasRepeated()
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; |
boolean |
hasSfixed32()
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; |
boolean |
hasSfixed64()
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; |
boolean |
hasSint32()
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; |
boolean |
hasSint64()
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; |
boolean |
hasString()
.buf.validate.StringRules string = 14 [json_name = "string"]; |
boolean |
hasTimestamp()
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; |
boolean |
hasUint32()
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; |
boolean |
hasUint64()
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
static FieldConstraints.Builder |
newBuilder() |
static FieldConstraints.Builder |
newBuilder(FieldConstraints prototype) |
FieldConstraints.Builder |
newBuilderForType() |
protected FieldConstraints.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static FieldConstraints |
parseDelimitedFrom(InputStream input) |
static FieldConstraints |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FieldConstraints |
parseFrom(byte[] data) |
static FieldConstraints |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FieldConstraints |
parseFrom(ByteBuffer data) |
static FieldConstraints |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FieldConstraints |
parseFrom(com.google.protobuf.ByteString data) |
static FieldConstraints |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FieldConstraints |
parseFrom(com.google.protobuf.CodedInputStream input) |
static FieldConstraints |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FieldConstraints |
parseFrom(InputStream input) |
static FieldConstraints |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<FieldConstraints> |
parser() |
FieldConstraints.Builder |
toBuilder() |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getSerializedSize, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isInitialized, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag, writeToequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CEL_FIELD_NUMBER
public static final int SKIPPED_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER
public static final int IGNORE_EMPTY_FIELD_NUMBER
public static final int FLOAT_FIELD_NUMBER
public static final int DOUBLE_FIELD_NUMBER
public static final int INT32_FIELD_NUMBER
public static final int INT64_FIELD_NUMBER
public static final int UINT32_FIELD_NUMBER
public static final int UINT64_FIELD_NUMBER
public static final int SINT32_FIELD_NUMBER
public static final int SINT64_FIELD_NUMBER
public static final int FIXED32_FIELD_NUMBER
public static final int FIXED64_FIELD_NUMBER
public static final int SFIXED32_FIELD_NUMBER
public static final int SFIXED64_FIELD_NUMBER
public static final int BOOL_FIELD_NUMBER
public static final int STRING_FIELD_NUMBER
public static final int BYTES_FIELD_NUMBER
public static final int ENUM_FIELD_NUMBER
public static final int REPEATED_FIELD_NUMBER
public static final int MAP_FIELD_NUMBER
public static final int ANY_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public FieldConstraints.TypeCase getTypeCase()
getTypeCase in interface FieldConstraintsOrBuilderpublic List<Constraint> getCelList()
`cel` is a repeated field used to represent a textual expression
in the 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 `value` must be greater than 42.
optional int32 value = 1 [(buf.validate.field).cel = {
id: "my_message.value",
message: "value must be greater than 42",
expression: "this > 42",
}];
}
```
repeated .buf.validate.Constraint cel = 23 [json_name = "cel"];getCelList in interface FieldConstraintsOrBuilderpublic List<? extends ConstraintOrBuilder> getCelOrBuilderList()
`cel` is a repeated field used to represent a textual expression
in the 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 `value` must be greater than 42.
optional int32 value = 1 [(buf.validate.field).cel = {
id: "my_message.value",
message: "value must be greater than 42",
expression: "this > 42",
}];
}
```
repeated .buf.validate.Constraint cel = 23 [json_name = "cel"];getCelOrBuilderList in interface FieldConstraintsOrBuilderpublic int getCelCount()
`cel` is a repeated field used to represent a textual expression
in the 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 `value` must be greater than 42.
optional int32 value = 1 [(buf.validate.field).cel = {
id: "my_message.value",
message: "value must be greater than 42",
expression: "this > 42",
}];
}
```
repeated .buf.validate.Constraint cel = 23 [json_name = "cel"];getCelCount in interface FieldConstraintsOrBuilderpublic Constraint getCel(int index)
`cel` is a repeated field used to represent a textual expression
in the 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 `value` must be greater than 42.
optional int32 value = 1 [(buf.validate.field).cel = {
id: "my_message.value",
message: "value must be greater than 42",
expression: "this > 42",
}];
}
```
repeated .buf.validate.Constraint cel = 23 [json_name = "cel"];getCel in interface FieldConstraintsOrBuilderpublic ConstraintOrBuilder getCelOrBuilder(int index)
`cel` is a repeated field used to represent a textual expression
in the 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 `value` must be greater than 42.
optional int32 value = 1 [(buf.validate.field).cel = {
id: "my_message.value",
message: "value must be greater than 42",
expression: "this > 42",
}];
}
```
repeated .buf.validate.Constraint cel = 23 [json_name = "cel"];getCelOrBuilder in interface FieldConstraintsOrBuilderpublic boolean getSkipped()
`skipped` is an optional boolean attribute that specifies that the
validation rules of this field should not be evaluated. If skipped is set to
true, any validation rules set for the field will be ignored.
```proto
message MyMessage {
// The field `value` must not be set.
optional MyOtherMessage value = 1 [(buf.validate.field).skipped = true];
}
```
bool skipped = 24 [json_name = "skipped"];getSkipped in interface FieldConstraintsOrBuilderpublic boolean getRequired()
If `required` is true, the field must be populated. Field presence can be
described as "serialized in the wire format," which follows the following rules:
- the following "nullable" fields must be explicitly set to be considered present:
- singular message fields (may be their empty value)
- member fields of a oneof (may be their default value)
- proto3 optional fields (may be their default value)
- proto2 scalar fields
- proto3 scalar fields must be non-zero to be considered present
- repeated and map fields must be non-empty to be considered present
```proto
message MyMessage {
// The field `value` must be set to a non-null value.
optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
}
```
bool required = 25 [json_name = "required"];getRequired in interface FieldConstraintsOrBuilderpublic boolean getIgnoreEmpty()
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. Adding `ignore_empty` to a "nullable" field is
a noop as these unset fields already skip validation (with the exception
of `required`).
```proto
message MyRepeated {
// The field `value` min_len rule is only applied if the field isn't empty.
repeated string value = 1 [
(buf.validate.field).ignore_empty = true,
(buf.validate.field).min_len = 5
];
}
```
bool ignore_empty = 26 [json_name = "ignoreEmpty"];getIgnoreEmpty in interface FieldConstraintsOrBuilderpublic boolean hasFloat()
Scalar Field Types
.buf.validate.FloatRules float = 1 [json_name = "float"];hasFloat in interface FieldConstraintsOrBuilderpublic FloatRules getFloat()
Scalar Field Types
.buf.validate.FloatRules float = 1 [json_name = "float"];getFloat in interface FieldConstraintsOrBuilderpublic FloatRulesOrBuilder getFloatOrBuilder()
Scalar Field Types
.buf.validate.FloatRules float = 1 [json_name = "float"];getFloatOrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasDouble()
.buf.validate.DoubleRules double = 2 [json_name = "double"];hasDouble in interface FieldConstraintsOrBuilderpublic DoubleRules getDouble()
.buf.validate.DoubleRules double = 2 [json_name = "double"];getDouble in interface FieldConstraintsOrBuilderpublic DoubleRulesOrBuilder getDoubleOrBuilder()
.buf.validate.DoubleRules double = 2 [json_name = "double"];getDoubleOrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasInt32()
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"];hasInt32 in interface FieldConstraintsOrBuilderpublic Int32Rules getInt32()
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"];getInt32 in interface FieldConstraintsOrBuilderpublic Int32RulesOrBuilder getInt32OrBuilder()
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"];getInt32OrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasInt64()
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"];hasInt64 in interface FieldConstraintsOrBuilderpublic Int64Rules getInt64()
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"];getInt64 in interface FieldConstraintsOrBuilderpublic Int64RulesOrBuilder getInt64OrBuilder()
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"];getInt64OrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasUint32()
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];hasUint32 in interface FieldConstraintsOrBuilderpublic UInt32Rules getUint32()
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];getUint32 in interface FieldConstraintsOrBuilderpublic UInt32RulesOrBuilder getUint32OrBuilder()
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];getUint32OrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasUint64()
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];hasUint64 in interface FieldConstraintsOrBuilderpublic UInt64Rules getUint64()
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];getUint64 in interface FieldConstraintsOrBuilderpublic UInt64RulesOrBuilder getUint64OrBuilder()
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];getUint64OrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasSint32()
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];hasSint32 in interface FieldConstraintsOrBuilderpublic SInt32Rules getSint32()
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];getSint32 in interface FieldConstraintsOrBuilderpublic SInt32RulesOrBuilder getSint32OrBuilder()
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];getSint32OrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasSint64()
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];hasSint64 in interface FieldConstraintsOrBuilderpublic SInt64Rules getSint64()
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];getSint64 in interface FieldConstraintsOrBuilderpublic SInt64RulesOrBuilder getSint64OrBuilder()
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];getSint64OrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasFixed32()
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];hasFixed32 in interface FieldConstraintsOrBuilderpublic Fixed32Rules getFixed32()
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];getFixed32 in interface FieldConstraintsOrBuilderpublic Fixed32RulesOrBuilder getFixed32OrBuilder()
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];getFixed32OrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasFixed64()
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];hasFixed64 in interface FieldConstraintsOrBuilderpublic Fixed64Rules getFixed64()
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];getFixed64 in interface FieldConstraintsOrBuilderpublic Fixed64RulesOrBuilder getFixed64OrBuilder()
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];getFixed64OrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasSfixed32()
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];hasSfixed32 in interface FieldConstraintsOrBuilderpublic SFixed32Rules getSfixed32()
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];getSfixed32 in interface FieldConstraintsOrBuilderpublic SFixed32RulesOrBuilder getSfixed32OrBuilder()
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];getSfixed32OrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasSfixed64()
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];hasSfixed64 in interface FieldConstraintsOrBuilderpublic SFixed64Rules getSfixed64()
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];getSfixed64 in interface FieldConstraintsOrBuilderpublic SFixed64RulesOrBuilder getSfixed64OrBuilder()
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];getSfixed64OrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasBool()
.buf.validate.BoolRules bool = 13 [json_name = "bool"];hasBool in interface FieldConstraintsOrBuilderpublic BoolRules getBool()
.buf.validate.BoolRules bool = 13 [json_name = "bool"];getBool in interface FieldConstraintsOrBuilderpublic BoolRulesOrBuilder getBoolOrBuilder()
.buf.validate.BoolRules bool = 13 [json_name = "bool"];getBoolOrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasString()
.buf.validate.StringRules string = 14 [json_name = "string"];hasString in interface FieldConstraintsOrBuilderpublic StringRules getString()
.buf.validate.StringRules string = 14 [json_name = "string"];getString in interface FieldConstraintsOrBuilderpublic StringRulesOrBuilder getStringOrBuilder()
.buf.validate.StringRules string = 14 [json_name = "string"];getStringOrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasBytes()
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"];hasBytes in interface FieldConstraintsOrBuilderpublic BytesRules getBytes()
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"];getBytes in interface FieldConstraintsOrBuilderpublic BytesRulesOrBuilder getBytesOrBuilder()
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"];getBytesOrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasEnum()
Complex Field Types
.buf.validate.EnumRules enum = 16 [json_name = "enum"];hasEnum in interface FieldConstraintsOrBuilderpublic EnumRules getEnum()
Complex Field Types
.buf.validate.EnumRules enum = 16 [json_name = "enum"];getEnum in interface FieldConstraintsOrBuilderpublic EnumRulesOrBuilder getEnumOrBuilder()
Complex Field Types
.buf.validate.EnumRules enum = 16 [json_name = "enum"];getEnumOrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasRepeated()
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];hasRepeated in interface FieldConstraintsOrBuilderpublic RepeatedRules getRepeated()
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];getRepeated in interface FieldConstraintsOrBuilderpublic RepeatedRulesOrBuilder getRepeatedOrBuilder()
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];getRepeatedOrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasMap()
.buf.validate.MapRules map = 19 [json_name = "map"];hasMap in interface FieldConstraintsOrBuilderpublic MapRules getMap()
.buf.validate.MapRules map = 19 [json_name = "map"];getMap in interface FieldConstraintsOrBuilderpublic MapRulesOrBuilder getMapOrBuilder()
.buf.validate.MapRules map = 19 [json_name = "map"];getMapOrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasAny()
Well-Known Field Types
.buf.validate.AnyRules any = 20 [json_name = "any"];hasAny in interface FieldConstraintsOrBuilderpublic AnyRules getAny()
Well-Known Field Types
.buf.validate.AnyRules any = 20 [json_name = "any"];getAny in interface FieldConstraintsOrBuilderpublic AnyRulesOrBuilder getAnyOrBuilder()
Well-Known Field Types
.buf.validate.AnyRules any = 20 [json_name = "any"];getAnyOrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasDuration()
.buf.validate.DurationRules duration = 21 [json_name = "duration"];hasDuration in interface FieldConstraintsOrBuilderpublic DurationRules getDuration()
.buf.validate.DurationRules duration = 21 [json_name = "duration"];getDuration in interface FieldConstraintsOrBuilderpublic DurationRulesOrBuilder getDurationOrBuilder()
.buf.validate.DurationRules duration = 21 [json_name = "duration"];getDurationOrBuilder in interface FieldConstraintsOrBuilderpublic boolean hasTimestamp()
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];hasTimestamp in interface FieldConstraintsOrBuilderpublic TimestampRules getTimestamp()
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];getTimestamp in interface FieldConstraintsOrBuilderpublic TimestampRulesOrBuilder getTimestampOrBuilder()
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];getTimestampOrBuilder in interface FieldConstraintsOrBuilderpublic static FieldConstraints parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldConstraints parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldConstraints parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldConstraints parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldConstraints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldConstraints parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldConstraints parseFrom(InputStream input) throws IOException
IOExceptionpublic static FieldConstraints parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FieldConstraints parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static FieldConstraints parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FieldConstraints parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static FieldConstraints parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic FieldConstraints.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static FieldConstraints.Builder newBuilder()
public static FieldConstraints.Builder newBuilder(FieldConstraints prototype)
public FieldConstraints.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected FieldConstraints.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static FieldConstraints getDefaultInstance()
public static com.google.protobuf.Parser<FieldConstraints> parser()
public com.google.protobuf.Parser<FieldConstraints> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public FieldConstraints getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023. All rights reserved.