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) {
getCustomTagsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (clientSamplingBuilder_ == null) {
clientSampling_ = null;
} else {
clientSampling_ = null;
clientSamplingBuilder_ = null;
}
if (randomSamplingBuilder_ == null) {
randomSampling_ = null;
} else {
randomSampling_ = null;
randomSamplingBuilder_ = null;
}
if (overallSamplingBuilder_ == null) {
overallSampling_ = null;
} else {
overallSampling_ = null;
overallSamplingBuilder_ = null;
}
if (customTagsBuilder_ == null) {
customTags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
customTagsBuilder_.clear();
}
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);
int from_bitField0_ = bitField0_;
if (clientSamplingBuilder_ == null) {
result.clientSampling_ = clientSampling_;
} else {
result.clientSampling_ = clientSamplingBuilder_.build();
}
if (randomSamplingBuilder_ == null) {
result.randomSampling_ = randomSampling_;
} else {
result.randomSampling_ = randomSamplingBuilder_.build();
}
if (overallSamplingBuilder_ == null) {
result.overallSampling_ = overallSampling_;
} else {
result.overallSampling_ = overallSamplingBuilder_.build();
}
if (customTagsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
customTags_ = java.util.Collections.unmodifiableList(customTags_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.customTags_ = customTags_;
} else {
result.customTags_ = customTagsBuilder_.build();
}
onBuilt();
return result;
}
@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_ & ~0x00000001);
} else {
ensureCustomTagsIsMutable();
customTags_.addAll(other.customTags_);
}
onChanged();
}
} else {
if (!other.customTags_.isEmpty()) {
if (customTagsBuilder_.isEmpty()) {
customTagsBuilder_.dispose();
customTagsBuilder_ = null;
customTags_ = other.customTags_;
bitField0_ = (bitField0_ & ~0x00000001);
customTagsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomTagsFieldBuilder() : null;
} else {
customTagsBuilder_.addAllMessages(other.customTags_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
io.envoyproxy.envoy.config.route.v3.Tracing parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.route.v3.Tracing) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 clientSamplingBuilder_ != null || clientSampling_ != null;
}
/**
*
* 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;
onChanged();
} else {
clientSamplingBuilder_.setMessage(value);
}
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();
onChanged();
} else {
clientSamplingBuilder_.setMessage(builderForValue.build());
}
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 (clientSampling_ != null) {
clientSampling_ =
io.envoyproxy.envoy.type.v3.FractionalPercent.newBuilder(clientSampling_).mergeFrom(value).buildPartial();
} else {
clientSampling_ = value;
}
onChanged();
} else {
clientSamplingBuilder_.mergeFrom(value);
}
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() {
if (clientSamplingBuilder_ == null) {
clientSampling_ = null;
onChanged();
} else {
clientSampling_ = null;
clientSamplingBuilder_ = null;
}
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() {
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 randomSamplingBuilder_ != null || randomSampling_ != null;
}
/**
*
* 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;
onChanged();
} else {
randomSamplingBuilder_.setMessage(value);
}
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();
onChanged();
} else {
randomSamplingBuilder_.setMessage(builderForValue.build());
}
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 (randomSampling_ != null) {
randomSampling_ =
io.envoyproxy.envoy.type.v3.FractionalPercent.newBuilder(randomSampling_).mergeFrom(value).buildPartial();
} else {
randomSampling_ = value;
}
onChanged();
} else {
randomSamplingBuilder_.mergeFrom(value);
}
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() {
if (randomSamplingBuilder_ == null) {
randomSampling_ = null;
onChanged();
} else {
randomSampling_ = null;
randomSamplingBuilder_ = null;
}
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() {
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 overallSamplingBuilder_ != null || overallSampling_ != null;
}
/**
*
* 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;
onChanged();
} else {
overallSamplingBuilder_.setMessage(value);
}
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();
onChanged();
} else {
overallSamplingBuilder_.setMessage(builderForValue.build());
}
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 (overallSampling_ != null) {
overallSampling_ =
io.envoyproxy.envoy.type.v3.FractionalPercent.newBuilder(overallSampling_).mergeFrom(value).buildPartial();
} else {
overallSampling_ = value;
}
onChanged();
} else {
overallSamplingBuilder_.mergeFrom(value);
}
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() {
if (overallSamplingBuilder_ == null) {
overallSampling_ = null;
onChanged();
} else {
overallSampling_ = null;
overallSamplingBuilder_ = null;
}
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() {
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_ & 0x00000001) != 0)) {
customTags_ = new java.util.ArrayList(customTags_);
bitField0_ |= 0x00000001;
}
}
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_ & ~0x00000001);
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_ & 0x00000001) != 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 {
return new Tracing(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.route.v3.Tracing getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}