Class SchemeHeaderTransformation.Builder

    • Field Detail

      • transformationCase_

        private int transformationCase_
      • transformation_

        private java.lang.Object transformation_
      • bitField0_

        private int bitField0_
      • matchUpstream_

        private boolean matchUpstream_
    • 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<SchemeHeaderTransformation.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<SchemeHeaderTransformation.Builder>
      • getDefaultInstanceForType

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

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

        public SchemeHeaderTransformation 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<SchemeHeaderTransformation.Builder>
      • mergeFrom

        public SchemeHeaderTransformation.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<SchemeHeaderTransformation.Builder>
        Throws:
        java.io.IOException
      • hasSchemeToOverwrite

        public boolean hasSchemeToOverwrite()
         Overwrite any Scheme header with the contents of this string.
         If set, takes precedence over match_upstream.
         
        string scheme_to_overwrite = 1 [(.validate.rules) = { ... }
        Specified by:
        hasSchemeToOverwrite in interface SchemeHeaderTransformationOrBuilder
        Returns:
        Whether the schemeToOverwrite field is set.
      • getSchemeToOverwrite

        public java.lang.String getSchemeToOverwrite()
         Overwrite any Scheme header with the contents of this string.
         If set, takes precedence over match_upstream.
         
        string scheme_to_overwrite = 1 [(.validate.rules) = { ... }
        Specified by:
        getSchemeToOverwrite in interface SchemeHeaderTransformationOrBuilder
        Returns:
        The schemeToOverwrite.
      • getSchemeToOverwriteBytes

        public com.google.protobuf.ByteString getSchemeToOverwriteBytes()
         Overwrite any Scheme header with the contents of this string.
         If set, takes precedence over match_upstream.
         
        string scheme_to_overwrite = 1 [(.validate.rules) = { ... }
        Specified by:
        getSchemeToOverwriteBytes in interface SchemeHeaderTransformationOrBuilder
        Returns:
        The bytes for schemeToOverwrite.
      • setSchemeToOverwrite

        public SchemeHeaderTransformation.Builder setSchemeToOverwrite​(java.lang.String value)
         Overwrite any Scheme header with the contents of this string.
         If set, takes precedence over match_upstream.
         
        string scheme_to_overwrite = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The schemeToOverwrite to set.
        Returns:
        This builder for chaining.
      • clearSchemeToOverwrite

        public SchemeHeaderTransformation.Builder clearSchemeToOverwrite()
         Overwrite any Scheme header with the contents of this string.
         If set, takes precedence over match_upstream.
         
        string scheme_to_overwrite = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setSchemeToOverwriteBytes

        public SchemeHeaderTransformation.Builder setSchemeToOverwriteBytes​(com.google.protobuf.ByteString value)
         Overwrite any Scheme header with the contents of this string.
         If set, takes precedence over match_upstream.
         
        string scheme_to_overwrite = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for schemeToOverwrite to set.
        Returns:
        This builder for chaining.
      • getMatchUpstream

        public boolean getMatchUpstream()
         Set the Scheme header to match the upstream transport protocol. For example, should a
         request be sent to the upstream over TLS, the scheme header will be set to "https". Should the
         request be sent over plaintext, the scheme header will be set to "http".
         If scheme_to_overwrite is set, this field is not used.
         
        bool match_upstream = 2;
        Specified by:
        getMatchUpstream in interface SchemeHeaderTransformationOrBuilder
        Returns:
        The matchUpstream.
      • setMatchUpstream

        public SchemeHeaderTransformation.Builder setMatchUpstream​(boolean value)
         Set the Scheme header to match the upstream transport protocol. For example, should a
         request be sent to the upstream over TLS, the scheme header will be set to "https". Should the
         request be sent over plaintext, the scheme header will be set to "http".
         If scheme_to_overwrite is set, this field is not used.
         
        bool match_upstream = 2;
        Parameters:
        value - The matchUpstream to set.
        Returns:
        This builder for chaining.
      • clearMatchUpstream

        public SchemeHeaderTransformation.Builder clearMatchUpstream()
         Set the Scheme header to match the upstream transport protocol. For example, should a
         request be sent to the upstream over TLS, the scheme header will be set to "https". Should the
         request be sent over plaintext, the scheme header will be set to "http".
         If scheme_to_overwrite is set, this field is not used.
         
        bool match_upstream = 2;
        Returns:
        This builder for chaining.