Class SchemeHeaderTransformation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SchemeHeaderTransformation.Builder>
com.google.protobuf.GeneratedMessage.Builder<SchemeHeaderTransformation.Builder>
io.envoyproxy.envoy.config.core.v3.SchemeHeaderTransformation.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SchemeHeaderTransformationOrBuilder, Cloneable
Enclosing class:
SchemeHeaderTransformation

public static final class SchemeHeaderTransformation.Builder extends com.google.protobuf.GeneratedMessage.Builder<SchemeHeaderTransformation.Builder> implements SchemeHeaderTransformationOrBuilder
 A message to control transformations to the :scheme header
 
Protobuf type envoy.config.core.v3.SchemeHeaderTransformation
  • Field Details

    • transformationCase_

      private int transformationCase_
    • transformation_

      private Object transformation_
    • bitField0_

      private int bitField0_
    • matchUpstream_

      private boolean matchUpstream_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

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

      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
    • buildPartial0

      private void buildPartial0(SchemeHeaderTransformation result)
    • buildPartialOneofs

      private void buildPartialOneofs(SchemeHeaderTransformation result)
    • mergeFrom

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

    • 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 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:
      IOException
    • getTransformationCase

      public SchemeHeaderTransformation.TransformationCase getTransformationCase()
      Specified by:
      getTransformationCase in interface SchemeHeaderTransformationOrBuilder
    • clearTransformation

      public SchemeHeaderTransformation.Builder clearTransformation()
    • 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 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(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.