io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of envoy-scala-control-plane_2.13 Show documentation
Show all versions of envoy-scala-control-plane_2.13 Show documentation
ScalaPB generated bindings for Envoy
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3
package io.envoyproxy.envoy.config.bootstrap.v3
/** Cluster manager :ref:`architecture overview <arch_overview_cluster_manager>`.
*
* @param 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>`_.
* @param outlierDetection
* Optional global configuration for outlier detection.
* @param 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.
* @param 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>`.
*/
@SerialVersionUID(0L)
final case class ClusterManager(
localClusterName: _root_.scala.Predef.String = "",
outlierDetection: _root_.scala.Option[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection] = _root_.scala.None,
upstreamBindConfig: _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.BindConfig] = _root_.scala.None,
loadStatsConfig: _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.ApiConfigSource] = _root_.scala.None,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ClusterManager] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = localClusterName
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, __value)
}
};
if (outlierDetection.isDefined) {
val __value = outlierDetection.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (upstreamBindConfig.isDefined) {
val __value = upstreamBindConfig.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (loadStatsConfig.isDefined) {
val __value = loadStatsConfig.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
__size += unknownFields.serializedSize
__size
}
override def serializedSize: _root_.scala.Int = {
var __size = __serializedSizeMemoized
if (__size == 0) {
__size = __computeSerializedSize() + 1
__serializedSizeMemoized = __size
}
__size - 1
}
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
{
val __v = localClusterName
if (!__v.isEmpty) {
_output__.writeString(1, __v)
}
};
outlierDetection.foreach { __v =>
val __m = __v
_output__.writeTag(2, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
upstreamBindConfig.foreach { __v =>
val __m = __v
_output__.writeTag(3, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
loadStatsConfig.foreach { __v =>
val __m = __v
_output__.writeTag(4, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
def withLocalClusterName(__v: _root_.scala.Predef.String): ClusterManager = copy(localClusterName = __v)
def getOutlierDetection: io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection = outlierDetection.getOrElse(io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.defaultInstance)
def clearOutlierDetection: ClusterManager = copy(outlierDetection = _root_.scala.None)
def withOutlierDetection(__v: io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection): ClusterManager = copy(outlierDetection = Option(__v))
def getUpstreamBindConfig: io.envoyproxy.envoy.config.core.v3.BindConfig = upstreamBindConfig.getOrElse(io.envoyproxy.envoy.config.core.v3.BindConfig.defaultInstance)
def clearUpstreamBindConfig: ClusterManager = copy(upstreamBindConfig = _root_.scala.None)
def withUpstreamBindConfig(__v: io.envoyproxy.envoy.config.core.v3.BindConfig): ClusterManager = copy(upstreamBindConfig = Option(__v))
def getLoadStatsConfig: io.envoyproxy.envoy.config.core.v3.ApiConfigSource = loadStatsConfig.getOrElse(io.envoyproxy.envoy.config.core.v3.ApiConfigSource.defaultInstance)
def clearLoadStatsConfig: ClusterManager = copy(loadStatsConfig = _root_.scala.None)
def withLoadStatsConfig(__v: io.envoyproxy.envoy.config.core.v3.ApiConfigSource): ClusterManager = copy(loadStatsConfig = Option(__v))
def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v)
def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty)
def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 1 => {
val __t = localClusterName
if (__t != "") __t else null
}
case 2 => outlierDetection.orNull
case 3 => upstreamBindConfig.orNull
case 4 => loadStatsConfig.orNull
}
}
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
_root_.scala.Predef.require(__field.containingMessage eq companion.scalaDescriptor)
(__field.number: @_root_.scala.unchecked) match {
case 1 => _root_.scalapb.descriptors.PString(localClusterName)
case 2 => outlierDetection.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 3 => upstreamBindConfig.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 4 => loadStatsConfig.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.type = io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager
// @@protoc_insertion_point(GeneratedMessage[envoy.config.bootstrap.v3.ClusterManager])
}
object ClusterManager extends scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager = {
var __localClusterName: _root_.scala.Predef.String = ""
var __outlierDetection: _root_.scala.Option[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection] = _root_.scala.None
var __upstreamBindConfig: _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.BindConfig] = _root_.scala.None
var __loadStatsConfig: _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.ApiConfigSource] = _root_.scala.None
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__localClusterName = _input__.readStringRequireUtf8()
case 18 =>
__outlierDetection = Option(__outlierDetection.fold(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 26 =>
__upstreamBindConfig = Option(__upstreamBindConfig.fold(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.config.core.v3.BindConfig](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 34 =>
__loadStatsConfig = Option(__loadStatsConfig.fold(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.config.core.v3.ApiConfigSource](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager(
localClusterName = __localClusterName,
outlierDetection = __outlierDetection,
upstreamBindConfig = __upstreamBindConfig,
loadStatsConfig = __loadStatsConfig,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager] = _root_.scalapb.descriptors.Reads{
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
_root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager(
localClusterName = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
outlierDetection = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection]]),
upstreamBindConfig = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).flatMap(_.as[_root_.scala.Option[io.envoyproxy.envoy.config.core.v3.BindConfig]]),
loadStatsConfig = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).flatMap(_.as[_root_.scala.Option[io.envoyproxy.envoy.config.core.v3.ApiConfigSource]])
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = BootstrapProto.javaDescriptor.getMessageTypes().get(2)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = BootstrapProto.scalaDescriptor.messages(2)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 2 => __out = io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection
case 3 => __out = io.envoyproxy.envoy.config.core.v3.BindConfig
case 4 => __out = io.envoyproxy.envoy.config.core.v3.ApiConfigSource
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
_root_.io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection
)
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
lazy val defaultInstance = io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager(
localClusterName = "",
outlierDetection = _root_.scala.None,
upstreamBindConfig = _root_.scala.None,
loadStatsConfig = _root_.scala.None
)
/** @param eventLogPath
* Specifies the path to the outlier event log.
* @param 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.
*/
@SerialVersionUID(0L)
final case class OutlierDetection(
eventLogPath: _root_.scala.Predef.String = "",
eventService: _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.EventServiceConfig] = _root_.scala.None,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[OutlierDetection] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = eventLogPath
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, __value)
}
};
if (eventService.isDefined) {
val __value = eventService.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
__size += unknownFields.serializedSize
__size
}
override def serializedSize: _root_.scala.Int = {
var __size = __serializedSizeMemoized
if (__size == 0) {
__size = __computeSerializedSize() + 1
__serializedSizeMemoized = __size
}
__size - 1
}
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
{
val __v = eventLogPath
if (!__v.isEmpty) {
_output__.writeString(1, __v)
}
};
eventService.foreach { __v =>
val __m = __v
_output__.writeTag(2, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
def withEventLogPath(__v: _root_.scala.Predef.String): OutlierDetection = copy(eventLogPath = __v)
def getEventService: io.envoyproxy.envoy.config.core.v3.EventServiceConfig = eventService.getOrElse(io.envoyproxy.envoy.config.core.v3.EventServiceConfig.defaultInstance)
def clearEventService: OutlierDetection = copy(eventService = _root_.scala.None)
def withEventService(__v: io.envoyproxy.envoy.config.core.v3.EventServiceConfig): OutlierDetection = copy(eventService = Option(__v))
def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v)
def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty)
def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 1 => {
val __t = eventLogPath
if (__t != "") __t else null
}
case 2 => eventService.orNull
}
}
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
_root_.scala.Predef.require(__field.containingMessage eq companion.scalaDescriptor)
(__field.number: @_root_.scala.unchecked) match {
case 1 => _root_.scalapb.descriptors.PString(eventLogPath)
case 2 => eventService.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection.type = io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection
// @@protoc_insertion_point(GeneratedMessage[envoy.config.bootstrap.v3.ClusterManager.OutlierDetection])
}
object OutlierDetection extends scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection = {
var __eventLogPath: _root_.scala.Predef.String = ""
var __eventService: _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.EventServiceConfig] = _root_.scala.None
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__eventLogPath = _input__.readStringRequireUtf8()
case 18 =>
__eventService = Option(__eventService.fold(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.config.core.v3.EventServiceConfig](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection(
eventLogPath = __eventLogPath,
eventService = __eventService,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection] = _root_.scalapb.descriptors.Reads{
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
_root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection(
eventLogPath = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
eventService = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[io.envoyproxy.envoy.config.core.v3.EventServiceConfig]])
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.javaDescriptor.getNestedTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.scalaDescriptor.nestedMessages(0)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 2 => __out = io.envoyproxy.envoy.config.core.v3.EventServiceConfig
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
lazy val defaultInstance = io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection(
eventLogPath = "",
eventService = _root_.scala.None
)
implicit class OutlierDetectionLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection](_l) {
def eventLogPath: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.eventLogPath)((c_, f_) => c_.copy(eventLogPath = f_))
def eventService: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.core.v3.EventServiceConfig] = field(_.getEventService)((c_, f_) => c_.copy(eventService = Option(f_)))
def optionalEventService: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.EventServiceConfig]] = field(_.eventService)((c_, f_) => c_.copy(eventService = f_))
}
final val EVENT_LOG_PATH_FIELD_NUMBER = 1
final val EVENT_SERVICE_FIELD_NUMBER = 2
def of(
eventLogPath: _root_.scala.Predef.String,
eventService: _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.EventServiceConfig]
): _root_.io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection = _root_.io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection(
eventLogPath,
eventService
)
// @@protoc_insertion_point(GeneratedMessageCompanion[envoy.config.bootstrap.v3.ClusterManager.OutlierDetection])
}
implicit class ClusterManagerLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager](_l) {
def localClusterName: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.localClusterName)((c_, f_) => c_.copy(localClusterName = f_))
def outlierDetection: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection] = field(_.getOutlierDetection)((c_, f_) => c_.copy(outlierDetection = Option(f_)))
def optionalOutlierDetection: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection]] = field(_.outlierDetection)((c_, f_) => c_.copy(outlierDetection = f_))
def upstreamBindConfig: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.core.v3.BindConfig] = field(_.getUpstreamBindConfig)((c_, f_) => c_.copy(upstreamBindConfig = Option(f_)))
def optionalUpstreamBindConfig: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.BindConfig]] = field(_.upstreamBindConfig)((c_, f_) => c_.copy(upstreamBindConfig = f_))
def loadStatsConfig: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.core.v3.ApiConfigSource] = field(_.getLoadStatsConfig)((c_, f_) => c_.copy(loadStatsConfig = Option(f_)))
def optionalLoadStatsConfig: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.ApiConfigSource]] = field(_.loadStatsConfig)((c_, f_) => c_.copy(loadStatsConfig = f_))
}
final val LOCAL_CLUSTER_NAME_FIELD_NUMBER = 1
final val OUTLIER_DETECTION_FIELD_NUMBER = 2
final val UPSTREAM_BIND_CONFIG_FIELD_NUMBER = 3
final val LOAD_STATS_CONFIG_FIELD_NUMBER = 4
def of(
localClusterName: _root_.scala.Predef.String,
outlierDetection: _root_.scala.Option[io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager.OutlierDetection],
upstreamBindConfig: _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.BindConfig],
loadStatsConfig: _root_.scala.Option[io.envoyproxy.envoy.config.core.v3.ApiConfigSource]
): _root_.io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager = _root_.io.envoyproxy.envoy.config.bootstrap.v3.ClusterManager(
localClusterName,
outlierDetection,
upstreamBindConfig,
loadStatsConfig
)
// @@protoc_insertion_point(GeneratedMessageCompanion[envoy.config.bootstrap.v3.ClusterManager])
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy