io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/bootstrap/v3alpha/bootstrap.proto
package io.envoyproxy.envoy.config.bootstrap.v3alpha;
/**
*
* Cluster manager :ref:`architecture overview <arch_overview_cluster_manager>`.
*
*
* Protobuf type {@code envoy.config.bootstrap.v3alpha.ClusterManager}
*/
public final class ClusterManager extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3alpha.ClusterManager)
ClusterManagerOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClusterManager.newBuilder() to construct.
private ClusterManager(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClusterManager() {
localClusterName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClusterManager();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClusterManager(
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();
localClusterName_ = s;
break;
}
case 18: {
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.Builder subBuilder = null;
if (outlierDetection_ != null) {
subBuilder = outlierDetection_.toBuilder();
}
outlierDetection_ = input.readMessage(io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(outlierDetection_);
outlierDetection_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.envoyproxy.envoy.api.v3alpha.core.BindConfig.Builder subBuilder = null;
if (upstreamBindConfig_ != null) {
subBuilder = upstreamBindConfig_.toBuilder();
}
upstreamBindConfig_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.core.BindConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(upstreamBindConfig_);
upstreamBindConfig_ = subBuilder.buildPartial();
}
break;
}
case 34: {
io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource.Builder subBuilder = null;
if (loadStatsConfig_ != null) {
subBuilder = loadStatsConfig_.toBuilder();
}
loadStatsConfig_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(loadStatsConfig_);
loadStatsConfig_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_ClusterManager_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_ClusterManager_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.class, io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.Builder.class);
}
public interface OutlierDetectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection)
com.google.protobuf.MessageOrBuilder {
/**
*
* Specifies the path to the outlier event log.
*
*
* string event_log_path = 1;
*/
java.lang.String getEventLogPath();
/**
*
* Specifies the path to the outlier event log.
*
*
* string event_log_path = 1;
*/
com.google.protobuf.ByteString
getEventLogPathBytes();
}
/**
* Protobuf type {@code envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection}
*/
public static final class OutlierDetection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection)
OutlierDetectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use OutlierDetection.newBuilder() to construct.
private OutlierDetection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OutlierDetection() {
eventLogPath_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OutlierDetection();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OutlierDetection(
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();
eventLogPath_ = s;
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.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_ClusterManager_OutlierDetection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_ClusterManager_OutlierDetection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.class, io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.Builder.class);
}
public static final int EVENT_LOG_PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object eventLogPath_;
/**
*
* Specifies the path to the outlier event log.
*
*
* string event_log_path = 1;
*/
public java.lang.String getEventLogPath() {
java.lang.Object ref = eventLogPath_;
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();
eventLogPath_ = s;
return s;
}
}
/**
*
* Specifies the path to the outlier event log.
*
*
* string event_log_path = 1;
*/
public com.google.protobuf.ByteString
getEventLogPathBytes() {
java.lang.Object ref = eventLogPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventLogPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getEventLogPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventLogPath_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getEventLogPathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventLogPath_);
}
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.bootstrap.v3alpha.ClusterManager.OutlierDetection)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection other = (io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection) obj;
if (!getEventLogPath()
.equals(other.getEventLogPath())) 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) + EVENT_LOG_PATH_FIELD_NUMBER;
hash = (53 * hash) + getEventLogPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection 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.bootstrap.v3alpha.ClusterManager.OutlierDetection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection 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.bootstrap.v3alpha.ClusterManager.OutlierDetection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection 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.bootstrap.v3alpha.ClusterManager.OutlierDetection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection 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.bootstrap.v3alpha.ClusterManager.OutlierDetection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection 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.bootstrap.v3alpha.ClusterManager.OutlierDetection prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection)
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_ClusterManager_OutlierDetection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_ClusterManager_OutlierDetection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.class, io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.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();
eventLogPath_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_ClusterManager_OutlierDetection_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection build() {
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection result = new io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection(this);
result.eventLogPath_ = eventLogPath_;
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.bootstrap.v3alpha.ClusterManager.OutlierDetection) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.getDefaultInstance()) return this;
if (!other.getEventLogPath().isEmpty()) {
eventLogPath_ = other.eventLogPath_;
onChanged();
}
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.bootstrap.v3alpha.ClusterManager.OutlierDetection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object eventLogPath_ = "";
/**
*
* Specifies the path to the outlier event log.
*
*
* string event_log_path = 1;
*/
public java.lang.String getEventLogPath() {
java.lang.Object ref = eventLogPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventLogPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Specifies the path to the outlier event log.
*
*
* string event_log_path = 1;
*/
public com.google.protobuf.ByteString
getEventLogPathBytes() {
java.lang.Object ref = eventLogPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventLogPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Specifies the path to the outlier event log.
*
*
* string event_log_path = 1;
*/
public Builder setEventLogPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
eventLogPath_ = value;
onChanged();
return this;
}
/**
*
* Specifies the path to the outlier event log.
*
*
* string event_log_path = 1;
*/
public Builder clearEventLogPath() {
eventLogPath_ = getDefaultInstance().getEventLogPath();
onChanged();
return this;
}
/**
*
* Specifies the path to the outlier event log.
*
*
* string event_log_path = 1;
*/
public Builder setEventLogPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
eventLogPath_ = value;
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.bootstrap.v3alpha.ClusterManager.OutlierDetection)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection)
private static final io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection();
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OutlierDetection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OutlierDetection(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.bootstrap.v3alpha.ClusterManager.OutlierDetection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int LOCAL_CLUSTER_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object localClusterName_;
/**
*
* Name of the local cluster (i.e., the cluster that owns the Envoy running
* this configuration). In order to enable :ref:`zone aware routing
* <arch_overview_load_balancing_zone_aware_routing>` this option must be set.
* If *local_cluster_name* is defined then :ref:`clusters
* <envoy_api_msg_api.v3alpha.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_api_field_config.bootstrap.v3alpha.Bootstrap.StaticResources.clusters>`. This is
* unrelated to the :option:`--service-cluster` option which does not `affect zone aware routing
* <https://github.com/envoyproxy/envoy/issues/774>`_.
*
*
* string local_cluster_name = 1;
*/
public java.lang.String getLocalClusterName() {
java.lang.Object ref = localClusterName_;
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();
localClusterName_ = s;
return s;
}
}
/**
*
* Name of the local cluster (i.e., the cluster that owns the Envoy running
* this configuration). In order to enable :ref:`zone aware routing
* <arch_overview_load_balancing_zone_aware_routing>` this option must be set.
* If *local_cluster_name* is defined then :ref:`clusters
* <envoy_api_msg_api.v3alpha.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_api_field_config.bootstrap.v3alpha.Bootstrap.StaticResources.clusters>`. This is
* unrelated to the :option:`--service-cluster` option which does not `affect zone aware routing
* <https://github.com/envoyproxy/envoy/issues/774>`_.
*
*
* string local_cluster_name = 1;
*/
public com.google.protobuf.ByteString
getLocalClusterNameBytes() {
java.lang.Object ref = localClusterName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localClusterName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OUTLIER_DETECTION_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlierDetection_;
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
public boolean hasOutlierDetection() {
return outlierDetection_ != null;
}
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
public io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection getOutlierDetection() {
return outlierDetection_ == null ? io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.getDefaultInstance() : outlierDetection_;
}
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
public io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetectionOrBuilder getOutlierDetectionOrBuilder() {
return getOutlierDetection();
}
public static final int UPSTREAM_BIND_CONFIG_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.api.v3alpha.core.BindConfig upstreamBindConfig_;
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
public boolean hasUpstreamBindConfig() {
return upstreamBindConfig_ != null;
}
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
public io.envoyproxy.envoy.api.v3alpha.core.BindConfig getUpstreamBindConfig() {
return upstreamBindConfig_ == null ? io.envoyproxy.envoy.api.v3alpha.core.BindConfig.getDefaultInstance() : upstreamBindConfig_;
}
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
public io.envoyproxy.envoy.api.v3alpha.core.BindConfigOrBuilder getUpstreamBindConfigOrBuilder() {
return getUpstreamBindConfig();
}
public static final int LOAD_STATS_CONFIG_FIELD_NUMBER = 4;
private io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource loadStatsConfig_;
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
public boolean hasLoadStatsConfig() {
return loadStatsConfig_ != null;
}
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
public io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource getLoadStatsConfig() {
return loadStatsConfig_ == null ? io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource.getDefaultInstance() : loadStatsConfig_;
}
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
public io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSourceOrBuilder getLoadStatsConfigOrBuilder() {
return getLoadStatsConfig();
}
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 (!getLocalClusterNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, localClusterName_);
}
if (outlierDetection_ != null) {
output.writeMessage(2, getOutlierDetection());
}
if (upstreamBindConfig_ != null) {
output.writeMessage(3, getUpstreamBindConfig());
}
if (loadStatsConfig_ != null) {
output.writeMessage(4, getLoadStatsConfig());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLocalClusterNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, localClusterName_);
}
if (outlierDetection_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOutlierDetection());
}
if (upstreamBindConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getUpstreamBindConfig());
}
if (loadStatsConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLoadStatsConfig());
}
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.bootstrap.v3alpha.ClusterManager)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager other = (io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager) obj;
if (!getLocalClusterName()
.equals(other.getLocalClusterName())) return false;
if (hasOutlierDetection() != other.hasOutlierDetection()) return false;
if (hasOutlierDetection()) {
if (!getOutlierDetection()
.equals(other.getOutlierDetection())) return false;
}
if (hasUpstreamBindConfig() != other.hasUpstreamBindConfig()) return false;
if (hasUpstreamBindConfig()) {
if (!getUpstreamBindConfig()
.equals(other.getUpstreamBindConfig())) return false;
}
if (hasLoadStatsConfig() != other.hasLoadStatsConfig()) return false;
if (hasLoadStatsConfig()) {
if (!getLoadStatsConfig()
.equals(other.getLoadStatsConfig())) 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) + LOCAL_CLUSTER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getLocalClusterName().hashCode();
if (hasOutlierDetection()) {
hash = (37 * hash) + OUTLIER_DETECTION_FIELD_NUMBER;
hash = (53 * hash) + getOutlierDetection().hashCode();
}
if (hasUpstreamBindConfig()) {
hash = (37 * hash) + UPSTREAM_BIND_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getUpstreamBindConfig().hashCode();
}
if (hasLoadStatsConfig()) {
hash = (37 * hash) + LOAD_STATS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getLoadStatsConfig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager 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.bootstrap.v3alpha.ClusterManager parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager 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.bootstrap.v3alpha.ClusterManager parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager 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.bootstrap.v3alpha.ClusterManager parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager 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.bootstrap.v3alpha.ClusterManager parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager 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.bootstrap.v3alpha.ClusterManager 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;
}
/**
*
* Cluster manager :ref:`architecture overview <arch_overview_cluster_manager>`.
*
*
* Protobuf type {@code envoy.config.bootstrap.v3alpha.ClusterManager}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3alpha.ClusterManager)
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManagerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_ClusterManager_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_ClusterManager_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.class, io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.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();
localClusterName_ = "";
if (outlierDetectionBuilder_ == null) {
outlierDetection_ = null;
} else {
outlierDetection_ = null;
outlierDetectionBuilder_ = null;
}
if (upstreamBindConfigBuilder_ == null) {
upstreamBindConfig_ = null;
} else {
upstreamBindConfig_ = null;
upstreamBindConfigBuilder_ = null;
}
if (loadStatsConfigBuilder_ == null) {
loadStatsConfig_ = null;
} else {
loadStatsConfig_ = null;
loadStatsConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_ClusterManager_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager build() {
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager result = new io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager(this);
result.localClusterName_ = localClusterName_;
if (outlierDetectionBuilder_ == null) {
result.outlierDetection_ = outlierDetection_;
} else {
result.outlierDetection_ = outlierDetectionBuilder_.build();
}
if (upstreamBindConfigBuilder_ == null) {
result.upstreamBindConfig_ = upstreamBindConfig_;
} else {
result.upstreamBindConfig_ = upstreamBindConfigBuilder_.build();
}
if (loadStatsConfigBuilder_ == null) {
result.loadStatsConfig_ = loadStatsConfig_;
} else {
result.loadStatsConfig_ = loadStatsConfigBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.getDefaultInstance()) return this;
if (!other.getLocalClusterName().isEmpty()) {
localClusterName_ = other.localClusterName_;
onChanged();
}
if (other.hasOutlierDetection()) {
mergeOutlierDetection(other.getOutlierDetection());
}
if (other.hasUpstreamBindConfig()) {
mergeUpstreamBindConfig(other.getUpstreamBindConfig());
}
if (other.hasLoadStatsConfig()) {
mergeLoadStatsConfig(other.getLoadStatsConfig());
}
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.bootstrap.v3alpha.ClusterManager parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object localClusterName_ = "";
/**
*
* Name of the local cluster (i.e., the cluster that owns the Envoy running
* this configuration). In order to enable :ref:`zone aware routing
* <arch_overview_load_balancing_zone_aware_routing>` this option must be set.
* If *local_cluster_name* is defined then :ref:`clusters
* <envoy_api_msg_api.v3alpha.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_api_field_config.bootstrap.v3alpha.Bootstrap.StaticResources.clusters>`. This is
* unrelated to the :option:`--service-cluster` option which does not `affect zone aware routing
* <https://github.com/envoyproxy/envoy/issues/774>`_.
*
*
* string local_cluster_name = 1;
*/
public java.lang.String getLocalClusterName() {
java.lang.Object ref = localClusterName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
localClusterName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the local cluster (i.e., the cluster that owns the Envoy running
* this configuration). In order to enable :ref:`zone aware routing
* <arch_overview_load_balancing_zone_aware_routing>` this option must be set.
* If *local_cluster_name* is defined then :ref:`clusters
* <envoy_api_msg_api.v3alpha.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_api_field_config.bootstrap.v3alpha.Bootstrap.StaticResources.clusters>`. This is
* unrelated to the :option:`--service-cluster` option which does not `affect zone aware routing
* <https://github.com/envoyproxy/envoy/issues/774>`_.
*
*
* string local_cluster_name = 1;
*/
public com.google.protobuf.ByteString
getLocalClusterNameBytes() {
java.lang.Object ref = localClusterName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localClusterName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the local cluster (i.e., the cluster that owns the Envoy running
* this configuration). In order to enable :ref:`zone aware routing
* <arch_overview_load_balancing_zone_aware_routing>` this option must be set.
* If *local_cluster_name* is defined then :ref:`clusters
* <envoy_api_msg_api.v3alpha.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_api_field_config.bootstrap.v3alpha.Bootstrap.StaticResources.clusters>`. This is
* unrelated to the :option:`--service-cluster` option which does not `affect zone aware routing
* <https://github.com/envoyproxy/envoy/issues/774>`_.
*
*
* string local_cluster_name = 1;
*/
public Builder setLocalClusterName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
localClusterName_ = value;
onChanged();
return this;
}
/**
*
* Name of the local cluster (i.e., the cluster that owns the Envoy running
* this configuration). In order to enable :ref:`zone aware routing
* <arch_overview_load_balancing_zone_aware_routing>` this option must be set.
* If *local_cluster_name* is defined then :ref:`clusters
* <envoy_api_msg_api.v3alpha.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_api_field_config.bootstrap.v3alpha.Bootstrap.StaticResources.clusters>`. This is
* unrelated to the :option:`--service-cluster` option which does not `affect zone aware routing
* <https://github.com/envoyproxy/envoy/issues/774>`_.
*
*
* string local_cluster_name = 1;
*/
public Builder clearLocalClusterName() {
localClusterName_ = getDefaultInstance().getLocalClusterName();
onChanged();
return this;
}
/**
*
* Name of the local cluster (i.e., the cluster that owns the Envoy running
* this configuration). In order to enable :ref:`zone aware routing
* <arch_overview_load_balancing_zone_aware_routing>` this option must be set.
* If *local_cluster_name* is defined then :ref:`clusters
* <envoy_api_msg_api.v3alpha.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_api_field_config.bootstrap.v3alpha.Bootstrap.StaticResources.clusters>`. This is
* unrelated to the :option:`--service-cluster` option which does not `affect zone aware routing
* <https://github.com/envoyproxy/envoy/issues/774>`_.
*
*
* string local_cluster_name = 1;
*/
public Builder setLocalClusterNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
localClusterName_ = value;
onChanged();
return this;
}
private io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlierDetection_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection, io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.Builder, io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetectionOrBuilder> outlierDetectionBuilder_;
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
public boolean hasOutlierDetection() {
return outlierDetectionBuilder_ != null || outlierDetection_ != null;
}
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
public io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection getOutlierDetection() {
if (outlierDetectionBuilder_ == null) {
return outlierDetection_ == null ? io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.getDefaultInstance() : outlierDetection_;
} else {
return outlierDetectionBuilder_.getMessage();
}
}
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
public Builder setOutlierDetection(io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection value) {
if (outlierDetectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outlierDetection_ = value;
onChanged();
} else {
outlierDetectionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
public Builder setOutlierDetection(
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.Builder builderForValue) {
if (outlierDetectionBuilder_ == null) {
outlierDetection_ = builderForValue.build();
onChanged();
} else {
outlierDetectionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
public Builder mergeOutlierDetection(io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection value) {
if (outlierDetectionBuilder_ == null) {
if (outlierDetection_ != null) {
outlierDetection_ =
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.newBuilder(outlierDetection_).mergeFrom(value).buildPartial();
} else {
outlierDetection_ = value;
}
onChanged();
} else {
outlierDetectionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
public Builder clearOutlierDetection() {
if (outlierDetectionBuilder_ == null) {
outlierDetection_ = null;
onChanged();
} else {
outlierDetection_ = null;
outlierDetectionBuilder_ = null;
}
return this;
}
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
public io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.Builder getOutlierDetectionBuilder() {
onChanged();
return getOutlierDetectionFieldBuilder().getBuilder();
}
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
public io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetectionOrBuilder getOutlierDetectionOrBuilder() {
if (outlierDetectionBuilder_ != null) {
return outlierDetectionBuilder_.getMessageOrBuilder();
} else {
return outlierDetection_ == null ?
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.getDefaultInstance() : outlierDetection_;
}
}
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection outlier_detection = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection, io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.Builder, io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetectionOrBuilder>
getOutlierDetectionFieldBuilder() {
if (outlierDetectionBuilder_ == null) {
outlierDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection, io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetection.Builder, io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager.OutlierDetectionOrBuilder>(
getOutlierDetection(),
getParentForChildren(),
isClean());
outlierDetection_ = null;
}
return outlierDetectionBuilder_;
}
private io.envoyproxy.envoy.api.v3alpha.core.BindConfig upstreamBindConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.BindConfig, io.envoyproxy.envoy.api.v3alpha.core.BindConfig.Builder, io.envoyproxy.envoy.api.v3alpha.core.BindConfigOrBuilder> upstreamBindConfigBuilder_;
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
public boolean hasUpstreamBindConfig() {
return upstreamBindConfigBuilder_ != null || upstreamBindConfig_ != null;
}
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
public io.envoyproxy.envoy.api.v3alpha.core.BindConfig getUpstreamBindConfig() {
if (upstreamBindConfigBuilder_ == null) {
return upstreamBindConfig_ == null ? io.envoyproxy.envoy.api.v3alpha.core.BindConfig.getDefaultInstance() : upstreamBindConfig_;
} else {
return upstreamBindConfigBuilder_.getMessage();
}
}
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
public Builder setUpstreamBindConfig(io.envoyproxy.envoy.api.v3alpha.core.BindConfig value) {
if (upstreamBindConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
upstreamBindConfig_ = value;
onChanged();
} else {
upstreamBindConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
public Builder setUpstreamBindConfig(
io.envoyproxy.envoy.api.v3alpha.core.BindConfig.Builder builderForValue) {
if (upstreamBindConfigBuilder_ == null) {
upstreamBindConfig_ = builderForValue.build();
onChanged();
} else {
upstreamBindConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
public Builder mergeUpstreamBindConfig(io.envoyproxy.envoy.api.v3alpha.core.BindConfig value) {
if (upstreamBindConfigBuilder_ == null) {
if (upstreamBindConfig_ != null) {
upstreamBindConfig_ =
io.envoyproxy.envoy.api.v3alpha.core.BindConfig.newBuilder(upstreamBindConfig_).mergeFrom(value).buildPartial();
} else {
upstreamBindConfig_ = value;
}
onChanged();
} else {
upstreamBindConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
public Builder clearUpstreamBindConfig() {
if (upstreamBindConfigBuilder_ == null) {
upstreamBindConfig_ = null;
onChanged();
} else {
upstreamBindConfig_ = null;
upstreamBindConfigBuilder_ = null;
}
return this;
}
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
public io.envoyproxy.envoy.api.v3alpha.core.BindConfig.Builder getUpstreamBindConfigBuilder() {
onChanged();
return getUpstreamBindConfigFieldBuilder().getBuilder();
}
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
public io.envoyproxy.envoy.api.v3alpha.core.BindConfigOrBuilder getUpstreamBindConfigOrBuilder() {
if (upstreamBindConfigBuilder_ != null) {
return upstreamBindConfigBuilder_.getMessageOrBuilder();
} else {
return upstreamBindConfig_ == null ?
io.envoyproxy.envoy.api.v3alpha.core.BindConfig.getDefaultInstance() : upstreamBindConfig_;
}
}
/**
*
* Optional configuration used to bind newly established upstream connections.
* This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
*
*
* .envoy.api.v3alpha.core.BindConfig upstream_bind_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.BindConfig, io.envoyproxy.envoy.api.v3alpha.core.BindConfig.Builder, io.envoyproxy.envoy.api.v3alpha.core.BindConfigOrBuilder>
getUpstreamBindConfigFieldBuilder() {
if (upstreamBindConfigBuilder_ == null) {
upstreamBindConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.BindConfig, io.envoyproxy.envoy.api.v3alpha.core.BindConfig.Builder, io.envoyproxy.envoy.api.v3alpha.core.BindConfigOrBuilder>(
getUpstreamBindConfig(),
getParentForChildren(),
isClean());
upstreamBindConfig_ = null;
}
return upstreamBindConfigBuilder_;
}
private io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource loadStatsConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource, io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource.Builder, io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSourceOrBuilder> loadStatsConfigBuilder_;
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
public boolean hasLoadStatsConfig() {
return loadStatsConfigBuilder_ != null || loadStatsConfig_ != null;
}
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
public io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource getLoadStatsConfig() {
if (loadStatsConfigBuilder_ == null) {
return loadStatsConfig_ == null ? io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource.getDefaultInstance() : loadStatsConfig_;
} else {
return loadStatsConfigBuilder_.getMessage();
}
}
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
public Builder setLoadStatsConfig(io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource value) {
if (loadStatsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
loadStatsConfig_ = value;
onChanged();
} else {
loadStatsConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
public Builder setLoadStatsConfig(
io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource.Builder builderForValue) {
if (loadStatsConfigBuilder_ == null) {
loadStatsConfig_ = builderForValue.build();
onChanged();
} else {
loadStatsConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
public Builder mergeLoadStatsConfig(io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource value) {
if (loadStatsConfigBuilder_ == null) {
if (loadStatsConfig_ != null) {
loadStatsConfig_ =
io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource.newBuilder(loadStatsConfig_).mergeFrom(value).buildPartial();
} else {
loadStatsConfig_ = value;
}
onChanged();
} else {
loadStatsConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
public Builder clearLoadStatsConfig() {
if (loadStatsConfigBuilder_ == null) {
loadStatsConfig_ = null;
onChanged();
} else {
loadStatsConfig_ = null;
loadStatsConfigBuilder_ = null;
}
return this;
}
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
public io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource.Builder getLoadStatsConfigBuilder() {
onChanged();
return getLoadStatsConfigFieldBuilder().getBuilder();
}
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
public io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSourceOrBuilder getLoadStatsConfigOrBuilder() {
if (loadStatsConfigBuilder_ != null) {
return loadStatsConfigBuilder_.getMessageOrBuilder();
} else {
return loadStatsConfig_ == null ?
io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource.getDefaultInstance() : loadStatsConfig_;
}
}
/**
*
* A management server endpoint to stream load stats to via
* *StreamLoadStats*. This must have :ref:`api_type
* <envoy_api_field_api.v3alpha.core.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_api_enum_value_api.v3alpha.core.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.api.v3alpha.core.ApiConfigSource load_stats_config = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource, io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource.Builder, io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSourceOrBuilder>
getLoadStatsConfigFieldBuilder() {
if (loadStatsConfigBuilder_ == null) {
loadStatsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource, io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSource.Builder, io.envoyproxy.envoy.api.v3alpha.core.ApiConfigSourceOrBuilder>(
getLoadStatsConfig(),
getParentForChildren(),
isClean());
loadStatsConfig_ = null;
}
return loadStatsConfigBuilder_;
}
@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.bootstrap.v3alpha.ClusterManager)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3alpha.ClusterManager)
private static final io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager();
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.ClusterManager getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClusterManager parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClusterManager(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.bootstrap.v3alpha.ClusterManager getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}