#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_imports)]
#![allow(unused_results)]
#[derive(PartialEq,Clone,Default)]
#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
pub struct ExportTraceServiceRequest {
pub resource_spans: ::protobuf::RepeatedField<super::trace::ResourceSpans>,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub unknown_fields: ::protobuf::UnknownFields,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ExportTraceServiceRequest {
fn default() -> &'a ExportTraceServiceRequest {
<ExportTraceServiceRequest as ::protobuf::Message>::default_instance()
}
}
impl ExportTraceServiceRequest {
pub fn new() -> ExportTraceServiceRequest {
::std::default::Default::default()
}
pub fn get_resource_spans(&self) -> &[super::trace::ResourceSpans] {
&self.resource_spans
}
pub fn clear_resource_spans(&mut self) {
self.resource_spans.clear();
}
pub fn set_resource_spans(&mut self, v: ::protobuf::RepeatedField<super::trace::ResourceSpans>) {
self.resource_spans = v;
}
pub fn mut_resource_spans(&mut self) -> &mut ::protobuf::RepeatedField<super::trace::ResourceSpans> {
&mut self.resource_spans
}
pub fn take_resource_spans(&mut self) -> ::protobuf::RepeatedField<super::trace::ResourceSpans> {
::std::mem::replace(&mut self.resource_spans, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for ExportTraceServiceRequest {
fn is_initialized(&self) -> bool {
for v in &self.resource_spans {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resource_spans)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.resource_spans {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.resource_spans {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ExportTraceServiceRequest {
ExportTraceServiceRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::trace::ResourceSpans>>(
"resource_spans",
|m: &ExportTraceServiceRequest| { &m.resource_spans },
|m: &mut ExportTraceServiceRequest| { &mut m.resource_spans },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ExportTraceServiceRequest>(
"ExportTraceServiceRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ExportTraceServiceRequest {
static instance: ::protobuf::rt::LazyV2<ExportTraceServiceRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(ExportTraceServiceRequest::new)
}
}
impl ::protobuf::Clear for ExportTraceServiceRequest {
fn clear(&mut self) {
self.resource_spans.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ExportTraceServiceRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ExportTraceServiceRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
pub struct ExportTraceServiceResponse {
pub partial_success: ::protobuf::SingularPtrField<ExportTracePartialSuccess>,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub unknown_fields: ::protobuf::UnknownFields,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ExportTraceServiceResponse {
fn default() -> &'a ExportTraceServiceResponse {
<ExportTraceServiceResponse as ::protobuf::Message>::default_instance()
}
}
impl ExportTraceServiceResponse {
pub fn new() -> ExportTraceServiceResponse {
::std::default::Default::default()
}
pub fn get_partial_success(&self) -> &ExportTracePartialSuccess {
self.partial_success.as_ref().unwrap_or_else(|| <ExportTracePartialSuccess as ::protobuf::Message>::default_instance())
}
pub fn clear_partial_success(&mut self) {
self.partial_success.clear();
}
pub fn has_partial_success(&self) -> bool {
self.partial_success.is_some()
}
pub fn set_partial_success(&mut self, v: ExportTracePartialSuccess) {
self.partial_success = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_partial_success(&mut self) -> &mut ExportTracePartialSuccess {
if self.partial_success.is_none() {
self.partial_success.set_default();
}
self.partial_success.as_mut().unwrap()
}
pub fn take_partial_success(&mut self) -> ExportTracePartialSuccess {
self.partial_success.take().unwrap_or_else(|| ExportTracePartialSuccess::new())
}
}
impl ::protobuf::Message for ExportTraceServiceResponse {
fn is_initialized(&self) -> bool {
for v in &self.partial_success {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.partial_success)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.partial_success.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.partial_success.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ExportTraceServiceResponse {
ExportTraceServiceResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ExportTracePartialSuccess>>(
"partial_success",
|m: &ExportTraceServiceResponse| { &m.partial_success },
|m: &mut ExportTraceServiceResponse| { &mut m.partial_success },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ExportTraceServiceResponse>(
"ExportTraceServiceResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ExportTraceServiceResponse {
static instance: ::protobuf::rt::LazyV2<ExportTraceServiceResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(ExportTraceServiceResponse::new)
}
}
impl ::protobuf::Clear for ExportTraceServiceResponse {
fn clear(&mut self) {
self.partial_success.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ExportTraceServiceResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ExportTraceServiceResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
pub struct ExportTracePartialSuccess {
pub rejected_spans: i64,
pub error_message: ::std::string::String,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub unknown_fields: ::protobuf::UnknownFields,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ExportTracePartialSuccess {
fn default() -> &'a ExportTracePartialSuccess {
<ExportTracePartialSuccess as ::protobuf::Message>::default_instance()
}
}
impl ExportTracePartialSuccess {
pub fn new() -> ExportTracePartialSuccess {
::std::default::Default::default()
}
pub fn get_rejected_spans(&self) -> i64 {
self.rejected_spans
}
pub fn clear_rejected_spans(&mut self) {
self.rejected_spans = 0;
}
pub fn set_rejected_spans(&mut self, v: i64) {
self.rejected_spans = v;
}
pub fn get_error_message(&self) -> &str {
&self.error_message
}
pub fn clear_error_message(&mut self) {
self.error_message.clear();
}
pub fn set_error_message(&mut self, v: ::std::string::String) {
self.error_message = v;
}
pub fn mut_error_message(&mut self) -> &mut ::std::string::String {
&mut self.error_message
}
pub fn take_error_message(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.error_message, ::std::string::String::new())
}
}
impl ::protobuf::Message for ExportTracePartialSuccess {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.rejected_spans = tmp;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error_message)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.rejected_spans != 0 {
my_size += ::protobuf::rt::value_size(1, self.rejected_spans, ::protobuf::wire_format::WireTypeVarint);
}
if !self.error_message.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.error_message);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if self.rejected_spans != 0 {
os.write_int64(1, self.rejected_spans)?;
}
if !self.error_message.is_empty() {
os.write_string(2, &self.error_message)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ExportTracePartialSuccess {
ExportTracePartialSuccess::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"rejected_spans",
|m: &ExportTracePartialSuccess| { &m.rejected_spans },
|m: &mut ExportTracePartialSuccess| { &mut m.rejected_spans },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"error_message",
|m: &ExportTracePartialSuccess| { &m.error_message },
|m: &mut ExportTracePartialSuccess| { &mut m.error_message },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ExportTracePartialSuccess>(
"ExportTracePartialSuccess",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ExportTracePartialSuccess {
static instance: ::protobuf::rt::LazyV2<ExportTracePartialSuccess> = ::protobuf::rt::LazyV2::INIT;
instance.get(ExportTracePartialSuccess::new)
}
}
impl ::protobuf::Clear for ExportTracePartialSuccess {
fn clear(&mut self) {
self.rejected_spans = 0;
self.error_message.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ExportTracePartialSuccess {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ExportTracePartialSuccess {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n:opentelemetry/proto/collector/trace/v1/trace_service.proto\x12&opente\
lemetry.proto.collector.trace.v1\x1a(opentelemetry/proto/trace/v1/trace.\
proto\"o\n\x19ExportTraceServiceRequest\x12R\n\x0eresource_spans\x18\x01\
\x20\x03(\x0b2+.opentelemetry.proto.trace.v1.ResourceSpansR\rresourceSpa\
ns\"\x88\x01\n\x1aExportTraceServiceResponse\x12j\n\x0fpartial_success\
\x18\x01\x20\x01(\x0b2A.opentelemetry.proto.collector.trace.v1.ExportTra\
cePartialSuccessR\x0epartialSuccess\"g\n\x19ExportTracePartialSuccess\
\x12%\n\x0erejected_spans\x18\x01\x20\x01(\x03R\rrejectedSpans\x12#\n\re\
rror_message\x18\x02\x20\x01(\tR\x0cerrorMessage2\xa2\x01\n\x0cTraceServ\
ice\x12\x91\x01\n\x06Export\x12A.opentelemetry.proto.collector.trace.v1.\
ExportTraceServiceRequest\x1aB.opentelemetry.proto.collector.trace.v1.Ex\
portTraceServiceResponse\"\0B\x9c\x01\n)io.opentelemetry.proto.collector\
.trace.v1B\x11TraceServiceProtoP\x01Z1go.opentelemetry.io/proto/otlp/col\
lector/trace/v1\xaa\x02&OpenTelemetry.Proto.Collector.Trace.V1b\x06proto\
3\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}