io.envoyproxy.envoy.config.tap.v3.OutputSink.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.tap.v3
/** Tap output sink configuration.
* [#next-free-field: 6]
*
* @param format
* Sink output format.
*/
@SerialVersionUID(0L)
final case class OutputSink(
format: io.envoyproxy.envoy.config.tap.v3.OutputSink.Format = io.envoyproxy.envoy.config.tap.v3.OutputSink.Format.JSON_BODY_AS_BYTES,
outputSinkType: io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.Empty,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[OutputSink] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = format.value
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeEnumSize(1, __value)
}
};
if (outputSinkType.streamingAdmin.isDefined) {
val __value = outputSinkType.streamingAdmin.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (outputSinkType.filePerTap.isDefined) {
val __value = outputSinkType.filePerTap.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (outputSinkType.streamingGrpc.isDefined) {
val __value = outputSinkType.streamingGrpc.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (outputSinkType.bufferedAdmin.isDefined) {
val __value = outputSinkType.bufferedAdmin.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 = format.value
if (__v != 0) {
_output__.writeEnum(1, __v)
}
};
outputSinkType.streamingAdmin.foreach { __v =>
val __m = __v
_output__.writeTag(2, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
outputSinkType.filePerTap.foreach { __v =>
val __m = __v
_output__.writeTag(3, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
outputSinkType.streamingGrpc.foreach { __v =>
val __m = __v
_output__.writeTag(4, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
outputSinkType.bufferedAdmin.foreach { __v =>
val __m = __v
_output__.writeTag(5, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
def withFormat(__v: io.envoyproxy.envoy.config.tap.v3.OutputSink.Format): OutputSink = copy(format = __v)
def getStreamingAdmin: io.envoyproxy.envoy.config.tap.v3.StreamingAdminSink = outputSinkType.streamingAdmin.getOrElse(io.envoyproxy.envoy.config.tap.v3.StreamingAdminSink.defaultInstance)
def withStreamingAdmin(__v: io.envoyproxy.envoy.config.tap.v3.StreamingAdminSink): OutputSink = copy(outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.StreamingAdmin(__v))
def getFilePerTap: io.envoyproxy.envoy.config.tap.v3.FilePerTapSink = outputSinkType.filePerTap.getOrElse(io.envoyproxy.envoy.config.tap.v3.FilePerTapSink.defaultInstance)
def withFilePerTap(__v: io.envoyproxy.envoy.config.tap.v3.FilePerTapSink): OutputSink = copy(outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.FilePerTap(__v))
def getStreamingGrpc: io.envoyproxy.envoy.config.tap.v3.StreamingGrpcSink = outputSinkType.streamingGrpc.getOrElse(io.envoyproxy.envoy.config.tap.v3.StreamingGrpcSink.defaultInstance)
def withStreamingGrpc(__v: io.envoyproxy.envoy.config.tap.v3.StreamingGrpcSink): OutputSink = copy(outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.StreamingGrpc(__v))
def getBufferedAdmin: io.envoyproxy.envoy.config.tap.v3.BufferedAdminSink = outputSinkType.bufferedAdmin.getOrElse(io.envoyproxy.envoy.config.tap.v3.BufferedAdminSink.defaultInstance)
def withBufferedAdmin(__v: io.envoyproxy.envoy.config.tap.v3.BufferedAdminSink): OutputSink = copy(outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.BufferedAdmin(__v))
def clearOutputSinkType: OutputSink = copy(outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.Empty)
def withOutputSinkType(__v: io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType): OutputSink = copy(outputSinkType = __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 = format.javaValueDescriptor
if (__t.getNumber() != 0) __t else null
}
case 2 => outputSinkType.streamingAdmin.orNull
case 3 => outputSinkType.filePerTap.orNull
case 4 => outputSinkType.streamingGrpc.orNull
case 5 => outputSinkType.bufferedAdmin.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.PEnum(format.scalaValueDescriptor)
case 2 => outputSinkType.streamingAdmin.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 3 => outputSinkType.filePerTap.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 4 => outputSinkType.streamingGrpc.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 5 => outputSinkType.bufferedAdmin.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: io.envoyproxy.envoy.config.tap.v3.OutputSink.type = io.envoyproxy.envoy.config.tap.v3.OutputSink
// @@protoc_insertion_point(GeneratedMessage[envoy.config.tap.v3.OutputSink])
}
object OutputSink extends scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.config.tap.v3.OutputSink] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.config.tap.v3.OutputSink] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): io.envoyproxy.envoy.config.tap.v3.OutputSink = {
var __format: io.envoyproxy.envoy.config.tap.v3.OutputSink.Format = io.envoyproxy.envoy.config.tap.v3.OutputSink.Format.JSON_BODY_AS_BYTES
var __outputSinkType: io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.Empty
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 8 =>
__format = io.envoyproxy.envoy.config.tap.v3.OutputSink.Format.fromValue(_input__.readEnum())
case 18 =>
__outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.StreamingAdmin(__outputSinkType.streamingAdmin.fold(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.config.tap.v3.StreamingAdminSink](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 26 =>
__outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.FilePerTap(__outputSinkType.filePerTap.fold(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.config.tap.v3.FilePerTapSink](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 34 =>
__outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.StreamingGrpc(__outputSinkType.streamingGrpc.fold(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.config.tap.v3.StreamingGrpcSink](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 42 =>
__outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.BufferedAdmin(__outputSinkType.bufferedAdmin.fold(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.config.tap.v3.BufferedAdminSink](_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.tap.v3.OutputSink(
format = __format,
outputSinkType = __outputSinkType,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[io.envoyproxy.envoy.config.tap.v3.OutputSink] = _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.tap.v3.OutputSink(
format = io.envoyproxy.envoy.config.tap.v3.OutputSink.Format.fromValue(__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scalapb.descriptors.EnumValueDescriptor]).getOrElse(io.envoyproxy.envoy.config.tap.v3.OutputSink.Format.JSON_BODY_AS_BYTES.scalaValueDescriptor).number),
outputSinkType = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.StreamingAdminSink]]).map(io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.StreamingAdmin(_))
.orElse[io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType](__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).flatMap(_.as[_root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.FilePerTapSink]]).map(io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.FilePerTap(_)))
.orElse[io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType](__fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).flatMap(_.as[_root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.StreamingGrpcSink]]).map(io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.StreamingGrpc(_)))
.orElse[io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType](__fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).flatMap(_.as[_root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.BufferedAdminSink]]).map(io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.BufferedAdmin(_)))
.getOrElse(io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.Empty)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = CommonProto.javaDescriptor.getMessageTypes().get(5)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = CommonProto.scalaDescriptor.messages(5)
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.tap.v3.StreamingAdminSink
case 3 => __out = io.envoyproxy.envoy.config.tap.v3.FilePerTapSink
case 4 => __out = io.envoyproxy.envoy.config.tap.v3.StreamingGrpcSink
case 5 => __out = io.envoyproxy.envoy.config.tap.v3.BufferedAdminSink
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 1 => io.envoyproxy.envoy.config.tap.v3.OutputSink.Format
}
}
lazy val defaultInstance = io.envoyproxy.envoy.config.tap.v3.OutputSink(
format = io.envoyproxy.envoy.config.tap.v3.OutputSink.Format.JSON_BODY_AS_BYTES,
outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.Empty
)
/** Output format. All output is in the form of one or more :ref:`TraceWrapper
* <envoy_v3_api_msg_data.tap.v3.TraceWrapper>` messages. This enumeration indicates
* how those messages are written. Note that not all sinks support all output formats. See
* individual sink documentation for more information.
*/
sealed abstract class Format(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
type EnumType = Format
def isJsonBodyAsBytes: _root_.scala.Boolean = false
def isJsonBodyAsString: _root_.scala.Boolean = false
def isProtoBinary: _root_.scala.Boolean = false
def isProtoBinaryLengthDelimited: _root_.scala.Boolean = false
def isProtoText: _root_.scala.Boolean = false
def companion: _root_.scalapb.GeneratedEnumCompanion[Format] = io.envoyproxy.envoy.config.tap.v3.OutputSink.Format
final def asRecognized: _root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.OutputSink.Format.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[io.envoyproxy.envoy.config.tap.v3.OutputSink.Format.Recognized])
}
object Format extends _root_.scalapb.GeneratedEnumCompanion[Format] {
sealed trait Recognized extends Format
implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[Format] = this
/** Each message will be written as JSON. Any :ref:`body <envoy_v3_api_msg_data.tap.v3.Body>`
* data will be present in the :ref:`as_bytes
* <envoy_v3_api_field_data.tap.v3.Body.as_bytes>` field. This means that body data will be
* base64 encoded as per the `proto3 JSON mappings
* <https://developers.google.com/protocol-buffers/docs/proto3#json>`_.
*/
@SerialVersionUID(0L)
case object JSON_BODY_AS_BYTES extends Format(0) with Format.Recognized {
val index = 0
val name = "JSON_BODY_AS_BYTES"
override def isJsonBodyAsBytes: _root_.scala.Boolean = true
}
/** Each message will be written as JSON. Any :ref:`body <envoy_v3_api_msg_data.tap.v3.Body>`
* data will be present in the :ref:`as_string
* <envoy_v3_api_field_data.tap.v3.Body.as_string>` field. This means that body data will be
* string encoded as per the `proto3 JSON mappings
* <https://developers.google.com/protocol-buffers/docs/proto3#json>`_. This format type is
* useful when it is known that that body is human readable (e.g., JSON over HTTP) and the
* user wishes to view it directly without being forced to base64 decode the body.
*/
@SerialVersionUID(0L)
case object JSON_BODY_AS_STRING extends Format(1) with Format.Recognized {
val index = 1
val name = "JSON_BODY_AS_STRING"
override def isJsonBodyAsString: _root_.scala.Boolean = true
}
/** Binary proto format. Note that binary proto is not self-delimiting. If a sink writes
* multiple binary messages without any length information the data stream will not be
* useful. However, for certain sinks that are self-delimiting (e.g., one message per file)
* this output format makes consumption simpler.
*/
@SerialVersionUID(0L)
case object PROTO_BINARY extends Format(2) with Format.Recognized {
val index = 2
val name = "PROTO_BINARY"
override def isProtoBinary: _root_.scala.Boolean = true
}
/** Messages are written as a sequence tuples, where each tuple is the message length encoded
* as a `protobuf 32-bit varint
* <https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream>`_
* followed by the binary message. The messages can be read back using the language specific
* protobuf coded stream implementation to obtain the message length and the message.
*/
@SerialVersionUID(0L)
case object PROTO_BINARY_LENGTH_DELIMITED extends Format(3) with Format.Recognized {
val index = 3
val name = "PROTO_BINARY_LENGTH_DELIMITED"
override def isProtoBinaryLengthDelimited: _root_.scala.Boolean = true
}
/** Text proto format.
*/
@SerialVersionUID(0L)
case object PROTO_TEXT extends Format(4) with Format.Recognized {
val index = 4
val name = "PROTO_TEXT"
override def isProtoText: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends Format(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
lazy val values = scala.collection.immutable.Seq(JSON_BODY_AS_BYTES, JSON_BODY_AS_STRING, PROTO_BINARY, PROTO_BINARY_LENGTH_DELIMITED, PROTO_TEXT)
def fromValue(__value: _root_.scala.Int): Format = __value match {
case 0 => JSON_BODY_AS_BYTES
case 1 => JSON_BODY_AS_STRING
case 2 => PROTO_BINARY
case 3 => PROTO_BINARY_LENGTH_DELIMITED
case 4 => PROTO_TEXT
case __other => Unrecognized(__other)
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = io.envoyproxy.envoy.config.tap.v3.OutputSink.javaDescriptor.getEnumTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = io.envoyproxy.envoy.config.tap.v3.OutputSink.scalaDescriptor.enums(0)
}
sealed trait OutputSinkType extends _root_.scalapb.GeneratedOneof {
def isEmpty: _root_.scala.Boolean = false
def isDefined: _root_.scala.Boolean = true
def isStreamingAdmin: _root_.scala.Boolean = false
def isFilePerTap: _root_.scala.Boolean = false
def isStreamingGrpc: _root_.scala.Boolean = false
def isBufferedAdmin: _root_.scala.Boolean = false
def streamingAdmin: _root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.StreamingAdminSink] = _root_.scala.None
def filePerTap: _root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.FilePerTapSink] = _root_.scala.None
def streamingGrpc: _root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.StreamingGrpcSink] = _root_.scala.None
def bufferedAdmin: _root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.BufferedAdminSink] = _root_.scala.None
}
object OutputSinkType {
@SerialVersionUID(0L)
case object Empty extends io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType {
type ValueType = _root_.scala.Nothing
override def isEmpty: _root_.scala.Boolean = true
override def isDefined: _root_.scala.Boolean = false
override def number: _root_.scala.Int = 0
override def value: _root_.scala.Nothing = throw new java.util.NoSuchElementException("Empty.value")
}
@SerialVersionUID(0L)
final case class StreamingAdmin(value: io.envoyproxy.envoy.config.tap.v3.StreamingAdminSink) extends io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType {
type ValueType = io.envoyproxy.envoy.config.tap.v3.StreamingAdminSink
override def isStreamingAdmin: _root_.scala.Boolean = true
override def streamingAdmin: _root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.StreamingAdminSink] = Some(value)
override def number: _root_.scala.Int = 2
}
@SerialVersionUID(0L)
final case class FilePerTap(value: io.envoyproxy.envoy.config.tap.v3.FilePerTapSink) extends io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType {
type ValueType = io.envoyproxy.envoy.config.tap.v3.FilePerTapSink
override def isFilePerTap: _root_.scala.Boolean = true
override def filePerTap: _root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.FilePerTapSink] = Some(value)
override def number: _root_.scala.Int = 3
}
@SerialVersionUID(0L)
final case class StreamingGrpc(value: io.envoyproxy.envoy.config.tap.v3.StreamingGrpcSink) extends io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType {
type ValueType = io.envoyproxy.envoy.config.tap.v3.StreamingGrpcSink
override def isStreamingGrpc: _root_.scala.Boolean = true
override def streamingGrpc: _root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.StreamingGrpcSink] = Some(value)
override def number: _root_.scala.Int = 4
}
@SerialVersionUID(0L)
final case class BufferedAdmin(value: io.envoyproxy.envoy.config.tap.v3.BufferedAdminSink) extends io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType {
type ValueType = io.envoyproxy.envoy.config.tap.v3.BufferedAdminSink
override def isBufferedAdmin: _root_.scala.Boolean = true
override def bufferedAdmin: _root_.scala.Option[io.envoyproxy.envoy.config.tap.v3.BufferedAdminSink] = Some(value)
override def number: _root_.scala.Int = 5
}
}
implicit class OutputSinkLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.tap.v3.OutputSink]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, io.envoyproxy.envoy.config.tap.v3.OutputSink](_l) {
def format: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.tap.v3.OutputSink.Format] = field(_.format)((c_, f_) => c_.copy(format = f_))
def streamingAdmin: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.tap.v3.StreamingAdminSink] = field(_.getStreamingAdmin)((c_, f_) => c_.copy(outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.StreamingAdmin(f_)))
def filePerTap: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.tap.v3.FilePerTapSink] = field(_.getFilePerTap)((c_, f_) => c_.copy(outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.FilePerTap(f_)))
def streamingGrpc: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.tap.v3.StreamingGrpcSink] = field(_.getStreamingGrpc)((c_, f_) => c_.copy(outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.StreamingGrpc(f_)))
def bufferedAdmin: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.tap.v3.BufferedAdminSink] = field(_.getBufferedAdmin)((c_, f_) => c_.copy(outputSinkType = io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType.BufferedAdmin(f_)))
def outputSinkType: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType] = field(_.outputSinkType)((c_, f_) => c_.copy(outputSinkType = f_))
}
final val FORMAT_FIELD_NUMBER = 1
final val STREAMING_ADMIN_FIELD_NUMBER = 2
final val FILE_PER_TAP_FIELD_NUMBER = 3
final val STREAMING_GRPC_FIELD_NUMBER = 4
final val BUFFERED_ADMIN_FIELD_NUMBER = 5
def of(
format: io.envoyproxy.envoy.config.tap.v3.OutputSink.Format,
outputSinkType: io.envoyproxy.envoy.config.tap.v3.OutputSink.OutputSinkType
): _root_.io.envoyproxy.envoy.config.tap.v3.OutputSink = _root_.io.envoyproxy.envoy.config.tap.v3.OutputSink(
format,
outputSinkType
)
// @@protoc_insertion_point(GeneratedMessageCompanion[envoy.config.tap.v3.OutputSink])
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy