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.GeneratedMessage.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.GeneratedMessage.Builder<Validate.RepeatedRules.Builder> implements Validate.RepeatedRulesOrBuilder
RepeatedRules describe the constraints applied to `repeated` values
Protobuf typevalidate.RepeatedRules
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private boolean
ignoreEmpty_
private Validate.FieldRules
items_
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder,Validate.FieldRulesOrBuilder>
itemsBuilder_
private long
maxItems_
private long
minItems_
private boolean
unique_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Validate.RepeatedRules
build()
Validate.RepeatedRules
buildPartial()
private void
buildPartial0(Validate.RepeatedRules result)
Validate.RepeatedRules.Builder
clear()
Validate.RepeatedRules.Builder
clearIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.RepeatedRules.Builder
clearItems()
Items specifies the contraints to be applied to each item in the field.Validate.RepeatedRules.Builder
clearMaxItems()
MaxItems specifies that this field must have the specified number of items at a maximumValidate.RepeatedRules.Builder
clearMinItems()
MinItems specifies that this field must have the specified number of items at a minimumValidate.RepeatedRules.Builder
clearUnique()
Unique specifies that all elements in this field must be unique.Validate.RepeatedRules
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.FieldRules
getItems()
Items specifies the contraints to be applied to each item in the field.Validate.FieldRules.Builder
getItemsBuilder()
Items specifies the contraints to be applied to each item in the field.private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder,Validate.FieldRulesOrBuilder>
getItemsFieldBuilder()
Items specifies the contraints to be applied to each item in the field.Validate.FieldRulesOrBuilder
getItemsOrBuilder()
Items specifies the contraints to be applied to each item in the field.long
getMaxItems()
MaxItems specifies that this field must have the specified number of items at a maximumlong
getMinItems()
MinItems specifies that this field must have the specified number of items at a minimumboolean
getUnique()
Unique specifies that all elements in this field must be unique.boolean
hasIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyboolean
hasItems()
Items specifies the contraints to be applied to each item in the field.boolean
hasMaxItems()
MaxItems specifies that this field must have the specified number of items at a maximumboolean
hasMinItems()
MinItems specifies that this field must have the specified number of items at a minimumboolean
hasUnique()
Unique specifies that all elements in this field must be unique.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
Validate.RepeatedRules.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Validate.RepeatedRules.Builder
mergeFrom(com.google.protobuf.Message other)
Validate.RepeatedRules.Builder
mergeFrom(Validate.RepeatedRules other)
Validate.RepeatedRules.Builder
mergeItems(Validate.FieldRules value)
Items specifies the contraints to be applied to each item in the field.Validate.RepeatedRules.Builder
setIgnoreEmpty(boolean value)
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.RepeatedRules.Builder
setItems(Validate.FieldRules value)
Items specifies the contraints to be applied to each item in the field.Validate.RepeatedRules.Builder
setItems(Validate.FieldRules.Builder builderForValue)
Items specifies the contraints to be applied to each item in the field.Validate.RepeatedRules.Builder
setMaxItems(long value)
MaxItems specifies that this field must have the specified number of items at a maximumValidate.RepeatedRules.Builder
setMinItems(long value)
MinItems specifies that this field must have the specified number of items at a minimumValidate.RepeatedRules.Builder
setUnique(boolean value)
Unique specifies that all elements in this field must be unique.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
minItems_
private long minItems_
-
maxItems_
private long maxItems_
-
unique_
private boolean unique_
-
items_
private Validate.FieldRules items_
-
itemsBuilder_
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder,Validate.FieldRulesOrBuilder> itemsBuilder_
-
ignoreEmpty_
private boolean ignoreEmpty_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.RepeatedRules.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public Validate.RepeatedRules.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.RepeatedRules.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.RepeatedRules.Builder>
-
getDefaultInstanceForType
public Validate.RepeatedRules getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Validate.RepeatedRules build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Validate.RepeatedRules buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Validate.RepeatedRules result)
-
mergeFrom
public Validate.RepeatedRules.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Validate.RepeatedRules.Builder>
-
mergeFrom
public Validate.RepeatedRules.Builder mergeFrom(Validate.RepeatedRules other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasMinItems
in 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:
getMinItems
in 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:
hasMaxItems
in 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:
getMaxItems
in 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:
hasUnique
in 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:
getUnique
in 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:
hasItems
in 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:
getItems
in 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:
getItemsOrBuilder
in interfaceValidate.RepeatedRulesOrBuilder
-
getItemsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder,Validate.FieldRulesOrBuilder> getItemsFieldBuilder()
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;
-
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:
hasIgnoreEmpty
in 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:
getIgnoreEmpty
in 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.
-
-