io.envoyproxy.envoy.config.trace.v2.ZipkinConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/trace/v2/trace.proto
package io.envoyproxy.envoy.config.trace.v2;
/**
* Protobuf type {@code envoy.config.trace.v2.ZipkinConfig}
*/
public final class ZipkinConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.trace.v2.ZipkinConfig)
ZipkinConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use ZipkinConfig.newBuilder() to construct.
private ZipkinConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ZipkinConfig() {
collectorCluster_ = "";
collectorEndpoint_ = "";
traceId128Bit_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ZipkinConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
collectorCluster_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
collectorEndpoint_ = s;
break;
}
case 24: {
traceId128Bit_ = input.readBool();
break;
}
case 34: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (sharedSpanContext_ != null) {
subBuilder = sharedSpanContext_.toBuilder();
}
sharedSpanContext_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sharedSpanContext_);
sharedSpanContext_ = subBuilder.buildPartial();
}
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.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_ZipkinConfig_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_ZipkinConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.class, io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.Builder.class);
}
public static final int COLLECTOR_CLUSTER_FIELD_NUMBER = 1;
private volatile java.lang.Object collectorCluster_;
/**
*
* The cluster manager cluster that hosts the Zipkin collectors. Note that the
* Zipkin cluster must be defined in the :ref:`Bootstrap static cluster
* resources <envoy_api_field_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`.
*
*
* string collector_cluster = 1 [(.validate.rules) = { ... }
*/
public java.lang.String getCollectorCluster() {
java.lang.Object ref = collectorCluster_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
collectorCluster_ = s;
return s;
}
}
/**
*
* The cluster manager cluster that hosts the Zipkin collectors. Note that the
* Zipkin cluster must be defined in the :ref:`Bootstrap static cluster
* resources <envoy_api_field_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`.
*
*
* string collector_cluster = 1 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getCollectorClusterBytes() {
java.lang.Object ref = collectorCluster_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
collectorCluster_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COLLECTOR_ENDPOINT_FIELD_NUMBER = 2;
private volatile java.lang.Object collectorEndpoint_;
/**
*
* The API endpoint of the Zipkin service where the spans will be sent. When
* using a standard Zipkin installation, the API endpoint is typically
* /api/v1/spans, which is the default value.
*
*
* string collector_endpoint = 2 [(.validate.rules) = { ... }
*/
public java.lang.String getCollectorEndpoint() {
java.lang.Object ref = collectorEndpoint_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
collectorEndpoint_ = s;
return s;
}
}
/**
*
* The API endpoint of the Zipkin service where the spans will be sent. When
* using a standard Zipkin installation, the API endpoint is typically
* /api/v1/spans, which is the default value.
*
*
* string collector_endpoint = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getCollectorEndpointBytes() {
java.lang.Object ref = collectorEndpoint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
collectorEndpoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRACE_ID_128BIT_FIELD_NUMBER = 3;
private boolean traceId128Bit_;
/**
*
* Determines whether a 128bit trace id will be used when creating a new
* trace instance. The default value is false, which will result in a 64 bit trace id being used.
*
*
* bool trace_id_128bit = 3;
*/
public boolean getTraceId128Bit() {
return traceId128Bit_;
}
public static final int SHARED_SPAN_CONTEXT_FIELD_NUMBER = 4;
private com.google.protobuf.BoolValue sharedSpanContext_;
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
public boolean hasSharedSpanContext() {
return sharedSpanContext_ != null;
}
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
public com.google.protobuf.BoolValue getSharedSpanContext() {
return sharedSpanContext_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : sharedSpanContext_;
}
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
public com.google.protobuf.BoolValueOrBuilder getSharedSpanContextOrBuilder() {
return getSharedSpanContext();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getCollectorClusterBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collectorCluster_);
}
if (!getCollectorEndpointBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collectorEndpoint_);
}
if (traceId128Bit_ != false) {
output.writeBool(3, traceId128Bit_);
}
if (sharedSpanContext_ != null) {
output.writeMessage(4, getSharedSpanContext());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCollectorClusterBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collectorCluster_);
}
if (!getCollectorEndpointBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, collectorEndpoint_);
}
if (traceId128Bit_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, traceId128Bit_);
}
if (sharedSpanContext_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSharedSpanContext());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.config.trace.v2.ZipkinConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.trace.v2.ZipkinConfig other = (io.envoyproxy.envoy.config.trace.v2.ZipkinConfig) obj;
boolean result = true;
result = result && getCollectorCluster()
.equals(other.getCollectorCluster());
result = result && getCollectorEndpoint()
.equals(other.getCollectorEndpoint());
result = result && (getTraceId128Bit()
== other.getTraceId128Bit());
result = result && (hasSharedSpanContext() == other.hasSharedSpanContext());
if (hasSharedSpanContext()) {
result = result && getSharedSpanContext()
.equals(other.getSharedSpanContext());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + COLLECTOR_CLUSTER_FIELD_NUMBER;
hash = (53 * hash) + getCollectorCluster().hashCode();
hash = (37 * hash) + COLLECTOR_ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + getCollectorEndpoint().hashCode();
hash = (37 * hash) + TRACE_ID_128BIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTraceId128Bit());
if (hasSharedSpanContext()) {
hash = (37 * hash) + SHARED_SPAN_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getSharedSpanContext().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.config.trace.v2.ZipkinConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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.trace.v2.ZipkinConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.trace.v2.ZipkinConfig)
io.envoyproxy.envoy.config.trace.v2.ZipkinConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_ZipkinConfig_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_ZipkinConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.class, io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
collectorCluster_ = "";
collectorEndpoint_ = "";
traceId128Bit_ = false;
if (sharedSpanContextBuilder_ == null) {
sharedSpanContext_ = null;
} else {
sharedSpanContext_ = null;
sharedSpanContextBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_ZipkinConfig_descriptor;
}
public io.envoyproxy.envoy.config.trace.v2.ZipkinConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.getDefaultInstance();
}
public io.envoyproxy.envoy.config.trace.v2.ZipkinConfig build() {
io.envoyproxy.envoy.config.trace.v2.ZipkinConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.envoy.config.trace.v2.ZipkinConfig buildPartial() {
io.envoyproxy.envoy.config.trace.v2.ZipkinConfig result = new io.envoyproxy.envoy.config.trace.v2.ZipkinConfig(this);
result.collectorCluster_ = collectorCluster_;
result.collectorEndpoint_ = collectorEndpoint_;
result.traceId128Bit_ = traceId128Bit_;
if (sharedSpanContextBuilder_ == null) {
result.sharedSpanContext_ = sharedSpanContext_;
} else {
result.sharedSpanContext_ = sharedSpanContextBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.config.trace.v2.ZipkinConfig) {
return mergeFrom((io.envoyproxy.envoy.config.trace.v2.ZipkinConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.trace.v2.ZipkinConfig other) {
if (other == io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.getDefaultInstance()) return this;
if (!other.getCollectorCluster().isEmpty()) {
collectorCluster_ = other.collectorCluster_;
onChanged();
}
if (!other.getCollectorEndpoint().isEmpty()) {
collectorEndpoint_ = other.collectorEndpoint_;
onChanged();
}
if (other.getTraceId128Bit() != false) {
setTraceId128Bit(other.getTraceId128Bit());
}
if (other.hasSharedSpanContext()) {
mergeSharedSpanContext(other.getSharedSpanContext());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.config.trace.v2.ZipkinConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.trace.v2.ZipkinConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object collectorCluster_ = "";
/**
*
* The cluster manager cluster that hosts the Zipkin collectors. Note that the
* Zipkin cluster must be defined in the :ref:`Bootstrap static cluster
* resources <envoy_api_field_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`.
*
*
* string collector_cluster = 1 [(.validate.rules) = { ... }
*/
public java.lang.String getCollectorCluster() {
java.lang.Object ref = collectorCluster_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
collectorCluster_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The cluster manager cluster that hosts the Zipkin collectors. Note that the
* Zipkin cluster must be defined in the :ref:`Bootstrap static cluster
* resources <envoy_api_field_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`.
*
*
* string collector_cluster = 1 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getCollectorClusterBytes() {
java.lang.Object ref = collectorCluster_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
collectorCluster_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The cluster manager cluster that hosts the Zipkin collectors. Note that the
* Zipkin cluster must be defined in the :ref:`Bootstrap static cluster
* resources <envoy_api_field_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`.
*
*
* string collector_cluster = 1 [(.validate.rules) = { ... }
*/
public Builder setCollectorCluster(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
collectorCluster_ = value;
onChanged();
return this;
}
/**
*
* The cluster manager cluster that hosts the Zipkin collectors. Note that the
* Zipkin cluster must be defined in the :ref:`Bootstrap static cluster
* resources <envoy_api_field_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`.
*
*
* string collector_cluster = 1 [(.validate.rules) = { ... }
*/
public Builder clearCollectorCluster() {
collectorCluster_ = getDefaultInstance().getCollectorCluster();
onChanged();
return this;
}
/**
*
* The cluster manager cluster that hosts the Zipkin collectors. Note that the
* Zipkin cluster must be defined in the :ref:`Bootstrap static cluster
* resources <envoy_api_field_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`.
*
*
* string collector_cluster = 1 [(.validate.rules) = { ... }
*/
public Builder setCollectorClusterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
collectorCluster_ = value;
onChanged();
return this;
}
private java.lang.Object collectorEndpoint_ = "";
/**
*
* The API endpoint of the Zipkin service where the spans will be sent. When
* using a standard Zipkin installation, the API endpoint is typically
* /api/v1/spans, which is the default value.
*
*
* string collector_endpoint = 2 [(.validate.rules) = { ... }
*/
public java.lang.String getCollectorEndpoint() {
java.lang.Object ref = collectorEndpoint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
collectorEndpoint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The API endpoint of the Zipkin service where the spans will be sent. When
* using a standard Zipkin installation, the API endpoint is typically
* /api/v1/spans, which is the default value.
*
*
* string collector_endpoint = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getCollectorEndpointBytes() {
java.lang.Object ref = collectorEndpoint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
collectorEndpoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The API endpoint of the Zipkin service where the spans will be sent. When
* using a standard Zipkin installation, the API endpoint is typically
* /api/v1/spans, which is the default value.
*
*
* string collector_endpoint = 2 [(.validate.rules) = { ... }
*/
public Builder setCollectorEndpoint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
collectorEndpoint_ = value;
onChanged();
return this;
}
/**
*
* The API endpoint of the Zipkin service where the spans will be sent. When
* using a standard Zipkin installation, the API endpoint is typically
* /api/v1/spans, which is the default value.
*
*
* string collector_endpoint = 2 [(.validate.rules) = { ... }
*/
public Builder clearCollectorEndpoint() {
collectorEndpoint_ = getDefaultInstance().getCollectorEndpoint();
onChanged();
return this;
}
/**
*
* The API endpoint of the Zipkin service where the spans will be sent. When
* using a standard Zipkin installation, the API endpoint is typically
* /api/v1/spans, which is the default value.
*
*
* string collector_endpoint = 2 [(.validate.rules) = { ... }
*/
public Builder setCollectorEndpointBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
collectorEndpoint_ = value;
onChanged();
return this;
}
private boolean traceId128Bit_ ;
/**
*
* Determines whether a 128bit trace id will be used when creating a new
* trace instance. The default value is false, which will result in a 64 bit trace id being used.
*
*
* bool trace_id_128bit = 3;
*/
public boolean getTraceId128Bit() {
return traceId128Bit_;
}
/**
*
* Determines whether a 128bit trace id will be used when creating a new
* trace instance. The default value is false, which will result in a 64 bit trace id being used.
*
*
* bool trace_id_128bit = 3;
*/
public Builder setTraceId128Bit(boolean value) {
traceId128Bit_ = value;
onChanged();
return this;
}
/**
*
* Determines whether a 128bit trace id will be used when creating a new
* trace instance. The default value is false, which will result in a 64 bit trace id being used.
*
*
* bool trace_id_128bit = 3;
*/
public Builder clearTraceId128Bit() {
traceId128Bit_ = false;
onChanged();
return this;
}
private com.google.protobuf.BoolValue sharedSpanContext_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> sharedSpanContextBuilder_;
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
public boolean hasSharedSpanContext() {
return sharedSpanContextBuilder_ != null || sharedSpanContext_ != null;
}
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
public com.google.protobuf.BoolValue getSharedSpanContext() {
if (sharedSpanContextBuilder_ == null) {
return sharedSpanContext_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : sharedSpanContext_;
} else {
return sharedSpanContextBuilder_.getMessage();
}
}
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
public Builder setSharedSpanContext(com.google.protobuf.BoolValue value) {
if (sharedSpanContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sharedSpanContext_ = value;
onChanged();
} else {
sharedSpanContextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
public Builder setSharedSpanContext(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (sharedSpanContextBuilder_ == null) {
sharedSpanContext_ = builderForValue.build();
onChanged();
} else {
sharedSpanContextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
public Builder mergeSharedSpanContext(com.google.protobuf.BoolValue value) {
if (sharedSpanContextBuilder_ == null) {
if (sharedSpanContext_ != null) {
sharedSpanContext_ =
com.google.protobuf.BoolValue.newBuilder(sharedSpanContext_).mergeFrom(value).buildPartial();
} else {
sharedSpanContext_ = value;
}
onChanged();
} else {
sharedSpanContextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
public Builder clearSharedSpanContext() {
if (sharedSpanContextBuilder_ == null) {
sharedSpanContext_ = null;
onChanged();
} else {
sharedSpanContext_ = null;
sharedSpanContextBuilder_ = null;
}
return this;
}
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
public com.google.protobuf.BoolValue.Builder getSharedSpanContextBuilder() {
onChanged();
return getSharedSpanContextFieldBuilder().getBuilder();
}
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
public com.google.protobuf.BoolValueOrBuilder getSharedSpanContextOrBuilder() {
if (sharedSpanContextBuilder_ != null) {
return sharedSpanContextBuilder_.getMessageOrBuilder();
} else {
return sharedSpanContext_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : sharedSpanContext_;
}
}
/**
*
* Determines whether client and server spans will shared the same span id.
* The default value is true.
*
*
* .google.protobuf.BoolValue shared_span_context = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getSharedSpanContextFieldBuilder() {
if (sharedSpanContextBuilder_ == null) {
sharedSpanContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getSharedSpanContext(),
getParentForChildren(),
isClean());
sharedSpanContext_ = null;
}
return sharedSpanContextBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.config.trace.v2.ZipkinConfig)
}
// @@protoc_insertion_point(class_scope:envoy.config.trace.v2.ZipkinConfig)
private static final io.envoyproxy.envoy.config.trace.v2.ZipkinConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.trace.v2.ZipkinConfig();
}
public static io.envoyproxy.envoy.config.trace.v2.ZipkinConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ZipkinConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ZipkinConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.envoyproxy.envoy.config.trace.v2.ZipkinConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}