Package io.envoyproxy.pgv.validate
Class Validate.AnyRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.build()
clear()
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.Required specifies that this field must be setstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getIn
(int index) In specifies that this field's `type_url` must be equal to one of the specified values.com.google.protobuf.ByteString
getInBytes
(int index) In specifies that this field's `type_url` must be equal to one of the specified values.int
In specifies that this field's `type_url` must be equal to one of the specified values.com.google.protobuf.ProtocolStringList
In 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.ByteString
getNotInBytes
(int index) NotIn specifies that this field's `type_url` must not be equal to any of the specified values.int
NotIn specifies that this field's `type_url` must not be equal to any of the specified values.com.google.protobuf.ProtocolStringList
NotIn specifies that this field's `type_url` must not be equal to any of the specified values.boolean
Required specifies that this field must be setboolean
Required specifies that this field must be setprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Validate.AnyRules other) 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.setRequired
(boolean value) Required specifies that this field must be setMethods 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
-
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.AnyRules.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.AnyRules.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.AnyRules.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
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Validate.AnyRules.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.AnyRules.Builder>
-
mergeFrom
public Validate.AnyRules.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.AnyRules.Builder>
- Throws:
IOException
-
hasRequired
public boolean hasRequired()Required specifies that this field must be set
optional bool required = 1;
- Specified by:
hasRequired
in 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:
getRequired
in 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:
getInList
in 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:
getInCount
in 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:
getIn
in 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:
getInBytes
in 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:
getNotInList
in 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:
getNotInCount
in 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:
getNotIn
in 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:
getNotInBytes
in 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.
-