Class TapConfig.Builder

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

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

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

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

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

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

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

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

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

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

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

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

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

      public TapConfig.Builder mergeFrom(TapConfig other)
    • isInitialized

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

      public TapConfig.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<TapConfig.Builder>
      Throws:
      IOException
    • hasMatchConfig

      public boolean hasMatchConfig()
       The match configuration. If the configuration matches the data source being tapped, a tap will
       occur, with the result written to the configured output.
       
      .envoy.service.tap.v2alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... }
      Specified by:
      hasMatchConfig in interface TapConfigOrBuilder
      Returns:
      Whether the matchConfig field is set.
    • getMatchConfig

      public MatchPredicate getMatchConfig()
       The match configuration. If the configuration matches the data source being tapped, a tap will
       occur, with the result written to the configured output.
       
      .envoy.service.tap.v2alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... }
      Specified by:
      getMatchConfig in interface TapConfigOrBuilder
      Returns:
      The matchConfig.
    • setMatchConfig

      public TapConfig.Builder setMatchConfig(MatchPredicate value)
       The match configuration. If the configuration matches the data source being tapped, a tap will
       occur, with the result written to the configured output.
       
      .envoy.service.tap.v2alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... }
    • setMatchConfig

      public TapConfig.Builder setMatchConfig(MatchPredicate.Builder builderForValue)
       The match configuration. If the configuration matches the data source being tapped, a tap will
       occur, with the result written to the configured output.
       
      .envoy.service.tap.v2alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... }
    • mergeMatchConfig

      public TapConfig.Builder mergeMatchConfig(MatchPredicate value)
       The match configuration. If the configuration matches the data source being tapped, a tap will
       occur, with the result written to the configured output.
       
      .envoy.service.tap.v2alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... }
    • clearMatchConfig

      public TapConfig.Builder clearMatchConfig()
       The match configuration. If the configuration matches the data source being tapped, a tap will
       occur, with the result written to the configured output.
       
      .envoy.service.tap.v2alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... }
    • getMatchConfigBuilder

      public MatchPredicate.Builder getMatchConfigBuilder()
       The match configuration. If the configuration matches the data source being tapped, a tap will
       occur, with the result written to the configured output.
       
      .envoy.service.tap.v2alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... }
    • getMatchConfigOrBuilder

      public MatchPredicateOrBuilder getMatchConfigOrBuilder()
       The match configuration. If the configuration matches the data source being tapped, a tap will
       occur, with the result written to the configured output.
       
      .envoy.service.tap.v2alpha.MatchPredicate match_config = 1 [(.validate.rules) = { ... }
      Specified by:
      getMatchConfigOrBuilder in interface TapConfigOrBuilder
    • hasOutputConfig

      public boolean hasOutputConfig()
       The tap output configuration. If a match configuration matches a data source being tapped,
       a tap will occur and the data will be written to the configured output.
       
      .envoy.service.tap.v2alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... }
      Specified by:
      hasOutputConfig in interface TapConfigOrBuilder
      Returns:
      Whether the outputConfig field is set.
    • getOutputConfig

      public OutputConfig getOutputConfig()
       The tap output configuration. If a match configuration matches a data source being tapped,
       a tap will occur and the data will be written to the configured output.
       
      .envoy.service.tap.v2alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... }
      Specified by:
      getOutputConfig in interface TapConfigOrBuilder
      Returns:
      The outputConfig.
    • setOutputConfig

      public TapConfig.Builder setOutputConfig(OutputConfig value)
       The tap output configuration. If a match configuration matches a data source being tapped,
       a tap will occur and the data will be written to the configured output.
       
      .envoy.service.tap.v2alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... }
    • setOutputConfig

      public TapConfig.Builder setOutputConfig(OutputConfig.Builder builderForValue)
       The tap output configuration. If a match configuration matches a data source being tapped,
       a tap will occur and the data will be written to the configured output.
       
      .envoy.service.tap.v2alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... }
    • mergeOutputConfig

      public TapConfig.Builder mergeOutputConfig(OutputConfig value)
       The tap output configuration. If a match configuration matches a data source being tapped,
       a tap will occur and the data will be written to the configured output.
       
      .envoy.service.tap.v2alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... }
    • clearOutputConfig

      public TapConfig.Builder clearOutputConfig()
       The tap output configuration. If a match configuration matches a data source being tapped,
       a tap will occur and the data will be written to the configured output.
       
      .envoy.service.tap.v2alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... }
    • getOutputConfigBuilder

      public OutputConfig.Builder getOutputConfigBuilder()
       The tap output configuration. If a match configuration matches a data source being tapped,
       a tap will occur and the data will be written to the configured output.
       
      .envoy.service.tap.v2alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... }
    • getOutputConfigOrBuilder

      public OutputConfigOrBuilder getOutputConfigOrBuilder()
       The tap output configuration. If a match configuration matches a data source being tapped,
       a tap will occur and the data will be written to the configured output.
       
      .envoy.service.tap.v2alpha.OutputConfig output_config = 2 [(.validate.rules) = { ... }
      Specified by:
      getOutputConfigOrBuilder in interface TapConfigOrBuilder
    • hasTapEnabled

      public boolean hasTapEnabled()
       [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
       which the tap matching is enabled. When not enabled, the request\connection will not be
       recorded.
      
       .. note::
      
         This field defaults to 100/:ref:`HUNDRED
         <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
       
      .envoy.api.v2.core.RuntimeFractionalPercent tap_enabled = 3;
      Specified by:
      hasTapEnabled in interface TapConfigOrBuilder
      Returns:
      Whether the tapEnabled field is set.
    • getTapEnabled

      public RuntimeFractionalPercent getTapEnabled()
       [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
       which the tap matching is enabled. When not enabled, the request\connection will not be
       recorded.
      
       .. note::
      
         This field defaults to 100/:ref:`HUNDRED
         <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
       
      .envoy.api.v2.core.RuntimeFractionalPercent tap_enabled = 3;
      Specified by:
      getTapEnabled in interface TapConfigOrBuilder
      Returns:
      The tapEnabled.
    • setTapEnabled

      public TapConfig.Builder setTapEnabled(RuntimeFractionalPercent value)
       [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
       which the tap matching is enabled. When not enabled, the request\connection will not be
       recorded.
      
       .. note::
      
         This field defaults to 100/:ref:`HUNDRED
         <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
       
      .envoy.api.v2.core.RuntimeFractionalPercent tap_enabled = 3;
    • setTapEnabled

      public TapConfig.Builder setTapEnabled(RuntimeFractionalPercent.Builder builderForValue)
       [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
       which the tap matching is enabled. When not enabled, the request\connection will not be
       recorded.
      
       .. note::
      
         This field defaults to 100/:ref:`HUNDRED
         <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
       
      .envoy.api.v2.core.RuntimeFractionalPercent tap_enabled = 3;
    • mergeTapEnabled

      public TapConfig.Builder mergeTapEnabled(RuntimeFractionalPercent value)
       [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
       which the tap matching is enabled. When not enabled, the request\connection will not be
       recorded.
      
       .. note::
      
         This field defaults to 100/:ref:`HUNDRED
         <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
       
      .envoy.api.v2.core.RuntimeFractionalPercent tap_enabled = 3;
    • clearTapEnabled

      public TapConfig.Builder clearTapEnabled()
       [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
       which the tap matching is enabled. When not enabled, the request\connection will not be
       recorded.
      
       .. note::
      
         This field defaults to 100/:ref:`HUNDRED
         <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
       
      .envoy.api.v2.core.RuntimeFractionalPercent tap_enabled = 3;
    • getTapEnabledBuilder

      public RuntimeFractionalPercent.Builder getTapEnabledBuilder()
       [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
       which the tap matching is enabled. When not enabled, the request\connection will not be
       recorded.
      
       .. note::
      
         This field defaults to 100/:ref:`HUNDRED
         <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
       
      .envoy.api.v2.core.RuntimeFractionalPercent tap_enabled = 3;
    • getTapEnabledOrBuilder

      public RuntimeFractionalPercentOrBuilder getTapEnabledOrBuilder()
       [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
       which the tap matching is enabled. When not enabled, the request\connection will not be
       recorded.
      
       .. note::
      
         This field defaults to 100/:ref:`HUNDRED
         <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
       
      .envoy.api.v2.core.RuntimeFractionalPercent tap_enabled = 3;
      Specified by:
      getTapEnabledOrBuilder in interface TapConfigOrBuilder
    • setUnknownFields

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

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