
io.envoyproxy.envoy.config.trace.v3.ClientConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/trace/v3/skywalking.proto
// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.config.trace.v3;
/**
*
* Client config for SkyWalking tracer.
*
*
* Protobuf type {@code envoy.config.trace.v3.ClientConfig}
*/
public final class ClientConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.trace.v3.ClientConfig)
ClientConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientConfig.newBuilder() to construct.
private ClientConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientConfig() {
serviceName_ = "";
instanceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.trace.v3.SkywalkingProto.internal_static_envoy_config_trace_v3_ClientConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.trace.v3.SkywalkingProto.internal_static_envoy_config_trace_v3_ClientConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.trace.v3.ClientConfig.class, io.envoyproxy.envoy.config.trace.v3.ClientConfig.Builder.class);
}
private int bitField0_;
private int backendTokenSpecifierCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object backendTokenSpecifier_;
public enum BackendTokenSpecifierCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BACKEND_TOKEN(3),
BACKENDTOKENSPECIFIER_NOT_SET(0);
private final int value;
private BackendTokenSpecifierCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BackendTokenSpecifierCase valueOf(int value) {
return forNumber(value);
}
public static BackendTokenSpecifierCase forNumber(int value) {
switch (value) {
case 3: return BACKEND_TOKEN;
case 0: return BACKENDTOKENSPECIFIER_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public BackendTokenSpecifierCase
getBackendTokenSpecifierCase() {
return BackendTokenSpecifierCase.forNumber(
backendTokenSpecifierCase_);
}
public static final int SERVICE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object serviceName_ = "";
/**
*
* Service name for SkyWalking tracer. If this field is empty, then local service cluster name
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
* option :option:`--service-cluster` will be used. If both this field and local service cluster
* name are empty, ``EnvoyProxy`` is used as the service name by default.
*
*
* string service_name = 1;
* @return The serviceName.
*/
@java.lang.Override
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
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();
serviceName_ = s;
return s;
}
}
/**
*
* Service name for SkyWalking tracer. If this field is empty, then local service cluster name
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
* option :option:`--service-cluster` will be used. If both this field and local service cluster
* name are empty, ``EnvoyProxy`` is used as the service name by default.
*
*
* string service_name = 1;
* @return The bytes for serviceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INSTANCE_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object instanceName_ = "";
/**
*
* Service instance name for SkyWalking tracer. If this field is empty, then local service node
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line option
* :option:`--service-node` will be used. If both this field and local service node are empty,
* ``EnvoyProxy`` is used as the instance name by default.
*
*
* string instance_name = 2;
* @return The instanceName.
*/
@java.lang.Override
public java.lang.String getInstanceName() {
java.lang.Object ref = instanceName_;
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();
instanceName_ = s;
return s;
}
}
/**
*
* Service instance name for SkyWalking tracer. If this field is empty, then local service node
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line option
* :option:`--service-node` will be used. If both this field and local service node are empty,
* ``EnvoyProxy`` is used as the instance name by default.
*
*
* string instance_name = 2;
* @return The bytes for instanceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceNameBytes() {
java.lang.Object ref = instanceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BACKEND_TOKEN_FIELD_NUMBER = 3;
/**
*
* Inline authentication token string.
*
*
* string backend_token = 3 [(.udpa.annotations.sensitive) = true];
* @return Whether the backendToken field is set.
*/
public boolean hasBackendToken() {
return backendTokenSpecifierCase_ == 3;
}
/**
*
* Inline authentication token string.
*
*
* string backend_token = 3 [(.udpa.annotations.sensitive) = true];
* @return The backendToken.
*/
public java.lang.String getBackendToken() {
java.lang.Object ref = "";
if (backendTokenSpecifierCase_ == 3) {
ref = backendTokenSpecifier_;
}
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();
if (backendTokenSpecifierCase_ == 3) {
backendTokenSpecifier_ = s;
}
return s;
}
}
/**
*
* Inline authentication token string.
*
*
* string backend_token = 3 [(.udpa.annotations.sensitive) = true];
* @return The bytes for backendToken.
*/
public com.google.protobuf.ByteString
getBackendTokenBytes() {
java.lang.Object ref = "";
if (backendTokenSpecifierCase_ == 3) {
ref = backendTokenSpecifier_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (backendTokenSpecifierCase_ == 3) {
backendTokenSpecifier_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAX_CACHE_SIZE_FIELD_NUMBER = 4;
private com.google.protobuf.UInt32Value maxCacheSize_;
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
* @return Whether the maxCacheSize field is set.
*/
@java.lang.Override
public boolean hasMaxCacheSize() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
* @return The maxCacheSize.
*/
@java.lang.Override
public com.google.protobuf.UInt32Value getMaxCacheSize() {
return maxCacheSize_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxCacheSize_;
}
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getMaxCacheSizeOrBuilder() {
return maxCacheSize_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxCacheSize_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceName_);
}
if (backendTokenSpecifierCase_ == 3) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, backendTokenSpecifier_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getMaxCacheSize());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceName_);
}
if (backendTokenSpecifierCase_ == 3) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backendTokenSpecifier_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMaxCacheSize());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.config.trace.v3.ClientConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.trace.v3.ClientConfig other = (io.envoyproxy.envoy.config.trace.v3.ClientConfig) obj;
if (!getServiceName()
.equals(other.getServiceName())) return false;
if (!getInstanceName()
.equals(other.getInstanceName())) return false;
if (hasMaxCacheSize() != other.hasMaxCacheSize()) return false;
if (hasMaxCacheSize()) {
if (!getMaxCacheSize()
.equals(other.getMaxCacheSize())) return false;
}
if (!getBackendTokenSpecifierCase().equals(other.getBackendTokenSpecifierCase())) return false;
switch (backendTokenSpecifierCase_) {
case 3:
if (!getBackendToken()
.equals(other.getBackendToken())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SERVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getServiceName().hashCode();
hash = (37 * hash) + INSTANCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getInstanceName().hashCode();
if (hasMaxCacheSize()) {
hash = (37 * hash) + MAX_CACHE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getMaxCacheSize().hashCode();
}
switch (backendTokenSpecifierCase_) {
case 3:
hash = (37 * hash) + BACKEND_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getBackendToken().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.trace.v3.ClientConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.trace.v3.ClientConfig 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.v3.ClientConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.trace.v3.ClientConfig 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.v3.ClientConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.trace.v3.ClientConfig 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.v3.ClientConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.trace.v3.ClientConfig 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.v3.ClientConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.trace.v3.ClientConfig 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.v3.ClientConfig 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.v3.ClientConfig 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.v3.ClientConfig 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;
}
/**
*
* Client config for SkyWalking tracer.
*
*
* Protobuf type {@code envoy.config.trace.v3.ClientConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.trace.v3.ClientConfig)
io.envoyproxy.envoy.config.trace.v3.ClientConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.trace.v3.SkywalkingProto.internal_static_envoy_config_trace_v3_ClientConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.trace.v3.SkywalkingProto.internal_static_envoy_config_trace_v3_ClientConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.trace.v3.ClientConfig.class, io.envoyproxy.envoy.config.trace.v3.ClientConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.trace.v3.ClientConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMaxCacheSizeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
serviceName_ = "";
instanceName_ = "";
maxCacheSize_ = null;
if (maxCacheSizeBuilder_ != null) {
maxCacheSizeBuilder_.dispose();
maxCacheSizeBuilder_ = null;
}
backendTokenSpecifierCase_ = 0;
backendTokenSpecifier_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.trace.v3.SkywalkingProto.internal_static_envoy_config_trace_v3_ClientConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.trace.v3.ClientConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.trace.v3.ClientConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.trace.v3.ClientConfig build() {
io.envoyproxy.envoy.config.trace.v3.ClientConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.trace.v3.ClientConfig buildPartial() {
io.envoyproxy.envoy.config.trace.v3.ClientConfig result = new io.envoyproxy.envoy.config.trace.v3.ClientConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.config.trace.v3.ClientConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.serviceName_ = serviceName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.instanceName_ = instanceName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.maxCacheSize_ = maxCacheSizeBuilder_ == null
? maxCacheSize_
: maxCacheSizeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(io.envoyproxy.envoy.config.trace.v3.ClientConfig result) {
result.backendTokenSpecifierCase_ = backendTokenSpecifierCase_;
result.backendTokenSpecifier_ = this.backendTokenSpecifier_;
}
@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.v3.ClientConfig) {
return mergeFrom((io.envoyproxy.envoy.config.trace.v3.ClientConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.trace.v3.ClientConfig other) {
if (other == io.envoyproxy.envoy.config.trace.v3.ClientConfig.getDefaultInstance()) return this;
if (!other.getServiceName().isEmpty()) {
serviceName_ = other.serviceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getInstanceName().isEmpty()) {
instanceName_ = other.instanceName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasMaxCacheSize()) {
mergeMaxCacheSize(other.getMaxCacheSize());
}
switch (other.getBackendTokenSpecifierCase()) {
case BACKEND_TOKEN: {
backendTokenSpecifierCase_ = 3;
backendTokenSpecifier_ = other.backendTokenSpecifier_;
onChanged();
break;
}
case BACKENDTOKENSPECIFIER_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
serviceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
instanceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
backendTokenSpecifierCase_ = 3;
backendTokenSpecifier_ = s;
break;
} // case 26
case 34: {
input.readMessage(
getMaxCacheSizeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int backendTokenSpecifierCase_ = 0;
private java.lang.Object backendTokenSpecifier_;
public BackendTokenSpecifierCase
getBackendTokenSpecifierCase() {
return BackendTokenSpecifierCase.forNumber(
backendTokenSpecifierCase_);
}
public Builder clearBackendTokenSpecifier() {
backendTokenSpecifierCase_ = 0;
backendTokenSpecifier_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object serviceName_ = "";
/**
*
* Service name for SkyWalking tracer. If this field is empty, then local service cluster name
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
* option :option:`--service-cluster` will be used. If both this field and local service cluster
* name are empty, ``EnvoyProxy`` is used as the service name by default.
*
*
* string service_name = 1;
* @return The serviceName.
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Service name for SkyWalking tracer. If this field is empty, then local service cluster name
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
* option :option:`--service-cluster` will be used. If both this field and local service cluster
* name are empty, ``EnvoyProxy`` is used as the service name by default.
*
*
* string service_name = 1;
* @return The bytes for serviceName.
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Service name for SkyWalking tracer. If this field is empty, then local service cluster name
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
* option :option:`--service-cluster` will be used. If both this field and local service cluster
* name are empty, ``EnvoyProxy`` is used as the service name by default.
*
*
* string service_name = 1;
* @param value The serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
serviceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Service name for SkyWalking tracer. If this field is empty, then local service cluster name
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
* option :option:`--service-cluster` will be used. If both this field and local service cluster
* name are empty, ``EnvoyProxy`` is used as the service name by default.
*
*
* string service_name = 1;
* @return This builder for chaining.
*/
public Builder clearServiceName() {
serviceName_ = getDefaultInstance().getServiceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Service name for SkyWalking tracer. If this field is empty, then local service cluster name
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
* option :option:`--service-cluster` will be used. If both this field and local service cluster
* name are empty, ``EnvoyProxy`` is used as the service name by default.
*
*
* string service_name = 1;
* @param value The bytes for serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
serviceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object instanceName_ = "";
/**
*
* Service instance name for SkyWalking tracer. If this field is empty, then local service node
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line option
* :option:`--service-node` will be used. If both this field and local service node are empty,
* ``EnvoyProxy`` is used as the instance name by default.
*
*
* string instance_name = 2;
* @return The instanceName.
*/
public java.lang.String getInstanceName() {
java.lang.Object ref = instanceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Service instance name for SkyWalking tracer. If this field is empty, then local service node
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line option
* :option:`--service-node` will be used. If both this field and local service node are empty,
* ``EnvoyProxy`` is used as the instance name by default.
*
*
* string instance_name = 2;
* @return The bytes for instanceName.
*/
public com.google.protobuf.ByteString
getInstanceNameBytes() {
java.lang.Object ref = instanceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Service instance name for SkyWalking tracer. If this field is empty, then local service node
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line option
* :option:`--service-node` will be used. If both this field and local service node are empty,
* ``EnvoyProxy`` is used as the instance name by default.
*
*
* string instance_name = 2;
* @param value The instanceName to set.
* @return This builder for chaining.
*/
public Builder setInstanceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
instanceName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Service instance name for SkyWalking tracer. If this field is empty, then local service node
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line option
* :option:`--service-node` will be used. If both this field and local service node are empty,
* ``EnvoyProxy`` is used as the instance name by default.
*
*
* string instance_name = 2;
* @return This builder for chaining.
*/
public Builder clearInstanceName() {
instanceName_ = getDefaultInstance().getInstanceName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Service instance name for SkyWalking tracer. If this field is empty, then local service node
* that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
* message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line option
* :option:`--service-node` will be used. If both this field and local service node are empty,
* ``EnvoyProxy`` is used as the instance name by default.
*
*
* string instance_name = 2;
* @param value The bytes for instanceName to set.
* @return This builder for chaining.
*/
public Builder setInstanceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
instanceName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Inline authentication token string.
*
*
* string backend_token = 3 [(.udpa.annotations.sensitive) = true];
* @return Whether the backendToken field is set.
*/
@java.lang.Override
public boolean hasBackendToken() {
return backendTokenSpecifierCase_ == 3;
}
/**
*
* Inline authentication token string.
*
*
* string backend_token = 3 [(.udpa.annotations.sensitive) = true];
* @return The backendToken.
*/
@java.lang.Override
public java.lang.String getBackendToken() {
java.lang.Object ref = "";
if (backendTokenSpecifierCase_ == 3) {
ref = backendTokenSpecifier_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (backendTokenSpecifierCase_ == 3) {
backendTokenSpecifier_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Inline authentication token string.
*
*
* string backend_token = 3 [(.udpa.annotations.sensitive) = true];
* @return The bytes for backendToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBackendTokenBytes() {
java.lang.Object ref = "";
if (backendTokenSpecifierCase_ == 3) {
ref = backendTokenSpecifier_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (backendTokenSpecifierCase_ == 3) {
backendTokenSpecifier_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Inline authentication token string.
*
*
* string backend_token = 3 [(.udpa.annotations.sensitive) = true];
* @param value The backendToken to set.
* @return This builder for chaining.
*/
public Builder setBackendToken(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
backendTokenSpecifierCase_ = 3;
backendTokenSpecifier_ = value;
onChanged();
return this;
}
/**
*
* Inline authentication token string.
*
*
* string backend_token = 3 [(.udpa.annotations.sensitive) = true];
* @return This builder for chaining.
*/
public Builder clearBackendToken() {
if (backendTokenSpecifierCase_ == 3) {
backendTokenSpecifierCase_ = 0;
backendTokenSpecifier_ = null;
onChanged();
}
return this;
}
/**
*
* Inline authentication token string.
*
*
* string backend_token = 3 [(.udpa.annotations.sensitive) = true];
* @param value The bytes for backendToken to set.
* @return This builder for chaining.
*/
public Builder setBackendTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
backendTokenSpecifierCase_ = 3;
backendTokenSpecifier_ = value;
onChanged();
return this;
}
private com.google.protobuf.UInt32Value maxCacheSize_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxCacheSizeBuilder_;
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
* @return Whether the maxCacheSize field is set.
*/
public boolean hasMaxCacheSize() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
* @return The maxCacheSize.
*/
public com.google.protobuf.UInt32Value getMaxCacheSize() {
if (maxCacheSizeBuilder_ == null) {
return maxCacheSize_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxCacheSize_;
} else {
return maxCacheSizeBuilder_.getMessage();
}
}
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
*/
public Builder setMaxCacheSize(com.google.protobuf.UInt32Value value) {
if (maxCacheSizeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxCacheSize_ = value;
} else {
maxCacheSizeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
*/
public Builder setMaxCacheSize(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (maxCacheSizeBuilder_ == null) {
maxCacheSize_ = builderForValue.build();
} else {
maxCacheSizeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
*/
public Builder mergeMaxCacheSize(com.google.protobuf.UInt32Value value) {
if (maxCacheSizeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
maxCacheSize_ != null &&
maxCacheSize_ != com.google.protobuf.UInt32Value.getDefaultInstance()) {
getMaxCacheSizeBuilder().mergeFrom(value);
} else {
maxCacheSize_ = value;
}
} else {
maxCacheSizeBuilder_.mergeFrom(value);
}
if (maxCacheSize_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
*/
public Builder clearMaxCacheSize() {
bitField0_ = (bitField0_ & ~0x00000008);
maxCacheSize_ = null;
if (maxCacheSizeBuilder_ != null) {
maxCacheSizeBuilder_.dispose();
maxCacheSizeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
*/
public com.google.protobuf.UInt32Value.Builder getMaxCacheSizeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getMaxCacheSizeFieldBuilder().getBuilder();
}
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
*/
public com.google.protobuf.UInt32ValueOrBuilder getMaxCacheSizeOrBuilder() {
if (maxCacheSizeBuilder_ != null) {
return maxCacheSizeBuilder_.getMessageOrBuilder();
} else {
return maxCacheSize_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : maxCacheSize_;
}
}
/**
*
* Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
* This field specifies the maximum number of segments that can be cached. If not specified, the
* default is 1024.
*
*
* .google.protobuf.UInt32Value max_cache_size = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getMaxCacheSizeFieldBuilder() {
if (maxCacheSizeBuilder_ == null) {
maxCacheSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getMaxCacheSize(),
getParentForChildren(),
isClean());
maxCacheSize_ = null;
}
return maxCacheSizeBuilder_;
}
@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.v3.ClientConfig)
}
// @@protoc_insertion_point(class_scope:envoy.config.trace.v3.ClientConfig)
private static final io.envoyproxy.envoy.config.trace.v3.ClientConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.trace.v3.ClientConfig();
}
public static io.envoyproxy.envoy.config.trace.v3.ClientConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.config.trace.v3.ClientConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy