summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/fluent-otel-proto/proto_c/opentelemetry/proto/collector/metrics/v1/metrics_service.pb-c.h
blob: 4b19ffc0568e379fae1c951ecd515b90c0fe046e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: opentelemetry/proto/collector/metrics/v1/metrics_service.proto */

#ifndef PROTOBUF_C_opentelemetry_2fproto_2fcollector_2fmetrics_2fv1_2fmetrics_5fservice_2eproto__INCLUDED
#define PROTOBUF_C_opentelemetry_2fproto_2fcollector_2fmetrics_2fv1_2fmetrics_5fservice_2eproto__INCLUDED

#include <protobuf-c/protobuf-c.h>

PROTOBUF_C__BEGIN_DECLS

#if PROTOBUF_C_VERSION_NUMBER < 1003000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1004001 < PROTOBUF_C_MIN_COMPILER_VERSION
# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
#endif

#include "opentelemetry/proto/metrics/v1/metrics.pb-c.h"

typedef struct Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest;
typedef struct Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse;
typedef struct Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess;


/* --- enums --- */


/* --- messages --- */

struct  Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest
{
  ProtobufCMessage base;
  /*
   * An array of ResourceMetrics.
   * For data coming from a single resource this array will typically contain one
   * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
   * data from multiple origins typically batch the data before forwarding further and
   * in that case this array will contain multiple elements.
   */
  size_t n_resource_metrics;
  Opentelemetry__Proto__Metrics__V1__ResourceMetrics **resource_metrics;
};
#define OPENTELEMETRY__PROTO__COLLECTOR__METRICS__V1__EXPORT_METRICS_SERVICE_REQUEST__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__collector__metrics__v1__export_metrics_service_request__descriptor) \
    , 0,NULL }


struct  Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse
{
  ProtobufCMessage base;
  /*
   * The details of a partially successful export request.
   * If the request is only partially accepted
   * (i.e. when the server accepts only parts of the data and rejects the rest)
   * the server MUST initialize the `partial_success` field and MUST
   * set the `rejected_<signal>` with the number of items it rejected.
   * Servers MAY also make use of the `partial_success` field to convey
   * warnings/suggestions to senders even when the request was fully accepted.
   * In such cases, the `rejected_<signal>` MUST have a value of `0` and
   * the `error_message` MUST be non-empty.
   * A `partial_success` message with an empty value (rejected_<signal> = 0 and
   * `error_message` = "") is equivalent to it not being set/present. Senders
   * SHOULD interpret it the same way as in the full success case.
   */
  Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess *partial_success;
};
#define OPENTELEMETRY__PROTO__COLLECTOR__METRICS__V1__EXPORT_METRICS_SERVICE_RESPONSE__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__collector__metrics__v1__export_metrics_service_response__descriptor) \
    , NULL }


struct  Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess
{
  ProtobufCMessage base;
  /*
   * The number of rejected data points.
   * A `rejected_<signal>` field holding a `0` value indicates that the
   * request was fully accepted.
   */
  int64_t rejected_data_points;
  /*
   * A developer-facing human-readable message in English. It should be used
   * either to explain why the server rejected parts of the data during a partial
   * success or to convey warnings/suggestions during a full success. The message
   * should offer guidance on how users can address such issues.
   * error_message is an optional field. An error_message with an empty value
   * is equivalent to it not being set.
   */
  char *error_message;
};
#define OPENTELEMETRY__PROTO__COLLECTOR__METRICS__V1__EXPORT_METRICS_PARTIAL_SUCCESS__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__collector__metrics__v1__export_metrics_partial_success__descriptor) \
    , 0, (char *)protobuf_c_empty_string }


/* Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest methods */
void   opentelemetry__proto__collector__metrics__v1__export_metrics_service_request__init
                     (Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest         *message);
size_t opentelemetry__proto__collector__metrics__v1__export_metrics_service_request__get_packed_size
                     (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest   *message);
size_t opentelemetry__proto__collector__metrics__v1__export_metrics_service_request__pack
                     (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest   *message,
                      uint8_t             *out);
size_t opentelemetry__proto__collector__metrics__v1__export_metrics_service_request__pack_to_buffer
                     (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest   *message,
                      ProtobufCBuffer     *buffer);
Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest *
       opentelemetry__proto__collector__metrics__v1__export_metrics_service_request__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   opentelemetry__proto__collector__metrics__v1__export_metrics_service_request__free_unpacked
                     (Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest *message,
                      ProtobufCAllocator *allocator);
/* Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse methods */
void   opentelemetry__proto__collector__metrics__v1__export_metrics_service_response__init
                     (Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse         *message);
size_t opentelemetry__proto__collector__metrics__v1__export_metrics_service_response__get_packed_size
                     (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse   *message);
size_t opentelemetry__proto__collector__metrics__v1__export_metrics_service_response__pack
                     (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse   *message,
                      uint8_t             *out);
size_t opentelemetry__proto__collector__metrics__v1__export_metrics_service_response__pack_to_buffer
                     (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse   *message,
                      ProtobufCBuffer     *buffer);
Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse *
       opentelemetry__proto__collector__metrics__v1__export_metrics_service_response__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   opentelemetry__proto__collector__metrics__v1__export_metrics_service_response__free_unpacked
                     (Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse *message,
                      ProtobufCAllocator *allocator);
/* Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess methods */
void   opentelemetry__proto__collector__metrics__v1__export_metrics_partial_success__init
                     (Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess         *message);
size_t opentelemetry__proto__collector__metrics__v1__export_metrics_partial_success__get_packed_size
                     (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess   *message);
size_t opentelemetry__proto__collector__metrics__v1__export_metrics_partial_success__pack
                     (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess   *message,
                      uint8_t             *out);
size_t opentelemetry__proto__collector__metrics__v1__export_metrics_partial_success__pack_to_buffer
                     (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess   *message,
                      ProtobufCBuffer     *buffer);
Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess *
       opentelemetry__proto__collector__metrics__v1__export_metrics_partial_success__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   opentelemetry__proto__collector__metrics__v1__export_metrics_partial_success__free_unpacked
                     (Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest_Closure)
                 (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest *message,
                  void *closure_data);
typedef void (*Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse_Closure)
                 (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse *message,
                  void *closure_data);
typedef void (*Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess_Closure)
                 (const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsPartialSuccess *message,
                  void *closure_data);

/* --- services --- */

typedef struct Opentelemetry__Proto__Collector__Metrics__V1__MetricsService_Service Opentelemetry__Proto__Collector__Metrics__V1__MetricsService_Service;
struct Opentelemetry__Proto__Collector__Metrics__V1__MetricsService_Service
{
  ProtobufCService base;
  void (*export)(Opentelemetry__Proto__Collector__Metrics__V1__MetricsService_Service *service,
                 const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest *input,
                 Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse_Closure closure,
                 void *closure_data);
};
typedef void (*Opentelemetry__Proto__Collector__Metrics__V1__MetricsService_ServiceDestroy)(Opentelemetry__Proto__Collector__Metrics__V1__MetricsService_Service *);
void opentelemetry__proto__collector__metrics__v1__metrics_service__init (Opentelemetry__Proto__Collector__Metrics__V1__MetricsService_Service *service,
                                                                          Opentelemetry__Proto__Collector__Metrics__V1__MetricsService_ServiceDestroy destroy);
#define OPENTELEMETRY__PROTO__COLLECTOR__METRICS__V1__METRICS_SERVICE__BASE_INIT \
    { &opentelemetry__proto__collector__metrics__v1__metrics_service__descriptor, protobuf_c_service_invoke_internal, NULL }
#define OPENTELEMETRY__PROTO__COLLECTOR__METRICS__V1__METRICS_SERVICE__INIT(function_prefix__) \
    { OPENTELEMETRY__PROTO__COLLECTOR__METRICS__V1__METRICS_SERVICE__BASE_INIT,\
      function_prefix__ ## export  }
void opentelemetry__proto__collector__metrics__v1__metrics_service__export(ProtobufCService *service,
                                                                           const Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceRequest *input,
                                                                           Opentelemetry__Proto__Collector__Metrics__V1__ExportMetricsServiceResponse_Closure closure,
                                                                           void *closure_data);

/* --- descriptors --- */

extern const ProtobufCMessageDescriptor opentelemetry__proto__collector__metrics__v1__export_metrics_service_request__descriptor;
extern const ProtobufCMessageDescriptor opentelemetry__proto__collector__metrics__v1__export_metrics_service_response__descriptor;
extern const ProtobufCMessageDescriptor opentelemetry__proto__collector__metrics__v1__export_metrics_partial_success__descriptor;
extern const ProtobufCServiceDescriptor opentelemetry__proto__collector__metrics__v1__metrics_service__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_opentelemetry_2fproto_2fcollector_2fmetrics_2fv1_2fmetrics_5fservice_2eproto__INCLUDED */