Class DynamicParameterConstraints
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,DynamicParameterConstraintsOrBuilder
,java.io.Serializable
public final class DynamicParameterConstraints extends com.google.protobuf.GeneratedMessage implements DynamicParameterConstraintsOrBuilder
A set of dynamic parameter constraints associated with a variant of an individual xDS resource. These constraints determine whether the resource matches a subscription based on the set of dynamic parameters in the subscription, as specified in the :ref:`ResourceLocator.dynamic_parameters<envoy_v3_api_field_service.discovery.v3.ResourceLocator.dynamic_parameters>` field. This allows xDS implementations (clients, servers, and caching proxies) to determine which variant of a resource is appropriate for a given client.
Protobuf typeenvoy.service.discovery.v3.DynamicParameterConstraints
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DynamicParameterConstraints.Builder
A set of dynamic parameter constraints associated with a variant of an individual xDS resource.static class
DynamicParameterConstraints.ConstraintList
Protobuf typeenvoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList
static interface
DynamicParameterConstraints.ConstraintListOrBuilder
static class
DynamicParameterConstraints.SingleConstraint
A single constraint for a given key.static interface
DynamicParameterConstraints.SingleConstraintOrBuilder
static class
DynamicParameterConstraints.TypeCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
AND_CONSTRAINTS_FIELD_NUMBER
static int
CONSTRAINT_FIELD_NUMBER
private static DynamicParameterConstraints
DEFAULT_INSTANCE
private byte
memoizedIsInitialized
static int
NOT_CONSTRAINTS_FIELD_NUMBER
static int
OR_CONSTRAINTS_FIELD_NUMBER
private static com.google.protobuf.Parser<DynamicParameterConstraints>
PARSER
private static long
serialVersionUID
private java.lang.Object
type_
private int
typeCase_
-
Constructor Summary
Constructors Modifier Constructor Description private
DynamicParameterConstraints()
private
DynamicParameterConstraints(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
DynamicParameterConstraints.ConstraintList
getAndConstraints()
A list of constraints that must all match.DynamicParameterConstraints.ConstraintListOrBuilder
getAndConstraintsOrBuilder()
A list of constraints that must all match.DynamicParameterConstraints.SingleConstraint
getConstraint()
A single constraint to evaluate.DynamicParameterConstraints.SingleConstraintOrBuilder
getConstraintOrBuilder()
A single constraint to evaluate.static DynamicParameterConstraints
getDefaultInstance()
DynamicParameterConstraints
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
DynamicParameterConstraints
getNotConstraints()
The inverse (NOT) of a set of constraints.DynamicParameterConstraintsOrBuilder
getNotConstraintsOrBuilder()
The inverse (NOT) of a set of constraints.DynamicParameterConstraints.ConstraintList
getOrConstraints()
A list of constraints that match if any one constraint in the list matches.DynamicParameterConstraints.ConstraintListOrBuilder
getOrConstraintsOrBuilder()
A list of constraints that match if any one constraint in the list matches.com.google.protobuf.Parser<DynamicParameterConstraints>
getParserForType()
int
getSerializedSize()
DynamicParameterConstraints.TypeCase
getTypeCase()
boolean
hasAndConstraints()
A list of constraints that must all match.boolean
hasConstraint()
A single constraint to evaluate.int
hashCode()
boolean
hasNotConstraints()
The inverse (NOT) of a set of constraints.boolean
hasOrConstraints()
A list of constraints that match if any one constraint in the list matches.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static DynamicParameterConstraints.Builder
newBuilder()
static DynamicParameterConstraints.Builder
newBuilder(DynamicParameterConstraints prototype)
DynamicParameterConstraints.Builder
newBuilderForType()
protected DynamicParameterConstraints.Builder
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
static DynamicParameterConstraints
parseDelimitedFrom(java.io.InputStream input)
static DynamicParameterConstraints
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DynamicParameterConstraints
parseFrom(byte[] data)
static DynamicParameterConstraints
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DynamicParameterConstraints
parseFrom(com.google.protobuf.ByteString data)
static DynamicParameterConstraints
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DynamicParameterConstraints
parseFrom(com.google.protobuf.CodedInputStream input)
static DynamicParameterConstraints
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DynamicParameterConstraints
parseFrom(java.io.InputStream input)
static DynamicParameterConstraints
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DynamicParameterConstraints
parseFrom(java.nio.ByteBuffer data)
static DynamicParameterConstraints
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<DynamicParameterConstraints>
parser()
DynamicParameterConstraints.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
typeCase_
private int typeCase_
-
type_
private java.lang.Object type_
-
CONSTRAINT_FIELD_NUMBER
public static final int CONSTRAINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OR_CONSTRAINTS_FIELD_NUMBER
public static final int OR_CONSTRAINTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AND_CONSTRAINTS_FIELD_NUMBER
public static final int AND_CONSTRAINTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOT_CONSTRAINTS_FIELD_NUMBER
public static final int NOT_CONSTRAINTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final DynamicParameterConstraints DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<DynamicParameterConstraints> PARSER
-
-
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
-
getTypeCase
public DynamicParameterConstraints.TypeCase getTypeCase()
- Specified by:
getTypeCase
in interfaceDynamicParameterConstraintsOrBuilder
-
hasConstraint
public boolean hasConstraint()
A single constraint to evaluate.
.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1;
- Specified by:
hasConstraint
in interfaceDynamicParameterConstraintsOrBuilder
- Returns:
- Whether the constraint field is set.
-
getConstraint
public DynamicParameterConstraints.SingleConstraint getConstraint()
A single constraint to evaluate.
.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1;
- Specified by:
getConstraint
in interfaceDynamicParameterConstraintsOrBuilder
- Returns:
- The constraint.
-
getConstraintOrBuilder
public DynamicParameterConstraints.SingleConstraintOrBuilder getConstraintOrBuilder()
A single constraint to evaluate.
.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1;
- Specified by:
getConstraintOrBuilder
in interfaceDynamicParameterConstraintsOrBuilder
-
hasOrConstraints
public boolean hasOrConstraints()
A list of constraints that match if any one constraint in the list matches.
.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2;
- Specified by:
hasOrConstraints
in interfaceDynamicParameterConstraintsOrBuilder
- Returns:
- Whether the orConstraints field is set.
-
getOrConstraints
public DynamicParameterConstraints.ConstraintList getOrConstraints()
A list of constraints that match if any one constraint in the list matches.
.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2;
- Specified by:
getOrConstraints
in interfaceDynamicParameterConstraintsOrBuilder
- Returns:
- The orConstraints.
-
getOrConstraintsOrBuilder
public DynamicParameterConstraints.ConstraintListOrBuilder getOrConstraintsOrBuilder()
A list of constraints that match if any one constraint in the list matches.
.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2;
- Specified by:
getOrConstraintsOrBuilder
in interfaceDynamicParameterConstraintsOrBuilder
-
hasAndConstraints
public boolean hasAndConstraints()
A list of constraints that must all match.
.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3;
- Specified by:
hasAndConstraints
in interfaceDynamicParameterConstraintsOrBuilder
- Returns:
- Whether the andConstraints field is set.
-
getAndConstraints
public DynamicParameterConstraints.ConstraintList getAndConstraints()
A list of constraints that must all match.
.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3;
- Specified by:
getAndConstraints
in interfaceDynamicParameterConstraintsOrBuilder
- Returns:
- The andConstraints.
-
getAndConstraintsOrBuilder
public DynamicParameterConstraints.ConstraintListOrBuilder getAndConstraintsOrBuilder()
A list of constraints that must all match.
.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3;
- Specified by:
getAndConstraintsOrBuilder
in interfaceDynamicParameterConstraintsOrBuilder
-
hasNotConstraints
public boolean hasNotConstraints()
The inverse (NOT) of a set of constraints.
.envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4;
- Specified by:
hasNotConstraints
in interfaceDynamicParameterConstraintsOrBuilder
- Returns:
- Whether the notConstraints field is set.
-
getNotConstraints
public DynamicParameterConstraints getNotConstraints()
The inverse (NOT) of a set of constraints.
.envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4;
- Specified by:
getNotConstraints
in interfaceDynamicParameterConstraintsOrBuilder
- Returns:
- The notConstraints.
-
getNotConstraintsOrBuilder
public DynamicParameterConstraintsOrBuilder getNotConstraintsOrBuilder()
The inverse (NOT) of a set of constraints.
.envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4;
- Specified by:
getNotConstraintsOrBuilder
in interfaceDynamicParameterConstraintsOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DynamicParameterConstraints parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicParameterConstraints parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicParameterConstraints parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicParameterConstraints parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicParameterConstraints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicParameterConstraints parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicParameterConstraints parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DynamicParameterConstraints parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DynamicParameterConstraints parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DynamicParameterConstraints parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DynamicParameterConstraints parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DynamicParameterConstraints parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public DynamicParameterConstraints.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DynamicParameterConstraints.Builder newBuilder()
-
newBuilder
public static DynamicParameterConstraints.Builder newBuilder(DynamicParameterConstraints prototype)
-
toBuilder
public DynamicParameterConstraints.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DynamicParameterConstraints.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static DynamicParameterConstraints getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DynamicParameterConstraints> parser()
-
getParserForType
public com.google.protobuf.Parser<DynamicParameterConstraints> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public DynamicParameterConstraints getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-