java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<StatefulSession.Builder>
io.envoyproxy.envoy.extensions.filters.http.stateful_session.v3.StatefulSession.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StatefulSessionOrBuilder, Cloneable
Enclosing class:
StatefulSession

public static final class StatefulSession.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StatefulSession.Builder> implements StatefulSessionOrBuilder
Protobuf type envoy.extensions.filters.http.stateful_session.v3.StatefulSession
  • Method Details

    • 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<StatefulSession.Builder>
    • clear

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

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

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

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

      public StatefulSession.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<StatefulSession.Builder>
    • setField

      public StatefulSession.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<StatefulSession.Builder>
    • clearField

      public StatefulSession.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<StatefulSession.Builder>
    • clearOneof

      public StatefulSession.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<StatefulSession.Builder>
    • setRepeatedField

      public StatefulSession.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<StatefulSession.Builder>
    • addRepeatedField

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

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

      public StatefulSession.Builder mergeFrom(StatefulSession other)
    • isInitialized

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

      public StatefulSession.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<StatefulSession.Builder>
      Throws:
      IOException
    • hasSessionState

      public boolean hasSessionState()
       Specifies the implementation of session state. This session state is used to store and retrieve the address of the
       upstream host assigned to the session.
      
       [#extension-category: envoy.http.stateful_session]
       
      .envoy.config.core.v3.TypedExtensionConfig session_state = 1;
      Specified by:
      hasSessionState in interface StatefulSessionOrBuilder
      Returns:
      Whether the sessionState field is set.
    • getSessionState

      public TypedExtensionConfig getSessionState()
       Specifies the implementation of session state. This session state is used to store and retrieve the address of the
       upstream host assigned to the session.
      
       [#extension-category: envoy.http.stateful_session]
       
      .envoy.config.core.v3.TypedExtensionConfig session_state = 1;
      Specified by:
      getSessionState in interface StatefulSessionOrBuilder
      Returns:
      The sessionState.
    • setSessionState

      public StatefulSession.Builder setSessionState(TypedExtensionConfig value)
       Specifies the implementation of session state. This session state is used to store and retrieve the address of the
       upstream host assigned to the session.
      
       [#extension-category: envoy.http.stateful_session]
       
      .envoy.config.core.v3.TypedExtensionConfig session_state = 1;
    • setSessionState

      public StatefulSession.Builder setSessionState(TypedExtensionConfig.Builder builderForValue)
       Specifies the implementation of session state. This session state is used to store and retrieve the address of the
       upstream host assigned to the session.
      
       [#extension-category: envoy.http.stateful_session]
       
      .envoy.config.core.v3.TypedExtensionConfig session_state = 1;
    • mergeSessionState

      public StatefulSession.Builder mergeSessionState(TypedExtensionConfig value)
       Specifies the implementation of session state. This session state is used to store and retrieve the address of the
       upstream host assigned to the session.
      
       [#extension-category: envoy.http.stateful_session]
       
      .envoy.config.core.v3.TypedExtensionConfig session_state = 1;
    • clearSessionState

      public StatefulSession.Builder clearSessionState()
       Specifies the implementation of session state. This session state is used to store and retrieve the address of the
       upstream host assigned to the session.
      
       [#extension-category: envoy.http.stateful_session]
       
      .envoy.config.core.v3.TypedExtensionConfig session_state = 1;
    • getSessionStateBuilder

      public TypedExtensionConfig.Builder getSessionStateBuilder()
       Specifies the implementation of session state. This session state is used to store and retrieve the address of the
       upstream host assigned to the session.
      
       [#extension-category: envoy.http.stateful_session]
       
      .envoy.config.core.v3.TypedExtensionConfig session_state = 1;
    • getSessionStateOrBuilder

      public TypedExtensionConfigOrBuilder getSessionStateOrBuilder()
       Specifies the implementation of session state. This session state is used to store and retrieve the address of the
       upstream host assigned to the session.
      
       [#extension-category: envoy.http.stateful_session]
       
      .envoy.config.core.v3.TypedExtensionConfig session_state = 1;
      Specified by:
      getSessionStateOrBuilder in interface StatefulSessionOrBuilder
    • getStrict

      public boolean getStrict()
       Determines whether the HTTP request must be strictly routed to the requested destination. When set to ``true``,
       if the requested destination is unavailable, Envoy will return a 503 status code. The default value is ``false``,
       which allows Envoy to fall back to its load balancing mechanism. In this case, if the requested destination is not
       found, the request will be routed according to the load balancing algorithm.
       
      bool strict = 2;
      Specified by:
      getStrict in interface StatefulSessionOrBuilder
      Returns:
      The strict.
    • setStrict

      public StatefulSession.Builder setStrict(boolean value)
       Determines whether the HTTP request must be strictly routed to the requested destination. When set to ``true``,
       if the requested destination is unavailable, Envoy will return a 503 status code. The default value is ``false``,
       which allows Envoy to fall back to its load balancing mechanism. In this case, if the requested destination is not
       found, the request will be routed according to the load balancing algorithm.
       
      bool strict = 2;
      Parameters:
      value - The strict to set.
      Returns:
      This builder for chaining.
    • clearStrict

      public StatefulSession.Builder clearStrict()
       Determines whether the HTTP request must be strictly routed to the requested destination. When set to ``true``,
       if the requested destination is unavailable, Envoy will return a 503 status code. The default value is ``false``,
       which allows Envoy to fall back to its load balancing mechanism. In this case, if the requested destination is not
       found, the request will be routed according to the load balancing algorithm.
       
      bool strict = 2;
      Returns:
      This builder for chaining.
    • getStatPrefix

      public String getStatPrefix()
       Optional stat prefix. If specified, the filter will emit statistics in the
       ``http.<stat_prefix>.stateful_session.<stat_prefix>.`` namespace. If not specified, no statistics will be emitted.
      
       .. note::
      
         Per-route configuration overrides do not support statistics and will not emit stats even if this field is set
         in the per-route config.
       
      string stat_prefix = 3;
      Specified by:
      getStatPrefix in interface StatefulSessionOrBuilder
      Returns:
      The statPrefix.
    • getStatPrefixBytes

      public com.google.protobuf.ByteString getStatPrefixBytes()
       Optional stat prefix. If specified, the filter will emit statistics in the
       ``http.<stat_prefix>.stateful_session.<stat_prefix>.`` namespace. If not specified, no statistics will be emitted.
      
       .. note::
      
         Per-route configuration overrides do not support statistics and will not emit stats even if this field is set
         in the per-route config.
       
      string stat_prefix = 3;
      Specified by:
      getStatPrefixBytes in interface StatefulSessionOrBuilder
      Returns:
      The bytes for statPrefix.
    • setStatPrefix

      public StatefulSession.Builder setStatPrefix(String value)
       Optional stat prefix. If specified, the filter will emit statistics in the
       ``http.<stat_prefix>.stateful_session.<stat_prefix>.`` namespace. If not specified, no statistics will be emitted.
      
       .. note::
      
         Per-route configuration overrides do not support statistics and will not emit stats even if this field is set
         in the per-route config.
       
      string stat_prefix = 3;
      Parameters:
      value - The statPrefix to set.
      Returns:
      This builder for chaining.
    • clearStatPrefix

      public StatefulSession.Builder clearStatPrefix()
       Optional stat prefix. If specified, the filter will emit statistics in the
       ``http.<stat_prefix>.stateful_session.<stat_prefix>.`` namespace. If not specified, no statistics will be emitted.
      
       .. note::
      
         Per-route configuration overrides do not support statistics and will not emit stats even if this field is set
         in the per-route config.
       
      string stat_prefix = 3;
      Returns:
      This builder for chaining.
    • setStatPrefixBytes

      public StatefulSession.Builder setStatPrefixBytes(com.google.protobuf.ByteString value)
       Optional stat prefix. If specified, the filter will emit statistics in the
       ``http.<stat_prefix>.stateful_session.<stat_prefix>.`` namespace. If not specified, no statistics will be emitted.
      
       .. note::
      
         Per-route configuration overrides do not support statistics and will not emit stats even if this field is set
         in the per-route config.
       
      string stat_prefix = 3;
      Parameters:
      value - The bytes for statPrefix to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final StatefulSession.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<StatefulSession.Builder>
    • mergeUnknownFields

      public final StatefulSession.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<StatefulSession.Builder>