All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.config.trace.v2.ZipkinConfig Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/trace/v2/trace.proto

package io.envoyproxy.envoy.config.trace.v2;

/**
 * 
 * Configuration for the Zipkin tracer.
 * 
* * 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_ = ""; collectorEndpointVersion_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ZipkinConfig(); } @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(); } 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: { 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; } case 40: { int rawValue = input.readEnum(); collectorEndpointVersion_ = rawValue; 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.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_ZipkinConfig_descriptor; } @java.lang.Override 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); } /** *
   * Available Zipkin collector endpoint versions.
   * 
* * Protobuf enum {@code envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion} */ public enum CollectorEndpointVersion implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Zipkin API v1, JSON over HTTP.
     * [#comment: The default implementation of Zipkin client before this field is added was only v1
     * and the way user configure this was by not explicitly specifying the version. Consequently,
     * before this is added, the corresponding Zipkin collector expected to receive v1 payload.
     * Hence the motivation of adding HTTP_JSON_V1 as the default is to avoid a breaking change when
     * user upgrading Envoy with this change. Furthermore, we also immediately deprecate this field,
     * since in Zipkin realm this v1 version is considered to be not preferable anymore.]
     * 
* * HTTP_JSON_V1 = 0 [deprecated = true]; */ @java.lang.Deprecated HTTP_JSON_V1(0), /** *
     * Zipkin API v2, JSON over HTTP.
     * 
* * HTTP_JSON = 1; */ HTTP_JSON(1), /** *
     * Zipkin API v2, protobuf over HTTP.
     * 
* * HTTP_PROTO = 2; */ HTTP_PROTO(2), /** *
     * [#not-implemented-hide:]
     * 
* * GRPC = 3; */ GRPC(3), UNRECOGNIZED(-1), ; /** *
     * Zipkin API v1, JSON over HTTP.
     * [#comment: The default implementation of Zipkin client before this field is added was only v1
     * and the way user configure this was by not explicitly specifying the version. Consequently,
     * before this is added, the corresponding Zipkin collector expected to receive v1 payload.
     * Hence the motivation of adding HTTP_JSON_V1 as the default is to avoid a breaking change when
     * user upgrading Envoy with this change. Furthermore, we also immediately deprecate this field,
     * since in Zipkin realm this v1 version is considered to be not preferable anymore.]
     * 
* * HTTP_JSON_V1 = 0 [deprecated = true]; */ public static final int HTTP_JSON_V1_VALUE = 0; /** *
     * Zipkin API v2, JSON over HTTP.
     * 
* * HTTP_JSON = 1; */ public static final int HTTP_JSON_VALUE = 1; /** *
     * Zipkin API v2, protobuf over HTTP.
     * 
* * HTTP_PROTO = 2; */ public static final int HTTP_PROTO_VALUE = 2; /** *
     * [#not-implemented-hide:]
     * 
* * GRPC = 3; */ public static final int GRPC_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CollectorEndpointVersion valueOf(int value) { return forNumber(value); } public static CollectorEndpointVersion forNumber(int value) { switch (value) { case 0: return HTTP_JSON_V1; case 1: return HTTP_JSON; case 2: return HTTP_PROTO; case 3: return GRPC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CollectorEndpointVersion> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CollectorEndpointVersion findValueByNumber(int number) { return CollectorEndpointVersion.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.getDescriptor().getEnumTypes().get(0); } private static final CollectorEndpointVersion[] VALUES = values(); public static CollectorEndpointVersion valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private CollectorEndpointVersion(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion) } 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 share the same span context.
   * 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 share the same span context.
   * 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 share the same span context.
   * The default value is true.
   * 
* * .google.protobuf.BoolValue shared_span_context = 4; */ public com.google.protobuf.BoolValueOrBuilder getSharedSpanContextOrBuilder() { return getSharedSpanContext(); } public static final int COLLECTOR_ENDPOINT_VERSION_FIELD_NUMBER = 5; private int collectorEndpointVersion_; /** *
   * Determines the selected collector endpoint version. By default, the ``HTTP_JSON_V1`` will be
   * used.
   * 
* * .envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion collector_endpoint_version = 5; */ public int getCollectorEndpointVersionValue() { return collectorEndpointVersion_; } /** *
   * Determines the selected collector endpoint version. By default, the ``HTTP_JSON_V1`` will be
   * used.
   * 
* * .envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion collector_endpoint_version = 5; */ public io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion getCollectorEndpointVersion() { @SuppressWarnings("deprecation") io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion result = io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion.valueOf(collectorEndpointVersion_); return result == null ? io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion.UNRECOGNIZED : result; } 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 (!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()); } if (collectorEndpointVersion_ != io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion.HTTP_JSON_V1.getNumber()) { output.writeEnum(5, collectorEndpointVersion_); } unknownFields.writeTo(output); } @java.lang.Override 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()); } if (collectorEndpointVersion_ != io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion.HTTP_JSON_V1.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, collectorEndpointVersion_); } 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; if (!getCollectorCluster() .equals(other.getCollectorCluster())) return false; if (!getCollectorEndpoint() .equals(other.getCollectorEndpoint())) return false; if (getTraceId128Bit() != other.getTraceId128Bit()) return false; if (hasSharedSpanContext() != other.hasSharedSpanContext()) return false; if (hasSharedSpanContext()) { if (!getSharedSpanContext() .equals(other.getSharedSpanContext())) return false; } if (collectorEndpointVersion_ != other.collectorEndpointVersion_) 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(); 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 = (37 * hash) + COLLECTOR_ENDPOINT_VERSION_FIELD_NUMBER; hash = (53 * hash) + collectorEndpointVersion_; 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); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.config.trace.v2.ZipkinConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Configuration for the Zipkin tracer.
   * 
* * 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; } @java.lang.Override 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) { } } @java.lang.Override public Builder clear() { super.clear(); collectorCluster_ = ""; collectorEndpoint_ = ""; traceId128Bit_ = false; if (sharedSpanContextBuilder_ == null) { sharedSpanContext_ = null; } else { sharedSpanContext_ = null; sharedSpanContextBuilder_ = null; } collectorEndpointVersion_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_ZipkinConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.trace.v2.ZipkinConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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(); } result.collectorEndpointVersion_ = collectorEndpointVersion_; 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.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()); } if (other.collectorEndpointVersion_ != 0) { setCollectorEndpointVersionValue(other.getCollectorEndpointVersionValue()); } 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.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_; 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 share the same span context.
     * 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 share the same span context.
     * 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 share the same span context.
     * 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 share the same span context.
     * 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 share the same span context.
     * 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 share the same span context.
     * 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 share the same span context.
     * 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 share the same span context.
     * 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 share the same span context.
     * 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_; } private int collectorEndpointVersion_ = 0; /** *
     * Determines the selected collector endpoint version. By default, the ``HTTP_JSON_V1`` will be
     * used.
     * 
* * .envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion collector_endpoint_version = 5; */ public int getCollectorEndpointVersionValue() { return collectorEndpointVersion_; } /** *
     * Determines the selected collector endpoint version. By default, the ``HTTP_JSON_V1`` will be
     * used.
     * 
* * .envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion collector_endpoint_version = 5; */ public Builder setCollectorEndpointVersionValue(int value) { collectorEndpointVersion_ = value; onChanged(); return this; } /** *
     * Determines the selected collector endpoint version. By default, the ``HTTP_JSON_V1`` will be
     * used.
     * 
* * .envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion collector_endpoint_version = 5; */ public io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion getCollectorEndpointVersion() { @SuppressWarnings("deprecation") io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion result = io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion.valueOf(collectorEndpointVersion_); return result == null ? io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion.UNRECOGNIZED : result; } /** *
     * Determines the selected collector endpoint version. By default, the ``HTTP_JSON_V1`` will be
     * used.
     * 
* * .envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion collector_endpoint_version = 5; */ public Builder setCollectorEndpointVersion(io.envoyproxy.envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion value) { if (value == null) { throw new NullPointerException(); } collectorEndpointVersion_ = value.getNumber(); onChanged(); return this; } /** *
     * Determines the selected collector endpoint version. By default, the ``HTTP_JSON_V1`` will be
     * used.
     * 
* * .envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion collector_endpoint_version = 5; */ public Builder clearCollectorEndpointVersion() { collectorEndpointVersion_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.config.trace.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() { @java.lang.Override 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; } @java.lang.Override public io.envoyproxy.envoy.config.trace.v2.ZipkinConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy