Class ExtensionWithMatcher.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ExtensionWithMatcherOrBuilder, Cloneable
    Enclosing class:
    ExtensionWithMatcher

    public static final class ExtensionWithMatcher.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ExtensionWithMatcher.Builder>
    implements ExtensionWithMatcherOrBuilder
     Wrapper around an existing extension that provides an associated matcher. This allows
     decorating an existing extension with a matcher, which can be used to match against
     relevant protocol data.
     
    Protobuf type envoy.extensions.common.matching.v3.ExtensionWithMatcher
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExtensionWithMatcher.Builder>
      • clear

        public ExtensionWithMatcher.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.GeneratedMessageV3.Builder<ExtensionWithMatcher.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.GeneratedMessageV3.Builder<ExtensionWithMatcher.Builder>
      • getDefaultInstanceForType

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

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

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

        public ExtensionWithMatcher.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExtensionWithMatcher.Builder>
      • setField

        public ExtensionWithMatcher.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ExtensionWithMatcher.Builder>
      • clearField

        public ExtensionWithMatcher.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExtensionWithMatcher.Builder>
      • clearOneof

        public ExtensionWithMatcher.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExtensionWithMatcher.Builder>
      • setRepeatedField

        public ExtensionWithMatcher.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExtensionWithMatcher.Builder>
      • addRepeatedField

        public ExtensionWithMatcher.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExtensionWithMatcher.Builder>
      • isInitialized

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

        public ExtensionWithMatcher.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws 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<ExtensionWithMatcher.Builder>
        Throws:
        IOException
      • hasMatcher

        @Deprecated
        public boolean hasMatcher()
        Deprecated.
        envoy.extensions.common.matching.v3.ExtensionWithMatcher.matcher is deprecated. See envoy/extensions/common/matching/v3/extension_matcher.proto;l=29
         The associated matcher. This is deprecated in favor of xds_matcher.
         
        .envoy.config.common.matcher.v3.Matcher matcher = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
        Specified by:
        hasMatcher in interface ExtensionWithMatcherOrBuilder
        Returns:
        Whether the matcher field is set.
      • getMatcher

        @Deprecated
        public Matcher getMatcher()
        Deprecated.
        envoy.extensions.common.matching.v3.ExtensionWithMatcher.matcher is deprecated. See envoy/extensions/common/matching/v3/extension_matcher.proto;l=29
         The associated matcher. This is deprecated in favor of xds_matcher.
         
        .envoy.config.common.matcher.v3.Matcher matcher = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
        Specified by:
        getMatcher in interface ExtensionWithMatcherOrBuilder
        Returns:
        The matcher.
      • setMatcher

        @Deprecated
        public ExtensionWithMatcher.Builder setMatcher​(Matcher value)
        Deprecated.
         The associated matcher. This is deprecated in favor of xds_matcher.
         
        .envoy.config.common.matcher.v3.Matcher matcher = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • setMatcher

        @Deprecated
        public ExtensionWithMatcher.Builder setMatcher​(Matcher.Builder builderForValue)
        Deprecated.
         The associated matcher. This is deprecated in favor of xds_matcher.
         
        .envoy.config.common.matcher.v3.Matcher matcher = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • mergeMatcher

        @Deprecated
        public ExtensionWithMatcher.Builder mergeMatcher​(Matcher value)
        Deprecated.
         The associated matcher. This is deprecated in favor of xds_matcher.
         
        .envoy.config.common.matcher.v3.Matcher matcher = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • clearMatcher

        @Deprecated
        public ExtensionWithMatcher.Builder clearMatcher()
        Deprecated.
         The associated matcher. This is deprecated in favor of xds_matcher.
         
        .envoy.config.common.matcher.v3.Matcher matcher = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • getMatcherBuilder

        @Deprecated
        public Matcher.Builder getMatcherBuilder()
        Deprecated.
         The associated matcher. This is deprecated in favor of xds_matcher.
         
        .envoy.config.common.matcher.v3.Matcher matcher = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • hasXdsMatcher

        public boolean hasXdsMatcher()
         The associated matcher.
         
        .xds.type.matcher.v3.Matcher xds_matcher = 3;
        Specified by:
        hasXdsMatcher in interface ExtensionWithMatcherOrBuilder
        Returns:
        Whether the xdsMatcher field is set.
      • clearXdsMatcher

        public ExtensionWithMatcher.Builder clearXdsMatcher()
         The associated matcher.
         
        .xds.type.matcher.v3.Matcher xds_matcher = 3;
      • getXdsMatcherBuilder

        public Matcher.Builder getXdsMatcherBuilder()
         The associated matcher.
         
        .xds.type.matcher.v3.Matcher xds_matcher = 3;
      • hasExtensionConfig

        public boolean hasExtensionConfig()
         The underlying extension config.
         
        .envoy.config.core.v3.TypedExtensionConfig extension_config = 2 [(.validate.rules) = { ... }
        Specified by:
        hasExtensionConfig in interface ExtensionWithMatcherOrBuilder
        Returns:
        Whether the extensionConfig field is set.
      • clearExtensionConfig

        public ExtensionWithMatcher.Builder clearExtensionConfig()
         The underlying extension config.
         
        .envoy.config.core.v3.TypedExtensionConfig extension_config = 2 [(.validate.rules) = { ... }
      • getExtensionConfigBuilder

        public TypedExtensionConfig.Builder getExtensionConfigBuilder()
         The underlying extension config.
         
        .envoy.config.core.v3.TypedExtensionConfig extension_config = 2 [(.validate.rules) = { ... }
      • setUnknownFields

        public final ExtensionWithMatcher.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExtensionWithMatcher.Builder>
      • mergeUnknownFields

        public final ExtensionWithMatcher.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExtensionWithMatcher.Builder>