metrics_service.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. // Copyright 2018, OpenCensus 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.25.0
  17. // protoc v3.12.3
  18. // source: opencensus/proto/agent/metrics/v1/metrics_service.proto
  19. package v1
  20. import (
  21. v1 "github.com/census-instrumentation/opencensus-proto/gen-go/agent/common/v1"
  22. v11 "github.com/census-instrumentation/opencensus-proto/gen-go/metrics/v1"
  23. v12 "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1"
  24. proto "github.com/golang/protobuf/proto"
  25. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  26. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  27. reflect "reflect"
  28. sync "sync"
  29. )
  30. const (
  31. // Verify that this generated code is sufficiently up-to-date.
  32. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  33. // Verify that runtime/protoimpl is sufficiently up-to-date.
  34. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  35. )
  36. // This is a compile-time assertion that a sufficiently up-to-date version
  37. // of the legacy proto package is being used.
  38. const _ = proto.ProtoPackageIsVersion4
  39. type ExportMetricsServiceRequest struct {
  40. state protoimpl.MessageState
  41. sizeCache protoimpl.SizeCache
  42. unknownFields protoimpl.UnknownFields
  43. // This is required only in the first message on the stream or if the
  44. // previous sent ExportMetricsServiceRequest message has a different Node (e.g.
  45. // when the same RPC is used to send Metrics from multiple Applications).
  46. Node *v1.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
  47. // A list of metrics that belong to the last received Node.
  48. Metrics []*v11.Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
  49. // The resource for the metrics in this message that do not have an explicit
  50. // resource set.
  51. // If unset, the most recently set resource in the RPC stream applies. It is
  52. // valid to never be set within a stream, e.g. when no resource info is known
  53. // at all or when all sent metrics have an explicit resource set.
  54. Resource *v12.Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
  55. }
  56. func (x *ExportMetricsServiceRequest) Reset() {
  57. *x = ExportMetricsServiceRequest{}
  58. if protoimpl.UnsafeEnabled {
  59. mi := &file_opencensus_proto_agent_metrics_v1_metrics_service_proto_msgTypes[0]
  60. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  61. ms.StoreMessageInfo(mi)
  62. }
  63. }
  64. func (x *ExportMetricsServiceRequest) String() string {
  65. return protoimpl.X.MessageStringOf(x)
  66. }
  67. func (*ExportMetricsServiceRequest) ProtoMessage() {}
  68. func (x *ExportMetricsServiceRequest) ProtoReflect() protoreflect.Message {
  69. mi := &file_opencensus_proto_agent_metrics_v1_metrics_service_proto_msgTypes[0]
  70. if protoimpl.UnsafeEnabled && x != nil {
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. if ms.LoadMessageInfo() == nil {
  73. ms.StoreMessageInfo(mi)
  74. }
  75. return ms
  76. }
  77. return mi.MessageOf(x)
  78. }
  79. // Deprecated: Use ExportMetricsServiceRequest.ProtoReflect.Descriptor instead.
  80. func (*ExportMetricsServiceRequest) Descriptor() ([]byte, []int) {
  81. return file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDescGZIP(), []int{0}
  82. }
  83. func (x *ExportMetricsServiceRequest) GetNode() *v1.Node {
  84. if x != nil {
  85. return x.Node
  86. }
  87. return nil
  88. }
  89. func (x *ExportMetricsServiceRequest) GetMetrics() []*v11.Metric {
  90. if x != nil {
  91. return x.Metrics
  92. }
  93. return nil
  94. }
  95. func (x *ExportMetricsServiceRequest) GetResource() *v12.Resource {
  96. if x != nil {
  97. return x.Resource
  98. }
  99. return nil
  100. }
  101. type ExportMetricsServiceResponse struct {
  102. state protoimpl.MessageState
  103. sizeCache protoimpl.SizeCache
  104. unknownFields protoimpl.UnknownFields
  105. }
  106. func (x *ExportMetricsServiceResponse) Reset() {
  107. *x = ExportMetricsServiceResponse{}
  108. if protoimpl.UnsafeEnabled {
  109. mi := &file_opencensus_proto_agent_metrics_v1_metrics_service_proto_msgTypes[1]
  110. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  111. ms.StoreMessageInfo(mi)
  112. }
  113. }
  114. func (x *ExportMetricsServiceResponse) String() string {
  115. return protoimpl.X.MessageStringOf(x)
  116. }
  117. func (*ExportMetricsServiceResponse) ProtoMessage() {}
  118. func (x *ExportMetricsServiceResponse) ProtoReflect() protoreflect.Message {
  119. mi := &file_opencensus_proto_agent_metrics_v1_metrics_service_proto_msgTypes[1]
  120. if protoimpl.UnsafeEnabled && x != nil {
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. if ms.LoadMessageInfo() == nil {
  123. ms.StoreMessageInfo(mi)
  124. }
  125. return ms
  126. }
  127. return mi.MessageOf(x)
  128. }
  129. // Deprecated: Use ExportMetricsServiceResponse.ProtoReflect.Descriptor instead.
  130. func (*ExportMetricsServiceResponse) Descriptor() ([]byte, []int) {
  131. return file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDescGZIP(), []int{1}
  132. }
  133. var File_opencensus_proto_agent_metrics_v1_metrics_service_proto protoreflect.FileDescriptor
  134. var file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDesc = []byte{
  135. 0x0a, 0x37, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f,
  136. 0x74, 0x6f, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
  137. 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76,
  138. 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x6f, 0x70, 0x65, 0x6e, 0x63,
  139. 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x67, 0x65, 0x6e,
  140. 0x74, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x2d, 0x6f, 0x70,
  141. 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61,
  142. 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63,
  143. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x6f, 0x70, 0x65,
  144. 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6d, 0x65,
  145. 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
  146. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73,
  147. 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  148. 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72,
  149. 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x01, 0x0a, 0x1b, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65,
  150. 0x74, 0x72, 0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,
  151. 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  152. 0x0b, 0x32, 0x26, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70,
  153. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  154. 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x12,
  155. 0x3d, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
  156. 0x32, 0x23, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72,
  157. 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d,
  158. 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x42,
  159. 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
  160. 0x32, 0x26, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72,
  161. 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e,
  162. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  163. 0x63, 0x65, 0x22, 0x1e, 0x0a, 0x1c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x72,
  164. 0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  165. 0x73, 0x65, 0x32, 0xa2, 0x01, 0x0a, 0x0e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x53, 0x65,
  166. 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8f, 0x01, 0x0a, 0x06, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74,
  167. 0x12, 0x3e, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72,
  168. 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
  169. 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69,
  170. 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  171. 0x1a, 0x3f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72,
  172. 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
  173. 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69,
  174. 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  175. 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0xad, 0x01, 0x0a, 0x24, 0x69, 0x6f, 0x2e, 0x6f,
  176. 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  177. 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31,
  178. 0x42, 0x13, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  179. 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  180. 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x72,
  181. 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63,
  182. 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2d,
  183. 0x67, 0x6f, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
  184. 0x2f, 0x76, 0x31, 0xea, 0x02, 0x21, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x65, 0x6e, 0x73, 0x75, 0x73,
  185. 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74,
  186. 0x72, 0x69, 0x63, 0x73, 0x2e, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  187. }
  188. var (
  189. file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDescOnce sync.Once
  190. file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDescData = file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDesc
  191. )
  192. func file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDescGZIP() []byte {
  193. file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDescOnce.Do(func() {
  194. file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDescData)
  195. })
  196. return file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDescData
  197. }
  198. var file_opencensus_proto_agent_metrics_v1_metrics_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  199. var file_opencensus_proto_agent_metrics_v1_metrics_service_proto_goTypes = []interface{}{
  200. (*ExportMetricsServiceRequest)(nil), // 0: opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest
  201. (*ExportMetricsServiceResponse)(nil), // 1: opencensus.proto.agent.metrics.v1.ExportMetricsServiceResponse
  202. (*v1.Node)(nil), // 2: opencensus.proto.agent.common.v1.Node
  203. (*v11.Metric)(nil), // 3: opencensus.proto.metrics.v1.Metric
  204. (*v12.Resource)(nil), // 4: opencensus.proto.resource.v1.Resource
  205. }
  206. var file_opencensus_proto_agent_metrics_v1_metrics_service_proto_depIdxs = []int32{
  207. 2, // 0: opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest.node:type_name -> opencensus.proto.agent.common.v1.Node
  208. 3, // 1: opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest.metrics:type_name -> opencensus.proto.metrics.v1.Metric
  209. 4, // 2: opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest.resource:type_name -> opencensus.proto.resource.v1.Resource
  210. 0, // 3: opencensus.proto.agent.metrics.v1.MetricsService.Export:input_type -> opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest
  211. 1, // 4: opencensus.proto.agent.metrics.v1.MetricsService.Export:output_type -> opencensus.proto.agent.metrics.v1.ExportMetricsServiceResponse
  212. 4, // [4:5] is the sub-list for method output_type
  213. 3, // [3:4] is the sub-list for method input_type
  214. 3, // [3:3] is the sub-list for extension type_name
  215. 3, // [3:3] is the sub-list for extension extendee
  216. 0, // [0:3] is the sub-list for field type_name
  217. }
  218. func init() { file_opencensus_proto_agent_metrics_v1_metrics_service_proto_init() }
  219. func file_opencensus_proto_agent_metrics_v1_metrics_service_proto_init() {
  220. if File_opencensus_proto_agent_metrics_v1_metrics_service_proto != nil {
  221. return
  222. }
  223. if !protoimpl.UnsafeEnabled {
  224. file_opencensus_proto_agent_metrics_v1_metrics_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  225. switch v := v.(*ExportMetricsServiceRequest); i {
  226. case 0:
  227. return &v.state
  228. case 1:
  229. return &v.sizeCache
  230. case 2:
  231. return &v.unknownFields
  232. default:
  233. return nil
  234. }
  235. }
  236. file_opencensus_proto_agent_metrics_v1_metrics_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  237. switch v := v.(*ExportMetricsServiceResponse); i {
  238. case 0:
  239. return &v.state
  240. case 1:
  241. return &v.sizeCache
  242. case 2:
  243. return &v.unknownFields
  244. default:
  245. return nil
  246. }
  247. }
  248. }
  249. type x struct{}
  250. out := protoimpl.TypeBuilder{
  251. File: protoimpl.DescBuilder{
  252. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  253. RawDescriptor: file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDesc,
  254. NumEnums: 0,
  255. NumMessages: 2,
  256. NumExtensions: 0,
  257. NumServices: 1,
  258. },
  259. GoTypes: file_opencensus_proto_agent_metrics_v1_metrics_service_proto_goTypes,
  260. DependencyIndexes: file_opencensus_proto_agent_metrics_v1_metrics_service_proto_depIdxs,
  261. MessageInfos: file_opencensus_proto_agent_metrics_v1_metrics_service_proto_msgTypes,
  262. }.Build()
  263. File_opencensus_proto_agent_metrics_v1_metrics_service_proto = out.File
  264. file_opencensus_proto_agent_metrics_v1_metrics_service_proto_rawDesc = nil
  265. file_opencensus_proto_agent_metrics_v1_metrics_service_proto_goTypes = nil
  266. file_opencensus_proto_agent_metrics_v1_metrics_service_proto_depIdxs = nil
  267. }