Class 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 type envoy.service.discovery.v3.DynamicParameterConstraints
    See Also:
    Serialized Form
    • Field Detail

      • 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
    • Constructor Detail

      • DynamicParameterConstraints

        private DynamicParameterConstraints​(com.google.protobuf.GeneratedMessage.Builder<?> builder)
      • DynamicParameterConstraints

        private DynamicParameterConstraints()
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • hasConstraint

        public boolean hasConstraint()
         A single constraint to evaluate.
         
        .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1;
        Specified by:
        hasConstraint in interface DynamicParameterConstraintsOrBuilder
        Returns:
        Whether the constraint field is set.
      • 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 interface DynamicParameterConstraintsOrBuilder
        Returns:
        Whether the orConstraints field is set.
      • 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 interface DynamicParameterConstraintsOrBuilder
        Returns:
        Whether the andConstraints field is set.
      • hasNotConstraints

        public boolean hasNotConstraints()
         The inverse (NOT) of a set of constraints.
         
        .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4;
        Specified by:
        hasNotConstraints in interface DynamicParameterConstraintsOrBuilder
        Returns:
        Whether the notConstraints field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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 interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public DynamicParameterConstraints.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected DynamicParameterConstraints.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getParserForType

        public com.google.protobuf.Parser<DynamicParameterConstraints> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

        public DynamicParameterConstraints getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder