# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opencensus/proto/resource/v1/resource.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor.FileDescriptor( name='opencensus/proto/resource/v1/resource.proto', package='opencensus.proto.resource.v1', syntax='proto3', serialized_options=b'\n\037io.opencensus.proto.resource.v1B\rResourceProtoP\001ZEgithub.com/census-instrumentation/opencensus-proto/gen-go/resource/v1\352\002\037OpenCensus::Proto::Resource::V1', create_key=_descriptor._internal_create_key, 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\x9b\x01\n\x1fio.opencensus.proto.resource.v1B\rResourceProtoP\x01ZEgithub.com/census-instrumentation/opencensus-proto/gen-go/resource/v1\xea\x02\x1fOpenCensus::Proto::Resource::V1b\x06proto3' ) _RESOURCE_LABELSENTRY = _descriptor.Descriptor( name='LabelsEntry', full_name='opencensus.proto.resource.v1.Resource.LabelsEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='opencensus.proto.resource.v1.Resource.LabelsEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='opencensus.proto.resource.v1.Resource.LabelsEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=172, serialized_end=217, ) _RESOURCE = _descriptor.Descriptor( name='Resource', full_name='opencensus.proto.resource.v1.Resource', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='type', full_name='opencensus.proto.resource.v1.Resource.type', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='labels', full_name='opencensus.proto.resource.v1.Resource.labels', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_RESOURCE_LABELSENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=78, serialized_end=217, ) _RESOURCE_LABELSENTRY.containing_type = _RESOURCE _RESOURCE.fields_by_name['labels'].message_type = _RESOURCE_LABELSENTRY DESCRIPTOR.message_types_by_name['Resource'] = _RESOURCE _sym_db.RegisterFileDescriptor(DESCRIPTOR) Resource = _reflection.GeneratedProtocolMessageType('Resource', (_message.Message,), { 'LabelsEntry' : _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), { 'DESCRIPTOR' : _RESOURCE_LABELSENTRY, '__module__' : 'opencensus.proto.resource.v1.resource_pb2' # @@protoc_insertion_point(class_scope:opencensus.proto.resource.v1.Resource.LabelsEntry) }) , 'DESCRIPTOR' : _RESOURCE, '__module__' : 'opencensus.proto.resource.v1.resource_pb2' # @@protoc_insertion_point(class_scope:opencensus.proto.resource.v1.Resource) }) _sym_db.RegisterMessage(Resource) _sym_db.RegisterMessage(Resource.LabelsEntry) DESCRIPTOR._options = None _RESOURCE_LABELSENTRY._options = None # @@protoc_insertion_point(module_scope)