Class OutputConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>
io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, OutputConfigOrBuilder, Cloneable
Enclosing class:
OutputConfig

public static final class OutputConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder> implements OutputConfigOrBuilder
 Tap output configuration.
 
Protobuf type envoy.service.tap.v2alpha.OutputConfig
  • 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<OutputConfig.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public OutputConfig.Builder mergeFrom(OutputConfig other)
    • isInitialized

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

      public OutputConfig.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<OutputConfig.Builder>
      Throws:
      IOException
    • getSinksList

      public List<OutputSink> getSinksList()
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
      Specified by:
      getSinksList in interface OutputConfigOrBuilder
    • getSinksCount

      public int getSinksCount()
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
      Specified by:
      getSinksCount in interface OutputConfigOrBuilder
    • getSinks

      public OutputSink getSinks(int index)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
      Specified by:
      getSinks in interface OutputConfigOrBuilder
    • setSinks

      public OutputConfig.Builder setSinks(int index, OutputSink value)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • setSinks

      public OutputConfig.Builder setSinks(int index, OutputSink.Builder builderForValue)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • addSinks

      public OutputConfig.Builder addSinks(OutputSink value)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • addSinks

      public OutputConfig.Builder addSinks(int index, OutputSink value)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • addSinks

      public OutputConfig.Builder addSinks(OutputSink.Builder builderForValue)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • addSinks

      public OutputConfig.Builder addSinks(int index, OutputSink.Builder builderForValue)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • addAllSinks

      public OutputConfig.Builder addAllSinks(Iterable<? extends OutputSink> values)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • clearSinks

      public OutputConfig.Builder clearSinks()
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • removeSinks

      public OutputConfig.Builder removeSinks(int index)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • getSinksBuilder

      public OutputSink.Builder getSinksBuilder(int index)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • getSinksOrBuilder

      public OutputSinkOrBuilder getSinksOrBuilder(int index)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
      Specified by:
      getSinksOrBuilder in interface OutputConfigOrBuilder
    • getSinksOrBuilderList

      public List<? extends OutputSinkOrBuilder> getSinksOrBuilderList()
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
      Specified by:
      getSinksOrBuilderList in interface OutputConfigOrBuilder
    • addSinksBuilder

      public OutputSink.Builder addSinksBuilder()
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • addSinksBuilder

      public OutputSink.Builder addSinksBuilder(int index)
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • getSinksBuilderList

      public List<OutputSink.Builder> getSinksBuilderList()
       Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
       sink types are supported this constraint will be relaxed.
       
      repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
    • hasMaxBufferedRxBytes

      public boolean hasMaxBufferedRxBytes()
       For buffered tapping, the maximum amount of received body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
      Specified by:
      hasMaxBufferedRxBytes in interface OutputConfigOrBuilder
      Returns:
      Whether the maxBufferedRxBytes field is set.
    • getMaxBufferedRxBytes

      public com.google.protobuf.UInt32Value getMaxBufferedRxBytes()
       For buffered tapping, the maximum amount of received body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
      Specified by:
      getMaxBufferedRxBytes in interface OutputConfigOrBuilder
      Returns:
      The maxBufferedRxBytes.
    • setMaxBufferedRxBytes

      public OutputConfig.Builder setMaxBufferedRxBytes(com.google.protobuf.UInt32Value value)
       For buffered tapping, the maximum amount of received body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
    • setMaxBufferedRxBytes

      public OutputConfig.Builder setMaxBufferedRxBytes(com.google.protobuf.UInt32Value.Builder builderForValue)
       For buffered tapping, the maximum amount of received body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
    • mergeMaxBufferedRxBytes

      public OutputConfig.Builder mergeMaxBufferedRxBytes(com.google.protobuf.UInt32Value value)
       For buffered tapping, the maximum amount of received body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
    • clearMaxBufferedRxBytes

      public OutputConfig.Builder clearMaxBufferedRxBytes()
       For buffered tapping, the maximum amount of received body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
    • getMaxBufferedRxBytesBuilder

      public com.google.protobuf.UInt32Value.Builder getMaxBufferedRxBytesBuilder()
       For buffered tapping, the maximum amount of received body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
    • getMaxBufferedRxBytesOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getMaxBufferedRxBytesOrBuilder()
       For buffered tapping, the maximum amount of received body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
      Specified by:
      getMaxBufferedRxBytesOrBuilder in interface OutputConfigOrBuilder
    • hasMaxBufferedTxBytes

      public boolean hasMaxBufferedTxBytes()
       For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
      Specified by:
      hasMaxBufferedTxBytes in interface OutputConfigOrBuilder
      Returns:
      Whether the maxBufferedTxBytes field is set.
    • getMaxBufferedTxBytes

      public com.google.protobuf.UInt32Value getMaxBufferedTxBytes()
       For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
      Specified by:
      getMaxBufferedTxBytes in interface OutputConfigOrBuilder
      Returns:
      The maxBufferedTxBytes.
    • setMaxBufferedTxBytes

      public OutputConfig.Builder setMaxBufferedTxBytes(com.google.protobuf.UInt32Value value)
       For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
    • setMaxBufferedTxBytes

      public OutputConfig.Builder setMaxBufferedTxBytes(com.google.protobuf.UInt32Value.Builder builderForValue)
       For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
    • mergeMaxBufferedTxBytes

      public OutputConfig.Builder mergeMaxBufferedTxBytes(com.google.protobuf.UInt32Value value)
       For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
    • clearMaxBufferedTxBytes

      public OutputConfig.Builder clearMaxBufferedTxBytes()
       For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
    • getMaxBufferedTxBytesBuilder

      public com.google.protobuf.UInt32Value.Builder getMaxBufferedTxBytesBuilder()
       For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
    • getMaxBufferedTxBytesOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getMaxBufferedTxBytesOrBuilder()
       For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
       truncation. If truncation occurs, the :ref:`truncated
       <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
       default is 1KiB.
       
      .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
      Specified by:
      getMaxBufferedTxBytesOrBuilder in interface OutputConfigOrBuilder
    • getStreaming

      public boolean getStreaming()
       Indicates whether taps produce a single buffered message per tap, or multiple streamed
       messages per tap in the emitted :ref:`TraceWrapper
       <envoy_api_msg_data.tap.v2alpha.TraceWrapper>` messages. Note that streamed tapping does not
       mean that no buffering takes place. Buffering may be required if data is processed before a
       match can be determined. See the HTTP tap filter :ref:`streaming
       <config_http_filters_tap_streaming>` documentation for more information.
       
      bool streaming = 4;
      Specified by:
      getStreaming in interface OutputConfigOrBuilder
      Returns:
      The streaming.
    • setStreaming

      public OutputConfig.Builder setStreaming(boolean value)
       Indicates whether taps produce a single buffered message per tap, or multiple streamed
       messages per tap in the emitted :ref:`TraceWrapper
       <envoy_api_msg_data.tap.v2alpha.TraceWrapper>` messages. Note that streamed tapping does not
       mean that no buffering takes place. Buffering may be required if data is processed before a
       match can be determined. See the HTTP tap filter :ref:`streaming
       <config_http_filters_tap_streaming>` documentation for more information.
       
      bool streaming = 4;
      Parameters:
      value - The streaming to set.
      Returns:
      This builder for chaining.
    • clearStreaming

      public OutputConfig.Builder clearStreaming()
       Indicates whether taps produce a single buffered message per tap, or multiple streamed
       messages per tap in the emitted :ref:`TraceWrapper
       <envoy_api_msg_data.tap.v2alpha.TraceWrapper>` messages. Note that streamed tapping does not
       mean that no buffering takes place. Buffering may be required if data is processed before a
       match can be determined. See the HTTP tap filter :ref:`streaming
       <config_http_filters_tap_streaming>` documentation for more information.
       
      bool streaming = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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