Package io.envoyproxy.pgv.validate
Class Validate.AnyRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
io.envoyproxy.pgv.validate.Validate.AnyRules.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Validate.AnyRulesOrBuilder,Cloneable
- Enclosing class:
- Validate.AnyRules
public static final class Validate.AnyRules.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
implements Validate.AnyRulesOrBuilder
AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known typeProtobuf type
validate.AnyRules-
Method Summary
Modifier and TypeMethodDescriptionIn specifies that this field's `type_url` must be equal to one of the specified values.addAllNotIn(Iterable<String> values) NotIn specifies that this field's `type_url` must not be equal to any of the specified values.In specifies that this field's `type_url` must be equal to one of the specified values.addInBytes(com.google.protobuf.ByteString value) In specifies that this field's `type_url` must be equal to one of the specified values.NotIn specifies that this field's `type_url` must not be equal to any of the specified values.addNotInBytes(com.google.protobuf.ByteString value) NotIn specifies that this field's `type_url` must not be equal to any of the specified values.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearIn()In specifies that this field's `type_url` must be equal to one of the specified values.NotIn specifies that this field's `type_url` must not be equal to any of the specified values.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Required specifies that this field must be setclone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIn(int index) In specifies that this field's `type_url` must be equal to one of the specified values.com.google.protobuf.ByteStringgetInBytes(int index) In specifies that this field's `type_url` must be equal to one of the specified values.intIn specifies that this field's `type_url` must be equal to one of the specified values.com.google.protobuf.ProtocolStringListIn specifies that this field's `type_url` must be equal to one of the specified values.getNotIn(int index) NotIn specifies that this field's `type_url` must not be equal to any of the specified values.com.google.protobuf.ByteStringgetNotInBytes(int index) NotIn specifies that this field's `type_url` must not be equal to any of the specified values.intNotIn specifies that this field's `type_url` must not be equal to any of the specified values.com.google.protobuf.ProtocolStringListNotIn specifies that this field's `type_url` must not be equal to any of the specified values.booleanRequired specifies that this field must be setbooleanRequired specifies that this field must be setprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Validate.AnyRules other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) In specifies that this field's `type_url` must be equal to one of the specified values.NotIn specifies that this field's `type_url` must not be equal to any of the specified values.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequired(boolean value) Required specifies that this field must be setsetUnknownFields(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.AnyRules.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.AnyRules.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.AnyRules.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.AnyRules.Builder>
-
setField
public Validate.AnyRules.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.AnyRules.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
-
setRepeatedField
public Validate.AnyRules.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.AnyRules.Builder>
-
addRepeatedField
public Validate.AnyRules.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.AnyRules.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.AnyRules.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
-
mergeFrom
public Validate.AnyRules.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.AnyRules.Builder>- Throws:
IOException
-
hasRequired
public boolean hasRequired()Required specifies that this field must be set
optional bool required = 1;- Specified by:
hasRequiredin interfaceValidate.AnyRulesOrBuilder- Returns:
- Whether the required field is set.
-
getRequired
public boolean getRequired()Required specifies that this field must be set
optional bool required = 1;- Specified by:
getRequiredin interfaceValidate.AnyRulesOrBuilder- Returns:
- The required.
-
setRequired
Required specifies that this field must be set
optional bool required = 1;- Parameters:
value- The required to set.- Returns:
- This builder for chaining.
-
clearRequired
Required specifies that this field must be set
optional bool required = 1;- Returns:
- This builder for chaining.
-
getInList
public com.google.protobuf.ProtocolStringList getInList()In specifies that this field's `type_url` must be equal to one of the specified values.
repeated string in = 2;- Specified by:
getInListin interfaceValidate.AnyRulesOrBuilder- Returns:
- A list containing the in.
-
getInCount
public int getInCount()In specifies that this field's `type_url` must be equal to one of the specified values.
repeated string in = 2;- Specified by:
getInCountin interfaceValidate.AnyRulesOrBuilder- Returns:
- The count of in.
-
getIn
In specifies that this field's `type_url` must be equal to one of the specified values.
repeated string in = 2;- Specified by:
getInin interfaceValidate.AnyRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The in at the given index.
-
getInBytes
public com.google.protobuf.ByteString getInBytes(int index) In specifies that this field's `type_url` must be equal to one of the specified values.
repeated string in = 2;- Specified by:
getInBytesin interfaceValidate.AnyRulesOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the in at the given index.
-
setIn
In specifies that this field's `type_url` must be equal to one of the specified values.
repeated string in = 2;- Parameters:
index- The index to set the value at.value- The in to set.- Returns:
- This builder for chaining.
-
addIn
In specifies that this field's `type_url` must be equal to one of the specified values.
repeated string in = 2;- Parameters:
value- The in to add.- Returns:
- This builder for chaining.
-
addAllIn
In specifies that this field's `type_url` must be equal to one of the specified values.
repeated string in = 2;- Parameters:
values- The in to add.- Returns:
- This builder for chaining.
-
clearIn
In specifies that this field's `type_url` must be equal to one of the specified values.
repeated string in = 2;- Returns:
- This builder for chaining.
-
addInBytes
In specifies that this field's `type_url` must be equal to one of the specified values.
repeated string in = 2;- Parameters:
value- The bytes of the in to add.- Returns:
- This builder for chaining.
-
getNotInList
public com.google.protobuf.ProtocolStringList getNotInList()NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
repeated string not_in = 3;- Specified by:
getNotInListin interfaceValidate.AnyRulesOrBuilder- Returns:
- A list containing the notIn.
-
getNotInCount
public int getNotInCount()NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
repeated string not_in = 3;- Specified by:
getNotInCountin interfaceValidate.AnyRulesOrBuilder- Returns:
- The count of notIn.
-
getNotIn
NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
repeated string not_in = 3;- Specified by:
getNotInin interfaceValidate.AnyRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The notIn at the given index.
-
getNotInBytes
public com.google.protobuf.ByteString getNotInBytes(int index) NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
repeated string not_in = 3;- Specified by:
getNotInBytesin interfaceValidate.AnyRulesOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the notIn at the given index.
-
setNotIn
NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
repeated string not_in = 3;- Parameters:
index- The index to set the value at.value- The notIn to set.- Returns:
- This builder for chaining.
-
addNotIn
NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
repeated string not_in = 3;- Parameters:
value- The notIn to add.- Returns:
- This builder for chaining.
-
addAllNotIn
NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
repeated string not_in = 3;- Parameters:
values- The notIn to add.- Returns:
- This builder for chaining.
-
clearNotIn
NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
repeated string not_in = 3;- Returns:
- This builder for chaining.
-
addNotInBytes
NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
repeated string not_in = 3;- Parameters:
value- The bytes of the notIn to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Validate.AnyRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
-
mergeUnknownFields
public final Validate.AnyRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
-