Class FilterStateMatcher.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FilterStateMatcherOrBuilder, java.lang.Cloneable
    Enclosing class:
    FilterStateMatcher

    public static final class FilterStateMatcher.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<FilterStateMatcher.Builder>
    implements FilterStateMatcherOrBuilder
     FilterStateMatcher provides a general interface for matching the filter state objects.
     
    Protobuf type envoy.type.matcher.v3.FilterStateMatcher
    • Field Detail

      • matcherCase_

        private int matcherCase_
      • matcher_

        private java.lang.Object matcher_
      • bitField0_

        private int bitField0_
      • key_

        private java.lang.Object key_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • 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.Builder<FilterStateMatcher.Builder>
      • clear

        public FilterStateMatcher.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<FilterStateMatcher.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FilterStateMatcher.Builder>
      • getDefaultInstanceForType

        public FilterStateMatcher getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public FilterStateMatcher build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public FilterStateMatcher buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public FilterStateMatcher.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FilterStateMatcher.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FilterStateMatcher.Builder>
      • mergeFrom

        public FilterStateMatcher.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FilterStateMatcher.Builder>
        Throws:
        java.io.IOException
      • getKey

        public java.lang.String getKey()
         The filter state key to retrieve the object.
         
        string key = 1 [(.validate.rules) = { ... }
        Specified by:
        getKey in interface FilterStateMatcherOrBuilder
        Returns:
        The key.
      • getKeyBytes

        public com.google.protobuf.ByteString getKeyBytes()
         The filter state key to retrieve the object.
         
        string key = 1 [(.validate.rules) = { ... }
        Specified by:
        getKeyBytes in interface FilterStateMatcherOrBuilder
        Returns:
        The bytes for key.
      • setKey

        public FilterStateMatcher.Builder setKey​(java.lang.String value)
         The filter state key to retrieve the object.
         
        string key = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • clearKey

        public FilterStateMatcher.Builder clearKey()
         The filter state key to retrieve the object.
         
        string key = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setKeyBytes

        public FilterStateMatcher.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         The filter state key to retrieve the object.
         
        string key = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for key to set.
        Returns:
        This builder for chaining.
      • hasStringMatch

        public boolean hasStringMatch()
         Matches the filter state object as a string value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 2;
        Specified by:
        hasStringMatch in interface FilterStateMatcherOrBuilder
        Returns:
        Whether the stringMatch field is set.
      • setStringMatch

        public FilterStateMatcher.Builder setStringMatch​(StringMatcher value)
         Matches the filter state object as a string value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 2;
      • mergeStringMatch

        public FilterStateMatcher.Builder mergeStringMatch​(StringMatcher value)
         Matches the filter state object as a string value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 2;
      • clearStringMatch

        public FilterStateMatcher.Builder clearStringMatch()
         Matches the filter state object as a string value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 2;
      • getStringMatchBuilder

        public StringMatcher.Builder getStringMatchBuilder()
         Matches the filter state object as a string value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 2;