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 Type Method Description Validate.RepeatedRules.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Validate.RepeatedRulesbuild()Validate.RepeatedRulesbuildPartial()Validate.RepeatedRules.Builderclear()Validate.RepeatedRules.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Validate.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()Validate.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.booleanhasItems()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, Object value)Validate.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, 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, 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, newUninitializedMessageException
-
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
-
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
-
setMinItems
MinItems specifies that this field must have the specified number of items at a minimum
optional uint64 min_items = 1; -
clearMinItems
MinItems specifies that this field must have the specified number of items at a minimum
optional uint64 min_items = 1; -
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
-
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
-
setMaxItems
MaxItems specifies that this field must have the specified number of items at a maximum
optional uint64 max_items = 2; -
clearMaxItems
MaxItems specifies that this field must have the specified number of items at a maximum
optional uint64 max_items = 2; -
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
-
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
-
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; -
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; -
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
-
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
-
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
-
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>
-