Package io.envoyproxy.pgv.validate
Class Validate.RepeatedRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Validate.RepeatedRules.Builder>
io.envoyproxy.pgv.validate.Validate.RepeatedRules.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Validate.RepeatedRulesOrBuilder,Cloneable
- Enclosing class:
- Validate.RepeatedRules
public static final class Validate.RepeatedRules.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.RepeatedRules.Builder>
implements Validate.RepeatedRulesOrBuilder
RepeatedRules describe the constraints applied to `repeated` valuesProtobuf type
validate.RepeatedRules-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyItems specifies the contraints to be applied to each item in the field.MaxItems specifies that this field must have the specified number of items at a maximumMinItems specifies that this field must have the specified number of items at a minimumclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Unique specifies that all elements in this field must be unique.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptygetItems()Items specifies the contraints to be applied to each item in the field.Items specifies the contraints to be applied to each item in the field.Items specifies the contraints to be applied to each item in the field.longMaxItems specifies that this field must have the specified number of items at a maximumlongMinItems specifies that this field must have the specified number of items at a minimumbooleanUnique specifies that all elements in this field must be unique.booleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptybooleanhasItems()Items specifies the contraints to be applied to each item in the field.booleanMaxItems specifies that this field must have the specified number of items at a maximumbooleanMinItems specifies that this field must have the specified number of items at a minimumbooleanUnique specifies that all elements in this field must be unique.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Validate.RepeatedRules other) mergeItems(Validate.FieldRules value) Items specifies the contraints to be applied to each item in the field.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setIgnoreEmpty(boolean value) IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptysetItems(Validate.FieldRules value) Items specifies the contraints to be applied to each item in the field.setItems(Validate.FieldRules.Builder builderForValue) Items specifies the contraints to be applied to each item in the field.setMaxItems(long value) MaxItems specifies that this field must have the specified number of items at a maximumsetMinItems(long value) MinItems specifies that this field must have the specified number of items at a minimumsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnique(boolean value) Unique specifies that all elements in this field must be unique.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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<Validate.RepeatedRules.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<Validate.RepeatedRules.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<Validate.RepeatedRules.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<Validate.RepeatedRules.Builder>
-
setField
public Validate.RepeatedRules.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<Validate.RepeatedRules.Builder>
-
clearField
public Validate.RepeatedRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.RepeatedRules.Builder>
-
clearOneof
public Validate.RepeatedRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.RepeatedRules.Builder>
-
setRepeatedField
public Validate.RepeatedRules.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<Validate.RepeatedRules.Builder>
-
addRepeatedField
public Validate.RepeatedRules.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<Validate.RepeatedRules.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.RepeatedRules.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.RepeatedRules.Builder>
-
mergeFrom
public Validate.RepeatedRules.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<Validate.RepeatedRules.Builder>- Throws:
IOException
-
hasMinItems
public boolean hasMinItems()MinItems specifies that this field must have the specified number of items at a minimum
optional uint64 min_items = 1;- Specified by:
hasMinItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- Whether the minItems field is set.
-
getMinItems
public long getMinItems()MinItems specifies that this field must have the specified number of items at a minimum
optional uint64 min_items = 1;- Specified by:
getMinItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- The minItems.
-
setMinItems
MinItems specifies that this field must have the specified number of items at a minimum
optional uint64 min_items = 1;- Parameters:
value- The minItems to set.- Returns:
- This builder for chaining.
-
clearMinItems
MinItems specifies that this field must have the specified number of items at a minimum
optional uint64 min_items = 1;- Returns:
- This builder for chaining.
-
hasMaxItems
public boolean hasMaxItems()MaxItems specifies that this field must have the specified number of items at a maximum
optional uint64 max_items = 2;- Specified by:
hasMaxItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- Whether the maxItems field is set.
-
getMaxItems
public long getMaxItems()MaxItems specifies that this field must have the specified number of items at a maximum
optional uint64 max_items = 2;- Specified by:
getMaxItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- The maxItems.
-
setMaxItems
MaxItems specifies that this field must have the specified number of items at a maximum
optional uint64 max_items = 2;- Parameters:
value- The maxItems to set.- Returns:
- This builder for chaining.
-
clearMaxItems
MaxItems specifies that this field must have the specified number of items at a maximum
optional uint64 max_items = 2;- Returns:
- This builder for chaining.
-
hasUnique
public boolean hasUnique()Unique specifies that all elements in this field must be unique. This contraint is only applicable to scalar and enum types (messages are not supported).
optional bool unique = 3;- Specified by:
hasUniquein interfaceValidate.RepeatedRulesOrBuilder- Returns:
- Whether the unique field is set.
-
getUnique
public boolean getUnique()Unique specifies that all elements in this field must be unique. This contraint is only applicable to scalar and enum types (messages are not supported).
optional bool unique = 3;- Specified by:
getUniquein interfaceValidate.RepeatedRulesOrBuilder- Returns:
- The unique.
-
setUnique
Unique specifies that all elements in this field must be unique. This contraint is only applicable to scalar and enum types (messages are not supported).
optional bool unique = 3;- Parameters:
value- The unique to set.- Returns:
- This builder for chaining.
-
clearUnique
Unique specifies that all elements in this field must be unique. This contraint is only applicable to scalar and enum types (messages are not supported).
optional bool unique = 3;- Returns:
- This builder for chaining.
-
hasItems
public boolean hasItems()Items specifies the contraints to be applied to each item in the field. Repeated message fields will still execute validation against each item unless skip is specified here.
optional .validate.FieldRules items = 4;- Specified by:
hasItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- Whether the items field is set.
-
getItems
Items specifies the contraints to be applied to each item in the field. Repeated message fields will still execute validation against each item unless skip is specified here.
optional .validate.FieldRules items = 4;- Specified by:
getItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- The items.
-
setItems
Items specifies the contraints to be applied to each item in the field. Repeated message fields will still execute validation against each item unless skip is specified here.
optional .validate.FieldRules items = 4; -
setItems
Items specifies the contraints to be applied to each item in the field. Repeated message fields will still execute validation against each item unless skip is specified here.
optional .validate.FieldRules items = 4; -
mergeItems
Items specifies the contraints to be applied to each item in the field. Repeated message fields will still execute validation against each item unless skip is specified here.
optional .validate.FieldRules items = 4; -
clearItems
Items specifies the contraints to be applied to each item in the field. Repeated message fields will still execute validation against each item unless skip is specified here.
optional .validate.FieldRules items = 4; -
getItemsBuilder
Items specifies the contraints to be applied to each item in the field. Repeated message fields will still execute validation against each item unless skip is specified here.
optional .validate.FieldRules items = 4; -
getItemsOrBuilder
Items specifies the contraints to be applied to each item in the field. Repeated message fields will still execute validation against each item unless skip is specified here.
optional .validate.FieldRules items = 4;- Specified by:
getItemsOrBuilderin interfaceValidate.RepeatedRulesOrBuilder
-
hasIgnoreEmpty
public boolean hasIgnoreEmpty()IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 5;- Specified by:
hasIgnoreEmptyin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- Whether the ignoreEmpty field is set.
-
getIgnoreEmpty
public boolean getIgnoreEmpty()IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 5;- Specified by:
getIgnoreEmptyin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- The ignoreEmpty.
-
setIgnoreEmpty
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 5;- Parameters:
value- The ignoreEmpty to set.- Returns:
- This builder for chaining.
-
clearIgnoreEmpty
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Validate.RepeatedRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.RepeatedRules.Builder>
-
mergeUnknownFields
public final Validate.RepeatedRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.RepeatedRules.Builder>
-