Class TcpProxy.TcpAccessLogOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.TcpAccessLogOptions.Builder>
io.envoyproxy.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.TcpAccessLogOptions.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TcpProxy.TcpAccessLogOptionsOrBuilder, Cloneable
Enclosing class:
TcpProxy.TcpAccessLogOptions

public static final class TcpProxy.TcpAccessLogOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.TcpAccessLogOptions.Builder> implements TcpProxy.TcpAccessLogOptionsOrBuilder
Protobuf type envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.TcpAccessLogOptions
  • 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<TcpProxy.TcpAccessLogOptions.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<TcpProxy.TcpAccessLogOptions.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<TcpProxy.TcpAccessLogOptions.Builder>
    • getDefaultInstanceForType

      public TcpProxy.TcpAccessLogOptions 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 TcpProxy.TcpAccessLogOptions buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<TcpProxy.TcpAccessLogOptions.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public TcpProxy.TcpAccessLogOptions.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<TcpProxy.TcpAccessLogOptions.Builder>
      Throws:
      IOException
    • hasAccessLogFlushInterval

      public boolean hasAccessLogFlushInterval()
       The interval for flushing access logs. By default, the TCP proxy flushes a single access log when the
       connection is closed. If this field is set, the TCP proxy flushes access logs periodically at the
       specified interval.
       The interval must be at least 1ms.
       
      .google.protobuf.Duration access_log_flush_interval = 1 [(.validate.rules) = { ... }
      Specified by:
      hasAccessLogFlushInterval in interface TcpProxy.TcpAccessLogOptionsOrBuilder
      Returns:
      Whether the accessLogFlushInterval field is set.
    • getAccessLogFlushInterval

      public com.google.protobuf.Duration getAccessLogFlushInterval()
       The interval for flushing access logs. By default, the TCP proxy flushes a single access log when the
       connection is closed. If this field is set, the TCP proxy flushes access logs periodically at the
       specified interval.
       The interval must be at least 1ms.
       
      .google.protobuf.Duration access_log_flush_interval = 1 [(.validate.rules) = { ... }
      Specified by:
      getAccessLogFlushInterval in interface TcpProxy.TcpAccessLogOptionsOrBuilder
      Returns:
      The accessLogFlushInterval.
    • setAccessLogFlushInterval

      public TcpProxy.TcpAccessLogOptions.Builder setAccessLogFlushInterval(com.google.protobuf.Duration value)
       The interval for flushing access logs. By default, the TCP proxy flushes a single access log when the
       connection is closed. If this field is set, the TCP proxy flushes access logs periodically at the
       specified interval.
       The interval must be at least 1ms.
       
      .google.protobuf.Duration access_log_flush_interval = 1 [(.validate.rules) = { ... }
    • setAccessLogFlushInterval

      public TcpProxy.TcpAccessLogOptions.Builder setAccessLogFlushInterval(com.google.protobuf.Duration.Builder builderForValue)
       The interval for flushing access logs. By default, the TCP proxy flushes a single access log when the
       connection is closed. If this field is set, the TCP proxy flushes access logs periodically at the
       specified interval.
       The interval must be at least 1ms.
       
      .google.protobuf.Duration access_log_flush_interval = 1 [(.validate.rules) = { ... }
    • mergeAccessLogFlushInterval

      public TcpProxy.TcpAccessLogOptions.Builder mergeAccessLogFlushInterval(com.google.protobuf.Duration value)
       The interval for flushing access logs. By default, the TCP proxy flushes a single access log when the
       connection is closed. If this field is set, the TCP proxy flushes access logs periodically at the
       specified interval.
       The interval must be at least 1ms.
       
      .google.protobuf.Duration access_log_flush_interval = 1 [(.validate.rules) = { ... }
    • clearAccessLogFlushInterval

      public TcpProxy.TcpAccessLogOptions.Builder clearAccessLogFlushInterval()
       The interval for flushing access logs. By default, the TCP proxy flushes a single access log when the
       connection is closed. If this field is set, the TCP proxy flushes access logs periodically at the
       specified interval.
       The interval must be at least 1ms.
       
      .google.protobuf.Duration access_log_flush_interval = 1 [(.validate.rules) = { ... }
    • getAccessLogFlushIntervalBuilder

      public com.google.protobuf.Duration.Builder getAccessLogFlushIntervalBuilder()
       The interval for flushing access logs. By default, the TCP proxy flushes a single access log when the
       connection is closed. If this field is set, the TCP proxy flushes access logs periodically at the
       specified interval.
       The interval must be at least 1ms.
       
      .google.protobuf.Duration access_log_flush_interval = 1 [(.validate.rules) = { ... }
    • getAccessLogFlushIntervalOrBuilder

      public com.google.protobuf.DurationOrBuilder getAccessLogFlushIntervalOrBuilder()
       The interval for flushing access logs. By default, the TCP proxy flushes a single access log when the
       connection is closed. If this field is set, the TCP proxy flushes access logs periodically at the
       specified interval.
       The interval must be at least 1ms.
       
      .google.protobuf.Duration access_log_flush_interval = 1 [(.validate.rules) = { ... }
      Specified by:
      getAccessLogFlushIntervalOrBuilder in interface TcpProxy.TcpAccessLogOptionsOrBuilder
    • getFlushAccessLogOnConnected

      public boolean getFlushAccessLogOnConnected()
       If set to true, the access log is flushed when the TCP proxy successfully establishes a
       connection with the upstream. If the connection fails, the access log is not flushed.
       
      bool flush_access_log_on_connected = 2;
      Specified by:
      getFlushAccessLogOnConnected in interface TcpProxy.TcpAccessLogOptionsOrBuilder
      Returns:
      The flushAccessLogOnConnected.
    • setFlushAccessLogOnConnected

      public TcpProxy.TcpAccessLogOptions.Builder setFlushAccessLogOnConnected(boolean value)
       If set to true, the access log is flushed when the TCP proxy successfully establishes a
       connection with the upstream. If the connection fails, the access log is not flushed.
       
      bool flush_access_log_on_connected = 2;
      Parameters:
      value - The flushAccessLogOnConnected to set.
      Returns:
      This builder for chaining.
    • clearFlushAccessLogOnConnected

      public TcpProxy.TcpAccessLogOptions.Builder clearFlushAccessLogOnConnected()
       If set to true, the access log is flushed when the TCP proxy successfully establishes a
       connection with the upstream. If the connection fails, the access log is not flushed.
       
      bool flush_access_log_on_connected = 2;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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