Package build.buf.validate
Class FieldConstraints
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
build.buf.validate.FieldConstraints
- All Implemented Interfaces:
FieldConstraintsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFieldRules encapsulates the rules for each type of field.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAny()Well-Known Field TypesWell-Known Field TypesgetBool().buf.validate.BoolRules bool = 13 [json_name = "bool"];.buf.validate.BoolRules bool = 13 [json_name = "bool"];getBytes().buf.validate.BytesRules bytes = 15 [json_name = "bytes"];.buf.validate.BytesRules bytes = 15 [json_name = "bytes"];getCel(int index) `Constraint` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.int`Constraint` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.`Constraint` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.getCelOrBuilder(int index) `Constraint` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.List<? extends ConstraintOrBuilder>`Constraint` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.static FieldConstraintsstatic final com.google.protobuf.Descriptors.Descriptor.buf.validate.DoubleRules double = 2 [json_name = "double"];.buf.validate.DoubleRules double = 2 [json_name = "double"];.buf.validate.DurationRules duration = 21 [json_name = "duration"];.buf.validate.DurationRules duration = 21 [json_name = "duration"];getEnum()Complex Field TypesComplex Field Types.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];getFloat()Scalar Field TypesScalar Field Typesboolean`ignore_empty` specifies that the validation rules of this field should be evaluated only if the field isn't empty.getInt32().buf.validate.Int32Rules int32 = 3 [json_name = "int32"];.buf.validate.Int32Rules int32 = 3 [json_name = "int32"];getInt64().buf.validate.Int64Rules int64 = 4 [json_name = "int64"];.buf.validate.Int64Rules int64 = 4 [json_name = "int64"];getMap().buf.validate.MapRules map = 19 [json_name = "map"];.buf.validate.MapRules map = 19 [json_name = "map"];com.google.protobuf.Parser<FieldConstraints>.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];boolean`required` is an optional boolean attribute that specifies that this field must be set.int.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];boolean`skipped` is an optional boolean attribute that specifies that the validation rules of this field should not be evaluated..buf.validate.StringRules string = 14 [json_name = "string"];.buf.validate.StringRules string = 14 [json_name = "string"];.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];booleanhasAny()Well-Known Field TypesbooleanhasBool().buf.validate.BoolRules bool = 13 [json_name = "bool"];booleanhasBytes().buf.validate.BytesRules bytes = 15 [json_name = "bytes"];boolean.buf.validate.DoubleRules double = 2 [json_name = "double"];boolean.buf.validate.DurationRules duration = 21 [json_name = "duration"];booleanhasEnum()Complex Field Typesboolean.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];boolean.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];booleanhasFloat()Scalar Field TypesinthashCode()booleanhasInt32().buf.validate.Int32Rules int32 = 3 [json_name = "int32"];booleanhasInt64().buf.validate.Int64Rules int64 = 4 [json_name = "int64"];booleanhasMap().buf.validate.MapRules map = 19 [json_name = "map"];boolean.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];boolean.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];boolean.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];boolean.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];boolean.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];boolean.buf.validate.StringRules string = 14 [json_name = "string"];boolean.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];boolean.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];boolean.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic FieldConstraints.Builderstatic FieldConstraints.BuildernewBuilder(FieldConstraints prototype) protected FieldConstraints.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static FieldConstraintsparseDelimitedFrom(InputStream input) static FieldConstraintsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FieldConstraintsparseFrom(byte[] data) static FieldConstraintsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FieldConstraintsparseFrom(com.google.protobuf.ByteString data) static FieldConstraintsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FieldConstraintsparseFrom(com.google.protobuf.CodedInputStream input) static FieldConstraintsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FieldConstraintsparseFrom(InputStream input) static FieldConstraintsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FieldConstraintsparseFrom(ByteBuffer data) static FieldConstraintsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FieldConstraints>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CEL_FIELD_NUMBER
public static final int CEL_FIELD_NUMBER- See Also:
-
SKIPPED_FIELD_NUMBER
public static final int SKIPPED_FIELD_NUMBER- See Also:
-
REQUIRED_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER- See Also:
-
IGNORE_EMPTY_FIELD_NUMBER
public static final int IGNORE_EMPTY_FIELD_NUMBER- See Also:
-
FLOAT_FIELD_NUMBER
public static final int FLOAT_FIELD_NUMBER- See Also:
-
DOUBLE_FIELD_NUMBER
public static final int DOUBLE_FIELD_NUMBER- See Also:
-
INT32_FIELD_NUMBER
public static final int INT32_FIELD_NUMBER- See Also:
-
INT64_FIELD_NUMBER
public static final int INT64_FIELD_NUMBER- See Also:
-
UINT32_FIELD_NUMBER
public static final int UINT32_FIELD_NUMBER- See Also:
-
UINT64_FIELD_NUMBER
public static final int UINT64_FIELD_NUMBER- See Also:
-
SINT32_FIELD_NUMBER
public static final int SINT32_FIELD_NUMBER- See Also:
-
SINT64_FIELD_NUMBER
public static final int SINT64_FIELD_NUMBER- See Also:
-
FIXED32_FIELD_NUMBER
public static final int FIXED32_FIELD_NUMBER- See Also:
-
FIXED64_FIELD_NUMBER
public static final int FIXED64_FIELD_NUMBER- See Also:
-
SFIXED32_FIELD_NUMBER
public static final int SFIXED32_FIELD_NUMBER- See Also:
-
SFIXED64_FIELD_NUMBER
public static final int SFIXED64_FIELD_NUMBER- See Also:
-
BOOL_FIELD_NUMBER
public static final int BOOL_FIELD_NUMBER- See Also:
-
STRING_FIELD_NUMBER
public static final int STRING_FIELD_NUMBER- See Also:
-
BYTES_FIELD_NUMBER
public static final int BYTES_FIELD_NUMBER- See Also:
-
ENUM_FIELD_NUMBER
public static final int ENUM_FIELD_NUMBER- See Also:
-
REPEATED_FIELD_NUMBER
public static final int REPEATED_FIELD_NUMBER- See Also:
-
MAP_FIELD_NUMBER
public static final int MAP_FIELD_NUMBER- See Also:
-
ANY_FIELD_NUMBER
public static final int ANY_FIELD_NUMBER- See Also:
-
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER- See Also:
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTypeCase
- Specified by:
getTypeCasein interfaceFieldConstraintsOrBuilder
-
getCelList
`Constraint` 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"];- Specified by:
getCelListin interfaceFieldConstraintsOrBuilder
-
getCelOrBuilderList
`Constraint` 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"];- Specified by:
getCelOrBuilderListin interfaceFieldConstraintsOrBuilder
-
getCelCount
public int getCelCount()`Constraint` 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"];- Specified by:
getCelCountin interfaceFieldConstraintsOrBuilder
-
getCel
`Constraint` 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"];- Specified by:
getCelin interfaceFieldConstraintsOrBuilder
-
getCelOrBuilder
`Constraint` 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"];- Specified by:
getCelOrBuilderin interfaceFieldConstraintsOrBuilder
-
getSkipped
public 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"];- Specified by:
getSkippedin interfaceFieldConstraintsOrBuilder- Returns:
- The skipped.
-
getRequired
public boolean getRequired()`required` is an optional boolean attribute that specifies that this field must be set. If required is set to true, the field value must not be empty; otherwise, an error message will be generated. ```proto message MyMessage { // The field `value` must be set. optional MyOtherMessage value = 1 [(buf.validate.field).required = true]; } ```bool required = 25 [json_name = "required"];- Specified by:
getRequiredin interfaceFieldConstraintsOrBuilder- Returns:
- The required.
-
getIgnoreEmpty
public boolean getIgnoreEmpty()`ignore_empty` specifies that the validation rules of this field should be evaluated only if the field isn't empty. If the field is empty, no validation rules are applied. ```proto message MyRepeated { // The field `value` validation rules should be evaluated only if the field isn't empty. repeated string value = 1 [(buf.validate.field).ignore_empty = true]; } ```bool ignore_empty = 26 [json_name = "ignoreEmpty"];- Specified by:
getIgnoreEmptyin interfaceFieldConstraintsOrBuilder- Returns:
- The ignoreEmpty.
-
hasFloat
public boolean hasFloat()Scalar Field Types
.buf.validate.FloatRules float = 1 [json_name = "float"];- Specified by:
hasFloatin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the float field is set.
-
getFloat
Scalar Field Types
.buf.validate.FloatRules float = 1 [json_name = "float"];- Specified by:
getFloatin interfaceFieldConstraintsOrBuilder- Returns:
- The float.
-
getFloatOrBuilder
Scalar Field Types
.buf.validate.FloatRules float = 1 [json_name = "float"];- Specified by:
getFloatOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasDouble
public boolean hasDouble().buf.validate.DoubleRules double = 2 [json_name = "double"];- Specified by:
hasDoublein interfaceFieldConstraintsOrBuilder- Returns:
- Whether the double field is set.
-
getDouble
.buf.validate.DoubleRules double = 2 [json_name = "double"];- Specified by:
getDoublein interfaceFieldConstraintsOrBuilder- Returns:
- The double.
-
getDoubleOrBuilder
.buf.validate.DoubleRules double = 2 [json_name = "double"];- Specified by:
getDoubleOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasInt32
public boolean hasInt32().buf.validate.Int32Rules int32 = 3 [json_name = "int32"];- Specified by:
hasInt32in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the int32 field is set.
-
getInt32
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"];- Specified by:
getInt32in interfaceFieldConstraintsOrBuilder- Returns:
- The int32.
-
getInt32OrBuilder
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"];- Specified by:
getInt32OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasInt64
public boolean hasInt64().buf.validate.Int64Rules int64 = 4 [json_name = "int64"];- Specified by:
hasInt64in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the int64 field is set.
-
getInt64
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"];- Specified by:
getInt64in interfaceFieldConstraintsOrBuilder- Returns:
- The int64.
-
getInt64OrBuilder
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"];- Specified by:
getInt64OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasUint32
public boolean hasUint32().buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];- Specified by:
hasUint32in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the uint32 field is set.
-
getUint32
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];- Specified by:
getUint32in interfaceFieldConstraintsOrBuilder- Returns:
- The uint32.
-
getUint32OrBuilder
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];- Specified by:
getUint32OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasUint64
public boolean hasUint64().buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];- Specified by:
hasUint64in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the uint64 field is set.
-
getUint64
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];- Specified by:
getUint64in interfaceFieldConstraintsOrBuilder- Returns:
- The uint64.
-
getUint64OrBuilder
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];- Specified by:
getUint64OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasSint32
public boolean hasSint32().buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];- Specified by:
hasSint32in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the sint32 field is set.
-
getSint32
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];- Specified by:
getSint32in interfaceFieldConstraintsOrBuilder- Returns:
- The sint32.
-
getSint32OrBuilder
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];- Specified by:
getSint32OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasSint64
public boolean hasSint64().buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];- Specified by:
hasSint64in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the sint64 field is set.
-
getSint64
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];- Specified by:
getSint64in interfaceFieldConstraintsOrBuilder- Returns:
- The sint64.
-
getSint64OrBuilder
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];- Specified by:
getSint64OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasFixed32
public boolean hasFixed32().buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];- Specified by:
hasFixed32in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the fixed32 field is set.
-
getFixed32
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];- Specified by:
getFixed32in interfaceFieldConstraintsOrBuilder- Returns:
- The fixed32.
-
getFixed32OrBuilder
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];- Specified by:
getFixed32OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasFixed64
public boolean hasFixed64().buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];- Specified by:
hasFixed64in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the fixed64 field is set.
-
getFixed64
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];- Specified by:
getFixed64in interfaceFieldConstraintsOrBuilder- Returns:
- The fixed64.
-
getFixed64OrBuilder
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];- Specified by:
getFixed64OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasSfixed32
public boolean hasSfixed32().buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];- Specified by:
hasSfixed32in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the sfixed32 field is set.
-
getSfixed32
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];- Specified by:
getSfixed32in interfaceFieldConstraintsOrBuilder- Returns:
- The sfixed32.
-
getSfixed32OrBuilder
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];- Specified by:
getSfixed32OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasSfixed64
public boolean hasSfixed64().buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];- Specified by:
hasSfixed64in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the sfixed64 field is set.
-
getSfixed64
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];- Specified by:
getSfixed64in interfaceFieldConstraintsOrBuilder- Returns:
- The sfixed64.
-
getSfixed64OrBuilder
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];- Specified by:
getSfixed64OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasBool
public boolean hasBool().buf.validate.BoolRules bool = 13 [json_name = "bool"];- Specified by:
hasBoolin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the bool field is set.
-
getBool
.buf.validate.BoolRules bool = 13 [json_name = "bool"];- Specified by:
getBoolin interfaceFieldConstraintsOrBuilder- Returns:
- The bool.
-
getBoolOrBuilder
.buf.validate.BoolRules bool = 13 [json_name = "bool"];- Specified by:
getBoolOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasString
public boolean hasString().buf.validate.StringRules string = 14 [json_name = "string"];- Specified by:
hasStringin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the string field is set.
-
getString
.buf.validate.StringRules string = 14 [json_name = "string"];- Specified by:
getStringin interfaceFieldConstraintsOrBuilder- Returns:
- The string.
-
getStringOrBuilder
.buf.validate.StringRules string = 14 [json_name = "string"];- Specified by:
getStringOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasBytes
public boolean hasBytes().buf.validate.BytesRules bytes = 15 [json_name = "bytes"];- Specified by:
hasBytesin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the bytes field is set.
-
getBytes
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"];- Specified by:
getBytesin interfaceFieldConstraintsOrBuilder- Returns:
- The bytes.
-
getBytesOrBuilder
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"];- Specified by:
getBytesOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasEnum
public boolean hasEnum()Complex Field Types
.buf.validate.EnumRules enum = 16 [json_name = "enum"];- Specified by:
hasEnumin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the enum field is set.
-
getEnum
Complex Field Types
.buf.validate.EnumRules enum = 16 [json_name = "enum"];- Specified by:
getEnumin interfaceFieldConstraintsOrBuilder- Returns:
- The enum.
-
getEnumOrBuilder
Complex Field Types
.buf.validate.EnumRules enum = 16 [json_name = "enum"];- Specified by:
getEnumOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasRepeated
public boolean hasRepeated().buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];- Specified by:
hasRepeatedin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the repeated field is set.
-
getRepeated
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];- Specified by:
getRepeatedin interfaceFieldConstraintsOrBuilder- Returns:
- The repeated.
-
getRepeatedOrBuilder
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];- Specified by:
getRepeatedOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasMap
public boolean hasMap().buf.validate.MapRules map = 19 [json_name = "map"];- Specified by:
hasMapin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the map field is set.
-
getMap
.buf.validate.MapRules map = 19 [json_name = "map"];- Specified by:
getMapin interfaceFieldConstraintsOrBuilder- Returns:
- The map.
-
getMapOrBuilder
.buf.validate.MapRules map = 19 [json_name = "map"];- Specified by:
getMapOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasAny
public boolean hasAny()Well-Known Field Types
.buf.validate.AnyRules any = 20 [json_name = "any"];- Specified by:
hasAnyin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the any field is set.
-
getAny
Well-Known Field Types
.buf.validate.AnyRules any = 20 [json_name = "any"];- Specified by:
getAnyin interfaceFieldConstraintsOrBuilder- Returns:
- The any.
-
getAnyOrBuilder
Well-Known Field Types
.buf.validate.AnyRules any = 20 [json_name = "any"];- Specified by:
getAnyOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasDuration
public boolean hasDuration().buf.validate.DurationRules duration = 21 [json_name = "duration"];- Specified by:
hasDurationin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
.buf.validate.DurationRules duration = 21 [json_name = "duration"];- Specified by:
getDurationin interfaceFieldConstraintsOrBuilder- Returns:
- The duration.
-
getDurationOrBuilder
.buf.validate.DurationRules duration = 21 [json_name = "duration"];- Specified by:
getDurationOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasTimestamp
public boolean hasTimestamp().buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];- Specified by:
hasTimestampin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];- Specified by:
getTimestampin interfaceFieldConstraintsOrBuilder- Returns:
- The timestamp.
-
getTimestampOrBuilder
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];- Specified by:
getTimestampOrBuilderin interfaceFieldConstraintsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FieldConstraints parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldConstraints parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldConstraints parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldConstraints parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldConstraints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldConstraints parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FieldConstraints parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FieldConstraints parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static FieldConstraints parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static FieldConstraints parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FieldConstraints.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-