Class DynatraceSamplerConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
io.envoyproxy.envoy.extensions.tracers.opentelemetry.samplers.v3.DynatraceSamplerConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DynatraceSamplerConfigOrBuilder, Cloneable
Enclosing class:
DynatraceSamplerConfig

public static final class DynatraceSamplerConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder> implements DynatraceSamplerConfigOrBuilder
 Configuration for the Dynatrace Sampler extension.
 [#extension: envoy.tracers.opentelemetry.samplers.dynatrace]
 
Protobuf type envoy.extensions.tracers.opentelemetry.samplers.v3.DynatraceSamplerConfig
  • 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<DynatraceSamplerConfig.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<DynatraceSamplerConfig.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<DynatraceSamplerConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public DynatraceSamplerConfig.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<DynatraceSamplerConfig.Builder>
      Throws:
      IOException
    • getTenant

      public String getTenant()
       The Dynatrace tenant.
      
       The value can be obtained from the Envoy deployment page in Dynatrace.
       
      string tenant = 1;
      Specified by:
      getTenant in interface DynatraceSamplerConfigOrBuilder
      Returns:
      The tenant.
    • getTenantBytes

      public com.google.protobuf.ByteString getTenantBytes()
       The Dynatrace tenant.
      
       The value can be obtained from the Envoy deployment page in Dynatrace.
       
      string tenant = 1;
      Specified by:
      getTenantBytes in interface DynatraceSamplerConfigOrBuilder
      Returns:
      The bytes for tenant.
    • setTenant

      public DynatraceSamplerConfig.Builder setTenant(String value)
       The Dynatrace tenant.
      
       The value can be obtained from the Envoy deployment page in Dynatrace.
       
      string tenant = 1;
      Parameters:
      value - The tenant to set.
      Returns:
      This builder for chaining.
    • clearTenant

      public DynatraceSamplerConfig.Builder clearTenant()
       The Dynatrace tenant.
      
       The value can be obtained from the Envoy deployment page in Dynatrace.
       
      string tenant = 1;
      Returns:
      This builder for chaining.
    • setTenantBytes

      public DynatraceSamplerConfig.Builder setTenantBytes(com.google.protobuf.ByteString value)
       The Dynatrace tenant.
      
       The value can be obtained from the Envoy deployment page in Dynatrace.
       
      string tenant = 1;
      Parameters:
      value - The bytes for tenant to set.
      Returns:
      This builder for chaining.
    • getClusterId

      public int getClusterId()
       The id of the Dynatrace cluster id.
      
       The value can be obtained from the Envoy deployment page in Dynatrace.
       
      int32 cluster_id = 2;
      Specified by:
      getClusterId in interface DynatraceSamplerConfigOrBuilder
      Returns:
      The clusterId.
    • setClusterId

      public DynatraceSamplerConfig.Builder setClusterId(int value)
       The id of the Dynatrace cluster id.
      
       The value can be obtained from the Envoy deployment page in Dynatrace.
       
      int32 cluster_id = 2;
      Parameters:
      value - The clusterId to set.
      Returns:
      This builder for chaining.
    • clearClusterId

      public DynatraceSamplerConfig.Builder clearClusterId()
       The id of the Dynatrace cluster id.
      
       The value can be obtained from the Envoy deployment page in Dynatrace.
       
      int32 cluster_id = 2;
      Returns:
      This builder for chaining.
    • hasHttpService

      public boolean hasHttpService()
       The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute). For example:
      
       .. code-block:: yaml
      
          http_service:
            http_uri:
              cluster: dynatrace
              uri: <tenant>.dev.dynatracelabs.com/api/v2/samplingConfiguration
              timeout: 10s
            request_headers_to_add:
            - header:
                key : "authorization"
                value: "Api-Token dt..."
       
      .envoy.config.core.v3.HttpService http_service = 3;
      Specified by:
      hasHttpService in interface DynatraceSamplerConfigOrBuilder
      Returns:
      Whether the httpService field is set.
    • getHttpService

      public HttpService getHttpService()
       The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute). For example:
      
       .. code-block:: yaml
      
          http_service:
            http_uri:
              cluster: dynatrace
              uri: <tenant>.dev.dynatracelabs.com/api/v2/samplingConfiguration
              timeout: 10s
            request_headers_to_add:
            - header:
                key : "authorization"
                value: "Api-Token dt..."
       
      .envoy.config.core.v3.HttpService http_service = 3;
      Specified by:
      getHttpService in interface DynatraceSamplerConfigOrBuilder
      Returns:
      The httpService.
    • setHttpService

      public DynatraceSamplerConfig.Builder setHttpService(HttpService value)
       The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute). For example:
      
       .. code-block:: yaml
      
          http_service:
            http_uri:
              cluster: dynatrace
              uri: <tenant>.dev.dynatracelabs.com/api/v2/samplingConfiguration
              timeout: 10s
            request_headers_to_add:
            - header:
                key : "authorization"
                value: "Api-Token dt..."
       
      .envoy.config.core.v3.HttpService http_service = 3;
    • setHttpService

      public DynatraceSamplerConfig.Builder setHttpService(HttpService.Builder builderForValue)
       The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute). For example:
      
       .. code-block:: yaml
      
          http_service:
            http_uri:
              cluster: dynatrace
              uri: <tenant>.dev.dynatracelabs.com/api/v2/samplingConfiguration
              timeout: 10s
            request_headers_to_add:
            - header:
                key : "authorization"
                value: "Api-Token dt..."
       
      .envoy.config.core.v3.HttpService http_service = 3;
    • mergeHttpService

      public DynatraceSamplerConfig.Builder mergeHttpService(HttpService value)
       The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute). For example:
      
       .. code-block:: yaml
      
          http_service:
            http_uri:
              cluster: dynatrace
              uri: <tenant>.dev.dynatracelabs.com/api/v2/samplingConfiguration
              timeout: 10s
            request_headers_to_add:
            - header:
                key : "authorization"
                value: "Api-Token dt..."
       
      .envoy.config.core.v3.HttpService http_service = 3;
    • clearHttpService

      public DynatraceSamplerConfig.Builder clearHttpService()
       The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute). For example:
      
       .. code-block:: yaml
      
          http_service:
            http_uri:
              cluster: dynatrace
              uri: <tenant>.dev.dynatracelabs.com/api/v2/samplingConfiguration
              timeout: 10s
            request_headers_to_add:
            - header:
                key : "authorization"
                value: "Api-Token dt..."
       
      .envoy.config.core.v3.HttpService http_service = 3;
    • getHttpServiceBuilder

      public HttpService.Builder getHttpServiceBuilder()
       The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute). For example:
      
       .. code-block:: yaml
      
          http_service:
            http_uri:
              cluster: dynatrace
              uri: <tenant>.dev.dynatracelabs.com/api/v2/samplingConfiguration
              timeout: 10s
            request_headers_to_add:
            - header:
                key : "authorization"
                value: "Api-Token dt..."
       
      .envoy.config.core.v3.HttpService http_service = 3;
    • getHttpServiceOrBuilder

      public HttpServiceOrBuilder getHttpServiceOrBuilder()
       The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute). For example:
      
       .. code-block:: yaml
      
          http_service:
            http_uri:
              cluster: dynatrace
              uri: <tenant>.dev.dynatracelabs.com/api/v2/samplingConfiguration
              timeout: 10s
            request_headers_to_add:
            - header:
                key : "authorization"
                value: "Api-Token dt..."
       
      .envoy.config.core.v3.HttpService http_service = 3;
      Specified by:
      getHttpServiceOrBuilder in interface DynatraceSamplerConfigOrBuilder
    • getRootSpansPerMinute

      public int getRootSpansPerMinute()
       Default number of root spans per minute, used when the value can't be obtained from the Dynatrace API.
      
       A default value of ``1000`` is used when:
      
       - ``root_spans_per_minute`` is unset
       - ``root_spans_per_minute`` is set to 0
       
      uint32 root_spans_per_minute = 4;
      Specified by:
      getRootSpansPerMinute in interface DynatraceSamplerConfigOrBuilder
      Returns:
      The rootSpansPerMinute.
    • setRootSpansPerMinute

      public DynatraceSamplerConfig.Builder setRootSpansPerMinute(int value)
       Default number of root spans per minute, used when the value can't be obtained from the Dynatrace API.
      
       A default value of ``1000`` is used when:
      
       - ``root_spans_per_minute`` is unset
       - ``root_spans_per_minute`` is set to 0
       
      uint32 root_spans_per_minute = 4;
      Parameters:
      value - The rootSpansPerMinute to set.
      Returns:
      This builder for chaining.
    • clearRootSpansPerMinute

      public DynatraceSamplerConfig.Builder clearRootSpansPerMinute()
       Default number of root spans per minute, used when the value can't be obtained from the Dynatrace API.
      
       A default value of ``1000`` is used when:
      
       - ``root_spans_per_minute`` is unset
       - ``root_spans_per_minute`` is set to 0
       
      uint32 root_spans_per_minute = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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