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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The id of the Dynatrace cluster id.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute).clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Default number of root spans per minute, used when the value can't be obtained from the Dynatrace API.The Dynatrace tenant.clone()intThe id of the Dynatrace cluster id.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute).The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute).The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute).intDefault number of root spans per minute, used when the value can't be obtained from the Dynatrace API.The Dynatrace tenant.com.google.protobuf.ByteStringThe Dynatrace tenant.booleanThe HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DynatraceSamplerConfig other) mergeHttpService(HttpService value) The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute).mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setClusterId(int value) The id of the Dynatrace cluster id.setHttpService(HttpService value) The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute).setHttpService(HttpService.Builder builderForValue) The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRootSpansPerMinute(int value) Default number of root spans per minute, used when the value can't be obtained from the Dynatrace API.The Dynatrace tenant.setTenantBytes(com.google.protobuf.ByteString value) The Dynatrace tenant.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
-
setField
public DynatraceSamplerConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
-
clearField
public DynatraceSamplerConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
-
clearOneof
public DynatraceSamplerConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
-
setRepeatedField
public DynatraceSamplerConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
-
addRepeatedField
public DynatraceSamplerConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DynatraceSamplerConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DynatraceSamplerConfig.Builder>- Throws:
IOException
-
getTenant
The Dynatrace tenant. The value can be obtained from the Envoy deployment page in Dynatrace.
string tenant = 1;- Specified by:
getTenantin interfaceDynatraceSamplerConfigOrBuilder- 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:
getTenantBytesin interfaceDynatraceSamplerConfigOrBuilder- Returns:
- The bytes for tenant.
-
setTenant
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
The Dynatrace tenant. The value can be obtained from the Envoy deployment page in Dynatrace.
string tenant = 1;- Returns:
- This builder for chaining.
-
setTenantBytes
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:
getClusterIdin interfaceDynatraceSamplerConfigOrBuilder- Returns:
- The clusterId.
-
setClusterId
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
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:
hasHttpServicein interfaceDynatraceSamplerConfigOrBuilder- Returns:
- Whether the httpService field is set.
-
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:
getHttpServicein interfaceDynatraceSamplerConfigOrBuilder- Returns:
- The httpService.
-
setHttpService
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
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
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
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
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
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:
getHttpServiceOrBuilderin interfaceDynatraceSamplerConfigOrBuilder
-
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:
getRootSpansPerMinutein interfaceDynatraceSamplerConfigOrBuilder- Returns:
- The rootSpansPerMinute.
-
setRootSpansPerMinute
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
-
mergeUnknownFields
public final DynatraceSamplerConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DynatraceSamplerConfig.Builder>
-