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

io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/bootstrap/v3/bootstrap.proto

package io.envoyproxy.envoy.config.bootstrap.v3;

/**
 * 
 * Cluster manager :ref:`architecture overview <arch_overview_cluster_manager>`.
 * [#next-free-field: 6]
 * 
* * Protobuf type {@code envoy.config.bootstrap.v3.ClusterManager} */ public final class ClusterManager extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3.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.v3.ClusterManager.OutlierDetection.Builder subBuilder = null; if (outlierDetection_ != null) { subBuilder = outlierDetection_.toBuilder(); } outlierDetection_ = input.readMessage(io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(outlierDetection_); outlierDetection_ = subBuilder.buildPartial(); } break; } case 26: { io.envoyproxy.envoy.config.core.v3.BindConfig.Builder subBuilder = null; if (upstreamBindConfig_ != null) { subBuilder = upstreamBindConfig_.toBuilder(); } upstreamBindConfig_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.BindConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(upstreamBindConfig_); upstreamBindConfig_ = subBuilder.buildPartial(); } break; } case 34: { io.envoyproxy.envoy.config.core.v3.ApiConfigSource.Builder subBuilder = null; if (loadStatsConfig_ != null) { subBuilder = loadStatsConfig_.toBuilder(); } loadStatsConfig_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.ApiConfigSource.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(loadStatsConfig_); loadStatsConfig_ = subBuilder.buildPartial(); } break; } case 40: { enableDeferredClusterCreation_ = input.readBool(); 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_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_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.class, io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.Builder.class); } public interface OutlierDetectionOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v3.ClusterManager.OutlierDetection) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies the path to the outlier event log.
     * 
* * string event_log_path = 1; * @return The eventLogPath. */ java.lang.String getEventLogPath(); /** *
     * Specifies the path to the outlier event log.
     * 
* * 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.
     * 
* * .envoy.config.core.v3.EventServiceConfig event_service = 2; * @return The eventService. */ io.envoyproxy.envoy.config.core.v3.EventServiceConfig getEventService(); /** *
     * [#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_; /** *
     * Specifies the path to the outlier event log.
     * 
* * string event_log_path = 1; * @return The eventLogPath. */ @java.lang.Override 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; * @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.
     * 
* * .envoy.config.core.v3.EventServiceConfig event_service = 2; * @return The eventService. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.EventServiceConfig getEventService() { return eventService_ == null ? io.envoyproxy.envoy.config.core.v3.EventServiceConfig.getDefaultInstance() : 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; */ @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_ = ""; /** *
       * Specifies the path to the outlier event log.
       * 
* * string event_log_path = 1; * @return The eventLogPath. */ 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; * @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.
       * 
* * .envoy.config.core.v3.EventServiceConfig event_service = 2; * @return The eventService. */ public io.envoyproxy.envoy.config.core.v3.EventServiceConfig getEventService() { if (eventServiceBuilder_ == null) { return eventService_ == null ? io.envoyproxy.envoy.config.core.v3.EventServiceConfig.getDefaultInstance() : eventService_; } else { return eventServiceBuilder_.getMessage(); } } /** *
       * [#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.
       * 
* * .envoy.config.core.v3.EventServiceConfig event_service = 2; */ public Builder setEventService( io.envoyproxy.envoy.config.core.v3.EventServiceConfig.Builder builderForValue) { if (eventServiceBuilder_ == null) { eventService_ = builderForValue.build(); onChanged(); } else { eventServiceBuilder_.setMessage(builderForValue.build()); } 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.
       * 
* * .envoy.config.core.v3.EventServiceConfig event_service = 2; */ public Builder mergeEventService(io.envoyproxy.envoy.config.core.v3.EventServiceConfig value) { if (eventServiceBuilder_ == null) { if (eventService_ != null) { eventService_ = io.envoyproxy.envoy.config.core.v3.EventServiceConfig.newBuilder(eventService_).mergeFrom(value).buildPartial(); } else { eventService_ = value; } onChanged(); } else { eventServiceBuilder_.mergeFrom(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.
       * 
* * .envoy.config.core.v3.EventServiceConfig event_service = 2; */ public Builder clearEventService() { if (eventServiceBuilder_ == null) { eventService_ = null; onChanged(); } else { eventService_ = null; eventServiceBuilder_ = null; } 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.
       * 
* * .envoy.config.core.v3.EventServiceConfig event_service = 2; */ public io.envoyproxy.envoy.config.core.v3.EventServiceConfig.Builder getEventServiceBuilder() { onChanged(); return getEventServiceFieldBuilder().getBuilder(); } /** *
       * [#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 io.envoyproxy.envoy.config.core.v3.EventServiceConfigOrBuilder getEventServiceOrBuilder() { if (eventServiceBuilder_ != null) { return eventServiceBuilder_.getMessageOrBuilder(); } else { return eventService_ == null ? io.envoyproxy.envoy.config.core.v3.EventServiceConfig.getDefaultInstance() : 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; */ 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>`_.
   * 
* * string local_cluster_name = 1; * @return The localClusterName. */ @java.lang.Override 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_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.
   * 
* * .envoy.config.bootstrap.v3.ClusterManager.OutlierDetection outlier_detection = 2; * @return The outlierDetection. */ @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection getOutlierDetection() { return outlierDetection_ == null ? io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.getDefaultInstance() : outlierDetection_; } /** *
   * 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.
   * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 3; * @return The upstreamBindConfig. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.BindConfig getUpstreamBindConfig() { return upstreamBindConfig_ == null ? io.envoyproxy.envoy.config.core.v3.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.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>`.
   * 
* * .envoy.config.core.v3.ApiConfigSource load_stats_config = 4; * @return The loadStatsConfig. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.ApiConfigSource getLoadStatsConfig() { return loadStatsConfig_ == null ? io.envoyproxy.envoy.config.core.v3.ApiConfigSource.getDefaultInstance() : 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; */ @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; } /** *
   * Cluster manager :ref:`architecture overview <arch_overview_cluster_manager>`.
   * [#next-free-field: 6]
   * 
* * Protobuf type {@code envoy.config.bootstrap.v3.ClusterManager} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3.ClusterManager) io.envoyproxy.envoy.config.bootstrap.v3.ClusterManagerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_ClusterManager_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_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.class, io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.Builder.class); } // Construct using io.envoyproxy.envoy.config.bootstrap.v3.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; } enableDeferredClusterCreation_ = false; 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_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager getDefaultInstanceForType() { return io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager build() { io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager buildPartial() { io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager result = new io.envoyproxy.envoy.config.bootstrap.v3.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(); } result.enableDeferredClusterCreation_ = enableDeferredClusterCreation_; 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) { return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager other) { if (other == io.envoyproxy.envoy.config.bootstrap.v3.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()); } if (other.getEnableDeferredClusterCreation() != false) { setEnableDeferredClusterCreation(other.getEnableDeferredClusterCreation()); } 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 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3.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_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 localClusterName. */ 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_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.
     * 
* * .envoy.config.bootstrap.v3.ClusterManager.OutlierDetection outlier_detection = 2; * @return The outlierDetection. */ public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection getOutlierDetection() { if (outlierDetectionBuilder_ == null) { return outlierDetection_ == null ? io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.getDefaultInstance() : outlierDetection_; } else { return outlierDetectionBuilder_.getMessage(); } } /** *
     * Optional global configuration for outlier detection.
     * 
* * .envoy.config.bootstrap.v3.ClusterManager.OutlierDetection outlier_detection = 2; */ public Builder setOutlierDetection(io.envoyproxy.envoy.config.bootstrap.v3.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.v3.ClusterManager.OutlierDetection outlier_detection = 2; */ public Builder setOutlierDetection( io.envoyproxy.envoy.config.bootstrap.v3.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.v3.ClusterManager.OutlierDetection outlier_detection = 2; */ public Builder mergeOutlierDetection(io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection value) { if (outlierDetectionBuilder_ == null) { if (outlierDetection_ != null) { outlierDetection_ = io.envoyproxy.envoy.config.bootstrap.v3.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.v3.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.v3.ClusterManager.OutlierDetection outlier_detection = 2; */ public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.Builder getOutlierDetectionBuilder() { onChanged(); return getOutlierDetectionFieldBuilder().getBuilder(); } /** *
     * Optional global configuration for outlier detection.
     * 
* * .envoy.config.bootstrap.v3.ClusterManager.OutlierDetection outlier_detection = 2; */ public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetectionOrBuilder getOutlierDetectionOrBuilder() { if (outlierDetectionBuilder_ != null) { return outlierDetectionBuilder_.getMessageOrBuilder(); } else { return outlierDetection_ == null ? io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.getDefaultInstance() : outlierDetection_; } } /** *
     * Optional global configuration for outlier detection.
     * 
* * .envoy.config.bootstrap.v3.ClusterManager.OutlierDetection outlier_detection = 2; */ 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> getOutlierDetectionFieldBuilder() { if (outlierDetectionBuilder_ == null) { outlierDetectionBuilder_ = new 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>( getOutlierDetection(), getParentForChildren(), isClean()); outlierDetection_ = null; } return outlierDetectionBuilder_; } private io.envoyproxy.envoy.config.core.v3.BindConfig upstreamBindConfig_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.BindConfig, io.envoyproxy.envoy.config.core.v3.BindConfig.Builder, io.envoyproxy.envoy.config.core.v3.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.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.
     * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 3; * @return The upstreamBindConfig. */ public io.envoyproxy.envoy.config.core.v3.BindConfig getUpstreamBindConfig() { if (upstreamBindConfigBuilder_ == null) { return upstreamBindConfig_ == null ? io.envoyproxy.envoy.config.core.v3.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.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.
     * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 3; */ public Builder setUpstreamBindConfig( io.envoyproxy.envoy.config.core.v3.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.config.core.v3.BindConfig upstream_bind_config = 3; */ public Builder mergeUpstreamBindConfig(io.envoyproxy.envoy.config.core.v3.BindConfig value) { if (upstreamBindConfigBuilder_ == null) { if (upstreamBindConfig_ != null) { upstreamBindConfig_ = io.envoyproxy.envoy.config.core.v3.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.config.core.v3.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.config.core.v3.BindConfig upstream_bind_config = 3; */ public io.envoyproxy.envoy.config.core.v3.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.config.core.v3.BindConfig upstream_bind_config = 3; */ public io.envoyproxy.envoy.config.core.v3.BindConfigOrBuilder getUpstreamBindConfigOrBuilder() { if (upstreamBindConfigBuilder_ != null) { return upstreamBindConfigBuilder_.getMessageOrBuilder(); } else { return upstreamBindConfig_ == null ? io.envoyproxy.envoy.config.core.v3.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.config.core.v3.BindConfig upstream_bind_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.BindConfig, io.envoyproxy.envoy.config.core.v3.BindConfig.Builder, io.envoyproxy.envoy.config.core.v3.BindConfigOrBuilder> getUpstreamBindConfigFieldBuilder() { if (upstreamBindConfigBuilder_ == null) { upstreamBindConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.BindConfig, io.envoyproxy.envoy.config.core.v3.BindConfig.Builder, io.envoyproxy.envoy.config.core.v3.BindConfigOrBuilder>( getUpstreamBindConfig(), getParentForChildren(), isClean()); upstreamBindConfig_ = null; } return upstreamBindConfigBuilder_; } private io.envoyproxy.envoy.config.core.v3.ApiConfigSource loadStatsConfig_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.ApiConfigSource, io.envoyproxy.envoy.config.core.v3.ApiConfigSource.Builder, io.envoyproxy.envoy.config.core.v3.ApiConfigSourceOrBuilder> loadStatsConfigBuilder_; /** *
     * 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>`.
     * 
* * .envoy.config.core.v3.ApiConfigSource load_stats_config = 4; * @return The loadStatsConfig. */ public io.envoyproxy.envoy.config.core.v3.ApiConfigSource getLoadStatsConfig() { if (loadStatsConfigBuilder_ == null) { return loadStatsConfig_ == null ? io.envoyproxy.envoy.config.core.v3.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_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>`.
     * 
* * .envoy.config.core.v3.ApiConfigSource load_stats_config = 4; */ public Builder setLoadStatsConfig( io.envoyproxy.envoy.config.core.v3.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_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 mergeLoadStatsConfig(io.envoyproxy.envoy.config.core.v3.ApiConfigSource value) { if (loadStatsConfigBuilder_ == null) { if (loadStatsConfig_ != null) { loadStatsConfig_ = io.envoyproxy.envoy.config.core.v3.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_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 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_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 io.envoyproxy.envoy.config.core.v3.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_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 io.envoyproxy.envoy.config.core.v3.ApiConfigSourceOrBuilder getLoadStatsConfigOrBuilder() { if (loadStatsConfigBuilder_ != null) { return loadStatsConfigBuilder_.getMessageOrBuilder(); } else { return loadStatsConfig_ == null ? io.envoyproxy.envoy.config.core.v3.ApiConfigSource.getDefaultInstance() : 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; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.ApiConfigSource, io.envoyproxy.envoy.config.core.v3.ApiConfigSource.Builder, io.envoyproxy.envoy.config.core.v3.ApiConfigSourceOrBuilder> getLoadStatsConfigFieldBuilder() { if (loadStatsConfigBuilder_ == null) { loadStatsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.ApiConfigSource, io.envoyproxy.envoy.config.core.v3.ApiConfigSource.Builder, io.envoyproxy.envoy.config.core.v3.ApiConfigSourceOrBuilder>( getLoadStatsConfig(), getParentForChildren(), isClean()); loadStatsConfig_ = null; } return loadStatsConfigBuilder_; } 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_; } /** *
     * 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy