Package io.envoyproxy.pgv.validate
Class Validate.RepeatedRules.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.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` values
Protobuf typevalidate.RepeatedRules
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Validate.RepeatedRules.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Validate.RepeatedRulesbuild()Validate.RepeatedRulesbuildPartial()Validate.RepeatedRules.Builderclear()Validate.RepeatedRules.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Validate.RepeatedRules.BuilderclearIgnoreEmpty()IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.RepeatedRules.BuilderclearItems()Items specifies the contraints to be applied to each item in the field.Validate.RepeatedRules.BuilderclearMaxItems()MaxItems specifies that this field must have the specified number of items at a maximumValidate.RepeatedRules.BuilderclearMinItems()MinItems specifies that this field must have the specified number of items at a minimumValidate.RepeatedRules.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Validate.RepeatedRules.BuilderclearUnique()Unique specifies that all elements in this field must be unique.Validate.RepeatedRules.Builderclone()Validate.RepeatedRulesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetIgnoreEmpty()IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.FieldRulesgetItems()Items specifies the contraints to be applied to each item in the field.Validate.FieldRules.BuildergetItemsBuilder()Items specifies the contraints to be applied to each item in the field.Validate.FieldRulesOrBuildergetItemsOrBuilder()Items specifies the contraints to be applied to each item in the field.longgetMaxItems()MaxItems specifies that this field must have the specified number of items at a maximumlonggetMinItems()MinItems specifies that this field must have the specified number of items at a minimumbooleangetUnique()Unique specifies that all elements in this field must be unique.booleanhasIgnoreEmpty()IgnoreEmpty 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.booleanhasMaxItems()MaxItems specifies that this field must have the specified number of items at a maximumbooleanhasMinItems()MinItems specifies that this field must have the specified number of items at a minimumbooleanhasUnique()Unique specifies that all elements in this field must be unique.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Validate.RepeatedRules.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Validate.RepeatedRules.BuildermergeFrom(com.google.protobuf.Message other)Validate.RepeatedRules.BuildermergeFrom(Validate.RepeatedRules other)Validate.RepeatedRules.BuildermergeItems(Validate.FieldRules value)Items specifies the contraints to be applied to each item in the field.Validate.RepeatedRules.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Validate.RepeatedRules.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Validate.RepeatedRules.BuildersetIgnoreEmpty(boolean value)IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.RepeatedRules.BuildersetItems(Validate.FieldRules value)Items specifies the contraints to be applied to each item in the field.Validate.RepeatedRules.BuildersetItems(Validate.FieldRules.Builder builderForValue)Items specifies the contraints to be applied to each item in the field.Validate.RepeatedRules.BuildersetMaxItems(long value)MaxItems specifies that this field must have the specified number of items at a maximumValidate.RepeatedRules.BuildersetMinItems(long value)MinItems specifies that this field must have the specified number of items at a minimumValidate.RepeatedRules.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Validate.RepeatedRules.BuildersetUnique(boolean value)Unique specifies that all elements in this field must be unique.Validate.RepeatedRules.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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public Validate.RepeatedRules getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Validate.RepeatedRules build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Validate.RepeatedRules buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Validate.RepeatedRules.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, java.lang.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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.RepeatedRules.Builder>
-
mergeFrom
public Validate.RepeatedRules.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.RepeatedRules.Builder>
-
mergeFrom
public Validate.RepeatedRules.Builder mergeFrom(Validate.RepeatedRules other)
-
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 java.io.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:
java.io.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
public Validate.RepeatedRules.Builder setMinItems(long value)
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
public Validate.RepeatedRules.Builder 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
public Validate.RepeatedRules.Builder setMaxItems(long value)
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
public Validate.RepeatedRules.Builder 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
public Validate.RepeatedRules.Builder setUnique(boolean value)
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
public Validate.RepeatedRules.Builder 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
public Validate.FieldRules 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
public Validate.RepeatedRules.Builder setItems(Validate.FieldRules value)
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
public Validate.RepeatedRules.Builder setItems(Validate.FieldRules.Builder builderForValue)
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
public Validate.RepeatedRules.Builder mergeItems(Validate.FieldRules value)
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
public Validate.RepeatedRules.Builder 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
public Validate.FieldRules.Builder 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
public Validate.FieldRulesOrBuilder 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
public Validate.RepeatedRules.Builder setIgnoreEmpty(boolean value)
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
public Validate.RepeatedRules.Builder 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>
-
-