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