/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: opentelemetry/proto/collector/logs/v1/logs_service.proto */

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

#include "opentelemetry/proto/collector/logs/v1/logs_service.pb-c.h"
void   opentelemetry__proto__collector__logs__v1__export_logs_service_request__init
                     (Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest         *message)
{
  static const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest init_value = OPENTELEMETRY__PROTO__COLLECTOR__LOGS__V1__EXPORT_LOGS_SERVICE_REQUEST__INIT;
  *message = init_value;
}
size_t opentelemetry__proto__collector__logs__v1__export_logs_service_request__get_packed_size
                     (const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest *message)
{
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_service_request__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t opentelemetry__proto__collector__logs__v1__export_logs_service_request__pack
                     (const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_service_request__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t opentelemetry__proto__collector__logs__v1__export_logs_service_request__pack_to_buffer
                     (const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_service_request__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest *
       opentelemetry__proto__collector__logs__v1__export_logs_service_request__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest *)
     protobuf_c_message_unpack (&opentelemetry__proto__collector__logs__v1__export_logs_service_request__descriptor,
                                allocator, len, data);
}
void   opentelemetry__proto__collector__logs__v1__export_logs_service_request__free_unpacked
                     (Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_service_request__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   opentelemetry__proto__collector__logs__v1__export_logs_service_response__init
                     (Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse         *message)
{
  static const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse init_value = OPENTELEMETRY__PROTO__COLLECTOR__LOGS__V1__EXPORT_LOGS_SERVICE_RESPONSE__INIT;
  *message = init_value;
}
size_t opentelemetry__proto__collector__logs__v1__export_logs_service_response__get_packed_size
                     (const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse *message)
{
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_service_response__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t opentelemetry__proto__collector__logs__v1__export_logs_service_response__pack
                     (const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_service_response__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t opentelemetry__proto__collector__logs__v1__export_logs_service_response__pack_to_buffer
                     (const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_service_response__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse *
       opentelemetry__proto__collector__logs__v1__export_logs_service_response__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse *)
     protobuf_c_message_unpack (&opentelemetry__proto__collector__logs__v1__export_logs_service_response__descriptor,
                                allocator, len, data);
}
void   opentelemetry__proto__collector__logs__v1__export_logs_service_response__free_unpacked
                     (Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_service_response__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   opentelemetry__proto__collector__logs__v1__export_logs_partial_success__init
                     (Opentelemetry__Proto__Collector__Logs__V1__ExportLogsPartialSuccess         *message)
{
  static const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsPartialSuccess init_value = OPENTELEMETRY__PROTO__COLLECTOR__LOGS__V1__EXPORT_LOGS_PARTIAL_SUCCESS__INIT;
  *message = init_value;
}
size_t opentelemetry__proto__collector__logs__v1__export_logs_partial_success__get_packed_size
                     (const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsPartialSuccess *message)
{
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_partial_success__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t opentelemetry__proto__collector__logs__v1__export_logs_partial_success__pack
                     (const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsPartialSuccess *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_partial_success__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t opentelemetry__proto__collector__logs__v1__export_logs_partial_success__pack_to_buffer
                     (const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsPartialSuccess *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_partial_success__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Opentelemetry__Proto__Collector__Logs__V1__ExportLogsPartialSuccess *
       opentelemetry__proto__collector__logs__v1__export_logs_partial_success__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Opentelemetry__Proto__Collector__Logs__V1__ExportLogsPartialSuccess *)
     protobuf_c_message_unpack (&opentelemetry__proto__collector__logs__v1__export_logs_partial_success__descriptor,
                                allocator, len, data);
}
void   opentelemetry__proto__collector__logs__v1__export_logs_partial_success__free_unpacked
                     (Opentelemetry__Proto__Collector__Logs__V1__ExportLogsPartialSuccess *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &opentelemetry__proto__collector__logs__v1__export_logs_partial_success__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor opentelemetry__proto__collector__logs__v1__export_logs_service_request__field_descriptors[1] =
{
  {
    "resource_logs",
    1,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_MESSAGE,
    offsetof(Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest, n_resource_logs),
    offsetof(Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest, resource_logs),
    &opentelemetry__proto__logs__v1__resource_logs__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned opentelemetry__proto__collector__logs__v1__export_logs_service_request__field_indices_by_name[] = {
  0,   /* field[0] = resource_logs */
};
static const ProtobufCIntRange opentelemetry__proto__collector__logs__v1__export_logs_service_request__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 1 }
};
const ProtobufCMessageDescriptor opentelemetry__proto__collector__logs__v1__export_logs_service_request__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest",
  "ExportLogsServiceRequest",
  "Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest",
  "opentelemetry.proto.collector.logs.v1",
  sizeof(Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest),
  1,
  opentelemetry__proto__collector__logs__v1__export_logs_service_request__field_descriptors,
  opentelemetry__proto__collector__logs__v1__export_logs_service_request__field_indices_by_name,
  1,  opentelemetry__proto__collector__logs__v1__export_logs_service_request__number_ranges,
  (ProtobufCMessageInit) opentelemetry__proto__collector__logs__v1__export_logs_service_request__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor opentelemetry__proto__collector__logs__v1__export_logs_service_response__field_descriptors[1] =
{
  {
    "partial_success",
    1,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse, partial_success),
    &opentelemetry__proto__collector__logs__v1__export_logs_partial_success__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned opentelemetry__proto__collector__logs__v1__export_logs_service_response__field_indices_by_name[] = {
  0,   /* field[0] = partial_success */
};
static const ProtobufCIntRange opentelemetry__proto__collector__logs__v1__export_logs_service_response__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 1 }
};
const ProtobufCMessageDescriptor opentelemetry__proto__collector__logs__v1__export_logs_service_response__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse",
  "ExportLogsServiceResponse",
  "Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse",
  "opentelemetry.proto.collector.logs.v1",
  sizeof(Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse),
  1,
  opentelemetry__proto__collector__logs__v1__export_logs_service_response__field_descriptors,
  opentelemetry__proto__collector__logs__v1__export_logs_service_response__field_indices_by_name,
  1,  opentelemetry__proto__collector__logs__v1__export_logs_service_response__number_ranges,
  (ProtobufCMessageInit) opentelemetry__proto__collector__logs__v1__export_logs_service_response__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor opentelemetry__proto__collector__logs__v1__export_logs_partial_success__field_descriptors[2] =
{
  {
    "rejected_log_records",
    1,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_INT64,
    0,   /* quantifier_offset */
    offsetof(Opentelemetry__Proto__Collector__Logs__V1__ExportLogsPartialSuccess, rejected_log_records),
    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__Logs__V1__ExportLogsPartialSuccess, error_message),
    NULL,
    &protobuf_c_empty_string,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned opentelemetry__proto__collector__logs__v1__export_logs_partial_success__field_indices_by_name[] = {
  1,   /* field[1] = error_message */
  0,   /* field[0] = rejected_log_records */
};
static const ProtobufCIntRange opentelemetry__proto__collector__logs__v1__export_logs_partial_success__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor opentelemetry__proto__collector__logs__v1__export_logs_partial_success__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess",
  "ExportLogsPartialSuccess",
  "Opentelemetry__Proto__Collector__Logs__V1__ExportLogsPartialSuccess",
  "opentelemetry.proto.collector.logs.v1",
  sizeof(Opentelemetry__Proto__Collector__Logs__V1__ExportLogsPartialSuccess),
  2,
  opentelemetry__proto__collector__logs__v1__export_logs_partial_success__field_descriptors,
  opentelemetry__proto__collector__logs__v1__export_logs_partial_success__field_indices_by_name,
  1,  opentelemetry__proto__collector__logs__v1__export_logs_partial_success__number_ranges,
  (ProtobufCMessageInit) opentelemetry__proto__collector__logs__v1__export_logs_partial_success__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCMethodDescriptor opentelemetry__proto__collector__logs__v1__logs_service__method_descriptors[1] =
{
  { "Export", &opentelemetry__proto__collector__logs__v1__export_logs_service_request__descriptor, &opentelemetry__proto__collector__logs__v1__export_logs_service_response__descriptor },
};
const unsigned opentelemetry__proto__collector__logs__v1__logs_service__method_indices_by_name[] = {
  0         /* Export */
};
const ProtobufCServiceDescriptor opentelemetry__proto__collector__logs__v1__logs_service__descriptor =
{
  PROTOBUF_C__SERVICE_DESCRIPTOR_MAGIC,
  "opentelemetry.proto.collector.logs.v1.LogsService",
  "LogsService",
  "Opentelemetry__Proto__Collector__Logs__V1__LogsService",
  "opentelemetry.proto.collector.logs.v1",
  1,
  opentelemetry__proto__collector__logs__v1__logs_service__method_descriptors,
  opentelemetry__proto__collector__logs__v1__logs_service__method_indices_by_name
};
void opentelemetry__proto__collector__logs__v1__logs_service__export(ProtobufCService *service,
                                                                     const Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceRequest *input,
                                                                     Opentelemetry__Proto__Collector__Logs__V1__ExportLogsServiceResponse_Closure closure,
                                                                     void *closure_data)
{
  assert(service->descriptor == &opentelemetry__proto__collector__logs__v1__logs_service__descriptor);
  service->invoke(service, 0, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data);
}
void opentelemetry__proto__collector__logs__v1__logs_service__init (Opentelemetry__Proto__Collector__Logs__V1__LogsService_Service *service,
                                                                    Opentelemetry__Proto__Collector__Logs__V1__LogsService_ServiceDestroy destroy)
{
  protobuf_c_service_generated_init (&service->base,
                                     &opentelemetry__proto__collector__logs__v1__logs_service__descriptor,
                                     (ProtobufCServiceDestroy) destroy);
}
