Package build.buf.validate
Class FieldConstraints
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- build.buf.validate.FieldConstraints
-
- All Implemented Interfaces:
FieldConstraintsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class FieldConstraints extends com.google.protobuf.GeneratedMessage 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 typebuf.validate.FieldConstraints- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFieldConstraints.BuilderFieldRules encapsulates the rules for each type of field.static classFieldConstraints.TypeCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intANY_FIELD_NUMBERstatic intBOOL_FIELD_NUMBERstatic intBYTES_FIELD_NUMBERstatic intCEL_FIELD_NUMBERstatic intDOUBLE_FIELD_NUMBERstatic intDURATION_FIELD_NUMBERstatic intENUM_FIELD_NUMBERstatic intFIXED32_FIELD_NUMBERstatic intFIXED64_FIELD_NUMBERstatic intFLOAT_FIELD_NUMBERstatic intIGNORE_EMPTY_FIELD_NUMBERstatic intINT32_FIELD_NUMBERstatic intINT64_FIELD_NUMBERstatic intMAP_FIELD_NUMBERstatic intREPEATED_FIELD_NUMBERstatic intREQUIRED_FIELD_NUMBERstatic intSFIXED32_FIELD_NUMBERstatic intSFIXED64_FIELD_NUMBERstatic intSINT32_FIELD_NUMBERstatic intSINT64_FIELD_NUMBERstatic intSKIPPED_FIELD_NUMBERstatic intSTRING_FIELD_NUMBERstatic intTIMESTAMP_FIELD_NUMBERstatic intUINT32_FIELD_NUMBERstatic intUINT64_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AnyRulesgetAny()Well-Known Field TypesAnyRulesOrBuildergetAnyOrBuilder()Well-Known Field TypesBoolRulesgetBool().buf.validate.BoolRules bool = 13;BoolRulesOrBuildergetBoolOrBuilder().buf.validate.BoolRules bool = 13;BytesRulesgetBytes().buf.validate.BytesRules bytes = 15;BytesRulesOrBuildergetBytesOrBuilder().buf.validate.BytesRules bytes = 15;ConstraintgetCel(int index)`cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.intgetCelCount()`cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.java.util.List<Constraint>getCelList()`cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.ConstraintOrBuildergetCelOrBuilder(int index)`cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.java.util.List<? extends ConstraintOrBuilder>getCelOrBuilderList()`cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.static FieldConstraintsgetDefaultInstance()FieldConstraintsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DoubleRulesgetDouble().buf.validate.DoubleRules double = 2;DoubleRulesOrBuildergetDoubleOrBuilder().buf.validate.DoubleRules double = 2;DurationRulesgetDuration().buf.validate.DurationRules duration = 21;DurationRulesOrBuildergetDurationOrBuilder().buf.validate.DurationRules duration = 21;EnumRulesgetEnum()Complex Field TypesEnumRulesOrBuildergetEnumOrBuilder()Complex Field TypesFixed32RulesgetFixed32().buf.validate.Fixed32Rules fixed32 = 9;Fixed32RulesOrBuildergetFixed32OrBuilder().buf.validate.Fixed32Rules fixed32 = 9;Fixed64RulesgetFixed64().buf.validate.Fixed64Rules fixed64 = 10;Fixed64RulesOrBuildergetFixed64OrBuilder().buf.validate.Fixed64Rules fixed64 = 10;FloatRulesgetFloat()Scalar Field TypesFloatRulesOrBuildergetFloatOrBuilder()Scalar Field TypesbooleangetIgnoreEmpty()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.Int32RulesgetInt32().buf.validate.Int32Rules int32 = 3;Int32RulesOrBuildergetInt32OrBuilder().buf.validate.Int32Rules int32 = 3;Int64RulesgetInt64().buf.validate.Int64Rules int64 = 4;Int64RulesOrBuildergetInt64OrBuilder().buf.validate.Int64Rules int64 = 4;MapRulesgetMap().buf.validate.MapRules map = 19;MapRulesOrBuildergetMapOrBuilder().buf.validate.MapRules map = 19;com.google.protobuf.Parser<FieldConstraints>getParserForType()RepeatedRulesgetRepeated().buf.validate.RepeatedRules repeated = 18;RepeatedRulesOrBuildergetRepeatedOrBuilder().buf.validate.RepeatedRules repeated = 18;booleangetRequired()If `required` is true, the field must be populated.intgetSerializedSize()SFixed32RulesgetSfixed32().buf.validate.SFixed32Rules sfixed32 = 11;SFixed32RulesOrBuildergetSfixed32OrBuilder().buf.validate.SFixed32Rules sfixed32 = 11;SFixed64RulesgetSfixed64().buf.validate.SFixed64Rules sfixed64 = 12;SFixed64RulesOrBuildergetSfixed64OrBuilder().buf.validate.SFixed64Rules sfixed64 = 12;SInt32RulesgetSint32().buf.validate.SInt32Rules sint32 = 7;SInt32RulesOrBuildergetSint32OrBuilder().buf.validate.SInt32Rules sint32 = 7;SInt64RulesgetSint64().buf.validate.SInt64Rules sint64 = 8;SInt64RulesOrBuildergetSint64OrBuilder().buf.validate.SInt64Rules sint64 = 8;booleangetSkipped()`skipped` is an optional boolean attribute that specifies that the validation rules of this field should not be evaluated.StringRulesgetString().buf.validate.StringRules string = 14;StringRulesOrBuildergetStringOrBuilder().buf.validate.StringRules string = 14;TimestampRulesgetTimestamp().buf.validate.TimestampRules timestamp = 22;TimestampRulesOrBuildergetTimestampOrBuilder().buf.validate.TimestampRules timestamp = 22;FieldConstraints.TypeCasegetTypeCase()UInt32RulesgetUint32().buf.validate.UInt32Rules uint32 = 5;UInt32RulesOrBuildergetUint32OrBuilder().buf.validate.UInt32Rules uint32 = 5;UInt64RulesgetUint64().buf.validate.UInt64Rules uint64 = 6;UInt64RulesOrBuildergetUint64OrBuilder().buf.validate.UInt64Rules uint64 = 6;booleanhasAny()Well-Known Field TypesbooleanhasBool().buf.validate.BoolRules bool = 13;booleanhasBytes().buf.validate.BytesRules bytes = 15;booleanhasDouble().buf.validate.DoubleRules double = 2;booleanhasDuration().buf.validate.DurationRules duration = 21;booleanhasEnum()Complex Field TypesbooleanhasFixed32().buf.validate.Fixed32Rules fixed32 = 9;booleanhasFixed64().buf.validate.Fixed64Rules fixed64 = 10;booleanhasFloat()Scalar Field TypesinthashCode()booleanhasInt32().buf.validate.Int32Rules int32 = 3;booleanhasInt64().buf.validate.Int64Rules int64 = 4;booleanhasMap().buf.validate.MapRules map = 19;booleanhasRepeated().buf.validate.RepeatedRules repeated = 18;booleanhasSfixed32().buf.validate.SFixed32Rules sfixed32 = 11;booleanhasSfixed64().buf.validate.SFixed64Rules sfixed64 = 12;booleanhasSint32().buf.validate.SInt32Rules sint32 = 7;booleanhasSint64().buf.validate.SInt64Rules sint64 = 8;booleanhasString().buf.validate.StringRules string = 14;booleanhasTimestamp().buf.validate.TimestampRules timestamp = 22;booleanhasUint32().buf.validate.UInt32Rules uint32 = 5;booleanhasUint64().buf.validate.UInt64Rules uint64 = 6;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static FieldConstraints.BuildernewBuilder()static FieldConstraints.BuildernewBuilder(FieldConstraints prototype)FieldConstraints.BuildernewBuilderForType()protected FieldConstraints.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static FieldConstraintsparseDelimitedFrom(java.io.InputStream input)static FieldConstraintsparseDelimitedFrom(java.io.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(java.io.InputStream input)static FieldConstraintsparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FieldConstraintsparseFrom(java.nio.ByteBuffer data)static FieldConstraintsparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<FieldConstraints>parser()FieldConstraints.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CEL_FIELD_NUMBER
public static final int CEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SKIPPED_FIELD_NUMBER
public static final int SKIPPED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUIRED_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IGNORE_EMPTY_FIELD_NUMBER
public static final int IGNORE_EMPTY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLOAT_FIELD_NUMBER
public static final int FLOAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOUBLE_FIELD_NUMBER
public static final int DOUBLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT32_FIELD_NUMBER
public static final int INT32_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT64_FIELD_NUMBER
public static final int INT64_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UINT32_FIELD_NUMBER
public static final int UINT32_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UINT64_FIELD_NUMBER
public static final int UINT64_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SINT32_FIELD_NUMBER
public static final int SINT32_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SINT64_FIELD_NUMBER
public static final int SINT64_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FIXED32_FIELD_NUMBER
public static final int FIXED32_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FIXED64_FIELD_NUMBER
public static final int FIXED64_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SFIXED32_FIELD_NUMBER
public static final int SFIXED32_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SFIXED64_FIELD_NUMBER
public static final int SFIXED64_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOL_FIELD_NUMBER
public static final int BOOL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_FIELD_NUMBER
public static final int STRING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BYTES_FIELD_NUMBER
public static final int BYTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENUM_FIELD_NUMBER
public static final int ENUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REPEATED_FIELD_NUMBER
public static final int REPEATED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAP_FIELD_NUMBER
public static final int MAP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANY_FIELD_NUMBER
public static final int ANY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getTypeCase
public FieldConstraints.TypeCase getTypeCase()
- Specified by:
getTypeCasein interfaceFieldConstraintsOrBuilder
-
getCelList
public java.util.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;- Specified by:
getCelListin interfaceFieldConstraintsOrBuilder
-
getCelOrBuilderList
public java.util.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;- Specified by:
getCelOrBuilderListin interfaceFieldConstraintsOrBuilder
-
getCelCount
public 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;- Specified by:
getCelCountin interfaceFieldConstraintsOrBuilder
-
getCel
public 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;- Specified by:
getCelin interfaceFieldConstraintsOrBuilder
-
getCelOrBuilder
public 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;- 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;- Specified by:
getSkippedin interfaceFieldConstraintsOrBuilder- Returns:
- The skipped.
-
getRequired
public 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;- Specified by:
getRequiredin interfaceFieldConstraintsOrBuilder- Returns:
- The required.
-
getIgnoreEmpty
public 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;- Specified by:
getIgnoreEmptyin interfaceFieldConstraintsOrBuilder- Returns:
- The ignoreEmpty.
-
hasFloat
public boolean hasFloat()
Scalar Field Types
.buf.validate.FloatRules float = 1;- Specified by:
hasFloatin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the float field is set.
-
getFloat
public FloatRules getFloat()
Scalar Field Types
.buf.validate.FloatRules float = 1;- Specified by:
getFloatin interfaceFieldConstraintsOrBuilder- Returns:
- The float.
-
getFloatOrBuilder
public FloatRulesOrBuilder getFloatOrBuilder()
Scalar Field Types
.buf.validate.FloatRules float = 1;- Specified by:
getFloatOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasDouble
public boolean hasDouble()
.buf.validate.DoubleRules double = 2;- Specified by:
hasDoublein interfaceFieldConstraintsOrBuilder- Returns:
- Whether the double field is set.
-
getDouble
public DoubleRules getDouble()
.buf.validate.DoubleRules double = 2;- Specified by:
getDoublein interfaceFieldConstraintsOrBuilder- Returns:
- The double.
-
getDoubleOrBuilder
public DoubleRulesOrBuilder getDoubleOrBuilder()
.buf.validate.DoubleRules double = 2;- Specified by:
getDoubleOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasInt32
public boolean hasInt32()
.buf.validate.Int32Rules int32 = 3;- Specified by:
hasInt32in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the int32 field is set.
-
getInt32
public Int32Rules getInt32()
.buf.validate.Int32Rules int32 = 3;- Specified by:
getInt32in interfaceFieldConstraintsOrBuilder- Returns:
- The int32.
-
getInt32OrBuilder
public Int32RulesOrBuilder getInt32OrBuilder()
.buf.validate.Int32Rules int32 = 3;- Specified by:
getInt32OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasInt64
public boolean hasInt64()
.buf.validate.Int64Rules int64 = 4;- Specified by:
hasInt64in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the int64 field is set.
-
getInt64
public Int64Rules getInt64()
.buf.validate.Int64Rules int64 = 4;- Specified by:
getInt64in interfaceFieldConstraintsOrBuilder- Returns:
- The int64.
-
getInt64OrBuilder
public Int64RulesOrBuilder getInt64OrBuilder()
.buf.validate.Int64Rules int64 = 4;- Specified by:
getInt64OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasUint32
public boolean hasUint32()
.buf.validate.UInt32Rules uint32 = 5;- Specified by:
hasUint32in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the uint32 field is set.
-
getUint32
public UInt32Rules getUint32()
.buf.validate.UInt32Rules uint32 = 5;- Specified by:
getUint32in interfaceFieldConstraintsOrBuilder- Returns:
- The uint32.
-
getUint32OrBuilder
public UInt32RulesOrBuilder getUint32OrBuilder()
.buf.validate.UInt32Rules uint32 = 5;- Specified by:
getUint32OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasUint64
public boolean hasUint64()
.buf.validate.UInt64Rules uint64 = 6;- Specified by:
hasUint64in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the uint64 field is set.
-
getUint64
public UInt64Rules getUint64()
.buf.validate.UInt64Rules uint64 = 6;- Specified by:
getUint64in interfaceFieldConstraintsOrBuilder- Returns:
- The uint64.
-
getUint64OrBuilder
public UInt64RulesOrBuilder getUint64OrBuilder()
.buf.validate.UInt64Rules uint64 = 6;- Specified by:
getUint64OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasSint32
public boolean hasSint32()
.buf.validate.SInt32Rules sint32 = 7;- Specified by:
hasSint32in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the sint32 field is set.
-
getSint32
public SInt32Rules getSint32()
.buf.validate.SInt32Rules sint32 = 7;- Specified by:
getSint32in interfaceFieldConstraintsOrBuilder- Returns:
- The sint32.
-
getSint32OrBuilder
public SInt32RulesOrBuilder getSint32OrBuilder()
.buf.validate.SInt32Rules sint32 = 7;- Specified by:
getSint32OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasSint64
public boolean hasSint64()
.buf.validate.SInt64Rules sint64 = 8;- Specified by:
hasSint64in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the sint64 field is set.
-
getSint64
public SInt64Rules getSint64()
.buf.validate.SInt64Rules sint64 = 8;- Specified by:
getSint64in interfaceFieldConstraintsOrBuilder- Returns:
- The sint64.
-
getSint64OrBuilder
public SInt64RulesOrBuilder getSint64OrBuilder()
.buf.validate.SInt64Rules sint64 = 8;- Specified by:
getSint64OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasFixed32
public boolean hasFixed32()
.buf.validate.Fixed32Rules fixed32 = 9;- Specified by:
hasFixed32in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the fixed32 field is set.
-
getFixed32
public Fixed32Rules getFixed32()
.buf.validate.Fixed32Rules fixed32 = 9;- Specified by:
getFixed32in interfaceFieldConstraintsOrBuilder- Returns:
- The fixed32.
-
getFixed32OrBuilder
public Fixed32RulesOrBuilder getFixed32OrBuilder()
.buf.validate.Fixed32Rules fixed32 = 9;- Specified by:
getFixed32OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasFixed64
public boolean hasFixed64()
.buf.validate.Fixed64Rules fixed64 = 10;- Specified by:
hasFixed64in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the fixed64 field is set.
-
getFixed64
public Fixed64Rules getFixed64()
.buf.validate.Fixed64Rules fixed64 = 10;- Specified by:
getFixed64in interfaceFieldConstraintsOrBuilder- Returns:
- The fixed64.
-
getFixed64OrBuilder
public Fixed64RulesOrBuilder getFixed64OrBuilder()
.buf.validate.Fixed64Rules fixed64 = 10;- Specified by:
getFixed64OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasSfixed32
public boolean hasSfixed32()
.buf.validate.SFixed32Rules sfixed32 = 11;- Specified by:
hasSfixed32in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the sfixed32 field is set.
-
getSfixed32
public SFixed32Rules getSfixed32()
.buf.validate.SFixed32Rules sfixed32 = 11;- Specified by:
getSfixed32in interfaceFieldConstraintsOrBuilder- Returns:
- The sfixed32.
-
getSfixed32OrBuilder
public SFixed32RulesOrBuilder getSfixed32OrBuilder()
.buf.validate.SFixed32Rules sfixed32 = 11;- Specified by:
getSfixed32OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasSfixed64
public boolean hasSfixed64()
.buf.validate.SFixed64Rules sfixed64 = 12;- Specified by:
hasSfixed64in interfaceFieldConstraintsOrBuilder- Returns:
- Whether the sfixed64 field is set.
-
getSfixed64
public SFixed64Rules getSfixed64()
.buf.validate.SFixed64Rules sfixed64 = 12;- Specified by:
getSfixed64in interfaceFieldConstraintsOrBuilder- Returns:
- The sfixed64.
-
getSfixed64OrBuilder
public SFixed64RulesOrBuilder getSfixed64OrBuilder()
.buf.validate.SFixed64Rules sfixed64 = 12;- Specified by:
getSfixed64OrBuilderin interfaceFieldConstraintsOrBuilder
-
hasBool
public boolean hasBool()
.buf.validate.BoolRules bool = 13;- Specified by:
hasBoolin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the bool field is set.
-
getBool
public BoolRules getBool()
.buf.validate.BoolRules bool = 13;- Specified by:
getBoolin interfaceFieldConstraintsOrBuilder- Returns:
- The bool.
-
getBoolOrBuilder
public BoolRulesOrBuilder getBoolOrBuilder()
.buf.validate.BoolRules bool = 13;- Specified by:
getBoolOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasString
public boolean hasString()
.buf.validate.StringRules string = 14;- Specified by:
hasStringin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the string field is set.
-
getString
public StringRules getString()
.buf.validate.StringRules string = 14;- Specified by:
getStringin interfaceFieldConstraintsOrBuilder- Returns:
- The string.
-
getStringOrBuilder
public StringRulesOrBuilder getStringOrBuilder()
.buf.validate.StringRules string = 14;- Specified by:
getStringOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasBytes
public boolean hasBytes()
.buf.validate.BytesRules bytes = 15;- Specified by:
hasBytesin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the bytes field is set.
-
getBytes
public BytesRules getBytes()
.buf.validate.BytesRules bytes = 15;- Specified by:
getBytesin interfaceFieldConstraintsOrBuilder- Returns:
- The bytes.
-
getBytesOrBuilder
public BytesRulesOrBuilder getBytesOrBuilder()
.buf.validate.BytesRules bytes = 15;- Specified by:
getBytesOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasEnum
public boolean hasEnum()
Complex Field Types
.buf.validate.EnumRules enum = 16;- Specified by:
hasEnumin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the enum field is set.
-
getEnum
public EnumRules getEnum()
Complex Field Types
.buf.validate.EnumRules enum = 16;- Specified by:
getEnumin interfaceFieldConstraintsOrBuilder- Returns:
- The enum.
-
getEnumOrBuilder
public EnumRulesOrBuilder getEnumOrBuilder()
Complex Field Types
.buf.validate.EnumRules enum = 16;- Specified by:
getEnumOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasRepeated
public boolean hasRepeated()
.buf.validate.RepeatedRules repeated = 18;- Specified by:
hasRepeatedin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the repeated field is set.
-
getRepeated
public RepeatedRules getRepeated()
.buf.validate.RepeatedRules repeated = 18;- Specified by:
getRepeatedin interfaceFieldConstraintsOrBuilder- Returns:
- The repeated.
-
getRepeatedOrBuilder
public RepeatedRulesOrBuilder getRepeatedOrBuilder()
.buf.validate.RepeatedRules repeated = 18;- Specified by:
getRepeatedOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasMap
public boolean hasMap()
.buf.validate.MapRules map = 19;- Specified by:
hasMapin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the map field is set.
-
getMap
public MapRules getMap()
.buf.validate.MapRules map = 19;- Specified by:
getMapin interfaceFieldConstraintsOrBuilder- Returns:
- The map.
-
getMapOrBuilder
public MapRulesOrBuilder getMapOrBuilder()
.buf.validate.MapRules map = 19;- Specified by:
getMapOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasAny
public boolean hasAny()
Well-Known Field Types
.buf.validate.AnyRules any = 20;- Specified by:
hasAnyin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the any field is set.
-
getAny
public AnyRules getAny()
Well-Known Field Types
.buf.validate.AnyRules any = 20;- Specified by:
getAnyin interfaceFieldConstraintsOrBuilder- Returns:
- The any.
-
getAnyOrBuilder
public AnyRulesOrBuilder getAnyOrBuilder()
Well-Known Field Types
.buf.validate.AnyRules any = 20;- Specified by:
getAnyOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasDuration
public boolean hasDuration()
.buf.validate.DurationRules duration = 21;- Specified by:
hasDurationin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public DurationRules getDuration()
.buf.validate.DurationRules duration = 21;- Specified by:
getDurationin interfaceFieldConstraintsOrBuilder- Returns:
- The duration.
-
getDurationOrBuilder
public DurationRulesOrBuilder getDurationOrBuilder()
.buf.validate.DurationRules duration = 21;- Specified by:
getDurationOrBuilderin interfaceFieldConstraintsOrBuilder
-
hasTimestamp
public boolean hasTimestamp()
.buf.validate.TimestampRules timestamp = 22;- Specified by:
hasTimestampin interfaceFieldConstraintsOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public TimestampRules getTimestamp()
.buf.validate.TimestampRules timestamp = 22;- Specified by:
getTimestampin interfaceFieldConstraintsOrBuilder- Returns:
- The timestamp.
-
getTimestampOrBuilder
public TimestampRulesOrBuilder getTimestampOrBuilder()
.buf.validate.TimestampRules timestamp = 22;- Specified by:
getTimestampOrBuilderin interfaceFieldConstraintsOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldConstraints parseFrom(java.nio.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
public static FieldConstraints parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static FieldConstraints parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static FieldConstraints parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static FieldConstraints parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static FieldConstraints parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static FieldConstraints parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public FieldConstraints.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static FieldConstraints.Builder newBuilder()
-
newBuilder
public static FieldConstraints.Builder newBuilder(FieldConstraints prototype)
-
toBuilder
public FieldConstraints.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FieldConstraints.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static FieldConstraints getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<FieldConstraints> parser()
-
getParserForType
public com.google.protobuf.Parser<FieldConstraints> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public FieldConstraints getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-