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

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

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

// Protobuf Java Version: 3.25.5
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(); } 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(); } 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); } private int bitField0_; public static final int EVENT_LOG_PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * [#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 eventService_ == null ? io.envoyproxy.envoy.config.core.v3.EventServiceConfig.getDefaultInstance() : eventService_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getEventService()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventLogPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventLogPath_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEventService()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.config.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().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) { getEventServiceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; eventLogPath_ = ""; eventService_ = null; if (eventServiceBuilder_ != null) { eventServiceBuilder_.dispose(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.eventLogPath_ = eventLogPath_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.eventService_ = eventServiceBuilder_ == null ? eventService_ : eventServiceBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasEventService()) { mergeEventService(other.getEventService()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { eventLogPath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getEventServiceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; 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(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * [#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; } else { eventServiceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { eventServiceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && eventService_ != null && eventService_ != io.envoyproxy.envoy.config.core.v3.EventServiceConfig.getDefaultInstance()) { getEventServiceBuilder().mergeFrom(value); } else { eventService_ = value; } } else { eventServiceBuilder_.mergeFrom(value); } if (eventService_ != null) { bitField0_ |= 0x00000002; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000002); eventService_ = null; if (eventServiceBuilder_ != null) { eventServiceBuilder_.dispose(); eventServiceBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int LOCAL_CLUSTER_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
   * 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 outlierDetection_ == null ? io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.getDefaultInstance() : outlierDetection_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
   * 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 upstreamBindConfig_ == null ? io.envoyproxy.envoy.config.core.v3.BindConfig.getDefaultInstance() : upstreamBindConfig_; } 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 ((bitField0_ & 0x00000004) != 0); } /** *
   * 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 loadStatsConfig_ == null ? io.envoyproxy.envoy.config.core.v3.ApiConfigSource.getDefaultInstance() : loadStatsConfig_; } public static final int ENABLE_DEFERRED_CLUSTER_CREATION_FIELD_NUMBER = 5; private boolean enableDeferredClusterCreation_ = false; /** *
   * 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getOutlierDetection()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getUpstreamBindConfig()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getLoadStatsConfig()); } if (enableDeferredClusterCreation_ != false) { output.writeBool(5, enableDeferredClusterCreation_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localClusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, localClusterName_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOutlierDetection()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getUpstreamBindConfig()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLoadStatsConfig()); } if (enableDeferredClusterCreation_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, enableDeferredClusterCreation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.config.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().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) { getOutlierDetectionFieldBuilder(); getUpstreamBindConfigFieldBuilder(); getLoadStatsConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; localClusterName_ = ""; outlierDetection_ = null; if (outlierDetectionBuilder_ != null) { outlierDetectionBuilder_.dispose(); outlierDetectionBuilder_ = null; } upstreamBindConfig_ = null; if (upstreamBindConfigBuilder_ != null) { upstreamBindConfigBuilder_.dispose(); upstreamBindConfigBuilder_ = null; } loadStatsConfig_ = null; if (loadStatsConfigBuilder_ != null) { loadStatsConfigBuilder_.dispose(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.localClusterName_ = localClusterName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.outlierDetection_ = outlierDetectionBuilder_ == null ? outlierDetection_ : outlierDetectionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.upstreamBindConfig_ = upstreamBindConfigBuilder_ == null ? upstreamBindConfig_ : upstreamBindConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.loadStatsConfig_ = loadStatsConfigBuilder_ == null ? loadStatsConfig_ : loadStatsConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.enableDeferredClusterCreation_ = enableDeferredClusterCreation_; } result.bitField0_ |= to_bitField0_; } @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_; bitField0_ |= 0x00000001; 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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { localClusterName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getOutlierDetectionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getUpstreamBindConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getLoadStatsConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { enableDeferredClusterCreation_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; 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(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
     * 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; } else { outlierDetectionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { outlierDetectionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && outlierDetection_ != null && outlierDetection_ != io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.getDefaultInstance()) { getOutlierDetectionBuilder().mergeFrom(value); } else { outlierDetection_ = value; } } else { outlierDetectionBuilder_.mergeFrom(value); } if (outlierDetection_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Optional global configuration for outlier detection.
     * 
* * .envoy.config.bootstrap.v3.ClusterManager.OutlierDetection outlier_detection = 2; */ public Builder clearOutlierDetection() { bitField0_ = (bitField0_ & ~0x00000002); outlierDetection_ = null; if (outlierDetectionBuilder_ != null) { outlierDetectionBuilder_.dispose(); outlierDetectionBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** *
     * 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; } else { upstreamBindConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { upstreamBindConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && upstreamBindConfig_ != null && upstreamBindConfig_ != io.envoyproxy.envoy.config.core.v3.BindConfig.getDefaultInstance()) { getUpstreamBindConfigBuilder().mergeFrom(value); } else { upstreamBindConfig_ = value; } } else { upstreamBindConfigBuilder_.mergeFrom(value); } if (upstreamBindConfig_ != null) { bitField0_ |= 0x00000004; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000004); upstreamBindConfig_ = null; if (upstreamBindConfigBuilder_ != null) { upstreamBindConfigBuilder_.dispose(); upstreamBindConfigBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000004; 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 ((bitField0_ & 0x00000008) != 0); } /** *
     * 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; } else { loadStatsConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { loadStatsConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && loadStatsConfig_ != null && loadStatsConfig_ != io.envoyproxy.envoy.config.core.v3.ApiConfigSource.getDefaultInstance()) { getLoadStatsConfigBuilder().mergeFrom(value); } else { loadStatsConfig_ = value; } } else { loadStatsConfigBuilder_.mergeFrom(value); } if (loadStatsConfig_ != null) { bitField0_ |= 0x00000008; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000008); loadStatsConfig_ = null; if (loadStatsConfigBuilder_ != null) { loadStatsConfigBuilder_.dispose(); loadStatsConfigBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000008; 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; bitField0_ |= 0x00000010; 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() { bitField0_ = (bitField0_ & ~0x00000010); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy