![JAR search and dependency download from the Maven repository](/logo.png)
io.envoyproxy.envoy.config.route.v3.Tracing Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/route/v3/route_components.proto
// Protobuf Java Version: 3.25.5
package io.envoyproxy.envoy.config.route.v3;
/**
* Protobuf type {@code envoy.config.route.v3.Tracing}
*/
public final class Tracing extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.route.v3.Tracing)
TracingOrBuilder {
private static final long serialVersionUID = 0L;
// Use Tracing.newBuilder() to construct.
private Tracing(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Tracing() {
customTags_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Tracing();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_Tracing_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_Tracing_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.route.v3.Tracing.class, io.envoyproxy.envoy.config.route.v3.Tracing.Builder.class);
}
private int bitField0_;
public static final int CLIENT_SAMPLING_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.type.v3.FractionalPercent clientSampling_;
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
* @return Whether the clientSampling field is set.
*/
@java.lang.Override
public boolean hasClientSampling() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
* @return The clientSampling.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.v3.FractionalPercent getClientSampling() {
return clientSampling_ == null ? io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : clientSampling_;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder getClientSamplingOrBuilder() {
return clientSampling_ == null ? io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : clientSampling_;
}
public static final int RANDOM_SAMPLING_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.type.v3.FractionalPercent randomSampling_;
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
* @return Whether the randomSampling field is set.
*/
@java.lang.Override
public boolean hasRandomSampling() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
* @return The randomSampling.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.v3.FractionalPercent getRandomSampling() {
return randomSampling_ == null ? io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : randomSampling_;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder getRandomSamplingOrBuilder() {
return randomSampling_ == null ? io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : randomSampling_;
}
public static final int OVERALL_SAMPLING_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.type.v3.FractionalPercent overallSampling_;
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
* @return Whether the overallSampling field is set.
*/
@java.lang.Override
public boolean hasOverallSampling() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
* @return The overallSampling.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.v3.FractionalPercent getOverallSampling() {
return overallSampling_ == null ? io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : overallSampling_;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder getOverallSamplingOrBuilder() {
return overallSampling_ == null ? io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : overallSampling_;
}
public static final int CUSTOM_TAGS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List customTags_;
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
@java.lang.Override
public java.util.List getCustomTagsList() {
return customTags_;
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder>
getCustomTagsOrBuilderList() {
return customTags_;
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
@java.lang.Override
public int getCustomTagsCount() {
return customTags_.size();
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.tracing.v3.CustomTag getCustomTags(int index) {
return customTags_.get(index);
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder getCustomTagsOrBuilder(
int index) {
return customTags_.get(index);
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getClientSampling());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getRandomSampling());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getOverallSampling());
}
for (int i = 0; i < customTags_.size(); i++) {
output.writeMessage(4, customTags_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getClientSampling());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRandomSampling());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getOverallSampling());
}
for (int i = 0; i < customTags_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, customTags_.get(i));
}
size += getUnknownFields().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.route.v3.Tracing)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.route.v3.Tracing other = (io.envoyproxy.envoy.config.route.v3.Tracing) obj;
if (hasClientSampling() != other.hasClientSampling()) return false;
if (hasClientSampling()) {
if (!getClientSampling()
.equals(other.getClientSampling())) return false;
}
if (hasRandomSampling() != other.hasRandomSampling()) return false;
if (hasRandomSampling()) {
if (!getRandomSampling()
.equals(other.getRandomSampling())) return false;
}
if (hasOverallSampling() != other.hasOverallSampling()) return false;
if (hasOverallSampling()) {
if (!getOverallSampling()
.equals(other.getOverallSampling())) return false;
}
if (!getCustomTagsList()
.equals(other.getCustomTagsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasClientSampling()) {
hash = (37 * hash) + CLIENT_SAMPLING_FIELD_NUMBER;
hash = (53 * hash) + getClientSampling().hashCode();
}
if (hasRandomSampling()) {
hash = (37 * hash) + RANDOM_SAMPLING_FIELD_NUMBER;
hash = (53 * hash) + getRandomSampling().hashCode();
}
if (hasOverallSampling()) {
hash = (37 * hash) + OVERALL_SAMPLING_FIELD_NUMBER;
hash = (53 * hash) + getOverallSampling().hashCode();
}
if (getCustomTagsCount() > 0) {
hash = (37 * hash) + CUSTOM_TAGS_FIELD_NUMBER;
hash = (53 * hash) + getCustomTagsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.route.v3.Tracing parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.route.v3.Tracing 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.route.v3.Tracing parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.route.v3.Tracing 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.route.v3.Tracing parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.route.v3.Tracing parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.route.v3.Tracing parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.route.v3.Tracing 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.route.v3.Tracing parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.route.v3.Tracing 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.route.v3.Tracing parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.route.v3.Tracing 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.route.v3.Tracing 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;
}
/**
* Protobuf type {@code envoy.config.route.v3.Tracing}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.route.v3.Tracing)
io.envoyproxy.envoy.config.route.v3.TracingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_Tracing_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_Tracing_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.route.v3.Tracing.class, io.envoyproxy.envoy.config.route.v3.Tracing.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.route.v3.Tracing.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getClientSamplingFieldBuilder();
getRandomSamplingFieldBuilder();
getOverallSamplingFieldBuilder();
getCustomTagsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
clientSampling_ = null;
if (clientSamplingBuilder_ != null) {
clientSamplingBuilder_.dispose();
clientSamplingBuilder_ = null;
}
randomSampling_ = null;
if (randomSamplingBuilder_ != null) {
randomSamplingBuilder_.dispose();
randomSamplingBuilder_ = null;
}
overallSampling_ = null;
if (overallSamplingBuilder_ != null) {
overallSamplingBuilder_.dispose();
overallSamplingBuilder_ = null;
}
if (customTagsBuilder_ == null) {
customTags_ = java.util.Collections.emptyList();
} else {
customTags_ = null;
customTagsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_Tracing_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.route.v3.Tracing getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.route.v3.Tracing.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.route.v3.Tracing build() {
io.envoyproxy.envoy.config.route.v3.Tracing result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.route.v3.Tracing buildPartial() {
io.envoyproxy.envoy.config.route.v3.Tracing result = new io.envoyproxy.envoy.config.route.v3.Tracing(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.envoy.config.route.v3.Tracing result) {
if (customTagsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
customTags_ = java.util.Collections.unmodifiableList(customTags_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.customTags_ = customTags_;
} else {
result.customTags_ = customTagsBuilder_.build();
}
}
private void buildPartial0(io.envoyproxy.envoy.config.route.v3.Tracing result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.clientSampling_ = clientSamplingBuilder_ == null
? clientSampling_
: clientSamplingBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.randomSampling_ = randomSamplingBuilder_ == null
? randomSampling_
: randomSamplingBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.overallSampling_ = overallSamplingBuilder_ == null
? overallSampling_
: overallSamplingBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.config.route.v3.Tracing) {
return mergeFrom((io.envoyproxy.envoy.config.route.v3.Tracing)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.Tracing other) {
if (other == io.envoyproxy.envoy.config.route.v3.Tracing.getDefaultInstance()) return this;
if (other.hasClientSampling()) {
mergeClientSampling(other.getClientSampling());
}
if (other.hasRandomSampling()) {
mergeRandomSampling(other.getRandomSampling());
}
if (other.hasOverallSampling()) {
mergeOverallSampling(other.getOverallSampling());
}
if (customTagsBuilder_ == null) {
if (!other.customTags_.isEmpty()) {
if (customTags_.isEmpty()) {
customTags_ = other.customTags_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureCustomTagsIsMutable();
customTags_.addAll(other.customTags_);
}
onChanged();
}
} else {
if (!other.customTags_.isEmpty()) {
if (customTagsBuilder_.isEmpty()) {
customTagsBuilder_.dispose();
customTagsBuilder_ = null;
customTags_ = other.customTags_;
bitField0_ = (bitField0_ & ~0x00000008);
customTagsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomTagsFieldBuilder() : null;
} else {
customTagsBuilder_.addAllMessages(other.customTags_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getClientSamplingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getRandomSamplingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getOverallSamplingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
io.envoyproxy.envoy.type.tracing.v3.CustomTag m =
input.readMessage(
io.envoyproxy.envoy.type.tracing.v3.CustomTag.parser(),
extensionRegistry);
if (customTagsBuilder_ == null) {
ensureCustomTagsIsMutable();
customTags_.add(m);
} else {
customTagsBuilder_.addMessage(m);
}
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.envoyproxy.envoy.type.v3.FractionalPercent clientSampling_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.v3.FractionalPercent, io.envoyproxy.envoy.type.v3.FractionalPercent.Builder, io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder> clientSamplingBuilder_;
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
* @return Whether the clientSampling field is set.
*/
public boolean hasClientSampling() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
* @return The clientSampling.
*/
public io.envoyproxy.envoy.type.v3.FractionalPercent getClientSampling() {
if (clientSamplingBuilder_ == null) {
return clientSampling_ == null ? io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : clientSampling_;
} else {
return clientSamplingBuilder_.getMessage();
}
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
*/
public Builder setClientSampling(io.envoyproxy.envoy.type.v3.FractionalPercent value) {
if (clientSamplingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clientSampling_ = value;
} else {
clientSamplingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
*/
public Builder setClientSampling(
io.envoyproxy.envoy.type.v3.FractionalPercent.Builder builderForValue) {
if (clientSamplingBuilder_ == null) {
clientSampling_ = builderForValue.build();
} else {
clientSamplingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
*/
public Builder mergeClientSampling(io.envoyproxy.envoy.type.v3.FractionalPercent value) {
if (clientSamplingBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
clientSampling_ != null &&
clientSampling_ != io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance()) {
getClientSamplingBuilder().mergeFrom(value);
} else {
clientSampling_ = value;
}
} else {
clientSamplingBuilder_.mergeFrom(value);
}
if (clientSampling_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
*/
public Builder clearClientSampling() {
bitField0_ = (bitField0_ & ~0x00000001);
clientSampling_ = null;
if (clientSamplingBuilder_ != null) {
clientSamplingBuilder_.dispose();
clientSamplingBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
*/
public io.envoyproxy.envoy.type.v3.FractionalPercent.Builder getClientSamplingBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getClientSamplingFieldBuilder().getBuilder();
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
*/
public io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder getClientSamplingOrBuilder() {
if (clientSamplingBuilder_ != null) {
return clientSamplingBuilder_.getMessageOrBuilder();
} else {
return clientSampling_ == null ?
io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : clientSampling_;
}
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be force
* traced if the :ref:`x-client-trace-id <config_http_conn_man_headers_x-client-trace-id>`
* header is set. This field is a direct analog for the runtime variable
* 'tracing.client_enabled' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent client_sampling = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.v3.FractionalPercent, io.envoyproxy.envoy.type.v3.FractionalPercent.Builder, io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder>
getClientSamplingFieldBuilder() {
if (clientSamplingBuilder_ == null) {
clientSamplingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.v3.FractionalPercent, io.envoyproxy.envoy.type.v3.FractionalPercent.Builder, io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder>(
getClientSampling(),
getParentForChildren(),
isClean());
clientSampling_ = null;
}
return clientSamplingBuilder_;
}
private io.envoyproxy.envoy.type.v3.FractionalPercent randomSampling_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.v3.FractionalPercent, io.envoyproxy.envoy.type.v3.FractionalPercent.Builder, io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder> randomSamplingBuilder_;
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
* @return Whether the randomSampling field is set.
*/
public boolean hasRandomSampling() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
* @return The randomSampling.
*/
public io.envoyproxy.envoy.type.v3.FractionalPercent getRandomSampling() {
if (randomSamplingBuilder_ == null) {
return randomSampling_ == null ? io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : randomSampling_;
} else {
return randomSamplingBuilder_.getMessage();
}
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
*/
public Builder setRandomSampling(io.envoyproxy.envoy.type.v3.FractionalPercent value) {
if (randomSamplingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
randomSampling_ = value;
} else {
randomSamplingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
*/
public Builder setRandomSampling(
io.envoyproxy.envoy.type.v3.FractionalPercent.Builder builderForValue) {
if (randomSamplingBuilder_ == null) {
randomSampling_ = builderForValue.build();
} else {
randomSamplingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
*/
public Builder mergeRandomSampling(io.envoyproxy.envoy.type.v3.FractionalPercent value) {
if (randomSamplingBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
randomSampling_ != null &&
randomSampling_ != io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance()) {
getRandomSamplingBuilder().mergeFrom(value);
} else {
randomSampling_ = value;
}
} else {
randomSamplingBuilder_.mergeFrom(value);
}
if (randomSampling_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
*/
public Builder clearRandomSampling() {
bitField0_ = (bitField0_ & ~0x00000002);
randomSampling_ = null;
if (randomSamplingBuilder_ != null) {
randomSamplingBuilder_.dispose();
randomSamplingBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
*/
public io.envoyproxy.envoy.type.v3.FractionalPercent.Builder getRandomSamplingBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRandomSamplingFieldBuilder().getBuilder();
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
*/
public io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder getRandomSamplingOrBuilder() {
if (randomSamplingBuilder_ != null) {
return randomSamplingBuilder_.getMessageOrBuilder();
} else {
return randomSampling_ == null ?
io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : randomSampling_;
}
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be randomly
* selected for trace generation, if not requested by the client or not forced. This field is
* a direct analog for the runtime variable 'tracing.random_sampling' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent random_sampling = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.v3.FractionalPercent, io.envoyproxy.envoy.type.v3.FractionalPercent.Builder, io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder>
getRandomSamplingFieldBuilder() {
if (randomSamplingBuilder_ == null) {
randomSamplingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.v3.FractionalPercent, io.envoyproxy.envoy.type.v3.FractionalPercent.Builder, io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder>(
getRandomSampling(),
getParentForChildren(),
isClean());
randomSampling_ = null;
}
return randomSamplingBuilder_;
}
private io.envoyproxy.envoy.type.v3.FractionalPercent overallSampling_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.v3.FractionalPercent, io.envoyproxy.envoy.type.v3.FractionalPercent.Builder, io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder> overallSamplingBuilder_;
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
* @return Whether the overallSampling field is set.
*/
public boolean hasOverallSampling() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
* @return The overallSampling.
*/
public io.envoyproxy.envoy.type.v3.FractionalPercent getOverallSampling() {
if (overallSamplingBuilder_ == null) {
return overallSampling_ == null ? io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : overallSampling_;
} else {
return overallSamplingBuilder_.getMessage();
}
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
*/
public Builder setOverallSampling(io.envoyproxy.envoy.type.v3.FractionalPercent value) {
if (overallSamplingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
overallSampling_ = value;
} else {
overallSamplingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
*/
public Builder setOverallSampling(
io.envoyproxy.envoy.type.v3.FractionalPercent.Builder builderForValue) {
if (overallSamplingBuilder_ == null) {
overallSampling_ = builderForValue.build();
} else {
overallSamplingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
*/
public Builder mergeOverallSampling(io.envoyproxy.envoy.type.v3.FractionalPercent value) {
if (overallSamplingBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
overallSampling_ != null &&
overallSampling_ != io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance()) {
getOverallSamplingBuilder().mergeFrom(value);
} else {
overallSampling_ = value;
}
} else {
overallSamplingBuilder_.mergeFrom(value);
}
if (overallSampling_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
*/
public Builder clearOverallSampling() {
bitField0_ = (bitField0_ & ~0x00000004);
overallSampling_ = null;
if (overallSamplingBuilder_ != null) {
overallSamplingBuilder_.dispose();
overallSamplingBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
*/
public io.envoyproxy.envoy.type.v3.FractionalPercent.Builder getOverallSamplingBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getOverallSamplingFieldBuilder().getBuilder();
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
*/
public io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder getOverallSamplingOrBuilder() {
if (overallSamplingBuilder_ != null) {
return overallSamplingBuilder_.getMessageOrBuilder();
} else {
return overallSampling_ == null ?
io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : overallSampling_;
}
}
/**
*
* Target percentage of requests managed by this HTTP connection manager that will be traced
* after all other sampling checks have been applied (client-directed, force tracing, random
* sampling). This field functions as an upper limit on the total configured sampling rate. For
* instance, setting client_sampling to 100% but overall_sampling to 1% will result in only 1%
* of client requests with the appropriate headers to be force traced. This field is a direct
* analog for the runtime variable 'tracing.global_enabled' in the
* :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.v3.FractionalPercent overall_sampling = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.v3.FractionalPercent, io.envoyproxy.envoy.type.v3.FractionalPercent.Builder, io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder>
getOverallSamplingFieldBuilder() {
if (overallSamplingBuilder_ == null) {
overallSamplingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.v3.FractionalPercent, io.envoyproxy.envoy.type.v3.FractionalPercent.Builder, io.envoyproxy.envoy.type.v3.FractionalPercentOrBuilder>(
getOverallSampling(),
getParentForChildren(),
isClean());
overallSampling_ = null;
}
return overallSamplingBuilder_;
}
private java.util.List customTags_ =
java.util.Collections.emptyList();
private void ensureCustomTagsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
customTags_ = new java.util.ArrayList(customTags_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.type.tracing.v3.CustomTag, io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder, io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder> customTagsBuilder_;
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public java.util.List getCustomTagsList() {
if (customTagsBuilder_ == null) {
return java.util.Collections.unmodifiableList(customTags_);
} else {
return customTagsBuilder_.getMessageList();
}
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public int getCustomTagsCount() {
if (customTagsBuilder_ == null) {
return customTags_.size();
} else {
return customTagsBuilder_.getCount();
}
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public io.envoyproxy.envoy.type.tracing.v3.CustomTag getCustomTags(int index) {
if (customTagsBuilder_ == null) {
return customTags_.get(index);
} else {
return customTagsBuilder_.getMessage(index);
}
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public Builder setCustomTags(
int index, io.envoyproxy.envoy.type.tracing.v3.CustomTag value) {
if (customTagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomTagsIsMutable();
customTags_.set(index, value);
onChanged();
} else {
customTagsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public Builder setCustomTags(
int index, io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder builderForValue) {
if (customTagsBuilder_ == null) {
ensureCustomTagsIsMutable();
customTags_.set(index, builderForValue.build());
onChanged();
} else {
customTagsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public Builder addCustomTags(io.envoyproxy.envoy.type.tracing.v3.CustomTag value) {
if (customTagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomTagsIsMutable();
customTags_.add(value);
onChanged();
} else {
customTagsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public Builder addCustomTags(
int index, io.envoyproxy.envoy.type.tracing.v3.CustomTag value) {
if (customTagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomTagsIsMutable();
customTags_.add(index, value);
onChanged();
} else {
customTagsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public Builder addCustomTags(
io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder builderForValue) {
if (customTagsBuilder_ == null) {
ensureCustomTagsIsMutable();
customTags_.add(builderForValue.build());
onChanged();
} else {
customTagsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public Builder addCustomTags(
int index, io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder builderForValue) {
if (customTagsBuilder_ == null) {
ensureCustomTagsIsMutable();
customTags_.add(index, builderForValue.build());
onChanged();
} else {
customTagsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public Builder addAllCustomTags(
java.lang.Iterable extends io.envoyproxy.envoy.type.tracing.v3.CustomTag> values) {
if (customTagsBuilder_ == null) {
ensureCustomTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, customTags_);
onChanged();
} else {
customTagsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public Builder clearCustomTags() {
if (customTagsBuilder_ == null) {
customTags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
customTagsBuilder_.clear();
}
return this;
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public Builder removeCustomTags(int index) {
if (customTagsBuilder_ == null) {
ensureCustomTagsIsMutable();
customTags_.remove(index);
onChanged();
} else {
customTagsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder getCustomTagsBuilder(
int index) {
return getCustomTagsFieldBuilder().getBuilder(index);
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder getCustomTagsOrBuilder(
int index) {
if (customTagsBuilder_ == null) {
return customTags_.get(index); } else {
return customTagsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public java.util.List extends io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder>
getCustomTagsOrBuilderList() {
if (customTagsBuilder_ != null) {
return customTagsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(customTags_);
}
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder addCustomTagsBuilder() {
return getCustomTagsFieldBuilder().addBuilder(
io.envoyproxy.envoy.type.tracing.v3.CustomTag.getDefaultInstance());
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder addCustomTagsBuilder(
int index) {
return getCustomTagsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.type.tracing.v3.CustomTag.getDefaultInstance());
}
/**
*
* A list of custom tags with unique tag name to create tags for the active span.
* It will take effect after merging with the :ref:`corresponding configuration
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.custom_tags>`
* configured in the HTTP connection manager. If two tags with the same name are configured
* each in the HTTP connection manager and the route level, the one configured here takes
* priority.
*
*
* repeated .envoy.type.tracing.v3.CustomTag custom_tags = 4;
*/
public java.util.List
getCustomTagsBuilderList() {
return getCustomTagsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.type.tracing.v3.CustomTag, io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder, io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder>
getCustomTagsFieldBuilder() {
if (customTagsBuilder_ == null) {
customTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.type.tracing.v3.CustomTag, io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder, io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder>(
customTags_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
customTags_ = null;
}
return customTagsBuilder_;
}
@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.route.v3.Tracing)
}
// @@protoc_insertion_point(class_scope:envoy.config.route.v3.Tracing)
private static final io.envoyproxy.envoy.config.route.v3.Tracing DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.Tracing();
}
public static io.envoyproxy.envoy.config.route.v3.Tracing getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Tracing parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.route.v3.Tracing getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy