Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/bootstrap/v3/bootstrap.proto
package io.envoyproxy.envoy.config.bootstrap.v3;
/**
*
*
* string event_log_path = 1;
* @return The bytes for eventLogPath.
*/
com.google.protobuf.ByteString
getEventLogPathBytes();
/**
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
*
* .envoy.config.core.v3.EventServiceConfig event_service = 2;
* @return Whether the eventService field is set.
*/
boolean hasEventService();
/**
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
*
* .envoy.config.core.v3.EventServiceConfig event_service = 2;
*/
io.envoyproxy.envoy.config.core.v3.EventServiceConfigOrBuilder getEventServiceOrBuilder();
}
/**
* Protobuf type {@code envoy.config.bootstrap.v3.ClusterManager.OutlierDetection}
*/
public static final class OutlierDetection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3.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;
}
case 18: {
io.envoyproxy.envoy.config.core.v3.EventServiceConfig.Builder subBuilder = null;
if (eventService_ != null) {
subBuilder = eventService_.toBuilder();
}
eventService_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.EventServiceConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(eventService_);
eventService_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.class, io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.Builder.class);
}
public static final int EVENT_LOG_PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object eventLogPath_;
/**
*
*
* string event_log_path = 1;
* @return The bytes for eventLogPath.
*/
@java.lang.Override
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;
}
}
public static final int EVENT_SERVICE_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.config.core.v3.EventServiceConfig eventService_;
/**
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
*
* .envoy.config.core.v3.EventServiceConfig event_service = 2;
* @return Whether the eventService field is set.
*/
@java.lang.Override
public boolean hasEventService() {
return eventService_ != null;
}
/**
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
*
* .envoy.config.core.v3.EventServiceConfig event_service = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.EventServiceConfigOrBuilder getEventServiceOrBuilder() {
return getEventService();
}
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(eventLogPath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventLogPath_);
}
if (eventService_ != null) {
output.writeMessage(2, getEventService());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventLogPath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventLogPath_);
}
if (eventService_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getEventService());
}
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.v3.ClusterManager.OutlierDetection)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection other = (io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection) obj;
if (!getEventLogPath()
.equals(other.getEventLogPath())) return false;
if (hasEventService() != other.hasEventService()) return false;
if (hasEventService()) {
if (!getEventService()
.equals(other.getEventService())) 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();
if (hasEventService()) {
hash = (37 * hash) + EVENT_SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getEventService().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.ClusterManager.OutlierDetection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.ClusterManager.OutlierDetection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.ClusterManager.OutlierDetection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3.ClusterManager.OutlierDetection)
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.class, io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v3.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_ = "";
if (eventServiceBuilder_ == null) {
eventService_ = null;
} else {
eventService_ = null;
eventServiceBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection build() {
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection result = new io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection(this);
result.eventLogPath_ = eventLogPath_;
if (eventServiceBuilder_ == null) {
result.eventService_ = eventService_;
} else {
result.eventService_ = eventServiceBuilder_.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.v3.ClusterManager.OutlierDetection) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.getDefaultInstance()) return this;
if (!other.getEventLogPath().isEmpty()) {
eventLogPath_ = other.eventLogPath_;
onChanged();
}
if (other.hasEventService()) {
mergeEventService(other.getEventService());
}
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.v3.ClusterManager.OutlierDetection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object eventLogPath_ = "";
/**
*
*
* string event_log_path = 1;
* @return The bytes for eventLogPath.
*/
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;
* @param value The eventLogPath to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearEventLogPath() {
eventLogPath_ = getDefaultInstance().getEventLogPath();
onChanged();
return this;
}
/**
*
* Specifies the path to the outlier event log.
*
*
* string event_log_path = 1;
* @param value The bytes for eventLogPath to set.
* @return This builder for chaining.
*/
public Builder setEventLogPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
eventLogPath_ = value;
onChanged();
return this;
}
private io.envoyproxy.envoy.config.core.v3.EventServiceConfig eventService_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.EventServiceConfig, io.envoyproxy.envoy.config.core.v3.EventServiceConfig.Builder, io.envoyproxy.envoy.config.core.v3.EventServiceConfigOrBuilder> eventServiceBuilder_;
/**
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
*
* .envoy.config.core.v3.EventServiceConfig event_service = 2;
* @return Whether the eventService field is set.
*/
public boolean hasEventService() {
return eventServiceBuilder_ != null || eventService_ != null;
}
/**
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
*
* .envoy.config.core.v3.EventServiceConfig event_service = 2;
*/
public Builder setEventService(io.envoyproxy.envoy.config.core.v3.EventServiceConfig value) {
if (eventServiceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eventService_ = value;
onChanged();
} else {
eventServiceBuilder_.setMessage(value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
* [#not-implemented-hide:]
* The gRPC service for the outlier detection event service.
* If empty, outlier detection events won't be sent to a remote endpoint.
*
*
* .envoy.config.core.v3.EventServiceConfig event_service = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.EventServiceConfig, io.envoyproxy.envoy.config.core.v3.EventServiceConfig.Builder, io.envoyproxy.envoy.config.core.v3.EventServiceConfigOrBuilder>
getEventServiceFieldBuilder() {
if (eventServiceBuilder_ == null) {
eventServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.EventServiceConfig, io.envoyproxy.envoy.config.core.v3.EventServiceConfig.Builder, io.envoyproxy.envoy.config.core.v3.EventServiceConfigOrBuilder>(
getEventService(),
getParentForChildren(),
isClean());
eventService_ = null;
}
return eventServiceBuilder_;
}
@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.v3.ClusterManager.OutlierDetection)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3.ClusterManager.OutlierDetection)
private static final io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection();
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.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_v3_api_msg_config.cluster.v3.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_v3_api_field_config.bootstrap.v3.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>`_.
*
* 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_v3_api_msg_config.cluster.v3.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_v3_api_field_config.bootstrap.v3.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;
* @return The bytes for localClusterName.
*/
@java.lang.Override
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.v3.ClusterManager.OutlierDetection outlierDetection_;
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3.ClusterManager.OutlierDetection outlier_detection = 2;
* @return Whether the outlierDetection field is set.
*/
@java.lang.Override
public boolean hasOutlierDetection() {
return outlierDetection_ != null;
}
/**
*
* Optional global configuration for outlier detection.
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3.ClusterManager.OutlierDetection outlier_detection = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetectionOrBuilder getOutlierDetectionOrBuilder() {
return getOutlierDetection();
}
public static final int UPSTREAM_BIND_CONFIG_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.config.core.v3.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.config.core.v3.BindConfig upstream_bind_config = 3;
* @return Whether the upstreamBindConfig field is set.
*/
@java.lang.Override
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.
*
* 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.config.core.v3.BindConfig upstream_bind_config = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.BindConfigOrBuilder getUpstreamBindConfigOrBuilder() {
return getUpstreamBindConfig();
}
public static final int LOAD_STATS_CONFIG_FIELD_NUMBER = 4;
private io.envoyproxy.envoy.config.core.v3.ApiConfigSource loadStatsConfig_;
/**
*
* A management server endpoint to stream load stats to via
* ``StreamLoadStats``. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.config.core.v3.ApiConfigSource load_stats_config = 4;
* @return Whether the loadStatsConfig field is set.
*/
@java.lang.Override
public boolean hasLoadStatsConfig() {
return loadStatsConfig_ != null;
}
/**
*
* A management server endpoint to stream load stats to via
* ``StreamLoadStats``. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
* A management server endpoint to stream load stats to via
* ``StreamLoadStats``. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.config.core.v3.ApiConfigSource load_stats_config = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.ApiConfigSourceOrBuilder getLoadStatsConfigOrBuilder() {
return getLoadStatsConfig();
}
public static final int ENABLE_DEFERRED_CLUSTER_CREATION_FIELD_NUMBER = 5;
private boolean enableDeferredClusterCreation_;
/**
*
* Whether the ClusterManager will create clusters on the worker threads
* inline during requests. This will save memory and CPU cycles in cases where
* there are lots of inactive clusters and > 1 worker thread.
*
*
* bool enable_deferred_cluster_creation = 5;
* @return The enableDeferredClusterCreation.
*/
@java.lang.Override
public boolean getEnableDeferredClusterCreation() {
return enableDeferredClusterCreation_;
}
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(localClusterName_)) {
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());
}
if (enableDeferredClusterCreation_ != false) {
output.writeBool(5, enableDeferredClusterCreation_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localClusterName_)) {
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());
}
if (enableDeferredClusterCreation_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, enableDeferredClusterCreation_);
}
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.v3.ClusterManager)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager other = (io.envoyproxy.envoy.config.bootstrap.v3.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 (getEnableDeferredClusterCreation()
!= other.getEnableDeferredClusterCreation()) 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 = (37 * hash) + ENABLE_DEFERRED_CLUSTER_CREATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnableDeferredClusterCreation());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.ClusterManager parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.ClusterManager parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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;
}
/**
*
* 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_v3_api_msg_config.cluster.v3.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_v3_api_field_config.bootstrap.v3.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>`_.
*
* 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_v3_api_msg_config.cluster.v3.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_v3_api_field_config.bootstrap.v3.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;
* @return The bytes for localClusterName.
*/
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_v3_api_msg_config.cluster.v3.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_v3_api_field_config.bootstrap.v3.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;
* @param value The localClusterName to set.
* @return This builder for chaining.
*/
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_v3_api_msg_config.cluster.v3.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_v3_api_field_config.bootstrap.v3.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;
* @return This builder for chaining.
*/
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_v3_api_msg_config.cluster.v3.Cluster>` must be defined in the :ref:`Bootstrap
* static cluster resources
* <envoy_v3_api_field_config.bootstrap.v3.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;
* @param value The bytes for localClusterName to set.
* @return This builder for chaining.
*/
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.v3.ClusterManager.OutlierDetection outlierDetection_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection, io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.Builder, io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetectionOrBuilder> outlierDetectionBuilder_;
/**
*
* Optional global configuration for outlier detection.
*
*
* .envoy.config.bootstrap.v3.ClusterManager.OutlierDetection outlier_detection = 2;
* @return Whether the outlierDetection field is set.
*/
public boolean hasOutlierDetection() {
return outlierDetectionBuilder_ != null || outlierDetection_ != null;
}
/**
*
* Optional global configuration for outlier detection.
*
* 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.config.core.v3.BindConfig upstream_bind_config = 3;
* @return Whether the upstreamBindConfig field is set.
*/
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.
*
* 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.config.core.v3.BindConfig upstream_bind_config = 3;
*/
public Builder setUpstreamBindConfig(io.envoyproxy.envoy.config.core.v3.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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* A management server endpoint to stream load stats to via
* ``StreamLoadStats``. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.config.core.v3.ApiConfigSource load_stats_config = 4;
* @return Whether the loadStatsConfig field is set.
*/
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_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
* A management server endpoint to stream load stats to via
* ``StreamLoadStats``. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
*
* .envoy.config.core.v3.ApiConfigSource load_stats_config = 4;
*/
public Builder setLoadStatsConfig(io.envoyproxy.envoy.config.core.v3.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_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
* A management server endpoint to stream load stats to via
* ``StreamLoadStats``. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
* A management server endpoint to stream load stats to via
* ``StreamLoadStats``. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
* A management server endpoint to stream load stats to via
* ``StreamLoadStats``. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
* A management server endpoint to stream load stats to via
* ``StreamLoadStats``. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
* A management server endpoint to stream load stats to via
* ``StreamLoadStats``. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
*
* Whether the ClusterManager will create clusters on the worker threads
* inline during requests. This will save memory and CPU cycles in cases where
* there are lots of inactive clusters and > 1 worker thread.
*
* Whether the ClusterManager will create clusters on the worker threads
* inline during requests. This will save memory and CPU cycles in cases where
* there are lots of inactive clusters and > 1 worker thread.
*
*
* bool enable_deferred_cluster_creation = 5;
* @param value The enableDeferredClusterCreation to set.
* @return This builder for chaining.
*/
public Builder setEnableDeferredClusterCreation(boolean value) {
enableDeferredClusterCreation_ = value;
onChanged();
return this;
}
/**
*
* Whether the ClusterManager will create clusters on the worker threads
* inline during requests. This will save memory and CPU cycles in cases where
* there are lots of inactive clusters and > 1 worker thread.
*
*
* bool enable_deferred_cluster_creation = 5;
* @return This builder for chaining.
*/
public Builder clearEnableDeferredClusterCreation() {
enableDeferredClusterCreation_ = false;
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.v3.ClusterManager)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3.ClusterManager)
private static final io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager();
}
public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.ClusterManager getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}