Skip to content

Commit

Permalink
lib: fluent-otel-proto profiles patch
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich committed Nov 12, 2024
1 parent 83ebc11 commit f91d7a4
Show file tree
Hide file tree
Showing 6 changed files with 2,943 additions and 2,237 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,304 @@
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
/* Generated from: opentelemetry/proto/collector/profiles/v1development/profiles_service.proto */

/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif

#include "opentelemetry/proto/collector/profiles/v1development/profiles_service.pb-c.h"
void opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__init
(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest *message)
{
static const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest init_value = OPENTELEMETRY__PROTO__COLLECTOR__PROFILES__V1DEVELOPMENT__EXPORT_PROFILES_SERVICE_REQUEST__INIT;
*message = init_value;
}
size_t opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__get_packed_size
(const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest *message)
{
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__pack
(const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest *message,
uint8_t *out)
{
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__pack_to_buffer
(const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest *message,
ProtobufCBuffer *buffer)
{
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest *
opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest *)
protobuf_c_message_unpack (&opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__descriptor,
allocator, len, data);
}
void opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__free_unpacked
(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest *message,
ProtobufCAllocator *allocator)
{
if(!message)
return;
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__init
(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse *message)
{
static const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse init_value = OPENTELEMETRY__PROTO__COLLECTOR__PROFILES__V1DEVELOPMENT__EXPORT_PROFILES_SERVICE_RESPONSE__INIT;
*message = init_value;
}
size_t opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__get_packed_size
(const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse *message)
{
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__pack
(const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse *message,
uint8_t *out)
{
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__pack_to_buffer
(const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse *message,
ProtobufCBuffer *buffer)
{
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse *
opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse *)
protobuf_c_message_unpack (&opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__descriptor,
allocator, len, data);
}
void opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__free_unpacked
(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse *message,
ProtobufCAllocator *allocator)
{
if(!message)
return;
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__init
(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess *message)
{
static const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess init_value = OPENTELEMETRY__PROTO__COLLECTOR__PROFILES__V1DEVELOPMENT__EXPORT_PROFILES_PARTIAL_SUCCESS__INIT;
*message = init_value;
}
size_t opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__get_packed_size
(const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess *message)
{
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__pack
(const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess *message,
uint8_t *out)
{
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__pack_to_buffer
(const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess *message,
ProtobufCBuffer *buffer)
{
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess *
opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess *)
protobuf_c_message_unpack (&opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__descriptor,
allocator, len, data);
}
void opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__free_unpacked
(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess *message,
ProtobufCAllocator *allocator)
{
if(!message)
return;
assert(message->base.descriptor == &opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__field_descriptors[1] =
{
{
"resource_profiles",
1,
PROTOBUF_C_LABEL_REPEATED,
PROTOBUF_C_TYPE_MESSAGE,
offsetof(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest, n_resource_profiles),
offsetof(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest, resource_profiles),
&opentelemetry__proto__profiles__v1development__resource_profiles__descriptor,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
};
static const unsigned opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__field_indices_by_name[] = {
0, /* field[0] = resource_profiles */
};
static const ProtobufCIntRange opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__number_ranges[1 + 1] =
{
{ 1, 0 },
{ 0, 1 }
};
const ProtobufCMessageDescriptor opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__descriptor =
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
"opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceRequest",
"ExportProfilesServiceRequest",
"Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest",
"opentelemetry.proto.collector.profiles.v1development",
sizeof(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest),
1,
opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__field_descriptors,
opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__field_indices_by_name,
1, opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__number_ranges,
(ProtobufCMessageInit) opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__init,
NULL,NULL,NULL /* reserved[123] */
};
static const ProtobufCFieldDescriptor opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__field_descriptors[1] =
{
{
"partial_success",
1,
PROTOBUF_C_LABEL_NONE,
PROTOBUF_C_TYPE_MESSAGE,
0, /* quantifier_offset */
offsetof(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse, partial_success),
&opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__descriptor,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
};
static const unsigned opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__field_indices_by_name[] = {
0, /* field[0] = partial_success */
};
static const ProtobufCIntRange opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__number_ranges[1 + 1] =
{
{ 1, 0 },
{ 0, 1 }
};
const ProtobufCMessageDescriptor opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__descriptor =
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
"opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceResponse",
"ExportProfilesServiceResponse",
"Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse",
"opentelemetry.proto.collector.profiles.v1development",
sizeof(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse),
1,
opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__field_descriptors,
opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__field_indices_by_name,
1, opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__number_ranges,
(ProtobufCMessageInit) opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__init,
NULL,NULL,NULL /* reserved[123] */
};
static const ProtobufCFieldDescriptor opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__field_descriptors[2] =
{
{
"rejected_profiles",
1,
PROTOBUF_C_LABEL_NONE,
PROTOBUF_C_TYPE_INT64,
0, /* quantifier_offset */
offsetof(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess, rejected_profiles),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"error_message",
2,
PROTOBUF_C_LABEL_NONE,
PROTOBUF_C_TYPE_STRING,
0, /* quantifier_offset */
offsetof(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess, error_message),
NULL,
&protobuf_c_empty_string,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
};
static const unsigned opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__field_indices_by_name[] = {
1, /* field[1] = error_message */
0, /* field[0] = rejected_profiles */
};
static const ProtobufCIntRange opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__number_ranges[1 + 1] =
{
{ 1, 0 },
{ 0, 2 }
};
const ProtobufCMessageDescriptor opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__descriptor =
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
"opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess",
"ExportProfilesPartialSuccess",
"Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess",
"opentelemetry.proto.collector.profiles.v1development",
sizeof(Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesPartialSuccess),
2,
opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__field_descriptors,
opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__field_indices_by_name,
1, opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__number_ranges,
(ProtobufCMessageInit) opentelemetry__proto__collector__profiles__v1development__export_profiles_partial_success__init,
NULL,NULL,NULL /* reserved[123] */
};
static const ProtobufCMethodDescriptor opentelemetry__proto__collector__profiles__v1development__profiles_service__method_descriptors[1] =
{
{ "Export", &opentelemetry__proto__collector__profiles__v1development__export_profiles_service_request__descriptor, &opentelemetry__proto__collector__profiles__v1development__export_profiles_service_response__descriptor },
};
const unsigned opentelemetry__proto__collector__profiles__v1development__profiles_service__method_indices_by_name[] = {
0 /* Export */
};
const ProtobufCServiceDescriptor opentelemetry__proto__collector__profiles__v1development__profiles_service__descriptor =
{
PROTOBUF_C__SERVICE_DESCRIPTOR_MAGIC,
"opentelemetry.proto.collector.profiles.v1development.ProfilesService",
"ProfilesService",
"Opentelemetry__Proto__Collector__Profiles__V1development__ProfilesService",
"opentelemetry.proto.collector.profiles.v1development",
1,
opentelemetry__proto__collector__profiles__v1development__profiles_service__method_descriptors,
opentelemetry__proto__collector__profiles__v1development__profiles_service__method_indices_by_name
};
void opentelemetry__proto__collector__profiles__v1development__profiles_service__export(ProtobufCService *service,
const Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceRequest *input,
Opentelemetry__Proto__Collector__Profiles__V1development__ExportProfilesServiceResponse_Closure closure,
void *closure_data)
{
assert(service->descriptor == &opentelemetry__proto__collector__profiles__v1development__profiles_service__descriptor);
service->invoke(service, 0, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data);
}
void opentelemetry__proto__collector__profiles__v1development__profiles_service__init (Opentelemetry__Proto__Collector__Profiles__V1development__ProfilesService_Service *service,
Opentelemetry__Proto__Collector__Profiles__V1development__ProfilesService_ServiceDestroy destroy)
{
protobuf_c_service_generated_init (&service->base,
&opentelemetry__proto__collector__profiles__v1development__profiles_service__descriptor,
(ProtobufCServiceDestroy) destroy);
}
Loading

0 comments on commit f91d7a4

Please sign in to comment.