Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/trace/v3/opentelemetry.proto
package io.envoyproxy.envoy.config.trace.v3;
/**
*
* Configuration for the OpenTelemetry tracer.
* [#extension: envoy.tracers.opentelemetry]
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.config.trace.v3.OpenTelemetryConfig}
*/
public final class OpenTelemetryConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.trace.v3.OpenTelemetryConfig)
OpenTelemetryConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use OpenTelemetryConfig.newBuilder() to construct.
private OpenTelemetryConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OpenTelemetryConfig() {
serviceName_ = "";
resourceDetectors_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OpenTelemetryConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OpenTelemetryConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.envoyproxy.envoy.config.core.v3.GrpcService.Builder subBuilder = null;
if (grpcService_ != null) {
subBuilder = grpcService_.toBuilder();
}
grpcService_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.GrpcService.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(grpcService_);
grpcService_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
serviceName_ = s;
break;
}
case 26: {
io.envoyproxy.envoy.config.core.v3.HttpService.Builder subBuilder = null;
if (httpService_ != null) {
subBuilder = httpService_.toBuilder();
}
httpService_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.HttpService.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(httpService_);
httpService_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
resourceDetectors_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
resourceDetectors_.add(
input.readMessage(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.parser(), extensionRegistry));
break;
}
case 42: {
io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder subBuilder = null;
if (sampler_ != null) {
subBuilder = sampler_.toBuilder();
}
sampler_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sampler_);
sampler_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
resourceDetectors_ = java.util.Collections.unmodifiableList(resourceDetectors_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.trace.v3.OpentelemetryProto.internal_static_envoy_config_trace_v3_OpenTelemetryConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.trace.v3.OpentelemetryProto.internal_static_envoy_config_trace_v3_OpenTelemetryConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig.class, io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig.Builder.class);
}
public static final int GRPC_SERVICE_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.core.v3.GrpcService grpcService_;
/**
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
*
* .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
* @return Whether the grpcService field is set.
*/
@java.lang.Override
public boolean hasGrpcService() {
return grpcService_ != null;
}
/**
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
*
* .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.GrpcServiceOrBuilder getGrpcServiceOrBuilder() {
return getGrpcService();
}
public static final int HTTP_SERVICE_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.config.core.v3.HttpService httpService_;
/**
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
*
* .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
* @return Whether the httpService field is set.
*/
@java.lang.Override
public boolean hasHttpService() {
return httpService_ != null;
}
/**
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
*
* .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.HttpServiceOrBuilder getHttpServiceOrBuilder() {
return getHttpService();
}
public static final int SERVICE_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object serviceName_;
/**
*
* The name for the service. This will be populated in the ResourceSpan Resource attributes.
* If it is not provided, it will default to "unknown_service:envoy".
*
* The name for the service. This will be populated in the ResourceSpan Resource attributes.
* If it is not provided, it will default to "unknown_service:envoy".
*
*
* string service_name = 2;
* @return The bytes for serviceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_DETECTORS_FIELD_NUMBER = 4;
private java.util.List resourceDetectors_;
/**
*
* An ordered list of resource detectors
* [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
*
* An ordered list of resource detectors
* [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
*
*
* repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getResourceDetectorsOrBuilder(
int index) {
return resourceDetectors_.get(index);
}
public static final int SAMPLER_FIELD_NUMBER = 5;
private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig sampler_;
/**
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
*
* .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
* @return Whether the sampler field is set.
*/
@java.lang.Override
public boolean hasSampler() {
return sampler_ != null;
}
/**
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
*
* .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getSamplerOrBuilder() {
return getSampler();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (grpcService_ != null) {
output.writeMessage(1, getGrpcService());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceName_);
}
if (httpService_ != null) {
output.writeMessage(3, getHttpService());
}
for (int i = 0; i < resourceDetectors_.size(); i++) {
output.writeMessage(4, resourceDetectors_.get(i));
}
if (sampler_ != null) {
output.writeMessage(5, getSampler());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (grpcService_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getGrpcService());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceName_);
}
if (httpService_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getHttpService());
}
for (int i = 0; i < resourceDetectors_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, resourceDetectors_.get(i));
}
if (sampler_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getSampler());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig other = (io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig) obj;
if (hasGrpcService() != other.hasGrpcService()) return false;
if (hasGrpcService()) {
if (!getGrpcService()
.equals(other.getGrpcService())) return false;
}
if (hasHttpService() != other.hasHttpService()) return false;
if (hasHttpService()) {
if (!getHttpService()
.equals(other.getHttpService())) return false;
}
if (!getServiceName()
.equals(other.getServiceName())) return false;
if (!getResourceDetectorsList()
.equals(other.getResourceDetectorsList())) return false;
if (hasSampler() != other.hasSampler()) return false;
if (hasSampler()) {
if (!getSampler()
.equals(other.getSampler())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasGrpcService()) {
hash = (37 * hash) + GRPC_SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getGrpcService().hashCode();
}
if (hasHttpService()) {
hash = (37 * hash) + HTTP_SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getHttpService().hashCode();
}
hash = (37 * hash) + SERVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getServiceName().hashCode();
if (getResourceDetectorsCount() > 0) {
hash = (37 * hash) + RESOURCE_DETECTORS_FIELD_NUMBER;
hash = (53 * hash) + getResourceDetectorsList().hashCode();
}
if (hasSampler()) {
hash = (37 * hash) + SAMPLER_FIELD_NUMBER;
hash = (53 * hash) + getSampler().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Configuration for the OpenTelemetry tracer.
* [#extension: envoy.tracers.opentelemetry]
* [#next-free-field: 6]
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
*
* .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
* @return Whether the grpcService field is set.
*/
public boolean hasGrpcService() {
return grpcServiceBuilder_ != null || grpcService_ != null;
}
/**
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
* The upstream gRPC cluster that will receive OTLP traces.
* Note that the tracer drops traces if the server does not read data fast enough.
* This field can be left empty to disable reporting traces to the gRPC service.
* Only one of ``grpc_service``, ``http_service`` may be used.
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
*
* .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
* @return Whether the httpService field is set.
*/
public boolean hasHttpService() {
return httpServiceBuilder_ != null || httpService_ != null;
}
/**
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
* The upstream HTTP cluster that will receive OTLP traces.
* This field can be left empty to disable reporting traces to the HTTP service.
* Only one of ``grpc_service``, ``http_service`` may be used.
* .. note::
* Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
* does not support the :ref:`format specifier <config_access_log_format>` as used for
* :ref:`HTTP access logging <config_access_log>`.
* The values configured are added as HTTP headers on the OTLP export request
* without any formatting applied.
*
* The name for the service. This will be populated in the ResourceSpan Resource attributes.
* If it is not provided, it will default to "unknown_service:envoy".
*
* The name for the service. This will be populated in the ResourceSpan Resource attributes.
* If it is not provided, it will default to "unknown_service:envoy".
*
*
* string service_name = 2;
* @return The bytes for serviceName.
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name for the service. This will be populated in the ResourceSpan Resource attributes.
* If it is not provided, it will default to "unknown_service:envoy".
*
*
* string service_name = 2;
* @param value The serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceName_ = value;
onChanged();
return this;
}
/**
*
* The name for the service. This will be populated in the ResourceSpan Resource attributes.
* If it is not provided, it will default to "unknown_service:envoy".
*
*
* string service_name = 2;
* @return This builder for chaining.
*/
public Builder clearServiceName() {
serviceName_ = getDefaultInstance().getServiceName();
onChanged();
return this;
}
/**
*
* The name for the service. This will be populated in the ResourceSpan Resource attributes.
* If it is not provided, it will default to "unknown_service:envoy".
*
*
* string service_name = 2;
* @param value The bytes for serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceName_ = value;
onChanged();
return this;
}
private java.util.List resourceDetectors_ =
java.util.Collections.emptyList();
private void ensureResourceDetectorsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
resourceDetectors_ = new java.util.ArrayList(resourceDetectors_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> resourceDetectorsBuilder_;
/**
*
* An ordered list of resource detectors
* [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
*
* .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
* @return Whether the sampler field is set.
*/
public boolean hasSampler() {
return samplerBuilder_ != null || sampler_ != null;
}
/**
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
*
* .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
*/
public Builder setSampler(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) {
if (samplerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sampler_ = value;
onChanged();
} else {
samplerBuilder_.setMessage(value);
}
return this;
}
/**
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
* Specifies the sampler to be used by the OpenTelemetry tracer.
* The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
* This field can be left empty. In this case, the default Envoy sampling decision is used.
* See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
* [#extension-category: envoy.tracers.opentelemetry.samplers]
*
*
* .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder>
getSamplerFieldBuilder() {
if (samplerBuilder_ == null) {
samplerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder>(
getSampler(),
getParentForChildren(),
isClean());
sampler_ = null;
}
return samplerBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.config.trace.v3.OpenTelemetryConfig)
}
// @@protoc_insertion_point(class_scope:envoy.config.trace.v3.OpenTelemetryConfig)
private static final io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig();
}
public static io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OpenTelemetryConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OpenTelemetryConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.config.trace.v3.OpenTelemetryConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}