Class TcpProxy.TcpAccessLogOptions.Builder

    • Method Detail

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

        public TcpProxy.TcpAccessLogOptions 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
      • 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 to flush access log. The TCP proxy will flush only one access log when the connection
         is closed by default. If this field is set, the TCP proxy will flush access log periodically with
         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 to flush access log. The TCP proxy will flush only one access log when the connection
         is closed by default. If this field is set, the TCP proxy will flush access log periodically with
         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 to flush access log. The TCP proxy will flush only one access log when the connection
         is closed by default. If this field is set, the TCP proxy will flush access log periodically with
         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 to flush access log. The TCP proxy will flush only one access log when the connection
         is closed by default. If this field is set, the TCP proxy will flush access log periodically with
         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 to flush access log. The TCP proxy will flush only one access log when the connection
         is closed by default. If this field is set, the TCP proxy will flush access log periodically with
         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 to flush access log. The TCP proxy will flush only one access log when the connection
         is closed by default. If this field is set, the TCP proxy will flush access log periodically with
         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 to flush access log. The TCP proxy will flush only one access log when the connection
         is closed by default. If this field is set, the TCP proxy will flush access log periodically with
         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 to flush access log. The TCP proxy will flush only one access log when the connection
         is closed by default. If this field is set, the TCP proxy will flush access log periodically with
         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, access log will be flushed when the TCP proxy has successfully established a
         connection with the upstream. If the connection failed, the access log will not be 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, access log will be flushed when the TCP proxy has successfully established a
         connection with the upstream. If the connection failed, the access log will not be 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, access log will be flushed when the TCP proxy has successfully established a
         connection with the upstream. If the connection failed, the access log will not be flushed.
         
        bool flush_access_log_on_connected = 2;
        Returns:
        This builder for chaining.