# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opencensus/proto/trace/v1/trace_config.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/trace/v1/trace_config.proto', package='opencensus.proto.trace.v1', syntax='proto3', serialized_options=b'\n\034io.opencensus.proto.trace.v1B\020TraceConfigProtoP\001ZBgithub.com/census-instrumentation/opencensus-proto/gen-go/trace/v1\352\002\034OpenCensus::Proto::Trace::V1', create_key=_descriptor._internal_create_key, serialized_pb=b'\n,opencensus/proto/trace/v1/trace_config.proto\x12\x19opencensus.proto.trace.v1\"\x87\x03\n\x0bTraceConfig\x12L\n\x13probability_sampler\x18\x01 \x01(\x0b\x32-.opencensus.proto.trace.v1.ProbabilitySamplerH\x00\x12\x46\n\x10\x63onstant_sampler\x18\x02 \x01(\x0b\x32*.opencensus.proto.trace.v1.ConstantSamplerH\x00\x12O\n\x15rate_limiting_sampler\x18\x03 \x01(\x0b\x32..opencensus.proto.trace.v1.RateLimitingSamplerH\x00\x12 \n\x18max_number_of_attributes\x18\x04 \x01(\x03\x12!\n\x19max_number_of_annotations\x18\x05 \x01(\x03\x12$\n\x1cmax_number_of_message_events\x18\x06 \x01(\x03\x12\x1b\n\x13max_number_of_links\x18\x07 \x01(\x03\x42\t\n\x07sampler\"1\n\x12ProbabilitySampler\x12\x1b\n\x13samplingProbability\x18\x01 \x01(\x01\"\xa6\x01\n\x0f\x43onstantSampler\x12M\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32;.opencensus.proto.trace.v1.ConstantSampler.ConstantDecision\"D\n\x10\x43onstantDecision\x12\x0e\n\nALWAYS_OFF\x10\x00\x12\r\n\tALWAYS_ON\x10\x01\x12\x11\n\rALWAYS_PARENT\x10\x02\"\"\n\x13RateLimitingSampler\x12\x0b\n\x03qps\x18\x01 \x01(\x03\x42\x95\x01\n\x1cio.opencensus.proto.trace.v1B\x10TraceConfigProtoP\x01ZBgithub.com/census-instrumentation/opencensus-proto/gen-go/trace/v1\xea\x02\x1cOpenCensus::Proto::Trace::V1b\x06proto3' ) _CONSTANTSAMPLER_CONSTANTDECISION = _descriptor.EnumDescriptor( name='ConstantDecision', full_name='opencensus.proto.trace.v1.ConstantSampler.ConstantDecision', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='ALWAYS_OFF', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='ALWAYS_ON', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='ALWAYS_PARENT', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=619, serialized_end=687, ) _sym_db.RegisterEnumDescriptor(_CONSTANTSAMPLER_CONSTANTDECISION) _TRACECONFIG = _descriptor.Descriptor( name='TraceConfig', full_name='opencensus.proto.trace.v1.TraceConfig', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='probability_sampler', full_name='opencensus.proto.trace.v1.TraceConfig.probability_sampler', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, 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='constant_sampler', full_name='opencensus.proto.trace.v1.TraceConfig.constant_sampler', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, 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='rate_limiting_sampler', full_name='opencensus.proto.trace.v1.TraceConfig.rate_limiting_sampler', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, 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='max_number_of_attributes', full_name='opencensus.proto.trace.v1.TraceConfig.max_number_of_attributes', index=3, number=4, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, 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='max_number_of_annotations', full_name='opencensus.proto.trace.v1.TraceConfig.max_number_of_annotations', index=4, number=5, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, 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='max_number_of_message_events', full_name='opencensus.proto.trace.v1.TraceConfig.max_number_of_message_events', index=5, number=6, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, 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='max_number_of_links', full_name='opencensus.proto.trace.v1.TraceConfig.max_number_of_links', index=6, number=7, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, 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=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='sampler', full_name='opencensus.proto.trace.v1.TraceConfig.sampler', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=76, serialized_end=467, ) _PROBABILITYSAMPLER = _descriptor.Descriptor( name='ProbabilitySampler', full_name='opencensus.proto.trace.v1.ProbabilitySampler', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='samplingProbability', full_name='opencensus.proto.trace.v1.ProbabilitySampler.samplingProbability', index=0, number=1, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), 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=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=469, serialized_end=518, ) _CONSTANTSAMPLER = _descriptor.Descriptor( name='ConstantSampler', full_name='opencensus.proto.trace.v1.ConstantSampler', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='decision', full_name='opencensus.proto.trace.v1.ConstantSampler.decision', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, 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=[ _CONSTANTSAMPLER_CONSTANTDECISION, ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=521, serialized_end=687, ) _RATELIMITINGSAMPLER = _descriptor.Descriptor( name='RateLimitingSampler', full_name='opencensus.proto.trace.v1.RateLimitingSampler', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='qps', full_name='opencensus.proto.trace.v1.RateLimitingSampler.qps', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, 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=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=689, serialized_end=723, ) _TRACECONFIG.fields_by_name['probability_sampler'].message_type = _PROBABILITYSAMPLER _TRACECONFIG.fields_by_name['constant_sampler'].message_type = _CONSTANTSAMPLER _TRACECONFIG.fields_by_name['rate_limiting_sampler'].message_type = _RATELIMITINGSAMPLER _TRACECONFIG.oneofs_by_name['sampler'].fields.append( _TRACECONFIG.fields_by_name['probability_sampler']) _TRACECONFIG.fields_by_name['probability_sampler'].containing_oneof = _TRACECONFIG.oneofs_by_name['sampler'] _TRACECONFIG.oneofs_by_name['sampler'].fields.append( _TRACECONFIG.fields_by_name['constant_sampler']) _TRACECONFIG.fields_by_name['constant_sampler'].containing_oneof = _TRACECONFIG.oneofs_by_name['sampler'] _TRACECONFIG.oneofs_by_name['sampler'].fields.append( _TRACECONFIG.fields_by_name['rate_limiting_sampler']) _TRACECONFIG.fields_by_name['rate_limiting_sampler'].containing_oneof = _TRACECONFIG.oneofs_by_name['sampler'] _CONSTANTSAMPLER.fields_by_name['decision'].enum_type = _CONSTANTSAMPLER_CONSTANTDECISION _CONSTANTSAMPLER_CONSTANTDECISION.containing_type = _CONSTANTSAMPLER DESCRIPTOR.message_types_by_name['TraceConfig'] = _TRACECONFIG DESCRIPTOR.message_types_by_name['ProbabilitySampler'] = _PROBABILITYSAMPLER DESCRIPTOR.message_types_by_name['ConstantSampler'] = _CONSTANTSAMPLER DESCRIPTOR.message_types_by_name['RateLimitingSampler'] = _RATELIMITINGSAMPLER _sym_db.RegisterFileDescriptor(DESCRIPTOR) TraceConfig = _reflection.GeneratedProtocolMessageType('TraceConfig', (_message.Message,), { 'DESCRIPTOR' : _TRACECONFIG, '__module__' : 'opencensus.proto.trace.v1.trace_config_pb2' # @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.TraceConfig) }) _sym_db.RegisterMessage(TraceConfig) ProbabilitySampler = _reflection.GeneratedProtocolMessageType('ProbabilitySampler', (_message.Message,), { 'DESCRIPTOR' : _PROBABILITYSAMPLER, '__module__' : 'opencensus.proto.trace.v1.trace_config_pb2' # @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.ProbabilitySampler) }) _sym_db.RegisterMessage(ProbabilitySampler) ConstantSampler = _reflection.GeneratedProtocolMessageType('ConstantSampler', (_message.Message,), { 'DESCRIPTOR' : _CONSTANTSAMPLER, '__module__' : 'opencensus.proto.trace.v1.trace_config_pb2' # @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.ConstantSampler) }) _sym_db.RegisterMessage(ConstantSampler) RateLimitingSampler = _reflection.GeneratedProtocolMessageType('RateLimitingSampler', (_message.Message,), { 'DESCRIPTOR' : _RATELIMITINGSAMPLER, '__module__' : 'opencensus.proto.trace.v1.trace_config_pb2' # @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.RateLimitingSampler) }) _sym_db.RegisterMessage(RateLimitingSampler) DESCRIPTOR._options = None # @@protoc_insertion_point(module_scope)