5 _b=sys.version_info[0]<3
and (
lambda x:x)
or (
lambda x:x.encode(
'latin1'))
12 _sym_db = _symbol_database.Default()
17 DESCRIPTOR = _descriptor.FileDescriptor(
18 name=
'opencensus/proto/resource/v1/resource.proto',
19 package=
'opencensus.proto.resource.v1',
21 serialized_options=
_b(
'\n\037io.opencensus.proto.resource.v1B\rResourceProtoP\001ZEgithub.com/census-instrumentation/opencensus-proto/gen-go/resource/v1\352\002\034OpenCensus.Proto.Resource.V1'),
22 serialized_pb=
_b(
'\n+opencensus/proto/resource/v1/resource.proto\x12\x1copencensus.proto.resource.v1\"\x8b\x01\n\x08Resource\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x42\n\x06labels\x18\x02 \x03(\x0b\x32\x32.opencensus.proto.resource.v1.Resource.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x98\x01\n\x1fio.opencensus.proto.resource.v1B\rResourceProtoP\x01ZEgithub.com/census-instrumentation/opencensus-proto/gen-go/resource/v1\xea\x02\x1cOpenCensus.Proto.Resource.V1b\x06proto3')
28 _RESOURCE_LABELSENTRY = _descriptor.Descriptor(
30 full_name=
'opencensus.proto.resource.v1.Resource.LabelsEntry',
35 _descriptor.FieldDescriptor(
36 name=
'key', full_name=
'opencensus.proto.resource.v1.Resource.LabelsEntry.key', index=0,
37 number=1, type=9, cpp_type=9, label=1,
38 has_default_value=
False, default_value=
_b(
"").
decode(
'utf-8'),
39 message_type=
None, enum_type=
None, containing_type=
None,
40 is_extension=
False, extension_scope=
None,
41 serialized_options=
None, file=DESCRIPTOR),
42 _descriptor.FieldDescriptor(
43 name=
'value', full_name=
'opencensus.proto.resource.v1.Resource.LabelsEntry.value', index=1,
44 number=2, type=9, cpp_type=9, label=1,
45 has_default_value=
False, default_value=
_b(
"").
decode(
'utf-8'),
46 message_type=
None, enum_type=
None, containing_type=
None,
47 is_extension=
False, extension_scope=
None,
48 serialized_options=
None, file=DESCRIPTOR),
55 serialized_options=
_b(
'8\001'),
65 _RESOURCE = _descriptor.Descriptor(
67 full_name=
'opencensus.proto.resource.v1.Resource',
72 _descriptor.FieldDescriptor(
73 name=
'type', full_name=
'opencensus.proto.resource.v1.Resource.type', index=0,
74 number=1, type=9, cpp_type=9, label=1,
75 has_default_value=
False, default_value=
_b(
"").
decode(
'utf-8'),
76 message_type=
None, enum_type=
None, containing_type=
None,
77 is_extension=
False, extension_scope=
None,
78 serialized_options=
None, file=DESCRIPTOR),
79 _descriptor.FieldDescriptor(
80 name=
'labels', full_name=
'opencensus.proto.resource.v1.Resource.labels', index=1,
81 number=2, type=11, cpp_type=10, label=3,
82 has_default_value=
False, default_value=[],
83 message_type=
None, enum_type=
None, containing_type=
None,
84 is_extension=
False, extension_scope=
None,
85 serialized_options=
None, file=DESCRIPTOR),
89 nested_types=[_RESOURCE_LABELSENTRY, ],
92 serialized_options=
None,
102 _RESOURCE_LABELSENTRY.containing_type = _RESOURCE
103 _RESOURCE.fields_by_name[
'labels'].message_type = _RESOURCE_LABELSENTRY
104 DESCRIPTOR.message_types_by_name[
'Resource'] = _RESOURCE
105 _sym_db.RegisterFileDescriptor(DESCRIPTOR)
107 Resource = _reflection.GeneratedProtocolMessageType(
'Resource', (_message.Message,), dict(
109 LabelsEntry = _reflection.GeneratedProtocolMessageType(
'LabelsEntry', (_message.Message,), dict(
110 DESCRIPTOR = _RESOURCE_LABELSENTRY,
111 __module__ =
'opencensus.proto.resource.v1.resource_pb2'
115 DESCRIPTOR = _RESOURCE,
116 __module__ =
'opencensus.proto.resource.v1.resource_pb2'
119 _sym_db.RegisterMessage(Resource)
120 _sym_db.RegisterMessage(Resource.LabelsEntry)
123 DESCRIPTOR._options =
None
124 _RESOURCE_LABELSENTRY._options =
None