
io.envoyproxy.envoy.api.v2.route.Tracing Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/api/v2/route/route.proto
package io.envoyproxy.envoy.api.v2.route;
/**
* Protobuf type {@code envoy.api.v2.route.Tracing}
*/
public final class Tracing extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.api.v2.route.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() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Tracing();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Tracing(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.envoyproxy.envoy.type.FractionalPercent.Builder subBuilder = null;
if (clientSampling_ != null) {
subBuilder = clientSampling_.toBuilder();
}
clientSampling_ = input.readMessage(io.envoyproxy.envoy.type.FractionalPercent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clientSampling_);
clientSampling_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.envoyproxy.envoy.type.FractionalPercent.Builder subBuilder = null;
if (randomSampling_ != null) {
subBuilder = randomSampling_.toBuilder();
}
randomSampling_ = input.readMessage(io.envoyproxy.envoy.type.FractionalPercent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(randomSampling_);
randomSampling_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.envoyproxy.envoy.type.FractionalPercent.Builder subBuilder = null;
if (overallSampling_ != null) {
subBuilder = overallSampling_.toBuilder();
}
overallSampling_ = input.readMessage(io.envoyproxy.envoy.type.FractionalPercent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(overallSampling_);
overallSampling_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.route.RouteProto.internal_static_envoy_api_v2_route_Tracing_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.route.RouteProto.internal_static_envoy_api_v2_route_Tracing_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.route.Tracing.class, io.envoyproxy.envoy.api.v2.route.Tracing.Builder.class);
}
public static final int CLIENT_SAMPLING_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.type.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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.FractionalPercent client_sampling = 1;
*/
public boolean hasClientSampling() {
return 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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.FractionalPercent client_sampling = 1;
*/
public io.envoyproxy.envoy.type.FractionalPercent getClientSampling() {
return clientSampling_ == null ? io.envoyproxy.envoy.type.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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.FractionalPercent client_sampling = 1;
*/
public io.envoyproxy.envoy.type.FractionalPercentOrBuilder getClientSamplingOrBuilder() {
return getClientSampling();
}
public static final int RANDOM_SAMPLING_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.type.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.FractionalPercent random_sampling = 2;
*/
public boolean hasRandomSampling() {
return 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.FractionalPercent random_sampling = 2;
*/
public io.envoyproxy.envoy.type.FractionalPercent getRandomSampling() {
return randomSampling_ == null ? io.envoyproxy.envoy.type.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.FractionalPercent random_sampling = 2;
*/
public io.envoyproxy.envoy.type.FractionalPercentOrBuilder getRandomSamplingOrBuilder() {
return getRandomSampling();
}
public static final int OVERALL_SAMPLING_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.type.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.FractionalPercent overall_sampling = 3;
*/
public boolean hasOverallSampling() {
return 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.FractionalPercent overall_sampling = 3;
*/
public io.envoyproxy.envoy.type.FractionalPercent getOverallSampling() {
return overallSampling_ == null ? io.envoyproxy.envoy.type.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.FractionalPercent overall_sampling = 3;
*/
public io.envoyproxy.envoy.type.FractionalPercentOrBuilder getOverallSamplingOrBuilder() {
return getOverallSampling();
}
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 (clientSampling_ != null) {
output.writeMessage(1, getClientSampling());
}
if (randomSampling_ != null) {
output.writeMessage(2, getRandomSampling());
}
if (overallSampling_ != null) {
output.writeMessage(3, getOverallSampling());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (clientSampling_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getClientSampling());
}
if (randomSampling_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRandomSampling());
}
if (overallSampling_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getOverallSampling());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.api.v2.route.Tracing)) {
return super.equals(obj);
}
io.envoyproxy.envoy.api.v2.route.Tracing other = (io.envoyproxy.envoy.api.v2.route.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.api.v2.route.Tracing parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.route.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.api.v2.route.Tracing parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.route.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.api.v2.route.Tracing parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.route.Tracing parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.route.Tracing parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.route.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.api.v2.route.Tracing parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.route.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.api.v2.route.Tracing parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.route.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.api.v2.route.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.api.v2.route.Tracing}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.api.v2.route.Tracing)
io.envoyproxy.envoy.api.v2.route.TracingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.route.RouteProto.internal_static_envoy_api_v2_route_Tracing_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.route.RouteProto.internal_static_envoy_api_v2_route_Tracing_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.route.Tracing.class, io.envoyproxy.envoy.api.v2.route.Tracing.Builder.class);
}
// Construct using io.envoyproxy.envoy.api.v2.route.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) {
}
}
@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;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.api.v2.route.RouteProto.internal_static_envoy_api_v2_route_Tracing_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.api.v2.route.Tracing getDefaultInstanceForType() {
return io.envoyproxy.envoy.api.v2.route.Tracing.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.api.v2.route.Tracing build() {
io.envoyproxy.envoy.api.v2.route.Tracing result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.api.v2.route.Tracing buildPartial() {
io.envoyproxy.envoy.api.v2.route.Tracing result = new io.envoyproxy.envoy.api.v2.route.Tracing(this);
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();
}
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.api.v2.route.Tracing) {
return mergeFrom((io.envoyproxy.envoy.api.v2.route.Tracing)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.api.v2.route.Tracing other) {
if (other == io.envoyproxy.envoy.api.v2.route.Tracing.getDefaultInstance()) return this;
if (other.hasClientSampling()) {
mergeClientSampling(other.getClientSampling());
}
if (other.hasRandomSampling()) {
mergeRandomSampling(other.getRandomSampling());
}
if (other.hasOverallSampling()) {
mergeOverallSampling(other.getOverallSampling());
}
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.api.v2.route.Tracing parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.api.v2.route.Tracing) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.envoyproxy.envoy.type.FractionalPercent clientSampling_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.FractionalPercent, io.envoyproxy.envoy.type.FractionalPercent.Builder, io.envoyproxy.envoy.type.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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.FractionalPercent client_sampling = 1;
*/
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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.FractionalPercent client_sampling = 1;
*/
public io.envoyproxy.envoy.type.FractionalPercent getClientSampling() {
if (clientSamplingBuilder_ == null) {
return clientSampling_ == null ? io.envoyproxy.envoy.type.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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.FractionalPercent client_sampling = 1;
*/
public Builder setClientSampling(io.envoyproxy.envoy.type.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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.FractionalPercent client_sampling = 1;
*/
public Builder setClientSampling(
io.envoyproxy.envoy.type.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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.FractionalPercent client_sampling = 1;
*/
public Builder mergeClientSampling(io.envoyproxy.envoy.type.FractionalPercent value) {
if (clientSamplingBuilder_ == null) {
if (clientSampling_ != null) {
clientSampling_ =
io.envoyproxy.envoy.type.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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.FractionalPercent client_sampling = 1;
*/
public io.envoyproxy.envoy.type.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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.FractionalPercent client_sampling = 1;
*/
public io.envoyproxy.envoy.type.FractionalPercentOrBuilder getClientSamplingOrBuilder() {
if (clientSamplingBuilder_ != null) {
return clientSamplingBuilder_.getMessageOrBuilder();
} else {
return clientSampling_ == null ?
io.envoyproxy.envoy.type.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_sampling' in the :ref:`HTTP Connection Manager
* <config_http_conn_man_runtime>`.
* Default: 100%
*
*
* .envoy.type.FractionalPercent client_sampling = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.FractionalPercent, io.envoyproxy.envoy.type.FractionalPercent.Builder, io.envoyproxy.envoy.type.FractionalPercentOrBuilder>
getClientSamplingFieldBuilder() {
if (clientSamplingBuilder_ == null) {
clientSamplingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.FractionalPercent, io.envoyproxy.envoy.type.FractionalPercent.Builder, io.envoyproxy.envoy.type.FractionalPercentOrBuilder>(
getClientSampling(),
getParentForChildren(),
isClean());
clientSampling_ = null;
}
return clientSamplingBuilder_;
}
private io.envoyproxy.envoy.type.FractionalPercent randomSampling_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.FractionalPercent, io.envoyproxy.envoy.type.FractionalPercent.Builder, io.envoyproxy.envoy.type.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.FractionalPercent random_sampling = 2;
*/
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.FractionalPercent random_sampling = 2;
*/
public io.envoyproxy.envoy.type.FractionalPercent getRandomSampling() {
if (randomSamplingBuilder_ == null) {
return randomSampling_ == null ? io.envoyproxy.envoy.type.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.FractionalPercent random_sampling = 2;
*/
public Builder setRandomSampling(io.envoyproxy.envoy.type.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.FractionalPercent random_sampling = 2;
*/
public Builder setRandomSampling(
io.envoyproxy.envoy.type.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.FractionalPercent random_sampling = 2;
*/
public Builder mergeRandomSampling(io.envoyproxy.envoy.type.FractionalPercent value) {
if (randomSamplingBuilder_ == null) {
if (randomSampling_ != null) {
randomSampling_ =
io.envoyproxy.envoy.type.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.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.FractionalPercent random_sampling = 2;
*/
public io.envoyproxy.envoy.type.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.FractionalPercent random_sampling = 2;
*/
public io.envoyproxy.envoy.type.FractionalPercentOrBuilder getRandomSamplingOrBuilder() {
if (randomSamplingBuilder_ != null) {
return randomSamplingBuilder_.getMessageOrBuilder();
} else {
return randomSampling_ == null ?
io.envoyproxy.envoy.type.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.FractionalPercent random_sampling = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.FractionalPercent, io.envoyproxy.envoy.type.FractionalPercent.Builder, io.envoyproxy.envoy.type.FractionalPercentOrBuilder>
getRandomSamplingFieldBuilder() {
if (randomSamplingBuilder_ == null) {
randomSamplingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.FractionalPercent, io.envoyproxy.envoy.type.FractionalPercent.Builder, io.envoyproxy.envoy.type.FractionalPercentOrBuilder>(
getRandomSampling(),
getParentForChildren(),
isClean());
randomSampling_ = null;
}
return randomSamplingBuilder_;
}
private io.envoyproxy.envoy.type.FractionalPercent overallSampling_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.FractionalPercent, io.envoyproxy.envoy.type.FractionalPercent.Builder, io.envoyproxy.envoy.type.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.FractionalPercent overall_sampling = 3;
*/
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.FractionalPercent overall_sampling = 3;
*/
public io.envoyproxy.envoy.type.FractionalPercent getOverallSampling() {
if (overallSamplingBuilder_ == null) {
return overallSampling_ == null ? io.envoyproxy.envoy.type.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.FractionalPercent overall_sampling = 3;
*/
public Builder setOverallSampling(io.envoyproxy.envoy.type.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.FractionalPercent overall_sampling = 3;
*/
public Builder setOverallSampling(
io.envoyproxy.envoy.type.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.FractionalPercent overall_sampling = 3;
*/
public Builder mergeOverallSampling(io.envoyproxy.envoy.type.FractionalPercent value) {
if (overallSamplingBuilder_ == null) {
if (overallSampling_ != null) {
overallSampling_ =
io.envoyproxy.envoy.type.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.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.FractionalPercent overall_sampling = 3;
*/
public io.envoyproxy.envoy.type.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.FractionalPercent overall_sampling = 3;
*/
public io.envoyproxy.envoy.type.FractionalPercentOrBuilder getOverallSamplingOrBuilder() {
if (overallSamplingBuilder_ != null) {
return overallSamplingBuilder_.getMessageOrBuilder();
} else {
return overallSampling_ == null ?
io.envoyproxy.envoy.type.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.FractionalPercent overall_sampling = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.FractionalPercent, io.envoyproxy.envoy.type.FractionalPercent.Builder, io.envoyproxy.envoy.type.FractionalPercentOrBuilder>
getOverallSamplingFieldBuilder() {
if (overallSamplingBuilder_ == null) {
overallSamplingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.FractionalPercent, io.envoyproxy.envoy.type.FractionalPercent.Builder, io.envoyproxy.envoy.type.FractionalPercentOrBuilder>(
getOverallSampling(),
getParentForChildren(),
isClean());
overallSampling_ = null;
}
return overallSamplingBuilder_;
}
@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.api.v2.route.Tracing)
}
// @@protoc_insertion_point(class_scope:envoy.api.v2.route.Tracing)
private static final io.envoyproxy.envoy.api.v2.route.Tracing DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.route.Tracing();
}
public static io.envoyproxy.envoy.api.v2.route.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.api.v2.route.Tracing getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy