io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.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.data.accesslog.v2
/** [#next-free-field: 7]
*
* @param responseCode
* The HTTP response code returned by Envoy.
* @param responseHeadersBytes
* Size of the HTTP response headers in bytes.
*
* This value is captured from the OSI layer 7 perspective, i.e. it does not
* include overhead from framing or encoding at other networking layers.
* @param responseBodyBytes
* Size of the HTTP response body in bytes.
*
* This value is captured from the OSI layer 7 perspective, i.e. it does not
* include overhead from framing or encoding at other networking layers.
* @param responseHeaders
* Map of additional headers configured to be logged.
* @param responseTrailers
* Map of trailers configured to be logged.
* @param responseCodeDetails
* The HTTP response code details.
*/
@SerialVersionUID(0L)
final case class HTTPResponseProperties(
responseCode: _root_.scala.Option[_root_.scala.Int] = _root_.scala.None,
responseHeadersBytes: _root_.scala.Long = 0L,
responseBodyBytes: _root_.scala.Long = 0L,
responseHeaders: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String] = _root_.scala.collection.immutable.Map.empty,
responseTrailers: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String] = _root_.scala.collection.immutable.Map.empty,
responseCodeDetails: _root_.scala.Predef.String = "",
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[HTTPResponseProperties] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
if (responseCode.isDefined) {
val __value = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseCode.toBase(responseCode.get)
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
{
val __value = responseHeadersBytes
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(2, __value)
}
};
{
val __value = responseBodyBytes
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(3, __value)
}
};
responseHeaders.foreach { __item =>
val __value = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseHeaders.toBase(__item)
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
responseTrailers.foreach { __item =>
val __value = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseTrailers.toBase(__item)
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
{
val __value = responseCodeDetails
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(6, __value)
}
};
__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 = {
responseCode.foreach { __v =>
val __m = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseCode.toBase(__v)
_output__.writeTag(1, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
{
val __v = responseHeadersBytes
if (__v != 0L) {
_output__.writeUInt64(2, __v)
}
};
{
val __v = responseBodyBytes
if (__v != 0L) {
_output__.writeUInt64(3, __v)
}
};
responseHeaders.foreach { __v =>
val __m = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseHeaders.toBase(__v)
_output__.writeTag(4, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
responseTrailers.foreach { __v =>
val __m = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseTrailers.toBase(__v)
_output__.writeTag(5, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
{
val __v = responseCodeDetails
if (!__v.isEmpty) {
_output__.writeString(6, __v)
}
};
unknownFields.writeTo(_output__)
}
def getResponseCode: _root_.scala.Int = responseCode.getOrElse(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseCode.toCustom(com.google.protobuf.wrappers.UInt32Value.defaultInstance))
def clearResponseCode: HTTPResponseProperties = copy(responseCode = _root_.scala.None)
def withResponseCode(__v: _root_.scala.Int): HTTPResponseProperties = copy(responseCode = Option(__v))
def withResponseHeadersBytes(__v: _root_.scala.Long): HTTPResponseProperties = copy(responseHeadersBytes = __v)
def withResponseBodyBytes(__v: _root_.scala.Long): HTTPResponseProperties = copy(responseBodyBytes = __v)
def clearResponseHeaders = copy(responseHeaders = _root_.scala.collection.immutable.Map.empty)
def addResponseHeaders(__vs: (_root_.scala.Predef.String, _root_.scala.Predef.String) *): HTTPResponseProperties = addAllResponseHeaders(__vs)
def addAllResponseHeaders(__vs: Iterable[(_root_.scala.Predef.String, _root_.scala.Predef.String)]): HTTPResponseProperties = copy(responseHeaders = responseHeaders ++ __vs)
def withResponseHeaders(__v: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String]): HTTPResponseProperties = copy(responseHeaders = __v)
def clearResponseTrailers = copy(responseTrailers = _root_.scala.collection.immutable.Map.empty)
def addResponseTrailers(__vs: (_root_.scala.Predef.String, _root_.scala.Predef.String) *): HTTPResponseProperties = addAllResponseTrailers(__vs)
def addAllResponseTrailers(__vs: Iterable[(_root_.scala.Predef.String, _root_.scala.Predef.String)]): HTTPResponseProperties = copy(responseTrailers = responseTrailers ++ __vs)
def withResponseTrailers(__v: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String]): HTTPResponseProperties = copy(responseTrailers = __v)
def withResponseCodeDetails(__v: _root_.scala.Predef.String): HTTPResponseProperties = copy(responseCodeDetails = __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 => responseCode.map(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseCode.toBase(_)).orNull
case 2 => {
val __t = responseHeadersBytes
if (__t != 0L) __t else null
}
case 3 => {
val __t = responseBodyBytes
if (__t != 0L) __t else null
}
case 4 => responseHeaders.iterator.map(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseHeaders.toBase(_)).toSeq
case 5 => responseTrailers.iterator.map(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseTrailers.toBase(_)).toSeq
case 6 => {
val __t = responseCodeDetails
if (__t != "") __t else null
}
}
}
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 => responseCode.map(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseCode.toBase(_).toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 2 => _root_.scalapb.descriptors.PLong(responseHeadersBytes)
case 3 => _root_.scalapb.descriptors.PLong(responseBodyBytes)
case 4 => _root_.scalapb.descriptors.PRepeated(responseHeaders.iterator.map(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseHeaders.toBase(_).toPMessage).toVector)
case 5 => _root_.scalapb.descriptors.PRepeated(responseTrailers.iterator.map(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseTrailers.toBase(_).toPMessage).toVector)
case 6 => _root_.scalapb.descriptors.PString(responseCodeDetails)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.type = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties
// @@protoc_insertion_point(GeneratedMessage[envoy.data.accesslog.v2.HTTPResponseProperties])
}
object HTTPResponseProperties extends scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties = {
var __responseCode: _root_.scala.Option[_root_.scala.Int] = _root_.scala.None
var __responseHeadersBytes: _root_.scala.Long = 0L
var __responseBodyBytes: _root_.scala.Long = 0L
val __responseHeaders: _root_.scala.collection.mutable.Builder[(_root_.scala.Predef.String, _root_.scala.Predef.String), _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String]] = _root_.scala.collection.immutable.Map.newBuilder[_root_.scala.Predef.String, _root_.scala.Predef.String]
val __responseTrailers: _root_.scala.collection.mutable.Builder[(_root_.scala.Predef.String, _root_.scala.Predef.String), _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String]] = _root_.scala.collection.immutable.Map.newBuilder[_root_.scala.Predef.String, _root_.scala.Predef.String]
var __responseCodeDetails: _root_.scala.Predef.String = ""
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__responseCode = Option(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseCode.toCustom(__responseCode.map(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseCode.toBase(_)).fold(_root_.scalapb.LiteParser.readMessage[com.google.protobuf.wrappers.UInt32Value](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _))))
case 16 =>
__responseHeadersBytes = _input__.readUInt64()
case 24 =>
__responseBodyBytes = _input__.readUInt64()
case 34 =>
__responseHeaders += io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseHeaders.toCustom(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry](_input__))
case 42 =>
__responseTrailers += io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseTrailers.toCustom(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry](_input__))
case 50 =>
__responseCodeDetails = _input__.readStringRequireUtf8()
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties(
responseCode = __responseCode,
responseHeadersBytes = __responseHeadersBytes,
responseBodyBytes = __responseBodyBytes,
responseHeaders = __responseHeaders.result(),
responseTrailers = __responseTrailers.result(),
responseCodeDetails = __responseCodeDetails,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties] = _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.data.accesslog.v2.HTTPResponseProperties(
responseCode = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).flatMap(_.as[_root_.scala.Option[com.google.protobuf.wrappers.UInt32Value]]).map(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseCode.toCustom(_)),
responseHeadersBytes = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
responseBodyBytes = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
responseHeaders = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Seq[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry]]).getOrElse(_root_.scala.Seq.empty).iterator.map(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseHeaders.toCustom(_)).toMap,
responseTrailers = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Seq[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry]]).getOrElse(_root_.scala.Seq.empty).iterator.map(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties._typemapper_responseTrailers.toCustom(_)).toMap,
responseCodeDetails = __fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = AccesslogProto.javaDescriptor.getMessageTypes().get(7)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = AccesslogProto.scalaDescriptor.messages(7)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 1 => __out = com.google.protobuf.wrappers.UInt32Value
case 4 => __out = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry
case 5 => __out = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
_root_.io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry,
_root_.io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry
)
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
lazy val defaultInstance = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties(
responseCode = _root_.scala.None,
responseHeadersBytes = 0L,
responseBodyBytes = 0L,
responseHeaders = _root_.scala.collection.immutable.Map.empty,
responseTrailers = _root_.scala.collection.immutable.Map.empty,
responseCodeDetails = ""
)
@SerialVersionUID(0L)
final case class ResponseHeadersEntry(
key: _root_.scala.Predef.String = "",
value: _root_.scala.Predef.String = "",
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ResponseHeadersEntry] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = key
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, __value)
}
};
{
val __value = value
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, __value)
}
};
__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 = key
if (!__v.isEmpty) {
_output__.writeString(1, __v)
}
};
{
val __v = value
if (!__v.isEmpty) {
_output__.writeString(2, __v)
}
};
unknownFields.writeTo(_output__)
}
def withKey(__v: _root_.scala.Predef.String): ResponseHeadersEntry = copy(key = __v)
def withValue(__v: _root_.scala.Predef.String): ResponseHeadersEntry = copy(value = __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 = key
if (__t != "") __t else null
}
case 2 => {
val __t = value
if (__t != "") __t else null
}
}
}
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(key)
case 2 => _root_.scalapb.descriptors.PString(value)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry.type = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry
// @@protoc_insertion_point(GeneratedMessage[envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry])
}
object ResponseHeadersEntry extends scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry = {
var __key: _root_.scala.Predef.String = ""
var __value: _root_.scala.Predef.String = ""
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__key = _input__.readStringRequireUtf8()
case 18 =>
__value = _input__.readStringRequireUtf8()
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry(
key = __key,
value = __value,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry] = _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.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry(
key = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
value = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.javaDescriptor.getNestedTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.scalaDescriptor.nestedMessages(0)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
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.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry(
key = "",
value = ""
)
implicit class ResponseHeadersEntryLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry](_l) {
def key: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.key)((c_, f_) => c_.copy(key = f_))
def value: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.value)((c_, f_) => c_.copy(value = f_))
}
final val KEY_FIELD_NUMBER = 1
final val VALUE_FIELD_NUMBER = 2
@transient
implicit val keyValueMapper: _root_.scalapb.TypeMapper[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)] =
_root_.scalapb.TypeMapper[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)](__m => (__m.key, __m.value))(__p => io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry(__p._1, __p._2))
def of(
key: _root_.scala.Predef.String,
value: _root_.scala.Predef.String
): _root_.io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry = _root_.io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry(
key,
value
)
// @@protoc_insertion_point(GeneratedMessageCompanion[envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry])
}
@SerialVersionUID(0L)
final case class ResponseTrailersEntry(
key: _root_.scala.Predef.String = "",
value: _root_.scala.Predef.String = "",
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ResponseTrailersEntry] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = key
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, __value)
}
};
{
val __value = value
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, __value)
}
};
__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 = key
if (!__v.isEmpty) {
_output__.writeString(1, __v)
}
};
{
val __v = value
if (!__v.isEmpty) {
_output__.writeString(2, __v)
}
};
unknownFields.writeTo(_output__)
}
def withKey(__v: _root_.scala.Predef.String): ResponseTrailersEntry = copy(key = __v)
def withValue(__v: _root_.scala.Predef.String): ResponseTrailersEntry = copy(value = __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 = key
if (__t != "") __t else null
}
case 2 => {
val __t = value
if (__t != "") __t else null
}
}
}
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(key)
case 2 => _root_.scalapb.descriptors.PString(value)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry.type = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry
// @@protoc_insertion_point(GeneratedMessage[envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry])
}
object ResponseTrailersEntry extends scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry = {
var __key: _root_.scala.Predef.String = ""
var __value: _root_.scala.Predef.String = ""
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__key = _input__.readStringRequireUtf8()
case 18 =>
__value = _input__.readStringRequireUtf8()
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry(
key = __key,
value = __value,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry] = _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.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry(
key = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
value = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.javaDescriptor.getNestedTypes().get(1)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.scalaDescriptor.nestedMessages(1)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
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.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry(
key = "",
value = ""
)
implicit class ResponseTrailersEntryLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry](_l) {
def key: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.key)((c_, f_) => c_.copy(key = f_))
def value: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.value)((c_, f_) => c_.copy(value = f_))
}
final val KEY_FIELD_NUMBER = 1
final val VALUE_FIELD_NUMBER = 2
@transient
implicit val keyValueMapper: _root_.scalapb.TypeMapper[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)] =
_root_.scalapb.TypeMapper[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)](__m => (__m.key, __m.value))(__p => io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry(__p._1, __p._2))
def of(
key: _root_.scala.Predef.String,
value: _root_.scala.Predef.String
): _root_.io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry = _root_.io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry(
key,
value
)
// @@protoc_insertion_point(GeneratedMessageCompanion[envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry])
}
implicit class HTTPResponsePropertiesLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties](_l) {
def responseCode: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Int] = field(_.getResponseCode)((c_, f_) => c_.copy(responseCode = Option(f_)))
def optionalResponseCode: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[_root_.scala.Int]] = field(_.responseCode)((c_, f_) => c_.copy(responseCode = f_))
def responseHeadersBytes: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.responseHeadersBytes)((c_, f_) => c_.copy(responseHeadersBytes = f_))
def responseBodyBytes: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.responseBodyBytes)((c_, f_) => c_.copy(responseBodyBytes = f_))
def responseHeaders: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String]] = field(_.responseHeaders)((c_, f_) => c_.copy(responseHeaders = f_))
def responseTrailers: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String]] = field(_.responseTrailers)((c_, f_) => c_.copy(responseTrailers = f_))
def responseCodeDetails: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.responseCodeDetails)((c_, f_) => c_.copy(responseCodeDetails = f_))
}
final val RESPONSE_CODE_FIELD_NUMBER = 1
final val RESPONSE_HEADERS_BYTES_FIELD_NUMBER = 2
final val RESPONSE_BODY_BYTES_FIELD_NUMBER = 3
final val RESPONSE_HEADERS_FIELD_NUMBER = 4
final val RESPONSE_TRAILERS_FIELD_NUMBER = 5
final val RESPONSE_CODE_DETAILS_FIELD_NUMBER = 6
@transient
private[v2] val _typemapper_responseCode: _root_.scalapb.TypeMapper[com.google.protobuf.wrappers.UInt32Value, _root_.scala.Int] = implicitly[_root_.scalapb.TypeMapper[com.google.protobuf.wrappers.UInt32Value, _root_.scala.Int]]
@transient
private[v2] val _typemapper_responseHeaders: _root_.scalapb.TypeMapper[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)] = implicitly[_root_.scalapb.TypeMapper[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseHeadersEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)]]
@transient
private[v2] val _typemapper_responseTrailers: _root_.scalapb.TypeMapper[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)] = implicitly[_root_.scalapb.TypeMapper[io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.ResponseTrailersEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)]]
def of(
responseCode: _root_.scala.Option[_root_.scala.Int],
responseHeadersBytes: _root_.scala.Long,
responseBodyBytes: _root_.scala.Long,
responseHeaders: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String],
responseTrailers: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String],
responseCodeDetails: _root_.scala.Predef.String
): _root_.io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties = _root_.io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties(
responseCode,
responseHeadersBytes,
responseBodyBytes,
responseHeaders,
responseTrailers,
responseCodeDetails
)
// @@protoc_insertion_point(GeneratedMessageCompanion[envoy.data.accesslog.v2.HTTPResponseProperties])
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy