Package build.buf.validate
Class FieldConstraints.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
build.buf.validate.FieldConstraints.Builder
- All Implemented Interfaces:
FieldConstraintsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FieldConstraints
public static final class FieldConstraints.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllCel(Iterable<? extends Constraint> values) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.addCel(int index, Constraint value) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.addCel(int index, Constraint.Builder builderForValue) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.addCel(Constraint value) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.addCel(Constraint.Builder builderForValue) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.`cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.addCelBuilder(int index) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearAny()Well-Known Field Types.buf.validate.BoolRules bool = 13 [json_name = "bool"];.buf.validate.BytesRules bytes = 15 [json_name = "bytes"];clearCel()`cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax..buf.validate.DoubleRules double = 2 [json_name = "double"];.buf.validate.DurationRules duration = 21 [json_name = "duration"];Complex Field TypesclearField(com.google.protobuf.Descriptors.FieldDescriptor field) .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];Scalar Field TypesSkip validation on the field if its value matches the specified criteria.Deprecated.buf.validate.FieldConstraints.ignore_empty is deprecated..buf.validate.Int32Rules int32 = 3 [json_name = "int32"];.buf.validate.Int64Rules int64 = 4 [json_name = "int64"];clearMap().buf.validate.MapRules map = 19 [json_name = "map"];clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];If `required` is true, the field must be populated..buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];Deprecated.buf.validate.FieldConstraints.skipped is deprecated..buf.validate.StringRules string = 14 [json_name = "string"];.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];clone()getAny()Well-Known Field TypesWell-Known Field TypesWell-Known Field TypesgetBool().buf.validate.BoolRules bool = 13 [json_name = "bool"];.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"];.buf.validate.BytesRules bytes = 15 [json_name = "bytes"];getCel(int index) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.getCelBuilder(int index) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.`cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.int`cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.`cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.getCelOrBuilder(int index) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.List<? extends ConstraintOrBuilder>`cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor.buf.validate.DoubleRules double = 2 [json_name = "double"];.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"];.buf.validate.DurationRules duration = 21 [json_name = "duration"];getEnum()Complex Field TypesComplex Field TypesComplex Field Types.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];.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"];.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];getFloat()Scalar Field TypesScalar Field TypesScalar Field TypesSkip validation on the field if its value matches the specified criteria.booleanDeprecated.buf.validate.FieldConstraints.ignore_empty is deprecated.intSkip validation on the field if its value matches the specified criteria.getInt32().buf.validate.Int32Rules int32 = 3 [json_name = "int32"];.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"];.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"];.buf.validate.MapRules map = 19 [json_name = "map"];.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];booleanIf `required` is true, the field must be populated..buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];.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.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];.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"];.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];booleanDeprecated.buf.validate.FieldConstraints.skipped is deprecated..buf.validate.StringRules string = 14 [json_name = "string"];.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.TimestampRules timestamp = 22 [json_name = "timestamp"];.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];.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"];.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 TypesbooleanhasInt32().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 booleanWell-Known Field Types.buf.validate.BoolRules bool = 13 [json_name = "bool"];mergeBytes(BytesRules value) .buf.validate.BytesRules bytes = 15 [json_name = "bytes"];mergeDouble(DoubleRules value) .buf.validate.DoubleRules double = 2 [json_name = "double"];mergeDuration(DurationRules value) .buf.validate.DurationRules duration = 21 [json_name = "duration"];Complex Field TypesmergeFixed32(Fixed32Rules value) .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];mergeFixed64(Fixed64Rules value) .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];mergeFloat(FloatRules value) Scalar Field TypesmergeFrom(FieldConstraints other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInt32(Int32Rules value) .buf.validate.Int32Rules int32 = 3 [json_name = "int32"];mergeInt64(Int64Rules value) .buf.validate.Int64Rules int64 = 4 [json_name = "int64"];.buf.validate.MapRules map = 19 [json_name = "map"];mergeRepeated(RepeatedRules value) .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];mergeSfixed32(SFixed32Rules value) .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];mergeSfixed64(SFixed64Rules value) .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];mergeSint32(SInt32Rules value) .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];mergeSint64(SInt64Rules value) .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];mergeString(StringRules value) .buf.validate.StringRules string = 14 [json_name = "string"];mergeTimestamp(TimestampRules value) .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];mergeUint32(UInt32Rules value) .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];mergeUint64(UInt64Rules value) .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];final FieldConstraints.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeCel(int index) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.Well-Known Field TypessetAny(AnyRules.Builder builderForValue) Well-Known Field Types.buf.validate.BoolRules bool = 13 [json_name = "bool"];setBool(BoolRules.Builder builderForValue) .buf.validate.BoolRules bool = 13 [json_name = "bool"];setBytes(BytesRules value) .buf.validate.BytesRules bytes = 15 [json_name = "bytes"];setBytes(BytesRules.Builder builderForValue) .buf.validate.BytesRules bytes = 15 [json_name = "bytes"];setCel(int index, Constraint value) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.setCel(int index, Constraint.Builder builderForValue) `cel` is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax.setDouble(DoubleRules value) .buf.validate.DoubleRules double = 2 [json_name = "double"];setDouble(DoubleRules.Builder builderForValue) .buf.validate.DoubleRules double = 2 [json_name = "double"];setDuration(DurationRules value) .buf.validate.DurationRules duration = 21 [json_name = "duration"];setDuration(DurationRules.Builder builderForValue) .buf.validate.DurationRules duration = 21 [json_name = "duration"];Complex Field TypessetEnum(EnumRules.Builder builderForValue) Complex Field TypessetFixed32(Fixed32Rules value) .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];setFixed32(Fixed32Rules.Builder builderForValue) .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];setFixed64(Fixed64Rules value) .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];setFixed64(Fixed64Rules.Builder builderForValue) .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];setFloat(FloatRules value) Scalar Field TypessetFloat(FloatRules.Builder builderForValue) Scalar Field TypesSkip validation on the field if its value matches the specified criteria.setIgnoreEmpty(boolean value) Deprecated.buf.validate.FieldConstraints.ignore_empty is deprecated.setIgnoreValue(int value) Skip validation on the field if its value matches the specified criteria.setInt32(Int32Rules value) .buf.validate.Int32Rules int32 = 3 [json_name = "int32"];setInt32(Int32Rules.Builder builderForValue) .buf.validate.Int32Rules int32 = 3 [json_name = "int32"];setInt64(Int64Rules value) .buf.validate.Int64Rules int64 = 4 [json_name = "int64"];setInt64(Int64Rules.Builder builderForValue) .buf.validate.Int64Rules int64 = 4 [json_name = "int64"];.buf.validate.MapRules map = 19 [json_name = "map"];setMap(MapRules.Builder builderForValue) .buf.validate.MapRules map = 19 [json_name = "map"];setRepeated(RepeatedRules value) .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];setRepeated(RepeatedRules.Builder builderForValue) .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequired(boolean value) If `required` is true, the field must be populated.setSfixed32(SFixed32Rules value) .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];setSfixed32(SFixed32Rules.Builder builderForValue) .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];setSfixed64(SFixed64Rules value) .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];setSfixed64(SFixed64Rules.Builder builderForValue) .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];setSint32(SInt32Rules value) .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];setSint32(SInt32Rules.Builder builderForValue) .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];setSint64(SInt64Rules value) .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];setSint64(SInt64Rules.Builder builderForValue) .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];setSkipped(boolean value) Deprecated.buf.validate.FieldConstraints.skipped is deprecated.setString(StringRules value) .buf.validate.StringRules string = 14 [json_name = "string"];setString(StringRules.Builder builderForValue) .buf.validate.StringRules string = 14 [json_name = "string"];setTimestamp(TimestampRules value) .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];setTimestamp(TimestampRules.Builder builderForValue) .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];setUint32(UInt32Rules value) .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];setUint32(UInt32Rules.Builder builderForValue) .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];setUint64(UInt64Rules value) .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];setUint64(UInt64Rules.Builder builderForValue) .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];final FieldConstraints.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<FieldConstraints.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
-
setField
public FieldConstraints.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
-
setRepeatedField
public FieldConstraints.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
-
addRepeatedField
public FieldConstraints.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FieldConstraints.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
-
mergeFrom
public FieldConstraints.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FieldConstraints.Builder>- Throws:
IOException
-
getTypeCase
- Specified by:
getTypeCasein interfaceFieldConstraintsOrBuilder
-
clearType
-
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"];- Specified by:
getCelListin 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 [json_name = "cel"];- Specified by:
getCelCountin interfaceFieldConstraintsOrBuilder
-
getCel
`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"];- Specified by:
getCelin interfaceFieldConstraintsOrBuilder
-
setCel
`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"]; -
setCel
`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"]; -
addCel
`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"]; -
addCel
`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"]; -
addCel
`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"]; -
addCel
`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"]; -
addAllCel
`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"]; -
clearCel
`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"]; -
removeCel
`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"]; -
getCelBuilder
`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
`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"];- Specified by:
getCelOrBuilderin interfaceFieldConstraintsOrBuilder
-
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"];- Specified by:
getCelOrBuilderListin interfaceFieldConstraintsOrBuilder
-
addCelBuilder
`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"]; -
addCelBuilder
`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"]; -
getCelBuilderList
`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"]; -
getRequired
public boolean getRequired()If `required` is true, the field must be populated. A populated field can be described as "serialized in the wire format," which includes: - the following "nullable" fields must be explicitly set to be considered populated: - singular message fields (whose fields may be unpopulated/default values) - member fields of a oneof (may be their default value) - proto3 optional fields (may be their default value) - proto2 scalar fields (both optional and required) - proto3 scalar fields must be non-zero to be considered populated - repeated and map fields must be non-empty to be considered populated ```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"];- Specified by:
getRequiredin interfaceFieldConstraintsOrBuilder- Returns:
- The required.
-
setRequired
If `required` is true, the field must be populated. A populated field can be described as "serialized in the wire format," which includes: - the following "nullable" fields must be explicitly set to be considered populated: - singular message fields (whose fields may be unpopulated/default values) - member fields of a oneof (may be their default value) - proto3 optional fields (may be their default value) - proto2 scalar fields (both optional and required) - proto3 scalar fields must be non-zero to be considered populated - repeated and map fields must be non-empty to be considered populated ```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"];- Parameters:
value- The required to set.- Returns:
- This builder for chaining.
-
clearRequired
If `required` is true, the field must be populated. A populated field can be described as "serialized in the wire format," which includes: - the following "nullable" fields must be explicitly set to be considered populated: - singular message fields (whose fields may be unpopulated/default values) - member fields of a oneof (may be their default value) - proto3 optional fields (may be their default value) - proto2 scalar fields (both optional and required) - proto3 scalar fields must be non-zero to be considered populated - repeated and map fields must be non-empty to be considered populated ```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"];- Returns:
- This builder for chaining.
-
getIgnoreValue
public int getIgnoreValue()Skip validation on the field if its value matches the specified criteria. See Ignore enum for details. ```proto message UpdateRequest { // The uri rule only applies if the field is populated and not an empty // string. optional string url = 1 [ (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE, (buf.validate.field).string.uri = true, ]; } ```.buf.validate.Ignore ignore = 27 [json_name = "ignore"];- Specified by:
getIgnoreValuein interfaceFieldConstraintsOrBuilder- Returns:
- The enum numeric value on the wire for ignore.
-
setIgnoreValue
Skip validation on the field if its value matches the specified criteria. See Ignore enum for details. ```proto message UpdateRequest { // The uri rule only applies if the field is populated and not an empty // string. optional string url = 1 [ (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE, (buf.validate.field).string.uri = true, ]; } ```.buf.validate.Ignore ignore = 27 [json_name = "ignore"];- Parameters:
value- The enum numeric value on the wire for ignore to set.- Returns:
- This builder for chaining.
-
getIgnore
Skip validation on the field if its value matches the specified criteria. See Ignore enum for details. ```proto message UpdateRequest { // The uri rule only applies if the field is populated and not an empty // string. optional string url = 1 [ (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE, (buf.validate.field).string.uri = true, ]; } ```.buf.validate.Ignore ignore = 27 [json_name = "ignore"];- Specified by:
getIgnorein interfaceFieldConstraintsOrBuilder- Returns:
- The ignore.
-
setIgnore
Skip validation on the field if its value matches the specified criteria. See Ignore enum for details. ```proto message UpdateRequest { // The uri rule only applies if the field is populated and not an empty // string. optional string url = 1 [ (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE, (buf.validate.field).string.uri = true, ]; } ```.buf.validate.Ignore ignore = 27 [json_name = "ignore"];- Parameters:
value- The ignore to set.- Returns:
- This builder for chaining.
-
clearIgnore
Skip validation on the field if its value matches the specified criteria. See Ignore enum for details. ```proto message UpdateRequest { // The uri rule only applies if the field is populated and not an empty // string. optional string url = 1 [ (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE, (buf.validate.field).string.uri = true, ]; } ```.buf.validate.Ignore ignore = 27 [json_name = "ignore"];- Returns:
- This builder for chaining.
-
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.
-
setFloat
Scalar Field Types
.buf.validate.FloatRules float = 1 [json_name = "float"]; -
setFloat
Scalar Field Types
.buf.validate.FloatRules float = 1 [json_name = "float"]; -
mergeFloat
Scalar Field Types
.buf.validate.FloatRules float = 1 [json_name = "float"]; -
clearFloat
Scalar Field Types
.buf.validate.FloatRules float = 1 [json_name = "float"]; -
getFloatBuilder
Scalar Field Types
.buf.validate.FloatRules float = 1 [json_name = "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.
-
setDouble
.buf.validate.DoubleRules double = 2 [json_name = "double"]; -
setDouble
.buf.validate.DoubleRules double = 2 [json_name = "double"]; -
mergeDouble
.buf.validate.DoubleRules double = 2 [json_name = "double"]; -
clearDouble
.buf.validate.DoubleRules double = 2 [json_name = "double"]; -
getDoubleBuilder
.buf.validate.DoubleRules double = 2 [json_name = "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.
-
setInt32
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; -
setInt32
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; -
mergeInt32
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; -
clearInt32
.buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; -
getInt32Builder
.buf.validate.Int32Rules int32 = 3 [json_name = "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.
-
setInt64
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; -
setInt64
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; -
mergeInt64
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; -
clearInt64
.buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; -
getInt64Builder
.buf.validate.Int64Rules int64 = 4 [json_name = "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.
-
setUint32
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; -
setUint32
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; -
mergeUint32
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; -
clearUint32
.buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; -
getUint32Builder
.buf.validate.UInt32Rules uint32 = 5 [json_name = "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.
-
setUint64
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; -
setUint64
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; -
mergeUint64
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; -
clearUint64
.buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; -
getUint64Builder
.buf.validate.UInt64Rules uint64 = 6 [json_name = "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.
-
setSint32
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; -
setSint32
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; -
mergeSint32
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; -
clearSint32
.buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; -
getSint32Builder
.buf.validate.SInt32Rules sint32 = 7 [json_name = "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.
-
setSint64
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; -
setSint64
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; -
mergeSint64
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; -
clearSint64
.buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; -
getSint64Builder
.buf.validate.SInt64Rules sint64 = 8 [json_name = "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.
-
setFixed32
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; -
setFixed32
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; -
mergeFixed32
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; -
clearFixed32
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; -
getFixed32Builder
.buf.validate.Fixed32Rules fixed32 = 9 [json_name = "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.
-
setFixed64
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; -
setFixed64
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; -
mergeFixed64
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; -
clearFixed64
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; -
getFixed64Builder
.buf.validate.Fixed64Rules fixed64 = 10 [json_name = "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.
-
setSfixed32
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; -
setSfixed32
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; -
mergeSfixed32
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; -
clearSfixed32
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; -
getSfixed32Builder
.buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "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.
-
setSfixed64
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; -
setSfixed64
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; -
mergeSfixed64
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; -
clearSfixed64
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; -
getSfixed64Builder
.buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "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.
-
setBool
.buf.validate.BoolRules bool = 13 [json_name = "bool"]; -
setBool
.buf.validate.BoolRules bool = 13 [json_name = "bool"]; -
mergeBool
.buf.validate.BoolRules bool = 13 [json_name = "bool"]; -
clearBool
.buf.validate.BoolRules bool = 13 [json_name = "bool"]; -
getBoolBuilder
.buf.validate.BoolRules bool = 13 [json_name = "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.
-
setString
.buf.validate.StringRules string = 14 [json_name = "string"]; -
setString
.buf.validate.StringRules string = 14 [json_name = "string"]; -
mergeString
.buf.validate.StringRules string = 14 [json_name = "string"]; -
clearString
.buf.validate.StringRules string = 14 [json_name = "string"]; -
getStringBuilder
.buf.validate.StringRules string = 14 [json_name = "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.
-
setBytes
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; -
setBytes
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; -
mergeBytes
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; -
clearBytes
.buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; -
getBytesBuilder
.buf.validate.BytesRules bytes = 15 [json_name = "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.
-
setEnum
Complex Field Types
.buf.validate.EnumRules enum = 16 [json_name = "enum"]; -
setEnum
Complex Field Types
.buf.validate.EnumRules enum = 16 [json_name = "enum"]; -
mergeEnum
Complex Field Types
.buf.validate.EnumRules enum = 16 [json_name = "enum"]; -
clearEnum
Complex Field Types
.buf.validate.EnumRules enum = 16 [json_name = "enum"]; -
getEnumBuilder
Complex Field Types
.buf.validate.EnumRules enum = 16 [json_name = "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.
-
setRepeated
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; -
setRepeated
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; -
mergeRepeated
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; -
clearRepeated
.buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; -
getRepeatedBuilder
.buf.validate.RepeatedRules repeated = 18 [json_name = "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.
-
setMap
.buf.validate.MapRules map = 19 [json_name = "map"]; -
setMap
.buf.validate.MapRules map = 19 [json_name = "map"]; -
mergeMap
.buf.validate.MapRules map = 19 [json_name = "map"]; -
clearMap
.buf.validate.MapRules map = 19 [json_name = "map"]; -
getMapBuilder
.buf.validate.MapRules map = 19 [json_name = "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.
-
setAny
Well-Known Field Types
.buf.validate.AnyRules any = 20 [json_name = "any"]; -
setAny
Well-Known Field Types
.buf.validate.AnyRules any = 20 [json_name = "any"]; -
mergeAny
Well-Known Field Types
.buf.validate.AnyRules any = 20 [json_name = "any"]; -
clearAny
Well-Known Field Types
.buf.validate.AnyRules any = 20 [json_name = "any"]; -
getAnyBuilder
Well-Known Field Types
.buf.validate.AnyRules any = 20 [json_name = "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.
-
setDuration
.buf.validate.DurationRules duration = 21 [json_name = "duration"]; -
setDuration
.buf.validate.DurationRules duration = 21 [json_name = "duration"]; -
mergeDuration
.buf.validate.DurationRules duration = 21 [json_name = "duration"]; -
clearDuration
.buf.validate.DurationRules duration = 21 [json_name = "duration"]; -
getDurationBuilder
.buf.validate.DurationRules duration = 21 [json_name = "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.
-
setTimestamp
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; -
setTimestamp
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; -
mergeTimestamp
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; -
clearTimestamp
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; -
getTimestampBuilder
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; -
getTimestampOrBuilder
.buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];- Specified by:
getTimestampOrBuilderin interfaceFieldConstraintsOrBuilder
-
getSkipped
Deprecated.buf.validate.FieldConstraints.skipped is deprecated. See buf/validate/validate.proto;l=196DEPRECATED: use ignore=IGNORE_ALWAYS instead. TODO: remove this field pre-v1.
bool skipped = 24 [json_name = "skipped", deprecated = true];- Specified by:
getSkippedin interfaceFieldConstraintsOrBuilder- Returns:
- The skipped.
-
setSkipped
Deprecated.buf.validate.FieldConstraints.skipped is deprecated. See buf/validate/validate.proto;l=196DEPRECATED: use ignore=IGNORE_ALWAYS instead. TODO: remove this field pre-v1.
bool skipped = 24 [json_name = "skipped", deprecated = true];- Parameters:
value- The skipped to set.- Returns:
- This builder for chaining.
-
clearSkipped
Deprecated.buf.validate.FieldConstraints.skipped is deprecated. See buf/validate/validate.proto;l=196DEPRECATED: use ignore=IGNORE_ALWAYS instead. TODO: remove this field pre-v1.
bool skipped = 24 [json_name = "skipped", deprecated = true];- Returns:
- This builder for chaining.
-
getIgnoreEmpty
Deprecated.buf.validate.FieldConstraints.ignore_empty is deprecated. See buf/validate/validate.proto;l=198DEPRECATED: use ignore=IGNORE_IF_UNPOPULATED instead. TODO: remove this field pre-v1.
bool ignore_empty = 26 [json_name = "ignoreEmpty", deprecated = true];- Specified by:
getIgnoreEmptyin interfaceFieldConstraintsOrBuilder- Returns:
- The ignoreEmpty.
-
setIgnoreEmpty
Deprecated.buf.validate.FieldConstraints.ignore_empty is deprecated. See buf/validate/validate.proto;l=198DEPRECATED: use ignore=IGNORE_IF_UNPOPULATED instead. TODO: remove this field pre-v1.
bool ignore_empty = 26 [json_name = "ignoreEmpty", deprecated = true];- Parameters:
value- The ignoreEmpty to set.- Returns:
- This builder for chaining.
-
clearIgnoreEmpty
Deprecated.buf.validate.FieldConstraints.ignore_empty is deprecated. See buf/validate/validate.proto;l=198DEPRECATED: use ignore=IGNORE_IF_UNPOPULATED instead. TODO: remove this field pre-v1.
bool ignore_empty = 26 [json_name = "ignoreEmpty", deprecated = true];- Returns:
- This builder for chaining.
-
setUnknownFields
public final FieldConstraints.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
-
mergeUnknownFields
public final FieldConstraints.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldConstraints.Builder>
-