Class RouteAction.HashPolicy.Header.Builder

    • 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<RouteAction.HashPolicy.Header.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • 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<RouteAction.HashPolicy.Header.Builder>
      • getDefaultInstanceForType

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

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

        public RouteAction.HashPolicy.Header buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public RouteAction.HashPolicy.Header.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<RouteAction.HashPolicy.Header.Builder>
        Throws:
        java.io.IOException
      • getHeaderName

        public java.lang.String getHeaderName()
         The name of the request header that will be used to obtain the hash
         key. If the request header is not present, no hash will be produced.
         
        string header_name = 1 [(.validate.rules) = { ... }
        Specified by:
        getHeaderName in interface RouteAction.HashPolicy.HeaderOrBuilder
        Returns:
        The headerName.
      • getHeaderNameBytes

        public com.google.protobuf.ByteString getHeaderNameBytes()
         The name of the request header that will be used to obtain the hash
         key. If the request header is not present, no hash will be produced.
         
        string header_name = 1 [(.validate.rules) = { ... }
        Specified by:
        getHeaderNameBytes in interface RouteAction.HashPolicy.HeaderOrBuilder
        Returns:
        The bytes for headerName.
      • setHeaderName

        public RouteAction.HashPolicy.Header.Builder setHeaderName​(java.lang.String value)
         The name of the request header that will be used to obtain the hash
         key. If the request header is not present, no hash will be produced.
         
        string header_name = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The headerName to set.
        Returns:
        This builder for chaining.
      • clearHeaderName

        public RouteAction.HashPolicy.Header.Builder clearHeaderName()
         The name of the request header that will be used to obtain the hash
         key. If the request header is not present, no hash will be produced.
         
        string header_name = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setHeaderNameBytes

        public RouteAction.HashPolicy.Header.Builder setHeaderNameBytes​(com.google.protobuf.ByteString value)
         The name of the request header that will be used to obtain the hash
         key. If the request header is not present, no hash will be produced.
         
        string header_name = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for headerName to set.
        Returns:
        This builder for chaining.
      • hasRegexRewrite

        public boolean hasRegexRewrite()
         If specified, the request header value will be rewritten and used
         to produce the hash key.
         
        .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_rewrite = 2;
        Specified by:
        hasRegexRewrite in interface RouteAction.HashPolicy.HeaderOrBuilder
        Returns:
        Whether the regexRewrite field is set.
      • clearRegexRewrite

        public RouteAction.HashPolicy.Header.Builder clearRegexRewrite()
         If specified, the request header value will be rewritten and used
         to produce the hash key.
         
        .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_rewrite = 2;
      • getRegexRewriteBuilder

        public RegexMatchAndSubstitute.Builder getRegexRewriteBuilder()
         If specified, the request header value will be rewritten and used
         to produce the hash key.
         
        .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_rewrite = 2;