Class DatadogConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DatadogConfig.Builder>
io.envoyproxy.envoy.config.trace.v3.DatadogConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DatadogConfigOrBuilder, Cloneable
Enclosing class:
DatadogConfig

public static final class DatadogConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DatadogConfig.Builder> implements DatadogConfigOrBuilder
 Configuration for the Datadog tracer.
 [#extension: envoy.tracers.datadog]
 
Protobuf type envoy.config.trace.v3.DatadogConfig
  • 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<DatadogConfig.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public DatadogConfig.Builder mergeFrom(DatadogConfig other)
    • isInitialized

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

      public DatadogConfig.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<DatadogConfig.Builder>
      Throws:
      IOException
    • getCollectorCluster

      public String getCollectorCluster()
       The cluster to use for submitting traces to the Datadog agent.
       
      string collector_cluster = 1 [(.validate.rules) = { ... }
      Specified by:
      getCollectorCluster in interface DatadogConfigOrBuilder
      Returns:
      The collectorCluster.
    • getCollectorClusterBytes

      public com.google.protobuf.ByteString getCollectorClusterBytes()
       The cluster to use for submitting traces to the Datadog agent.
       
      string collector_cluster = 1 [(.validate.rules) = { ... }
      Specified by:
      getCollectorClusterBytes in interface DatadogConfigOrBuilder
      Returns:
      The bytes for collectorCluster.
    • setCollectorCluster

      public DatadogConfig.Builder setCollectorCluster(String value)
       The cluster to use for submitting traces to the Datadog agent.
       
      string collector_cluster = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The collectorCluster to set.
      Returns:
      This builder for chaining.
    • clearCollectorCluster

      public DatadogConfig.Builder clearCollectorCluster()
       The cluster to use for submitting traces to the Datadog agent.
       
      string collector_cluster = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setCollectorClusterBytes

      public DatadogConfig.Builder setCollectorClusterBytes(com.google.protobuf.ByteString value)
       The cluster to use for submitting traces to the Datadog agent.
       
      string collector_cluster = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for collectorCluster to set.
      Returns:
      This builder for chaining.
    • getServiceName

      public String getServiceName()
       The name used for the service when traces are generated by envoy.
       
      string service_name = 2 [(.validate.rules) = { ... }
      Specified by:
      getServiceName in interface DatadogConfigOrBuilder
      Returns:
      The serviceName.
    • getServiceNameBytes

      public com.google.protobuf.ByteString getServiceNameBytes()
       The name used for the service when traces are generated by envoy.
       
      string service_name = 2 [(.validate.rules) = { ... }
      Specified by:
      getServiceNameBytes in interface DatadogConfigOrBuilder
      Returns:
      The bytes for serviceName.
    • setServiceName

      public DatadogConfig.Builder setServiceName(String value)
       The name used for the service when traces are generated by envoy.
       
      string service_name = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The serviceName to set.
      Returns:
      This builder for chaining.
    • clearServiceName

      public DatadogConfig.Builder clearServiceName()
       The name used for the service when traces are generated by envoy.
       
      string service_name = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setServiceNameBytes

      public DatadogConfig.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
       The name used for the service when traces are generated by envoy.
       
      string service_name = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for serviceName to set.
      Returns:
      This builder for chaining.
    • getCollectorHostname

      public String getCollectorHostname()
       Optional hostname to use when sending spans to the collector_cluster. Useful for collectors
       that require a specific hostname. Defaults to :ref:`collector_cluster <envoy_v3_api_field_config.trace.v3.DatadogConfig.collector_cluster>` above.
       
      string collector_hostname = 3;
      Specified by:
      getCollectorHostname in interface DatadogConfigOrBuilder
      Returns:
      The collectorHostname.
    • getCollectorHostnameBytes

      public com.google.protobuf.ByteString getCollectorHostnameBytes()
       Optional hostname to use when sending spans to the collector_cluster. Useful for collectors
       that require a specific hostname. Defaults to :ref:`collector_cluster <envoy_v3_api_field_config.trace.v3.DatadogConfig.collector_cluster>` above.
       
      string collector_hostname = 3;
      Specified by:
      getCollectorHostnameBytes in interface DatadogConfigOrBuilder
      Returns:
      The bytes for collectorHostname.
    • setCollectorHostname

      public DatadogConfig.Builder setCollectorHostname(String value)
       Optional hostname to use when sending spans to the collector_cluster. Useful for collectors
       that require a specific hostname. Defaults to :ref:`collector_cluster <envoy_v3_api_field_config.trace.v3.DatadogConfig.collector_cluster>` above.
       
      string collector_hostname = 3;
      Parameters:
      value - The collectorHostname to set.
      Returns:
      This builder for chaining.
    • clearCollectorHostname

      public DatadogConfig.Builder clearCollectorHostname()
       Optional hostname to use when sending spans to the collector_cluster. Useful for collectors
       that require a specific hostname. Defaults to :ref:`collector_cluster <envoy_v3_api_field_config.trace.v3.DatadogConfig.collector_cluster>` above.
       
      string collector_hostname = 3;
      Returns:
      This builder for chaining.
    • setCollectorHostnameBytes

      public DatadogConfig.Builder setCollectorHostnameBytes(com.google.protobuf.ByteString value)
       Optional hostname to use when sending spans to the collector_cluster. Useful for collectors
       that require a specific hostname. Defaults to :ref:`collector_cluster <envoy_v3_api_field_config.trace.v3.DatadogConfig.collector_cluster>` above.
       
      string collector_hostname = 3;
      Parameters:
      value - The bytes for collectorHostname to set.
      Returns:
      This builder for chaining.
    • hasRemoteConfig

      public boolean hasRemoteConfig()
       Enables and configures remote configuration.
       Remote Configuration allows to configure the tracer from Datadog's user interface.
       This feature can drastically increase the number of connections to the Datadog Agent.
       Each tracer regularly polls for configuration updates, and the number of tracers is the product
       of the number of listeners and worker threads.
       
      .envoy.config.trace.v3.DatadogRemoteConfig remote_config = 4;
      Specified by:
      hasRemoteConfig in interface DatadogConfigOrBuilder
      Returns:
      Whether the remoteConfig field is set.
    • getRemoteConfig

      public DatadogRemoteConfig getRemoteConfig()
       Enables and configures remote configuration.
       Remote Configuration allows to configure the tracer from Datadog's user interface.
       This feature can drastically increase the number of connections to the Datadog Agent.
       Each tracer regularly polls for configuration updates, and the number of tracers is the product
       of the number of listeners and worker threads.
       
      .envoy.config.trace.v3.DatadogRemoteConfig remote_config = 4;
      Specified by:
      getRemoteConfig in interface DatadogConfigOrBuilder
      Returns:
      The remoteConfig.
    • setRemoteConfig

      public DatadogConfig.Builder setRemoteConfig(DatadogRemoteConfig value)
       Enables and configures remote configuration.
       Remote Configuration allows to configure the tracer from Datadog's user interface.
       This feature can drastically increase the number of connections to the Datadog Agent.
       Each tracer regularly polls for configuration updates, and the number of tracers is the product
       of the number of listeners and worker threads.
       
      .envoy.config.trace.v3.DatadogRemoteConfig remote_config = 4;
    • setRemoteConfig

      public DatadogConfig.Builder setRemoteConfig(DatadogRemoteConfig.Builder builderForValue)
       Enables and configures remote configuration.
       Remote Configuration allows to configure the tracer from Datadog's user interface.
       This feature can drastically increase the number of connections to the Datadog Agent.
       Each tracer regularly polls for configuration updates, and the number of tracers is the product
       of the number of listeners and worker threads.
       
      .envoy.config.trace.v3.DatadogRemoteConfig remote_config = 4;
    • mergeRemoteConfig

      public DatadogConfig.Builder mergeRemoteConfig(DatadogRemoteConfig value)
       Enables and configures remote configuration.
       Remote Configuration allows to configure the tracer from Datadog's user interface.
       This feature can drastically increase the number of connections to the Datadog Agent.
       Each tracer regularly polls for configuration updates, and the number of tracers is the product
       of the number of listeners and worker threads.
       
      .envoy.config.trace.v3.DatadogRemoteConfig remote_config = 4;
    • clearRemoteConfig

      public DatadogConfig.Builder clearRemoteConfig()
       Enables and configures remote configuration.
       Remote Configuration allows to configure the tracer from Datadog's user interface.
       This feature can drastically increase the number of connections to the Datadog Agent.
       Each tracer regularly polls for configuration updates, and the number of tracers is the product
       of the number of listeners and worker threads.
       
      .envoy.config.trace.v3.DatadogRemoteConfig remote_config = 4;
    • getRemoteConfigBuilder

      public DatadogRemoteConfig.Builder getRemoteConfigBuilder()
       Enables and configures remote configuration.
       Remote Configuration allows to configure the tracer from Datadog's user interface.
       This feature can drastically increase the number of connections to the Datadog Agent.
       Each tracer regularly polls for configuration updates, and the number of tracers is the product
       of the number of listeners and worker threads.
       
      .envoy.config.trace.v3.DatadogRemoteConfig remote_config = 4;
    • getRemoteConfigOrBuilder

      public DatadogRemoteConfigOrBuilder getRemoteConfigOrBuilder()
       Enables and configures remote configuration.
       Remote Configuration allows to configure the tracer from Datadog's user interface.
       This feature can drastically increase the number of connections to the Datadog Agent.
       Each tracer regularly polls for configuration updates, and the number of tracers is the product
       of the number of listeners and worker threads.
       
      .envoy.config.trace.v3.DatadogRemoteConfig remote_config = 4;
      Specified by:
      getRemoteConfigOrBuilder in interface DatadogConfigOrBuilder
    • setUnknownFields

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

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