Package io.envoyproxy.pgv.validate
Class Validate.RepeatedRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Validate.RepeatedRules.Builder>
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
,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` valuesProtobuf type
validate.RepeatedRules
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private boolean
private Validate.FieldRules
private com.google.protobuf.SingleFieldBuilder
<Validate.FieldRules, Validate.FieldRules.Builder, Validate.FieldRulesOrBuilder> private long
private long
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(Validate.RepeatedRules result) clear()
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 minimumUnique specifies that all elements in this field must be unique.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
IgnoreEmpty 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.private com.google.protobuf.SingleFieldBuilder
<Validate.FieldRules, Validate.FieldRules.Builder, Validate.FieldRulesOrBuilder> 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.long
MaxItems specifies that this field must have the specified number of items at a maximumlong
MinItems specifies that this field must have the specified number of items at a minimumboolean
Unique specifies that all elements in this field must be unique.boolean
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
MaxItems specifies that this field must have the specified number of items at a maximumboolean
MinItems specifies that this field must have the specified number of items at a minimumboolean
Unique specifies that all elements in this field must be unique.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(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.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 minimumsetUnique
(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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
minItems_
private long minItems_ -
maxItems_
private long maxItems_ -
unique_
private boolean unique_ -
items_
-
itemsBuilder_
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder, itemsBuilder_Validate.FieldRulesOrBuilder> -
ignoreEmpty_
private boolean ignoreEmpty_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Validate.RepeatedRules.Builder>
-
mergeFrom
-
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 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:
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
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:
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
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:
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
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:
hasItems
in 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:
getItems
in 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:
getItemsOrBuilder
in interfaceValidate.RepeatedRulesOrBuilder
-
getItemsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Validate.FieldRules,Validate.FieldRules.Builder, getItemsFieldBuilder()Validate.FieldRulesOrBuilder> 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
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.
-