logs_service.pb.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. // Copyright 2020, OpenTelemetry Authors
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.26.0
  17. // protoc v3.17.3
  18. // source: opentelemetry/proto/collector/logs/v1/logs_service.proto
  19. package v1
  20. import (
  21. context "context"
  22. v1 "go.opentelemetry.io/proto/otlp/logs/v1"
  23. grpc "google.golang.org/grpc"
  24. codes "google.golang.org/grpc/codes"
  25. status "google.golang.org/grpc/status"
  26. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  27. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  28. reflect "reflect"
  29. sync "sync"
  30. )
  31. const (
  32. // Verify that this generated code is sufficiently up-to-date.
  33. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  34. // Verify that runtime/protoimpl is sufficiently up-to-date.
  35. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  36. )
  37. type ExportLogsServiceRequest struct {
  38. state protoimpl.MessageState
  39. sizeCache protoimpl.SizeCache
  40. unknownFields protoimpl.UnknownFields
  41. // An array of ResourceLogs.
  42. // For data coming from a single resource this array will typically contain one
  43. // element. Intermediary nodes (such as OpenTelemetry Collector) that receive
  44. // data from multiple origins typically batch the data before forwarding further and
  45. // in that case this array will contain multiple elements.
  46. ResourceLogs []*v1.ResourceLogs `protobuf:"bytes,1,rep,name=resource_logs,json=resourceLogs,proto3" json:"resource_logs,omitempty"`
  47. }
  48. func (x *ExportLogsServiceRequest) Reset() {
  49. *x = ExportLogsServiceRequest{}
  50. if protoimpl.UnsafeEnabled {
  51. mi := &file_opentelemetry_proto_collector_logs_v1_logs_service_proto_msgTypes[0]
  52. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  53. ms.StoreMessageInfo(mi)
  54. }
  55. }
  56. func (x *ExportLogsServiceRequest) String() string {
  57. return protoimpl.X.MessageStringOf(x)
  58. }
  59. func (*ExportLogsServiceRequest) ProtoMessage() {}
  60. func (x *ExportLogsServiceRequest) ProtoReflect() protoreflect.Message {
  61. mi := &file_opentelemetry_proto_collector_logs_v1_logs_service_proto_msgTypes[0]
  62. if protoimpl.UnsafeEnabled && x != nil {
  63. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  64. if ms.LoadMessageInfo() == nil {
  65. ms.StoreMessageInfo(mi)
  66. }
  67. return ms
  68. }
  69. return mi.MessageOf(x)
  70. }
  71. // Deprecated: Use ExportLogsServiceRequest.ProtoReflect.Descriptor instead.
  72. func (*ExportLogsServiceRequest) Descriptor() ([]byte, []int) {
  73. return file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDescGZIP(), []int{0}
  74. }
  75. func (x *ExportLogsServiceRequest) GetResourceLogs() []*v1.ResourceLogs {
  76. if x != nil {
  77. return x.ResourceLogs
  78. }
  79. return nil
  80. }
  81. type ExportLogsServiceResponse struct {
  82. state protoimpl.MessageState
  83. sizeCache protoimpl.SizeCache
  84. unknownFields protoimpl.UnknownFields
  85. // The details of a partially successful export request.
  86. //
  87. // If the request is only partially accepted
  88. // (i.e. when the server accepts only parts of the data and rejects the rest)
  89. // the server MUST initialize the `partial_success` field and MUST
  90. // set the `rejected_<signal>` with the number of items it rejected.
  91. //
  92. // Servers MAY also make use of the `partial_success` field to convey
  93. // warnings/suggestions to senders even when the request was fully accepted.
  94. // In such cases, the `rejected_<signal>` MUST have a value of `0` and
  95. // the `error_message` MUST be non-empty.
  96. //
  97. // A `partial_success` message with an empty value (rejected_<signal> = 0 and
  98. // `error_message` = "") is equivalent to it not being set/present. Senders
  99. // SHOULD interpret it the same way as in the full success case.
  100. PartialSuccess *ExportLogsPartialSuccess `protobuf:"bytes,1,opt,name=partial_success,json=partialSuccess,proto3" json:"partial_success,omitempty"`
  101. }
  102. func (x *ExportLogsServiceResponse) Reset() {
  103. *x = ExportLogsServiceResponse{}
  104. if protoimpl.UnsafeEnabled {
  105. mi := &file_opentelemetry_proto_collector_logs_v1_logs_service_proto_msgTypes[1]
  106. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  107. ms.StoreMessageInfo(mi)
  108. }
  109. }
  110. func (x *ExportLogsServiceResponse) String() string {
  111. return protoimpl.X.MessageStringOf(x)
  112. }
  113. func (*ExportLogsServiceResponse) ProtoMessage() {}
  114. func (x *ExportLogsServiceResponse) ProtoReflect() protoreflect.Message {
  115. mi := &file_opentelemetry_proto_collector_logs_v1_logs_service_proto_msgTypes[1]
  116. if protoimpl.UnsafeEnabled && x != nil {
  117. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  118. if ms.LoadMessageInfo() == nil {
  119. ms.StoreMessageInfo(mi)
  120. }
  121. return ms
  122. }
  123. return mi.MessageOf(x)
  124. }
  125. // Deprecated: Use ExportLogsServiceResponse.ProtoReflect.Descriptor instead.
  126. func (*ExportLogsServiceResponse) Descriptor() ([]byte, []int) {
  127. return file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDescGZIP(), []int{1}
  128. }
  129. func (x *ExportLogsServiceResponse) GetPartialSuccess() *ExportLogsPartialSuccess {
  130. if x != nil {
  131. return x.PartialSuccess
  132. }
  133. return nil
  134. }
  135. type ExportLogsPartialSuccess struct {
  136. state protoimpl.MessageState
  137. sizeCache protoimpl.SizeCache
  138. unknownFields protoimpl.UnknownFields
  139. // The number of rejected log records.
  140. //
  141. // A `rejected_<signal>` field holding a `0` value indicates that the
  142. // request was fully accepted.
  143. RejectedLogRecords int64 `protobuf:"varint,1,opt,name=rejected_log_records,json=rejectedLogRecords,proto3" json:"rejected_log_records,omitempty"`
  144. // A developer-facing human-readable message in English. It should be used
  145. // either to explain why the server rejected parts of the data during a partial
  146. // success or to convey warnings/suggestions during a full success. The message
  147. // should offer guidance on how users can address such issues.
  148. //
  149. // error_message is an optional field. An error_message with an empty value
  150. // is equivalent to it not being set.
  151. ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
  152. }
  153. func (x *ExportLogsPartialSuccess) Reset() {
  154. *x = ExportLogsPartialSuccess{}
  155. if protoimpl.UnsafeEnabled {
  156. mi := &file_opentelemetry_proto_collector_logs_v1_logs_service_proto_msgTypes[2]
  157. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  158. ms.StoreMessageInfo(mi)
  159. }
  160. }
  161. func (x *ExportLogsPartialSuccess) String() string {
  162. return protoimpl.X.MessageStringOf(x)
  163. }
  164. func (*ExportLogsPartialSuccess) ProtoMessage() {}
  165. func (x *ExportLogsPartialSuccess) ProtoReflect() protoreflect.Message {
  166. mi := &file_opentelemetry_proto_collector_logs_v1_logs_service_proto_msgTypes[2]
  167. if protoimpl.UnsafeEnabled && x != nil {
  168. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  169. if ms.LoadMessageInfo() == nil {
  170. ms.StoreMessageInfo(mi)
  171. }
  172. return ms
  173. }
  174. return mi.MessageOf(x)
  175. }
  176. // Deprecated: Use ExportLogsPartialSuccess.ProtoReflect.Descriptor instead.
  177. func (*ExportLogsPartialSuccess) Descriptor() ([]byte, []int) {
  178. return file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDescGZIP(), []int{2}
  179. }
  180. func (x *ExportLogsPartialSuccess) GetRejectedLogRecords() int64 {
  181. if x != nil {
  182. return x.RejectedLogRecords
  183. }
  184. return 0
  185. }
  186. func (x *ExportLogsPartialSuccess) GetErrorMessage() string {
  187. if x != nil {
  188. return x.ErrorMessage
  189. }
  190. return ""
  191. }
  192. var File_opentelemetry_proto_collector_logs_v1_logs_service_proto protoreflect.FileDescriptor
  193. var file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDesc = []byte{
  194. 0x0a, 0x38, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f,
  195. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f,
  196. 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x5f, 0x73, 0x65, 0x72,
  197. 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x6f, 0x70, 0x65, 0x6e,
  198. 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  199. 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x6c, 0x6f, 0x67, 0x73, 0x2e, 0x76,
  200. 0x31, 0x1a, 0x26, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79,
  201. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6c,
  202. 0x6f, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6a, 0x0a, 0x18, 0x45, 0x78, 0x70,
  203. 0x6f, 0x72, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65,
  204. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  205. 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6f,
  206. 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f,
  207. 0x74, 0x6f, 0x2e, 0x6c, 0x6f, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75,
  208. 0x72, 0x63, 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  209. 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x19, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74,
  210. 0x4c, 0x6f, 0x67, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
  211. 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73,
  212. 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x6f,
  213. 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f,
  214. 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x6c, 0x6f, 0x67,
  215. 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x50,
  216. 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x0e, 0x70,
  217. 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x71, 0x0a,
  218. 0x18, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x50, 0x61, 0x72, 0x74, 0x69,
  219. 0x61, 0x6c, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, 0x6a,
  220. 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64,
  221. 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65,
  222. 0x64, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65,
  223. 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
  224. 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  225. 0x32, 0x9d, 0x01, 0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  226. 0x12, 0x8d, 0x01, 0x0a, 0x06, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3f, 0x2e, 0x6f, 0x70,
  227. 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  228. 0x6f, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x6c, 0x6f, 0x67, 0x73,
  229. 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x53, 0x65,
  230. 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x6f,
  231. 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f,
  232. 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x6c, 0x6f, 0x67,
  233. 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x53,
  234. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
  235. 0x42, 0x98, 0x01, 0x0a, 0x28, 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65,
  236. 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6c, 0x6c,
  237. 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x6c, 0x6f, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x4c,
  238. 0x6f, 0x67, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
  239. 0x01, 0x5a, 0x30, 0x67, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65,
  240. 0x74, 0x72, 0x79, 0x2e, 0x69, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6f, 0x74, 0x6c,
  241. 0x70, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x6c, 0x6f, 0x67, 0x73,
  242. 0x2f, 0x76, 0x31, 0xaa, 0x02, 0x25, 0x4f, 0x70, 0x65, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65,
  243. 0x74, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
  244. 0x74, 0x6f, 0x72, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x2e, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
  245. 0x74, 0x6f, 0x33,
  246. }
  247. var (
  248. file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDescOnce sync.Once
  249. file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDescData = file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDesc
  250. )
  251. func file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDescGZIP() []byte {
  252. file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDescOnce.Do(func() {
  253. file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDescData)
  254. })
  255. return file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDescData
  256. }
  257. var file_opentelemetry_proto_collector_logs_v1_logs_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  258. var file_opentelemetry_proto_collector_logs_v1_logs_service_proto_goTypes = []interface{}{
  259. (*ExportLogsServiceRequest)(nil), // 0: opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest
  260. (*ExportLogsServiceResponse)(nil), // 1: opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse
  261. (*ExportLogsPartialSuccess)(nil), // 2: opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
  262. (*v1.ResourceLogs)(nil), // 3: opentelemetry.proto.logs.v1.ResourceLogs
  263. }
  264. var file_opentelemetry_proto_collector_logs_v1_logs_service_proto_depIdxs = []int32{
  265. 3, // 0: opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resource_logs:type_name -> opentelemetry.proto.logs.v1.ResourceLogs
  266. 2, // 1: opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partial_success:type_name -> opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
  267. 0, // 2: opentelemetry.proto.collector.logs.v1.LogsService.Export:input_type -> opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest
  268. 1, // 3: opentelemetry.proto.collector.logs.v1.LogsService.Export:output_type -> opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse
  269. 3, // [3:4] is the sub-list for method output_type
  270. 2, // [2:3] is the sub-list for method input_type
  271. 2, // [2:2] is the sub-list for extension type_name
  272. 2, // [2:2] is the sub-list for extension extendee
  273. 0, // [0:2] is the sub-list for field type_name
  274. }
  275. func init() { file_opentelemetry_proto_collector_logs_v1_logs_service_proto_init() }
  276. func file_opentelemetry_proto_collector_logs_v1_logs_service_proto_init() {
  277. if File_opentelemetry_proto_collector_logs_v1_logs_service_proto != nil {
  278. return
  279. }
  280. if !protoimpl.UnsafeEnabled {
  281. file_opentelemetry_proto_collector_logs_v1_logs_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  282. switch v := v.(*ExportLogsServiceRequest); i {
  283. case 0:
  284. return &v.state
  285. case 1:
  286. return &v.sizeCache
  287. case 2:
  288. return &v.unknownFields
  289. default:
  290. return nil
  291. }
  292. }
  293. file_opentelemetry_proto_collector_logs_v1_logs_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  294. switch v := v.(*ExportLogsServiceResponse); i {
  295. case 0:
  296. return &v.state
  297. case 1:
  298. return &v.sizeCache
  299. case 2:
  300. return &v.unknownFields
  301. default:
  302. return nil
  303. }
  304. }
  305. file_opentelemetry_proto_collector_logs_v1_logs_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  306. switch v := v.(*ExportLogsPartialSuccess); i {
  307. case 0:
  308. return &v.state
  309. case 1:
  310. return &v.sizeCache
  311. case 2:
  312. return &v.unknownFields
  313. default:
  314. return nil
  315. }
  316. }
  317. }
  318. type x struct{}
  319. out := protoimpl.TypeBuilder{
  320. File: protoimpl.DescBuilder{
  321. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  322. RawDescriptor: file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDesc,
  323. NumEnums: 0,
  324. NumMessages: 3,
  325. NumExtensions: 0,
  326. NumServices: 1,
  327. },
  328. GoTypes: file_opentelemetry_proto_collector_logs_v1_logs_service_proto_goTypes,
  329. DependencyIndexes: file_opentelemetry_proto_collector_logs_v1_logs_service_proto_depIdxs,
  330. MessageInfos: file_opentelemetry_proto_collector_logs_v1_logs_service_proto_msgTypes,
  331. }.Build()
  332. File_opentelemetry_proto_collector_logs_v1_logs_service_proto = out.File
  333. file_opentelemetry_proto_collector_logs_v1_logs_service_proto_rawDesc = nil
  334. file_opentelemetry_proto_collector_logs_v1_logs_service_proto_goTypes = nil
  335. file_opentelemetry_proto_collector_logs_v1_logs_service_proto_depIdxs = nil
  336. }
  337. // Reference imports to suppress errors if they are not otherwise used.
  338. var _ context.Context
  339. var _ grpc.ClientConnInterface
  340. // This is a compile-time assertion to ensure that this generated file
  341. // is compatible with the grpc package it is being compiled against.
  342. const _ = grpc.SupportPackageIsVersion6
  343. // LogsServiceClient is the client API for LogsService service.
  344. //
  345. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  346. type LogsServiceClient interface {
  347. // For performance reasons, it is recommended to keep this RPC
  348. // alive for the entire life of the application.
  349. Export(ctx context.Context, in *ExportLogsServiceRequest, opts ...grpc.CallOption) (*ExportLogsServiceResponse, error)
  350. }
  351. type logsServiceClient struct {
  352. cc grpc.ClientConnInterface
  353. }
  354. func NewLogsServiceClient(cc grpc.ClientConnInterface) LogsServiceClient {
  355. return &logsServiceClient{cc}
  356. }
  357. func (c *logsServiceClient) Export(ctx context.Context, in *ExportLogsServiceRequest, opts ...grpc.CallOption) (*ExportLogsServiceResponse, error) {
  358. out := new(ExportLogsServiceResponse)
  359. err := c.cc.Invoke(ctx, "/opentelemetry.proto.collector.logs.v1.LogsService/Export", in, out, opts...)
  360. if err != nil {
  361. return nil, err
  362. }
  363. return out, nil
  364. }
  365. // LogsServiceServer is the server API for LogsService service.
  366. type LogsServiceServer interface {
  367. // For performance reasons, it is recommended to keep this RPC
  368. // alive for the entire life of the application.
  369. Export(context.Context, *ExportLogsServiceRequest) (*ExportLogsServiceResponse, error)
  370. }
  371. // UnimplementedLogsServiceServer can be embedded to have forward compatible implementations.
  372. type UnimplementedLogsServiceServer struct {
  373. }
  374. func (*UnimplementedLogsServiceServer) Export(context.Context, *ExportLogsServiceRequest) (*ExportLogsServiceResponse, error) {
  375. return nil, status.Errorf(codes.Unimplemented, "method Export not implemented")
  376. }
  377. func RegisterLogsServiceServer(s *grpc.Server, srv LogsServiceServer) {
  378. s.RegisterService(&_LogsService_serviceDesc, srv)
  379. }
  380. func _LogsService_Export_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  381. in := new(ExportLogsServiceRequest)
  382. if err := dec(in); err != nil {
  383. return nil, err
  384. }
  385. if interceptor == nil {
  386. return srv.(LogsServiceServer).Export(ctx, in)
  387. }
  388. info := &grpc.UnaryServerInfo{
  389. Server: srv,
  390. FullMethod: "/opentelemetry.proto.collector.logs.v1.LogsService/Export",
  391. }
  392. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  393. return srv.(LogsServiceServer).Export(ctx, req.(*ExportLogsServiceRequest))
  394. }
  395. return interceptor(ctx, in, info, handler)
  396. }
  397. var _LogsService_serviceDesc = grpc.ServiceDesc{
  398. ServiceName: "opentelemetry.proto.collector.logs.v1.LogsService",
  399. HandlerType: (*LogsServiceServer)(nil),
  400. Methods: []grpc.MethodDesc{
  401. {
  402. MethodName: "Export",
  403. Handler: _LogsService_Export_Handler,
  404. },
  405. },
  406. Streams: []grpc.StreamDesc{},
  407. Metadata: "opentelemetry/proto/collector/logs/v1/logs_service.proto",
  408. }