5 _b=sys.version_info[0]<3
and (
lambda x:x)
or (
lambda x:x.encode(
'latin1'))
12 _sym_db = _symbol_database.Default()
15 from google.protobuf import timestamp_pb2
as google_dot_protobuf_dot_timestamp__pb2
18 DESCRIPTOR = _descriptor.FileDescriptor(
19 name=
'opencensus/proto/stats/v1/stats.proto',
20 package=
'opencensus.proto.stats.v1',
22 serialized_options=
_b(
'\n\034io.opencensus.proto.stats.v1B\nStatsProtoP\001ZBgithub.com/census-instrumentation/opencensus-proto/gen-go/stats/v1\352\002\031OpenCensus.Proto.Stats.V1'),
23 serialized_pb=
_b(
'\n%opencensus/proto/stats/v1/stats.proto\x12\x19opencensus.proto.stats.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"!\n\x03Tag\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\xa6\x01\n\x07Measure\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04unit\x18\x03 \x01(\t\x12\x35\n\x04type\x18\x04 \x01(\x0e\x32\'.opencensus.proto.stats.v1.Measure.Type\"3\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05INT64\x10\x01\x12\n\n\x06\x44OUBLE\x10\x02\"\xb9\x03\n\x04View\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x33\n\x07measure\x18\x03 \x01(\x0b\x32\".opencensus.proto.stats.v1.Measure\x12\x0f\n\x07\x63olumns\x18\x04 \x03(\t\x12H\n\x11\x63ount_aggregation\x18\x05 \x01(\x0b\x32+.opencensus.proto.stats.v1.CountAggregationH\x00\x12\x44\n\x0fsum_aggregation\x18\x06 \x01(\x0b\x32).opencensus.proto.stats.v1.SumAggregationH\x00\x12Q\n\x16last_value_aggregation\x18\x07 \x01(\x0b\x32/.opencensus.proto.stats.v1.LastValueAggregationH\x00\x12V\n\x18\x64istribution_aggregation\x18\x08 \x01(\x0b\x32\x32.opencensus.proto.stats.v1.DistributionAggregationH\x00\x42\r\n\x0b\x61ggregation\"\x12\n\x10\x43ountAggregation\"\x10\n\x0eSumAggregation\"\x16\n\x14LastValueAggregation\"0\n\x17\x44istributionAggregation\x12\x15\n\rbucket_bounds\x18\x01 \x03(\x01\"\xb1\x01\n\x0bMeasurement\x12,\n\x04tags\x18\x01 \x03(\x0b\x32\x1e.opencensus.proto.stats.v1.Tag\x12\x14\n\x0cmeasure_name\x18\x02 \x01(\t\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x13\n\tint_value\x18\x04 \x01(\x03H\x00\x12(\n\x04time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x07\n\x05valueB\x8c\x01\n\x1cio.opencensus.proto.stats.v1B\nStatsProtoP\x01ZBgithub.com/census-instrumentation/opencensus-proto/gen-go/stats/v1\xea\x02\x19OpenCensus.Proto.Stats.V1b\x06proto3')
25 dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,])
29 _MEASURE_TYPE = _descriptor.EnumDescriptor(
31 full_name=
'opencensus.proto.stats.v1.Measure.Type',
35 _descriptor.EnumValueDescriptor(
36 name=
'TYPE_UNSPECIFIED', index=0, number=0,
37 serialized_options=
None,
39 _descriptor.EnumValueDescriptor(
40 name=
'INT64', index=1, number=1,
41 serialized_options=
None,
43 _descriptor.EnumValueDescriptor(
44 name=
'DOUBLE', index=2, number=2,
45 serialized_options=
None,
49 serialized_options=
None,
53 _sym_db.RegisterEnumDescriptor(_MEASURE_TYPE)
56 _TAG = _descriptor.Descriptor(
58 full_name=
'opencensus.proto.stats.v1.Tag',
63 _descriptor.FieldDescriptor(
64 name=
'key', full_name=
'opencensus.proto.stats.v1.Tag.key', index=0,
65 number=1, type=9, cpp_type=9, label=1,
66 has_default_value=
False, default_value=
_b(
"").
decode(
'utf-8'),
67 message_type=
None, enum_type=
None, containing_type=
None,
68 is_extension=
False, extension_scope=
None,
69 serialized_options=
None, file=DESCRIPTOR),
70 _descriptor.FieldDescriptor(
71 name=
'value', full_name=
'opencensus.proto.stats.v1.Tag.value', index=1,
72 number=2, type=9, cpp_type=9, label=1,
73 has_default_value=
False, default_value=
_b(
"").
decode(
'utf-8'),
74 message_type=
None, enum_type=
None, containing_type=
None,
75 is_extension=
False, extension_scope=
None,
76 serialized_options=
None, file=DESCRIPTOR),
83 serialized_options=
None,
94 _MEASURE = _descriptor.Descriptor(
96 full_name=
'opencensus.proto.stats.v1.Measure',
101 _descriptor.FieldDescriptor(
102 name=
'name', full_name=
'opencensus.proto.stats.v1.Measure.name', index=0,
103 number=1, type=9, cpp_type=9, label=1,
104 has_default_value=
False, default_value=
_b(
"").
decode(
'utf-8'),
105 message_type=
None, enum_type=
None, containing_type=
None,
106 is_extension=
False, extension_scope=
None,
107 serialized_options=
None, file=DESCRIPTOR),
108 _descriptor.FieldDescriptor(
109 name=
'description', full_name=
'opencensus.proto.stats.v1.Measure.description', index=1,
110 number=2, type=9, cpp_type=9, label=1,
111 has_default_value=
False, default_value=
_b(
"").
decode(
'utf-8'),
112 message_type=
None, enum_type=
None, containing_type=
None,
113 is_extension=
False, extension_scope=
None,
114 serialized_options=
None, file=DESCRIPTOR),
115 _descriptor.FieldDescriptor(
116 name=
'unit', full_name=
'opencensus.proto.stats.v1.Measure.unit', index=2,
117 number=3, type=9, cpp_type=9, label=1,
118 has_default_value=
False, default_value=
_b(
"").
decode(
'utf-8'),
119 message_type=
None, enum_type=
None, containing_type=
None,
120 is_extension=
False, extension_scope=
None,
121 serialized_options=
None, file=DESCRIPTOR),
122 _descriptor.FieldDescriptor(
123 name=
'type', full_name=
'opencensus.proto.stats.v1.Measure.type', index=3,
124 number=4, type=14, cpp_type=8, label=1,
125 has_default_value=
False, default_value=0,
126 message_type=
None, enum_type=
None, containing_type=
None,
127 is_extension=
False, extension_scope=
None,
128 serialized_options=
None, file=DESCRIPTOR),
136 serialized_options=
None,
142 serialized_start=137,
147 _VIEW = _descriptor.Descriptor(
149 full_name=
'opencensus.proto.stats.v1.View',
152 containing_type=
None,
154 _descriptor.FieldDescriptor(
155 name=
'name', full_name=
'opencensus.proto.stats.v1.View.name', index=0,
156 number=1, type=9, cpp_type=9, label=1,
157 has_default_value=
False, default_value=
_b(
"").
decode(
'utf-8'),
158 message_type=
None, enum_type=
None, containing_type=
None,
159 is_extension=
False, extension_scope=
None,
160 serialized_options=
None, file=DESCRIPTOR),
161 _descriptor.FieldDescriptor(
162 name=
'description', full_name=
'opencensus.proto.stats.v1.View.description', index=1,
163 number=2, type=9, cpp_type=9, label=1,
164 has_default_value=
False, default_value=
_b(
"").
decode(
'utf-8'),
165 message_type=
None, enum_type=
None, containing_type=
None,
166 is_extension=
False, extension_scope=
None,
167 serialized_options=
None, file=DESCRIPTOR),
168 _descriptor.FieldDescriptor(
169 name=
'measure', full_name=
'opencensus.proto.stats.v1.View.measure', index=2,
170 number=3, type=11, cpp_type=10, label=1,
171 has_default_value=
False, default_value=
None,
172 message_type=
None, enum_type=
None, containing_type=
None,
173 is_extension=
False, extension_scope=
None,
174 serialized_options=
None, file=DESCRIPTOR),
175 _descriptor.FieldDescriptor(
176 name=
'columns', full_name=
'opencensus.proto.stats.v1.View.columns', index=3,
177 number=4, type=9, cpp_type=9, label=3,
178 has_default_value=
False, default_value=[],
179 message_type=
None, enum_type=
None, containing_type=
None,
180 is_extension=
False, extension_scope=
None,
181 serialized_options=
None, file=DESCRIPTOR),
182 _descriptor.FieldDescriptor(
183 name=
'count_aggregation', full_name=
'opencensus.proto.stats.v1.View.count_aggregation', index=4,
184 number=5, type=11, cpp_type=10, label=1,
185 has_default_value=
False, default_value=
None,
186 message_type=
None, enum_type=
None, containing_type=
None,
187 is_extension=
False, extension_scope=
None,
188 serialized_options=
None, file=DESCRIPTOR),
189 _descriptor.FieldDescriptor(
190 name=
'sum_aggregation', full_name=
'opencensus.proto.stats.v1.View.sum_aggregation', index=5,
191 number=6, type=11, cpp_type=10, label=1,
192 has_default_value=
False, default_value=
None,
193 message_type=
None, enum_type=
None, containing_type=
None,
194 is_extension=
False, extension_scope=
None,
195 serialized_options=
None, file=DESCRIPTOR),
196 _descriptor.FieldDescriptor(
197 name=
'last_value_aggregation', full_name=
'opencensus.proto.stats.v1.View.last_value_aggregation', index=6,
198 number=7, type=11, cpp_type=10, label=1,
199 has_default_value=
False, default_value=
None,
200 message_type=
None, enum_type=
None, containing_type=
None,
201 is_extension=
False, extension_scope=
None,
202 serialized_options=
None, file=DESCRIPTOR),
203 _descriptor.FieldDescriptor(
204 name=
'distribution_aggregation', full_name=
'opencensus.proto.stats.v1.View.distribution_aggregation', index=7,
205 number=8, type=11, cpp_type=10, label=1,
206 has_default_value=
False, default_value=
None,
207 message_type=
None, enum_type=
None, containing_type=
None,
208 is_extension=
False, extension_scope=
None,
209 serialized_options=
None, file=DESCRIPTOR),
216 serialized_options=
None,
221 _descriptor.OneofDescriptor(
222 name=
'aggregation', full_name=
'opencensus.proto.stats.v1.View.aggregation',
223 index=0, containing_type=
None, fields=[]),
225 serialized_start=306,
230 _COUNTAGGREGATION = _descriptor.Descriptor(
231 name=
'CountAggregation',
232 full_name=
'opencensus.proto.stats.v1.CountAggregation',
235 containing_type=
None,
243 serialized_options=
None,
249 serialized_start=749,
254 _SUMAGGREGATION = _descriptor.Descriptor(
255 name=
'SumAggregation',
256 full_name=
'opencensus.proto.stats.v1.SumAggregation',
259 containing_type=
None,
267 serialized_options=
None,
273 serialized_start=769,
278 _LASTVALUEAGGREGATION = _descriptor.Descriptor(
279 name=
'LastValueAggregation',
280 full_name=
'opencensus.proto.stats.v1.LastValueAggregation',
283 containing_type=
None,
291 serialized_options=
None,
297 serialized_start=787,
302 _DISTRIBUTIONAGGREGATION = _descriptor.Descriptor(
303 name=
'DistributionAggregation',
304 full_name=
'opencensus.proto.stats.v1.DistributionAggregation',
307 containing_type=
None,
309 _descriptor.FieldDescriptor(
310 name=
'bucket_bounds', full_name=
'opencensus.proto.stats.v1.DistributionAggregation.bucket_bounds', index=0,
311 number=1, type=1, cpp_type=5, label=3,
312 has_default_value=
False, default_value=[],
313 message_type=
None, enum_type=
None, containing_type=
None,
314 is_extension=
False, extension_scope=
None,
315 serialized_options=
None, file=DESCRIPTOR),
322 serialized_options=
None,
328 serialized_start=811,
333 _MEASUREMENT = _descriptor.Descriptor(
335 full_name=
'opencensus.proto.stats.v1.Measurement',
338 containing_type=
None,
340 _descriptor.FieldDescriptor(
341 name=
'tags', full_name=
'opencensus.proto.stats.v1.Measurement.tags', index=0,
342 number=1, type=11, cpp_type=10, label=3,
343 has_default_value=
False, default_value=[],
344 message_type=
None, enum_type=
None, containing_type=
None,
345 is_extension=
False, extension_scope=
None,
346 serialized_options=
None, file=DESCRIPTOR),
347 _descriptor.FieldDescriptor(
348 name=
'measure_name', full_name=
'opencensus.proto.stats.v1.Measurement.measure_name', index=1,
349 number=2, type=9, cpp_type=9, label=1,
350 has_default_value=
False, default_value=
_b(
"").
decode(
'utf-8'),
351 message_type=
None, enum_type=
None, containing_type=
None,
352 is_extension=
False, extension_scope=
None,
353 serialized_options=
None, file=DESCRIPTOR),
354 _descriptor.FieldDescriptor(
355 name=
'double_value', full_name=
'opencensus.proto.stats.v1.Measurement.double_value', index=2,
356 number=3, type=1, cpp_type=5, label=1,
357 has_default_value=
False, default_value=float(0),
358 message_type=
None, enum_type=
None, containing_type=
None,
359 is_extension=
False, extension_scope=
None,
360 serialized_options=
None, file=DESCRIPTOR),
361 _descriptor.FieldDescriptor(
362 name=
'int_value', full_name=
'opencensus.proto.stats.v1.Measurement.int_value', index=3,
363 number=4, type=3, cpp_type=2, label=1,
364 has_default_value=
False, default_value=0,
365 message_type=
None, enum_type=
None, containing_type=
None,
366 is_extension=
False, extension_scope=
None,
367 serialized_options=
None, file=DESCRIPTOR),
368 _descriptor.FieldDescriptor(
369 name=
'time', full_name=
'opencensus.proto.stats.v1.Measurement.time', index=4,
370 number=5, type=11, cpp_type=10, label=1,
371 has_default_value=
False, default_value=
None,
372 message_type=
None, enum_type=
None, containing_type=
None,
373 is_extension=
False, extension_scope=
None,
374 serialized_options=
None, file=DESCRIPTOR),
381 serialized_options=
None,
386 _descriptor.OneofDescriptor(
387 name=
'value', full_name=
'opencensus.proto.stats.v1.Measurement.value',
388 index=0, containing_type=
None, fields=[]),
390 serialized_start=862,
394 _MEASURE.fields_by_name[
'type'].enum_type = _MEASURE_TYPE
395 _MEASURE_TYPE.containing_type = _MEASURE
396 _VIEW.fields_by_name[
'measure'].message_type = _MEASURE
397 _VIEW.fields_by_name[
'count_aggregation'].message_type = _COUNTAGGREGATION
398 _VIEW.fields_by_name[
'sum_aggregation'].message_type = _SUMAGGREGATION
399 _VIEW.fields_by_name[
'last_value_aggregation'].message_type = _LASTVALUEAGGREGATION
400 _VIEW.fields_by_name[
'distribution_aggregation'].message_type = _DISTRIBUTIONAGGREGATION
401 _VIEW.oneofs_by_name[
'aggregation'].fields.append(
402 _VIEW.fields_by_name[
'count_aggregation'])
403 _VIEW.fields_by_name[
'count_aggregation'].containing_oneof = _VIEW.oneofs_by_name[
'aggregation']
404 _VIEW.oneofs_by_name[
'aggregation'].fields.append(
405 _VIEW.fields_by_name[
'sum_aggregation'])
406 _VIEW.fields_by_name[
'sum_aggregation'].containing_oneof = _VIEW.oneofs_by_name[
'aggregation']
407 _VIEW.oneofs_by_name[
'aggregation'].fields.append(
408 _VIEW.fields_by_name[
'last_value_aggregation'])
409 _VIEW.fields_by_name[
'last_value_aggregation'].containing_oneof = _VIEW.oneofs_by_name[
'aggregation']
410 _VIEW.oneofs_by_name[
'aggregation'].fields.append(
411 _VIEW.fields_by_name[
'distribution_aggregation'])
412 _VIEW.fields_by_name[
'distribution_aggregation'].containing_oneof = _VIEW.oneofs_by_name[
'aggregation']
413 _MEASUREMENT.fields_by_name[
'tags'].message_type = _TAG
414 _MEASUREMENT.fields_by_name[
'time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
415 _MEASUREMENT.oneofs_by_name[
'value'].fields.append(
416 _MEASUREMENT.fields_by_name[
'double_value'])
417 _MEASUREMENT.fields_by_name[
'double_value'].containing_oneof = _MEASUREMENT.oneofs_by_name[
'value']
418 _MEASUREMENT.oneofs_by_name[
'value'].fields.append(
419 _MEASUREMENT.fields_by_name[
'int_value'])
420 _MEASUREMENT.fields_by_name[
'int_value'].containing_oneof = _MEASUREMENT.oneofs_by_name[
'value']
421 DESCRIPTOR.message_types_by_name[
'Tag'] = _TAG
422 DESCRIPTOR.message_types_by_name[
'Measure'] = _MEASURE
423 DESCRIPTOR.message_types_by_name[
'View'] = _VIEW
424 DESCRIPTOR.message_types_by_name[
'CountAggregation'] = _COUNTAGGREGATION
425 DESCRIPTOR.message_types_by_name[
'SumAggregation'] = _SUMAGGREGATION
426 DESCRIPTOR.message_types_by_name[
'LastValueAggregation'] = _LASTVALUEAGGREGATION
427 DESCRIPTOR.message_types_by_name[
'DistributionAggregation'] = _DISTRIBUTIONAGGREGATION
428 DESCRIPTOR.message_types_by_name[
'Measurement'] = _MEASUREMENT
429 _sym_db.RegisterFileDescriptor(DESCRIPTOR)
431 Tag = _reflection.GeneratedProtocolMessageType(
'Tag', (_message.Message,), dict(
433 __module__ =
'opencensus.proto.stats.v1.stats_pb2'
436 _sym_db.RegisterMessage(Tag)
438 Measure = _reflection.GeneratedProtocolMessageType(
'Measure', (_message.Message,), dict(
439 DESCRIPTOR = _MEASURE,
440 __module__ =
'opencensus.proto.stats.v1.stats_pb2'
443 _sym_db.RegisterMessage(Measure)
445 View = _reflection.GeneratedProtocolMessageType(
'View', (_message.Message,), dict(
447 __module__ =
'opencensus.proto.stats.v1.stats_pb2'
450 _sym_db.RegisterMessage(View)
452 CountAggregation = _reflection.GeneratedProtocolMessageType(
'CountAggregation', (_message.Message,), dict(
453 DESCRIPTOR = _COUNTAGGREGATION,
454 __module__ =
'opencensus.proto.stats.v1.stats_pb2'
457 _sym_db.RegisterMessage(CountAggregation)
459 SumAggregation = _reflection.GeneratedProtocolMessageType(
'SumAggregation', (_message.Message,), dict(
460 DESCRIPTOR = _SUMAGGREGATION,
461 __module__ =
'opencensus.proto.stats.v1.stats_pb2'
464 _sym_db.RegisterMessage(SumAggregation)
466 LastValueAggregation = _reflection.GeneratedProtocolMessageType(
'LastValueAggregation', (_message.Message,), dict(
467 DESCRIPTOR = _LASTVALUEAGGREGATION,
468 __module__ =
'opencensus.proto.stats.v1.stats_pb2'
471 _sym_db.RegisterMessage(LastValueAggregation)
473 DistributionAggregation = _reflection.GeneratedProtocolMessageType(
'DistributionAggregation', (_message.Message,), dict(
474 DESCRIPTOR = _DISTRIBUTIONAGGREGATION,
475 __module__ =
'opencensus.proto.stats.v1.stats_pb2'
478 _sym_db.RegisterMessage(DistributionAggregation)
480 Measurement = _reflection.GeneratedProtocolMessageType(
'Measurement', (_message.Message,), dict(
481 DESCRIPTOR = _MEASUREMENT,
482 __module__ =
'opencensus.proto.stats.v1.stats_pb2'
485 _sym_db.RegisterMessage(Measurement)
488 DESCRIPTOR._options =
None