trace_config_pb2.py
Go to the documentation of this file.
1 # Generated by the protocol buffer compiler. DO NOT EDIT!
2 # source: opencensus/proto/trace/v1/trace_config.proto
3 
4 import sys
5 _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
6 from google.protobuf import descriptor as _descriptor
7 from google.protobuf import message as _message
8 from google.protobuf import reflection as _reflection
9 from google.protobuf import symbol_database as _symbol_database
10 # @@protoc_insertion_point(imports)
11 
12 _sym_db = _symbol_database.Default()
13 
14 
15 
16 
17 DESCRIPTOR = _descriptor.FileDescriptor(
18  name='opencensus/proto/trace/v1/trace_config.proto',
19  package='opencensus.proto.trace.v1',
20  syntax='proto3',
21  serialized_options=_b('\n\034io.opencensus.proto.trace.v1B\020TraceConfigProtoP\001ZBgithub.com/census-instrumentation/opencensus-proto/gen-go/trace/v1\352\002\031OpenCensus.Proto.Trace.V1'),
22  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\x92\x01\n\x1cio.opencensus.proto.trace.v1B\x10TraceConfigProtoP\x01ZBgithub.com/census-instrumentation/opencensus-proto/gen-go/trace/v1\xea\x02\x19OpenCensus.Proto.Trace.V1b\x06proto3')
23 )
24 
25 
26 
27 _CONSTANTSAMPLER_CONSTANTDECISION = _descriptor.EnumDescriptor(
28  name='ConstantDecision',
29  full_name='opencensus.proto.trace.v1.ConstantSampler.ConstantDecision',
30  filename=None,
31  file=DESCRIPTOR,
32  values=[
33  _descriptor.EnumValueDescriptor(
34  name='ALWAYS_OFF', index=0, number=0,
35  serialized_options=None,
36  type=None),
37  _descriptor.EnumValueDescriptor(
38  name='ALWAYS_ON', index=1, number=1,
39  serialized_options=None,
40  type=None),
41  _descriptor.EnumValueDescriptor(
42  name='ALWAYS_PARENT', index=2, number=2,
43  serialized_options=None,
44  type=None),
45  ],
46  containing_type=None,
47  serialized_options=None,
48  serialized_start=619,
49  serialized_end=687,
50 )
51 _sym_db.RegisterEnumDescriptor(_CONSTANTSAMPLER_CONSTANTDECISION)
52 
53 
54 _TRACECONFIG = _descriptor.Descriptor(
55  name='TraceConfig',
56  full_name='opencensus.proto.trace.v1.TraceConfig',
57  filename=None,
58  file=DESCRIPTOR,
59  containing_type=None,
60  fields=[
61  _descriptor.FieldDescriptor(
62  name='probability_sampler', full_name='opencensus.proto.trace.v1.TraceConfig.probability_sampler', index=0,
63  number=1, type=11, cpp_type=10, label=1,
64  has_default_value=False, default_value=None,
65  message_type=None, enum_type=None, containing_type=None,
66  is_extension=False, extension_scope=None,
67  serialized_options=None, file=DESCRIPTOR),
68  _descriptor.FieldDescriptor(
69  name='constant_sampler', full_name='opencensus.proto.trace.v1.TraceConfig.constant_sampler', index=1,
70  number=2, type=11, cpp_type=10, label=1,
71  has_default_value=False, default_value=None,
72  message_type=None, enum_type=None, containing_type=None,
73  is_extension=False, extension_scope=None,
74  serialized_options=None, file=DESCRIPTOR),
75  _descriptor.FieldDescriptor(
76  name='rate_limiting_sampler', full_name='opencensus.proto.trace.v1.TraceConfig.rate_limiting_sampler', index=2,
77  number=3, type=11, cpp_type=10, label=1,
78  has_default_value=False, default_value=None,
79  message_type=None, enum_type=None, containing_type=None,
80  is_extension=False, extension_scope=None,
81  serialized_options=None, file=DESCRIPTOR),
82  _descriptor.FieldDescriptor(
83  name='max_number_of_attributes', full_name='opencensus.proto.trace.v1.TraceConfig.max_number_of_attributes', index=3,
84  number=4, type=3, cpp_type=2, label=1,
85  has_default_value=False, default_value=0,
86  message_type=None, enum_type=None, containing_type=None,
87  is_extension=False, extension_scope=None,
88  serialized_options=None, file=DESCRIPTOR),
89  _descriptor.FieldDescriptor(
90  name='max_number_of_annotations', full_name='opencensus.proto.trace.v1.TraceConfig.max_number_of_annotations', index=4,
91  number=5, type=3, cpp_type=2, label=1,
92  has_default_value=False, default_value=0,
93  message_type=None, enum_type=None, containing_type=None,
94  is_extension=False, extension_scope=None,
95  serialized_options=None, file=DESCRIPTOR),
96  _descriptor.FieldDescriptor(
97  name='max_number_of_message_events', full_name='opencensus.proto.trace.v1.TraceConfig.max_number_of_message_events', index=5,
98  number=6, type=3, cpp_type=2, label=1,
99  has_default_value=False, default_value=0,
100  message_type=None, enum_type=None, containing_type=None,
101  is_extension=False, extension_scope=None,
102  serialized_options=None, file=DESCRIPTOR),
103  _descriptor.FieldDescriptor(
104  name='max_number_of_links', full_name='opencensus.proto.trace.v1.TraceConfig.max_number_of_links', index=6,
105  number=7, type=3, cpp_type=2, label=1,
106  has_default_value=False, default_value=0,
107  message_type=None, enum_type=None, containing_type=None,
108  is_extension=False, extension_scope=None,
109  serialized_options=None, file=DESCRIPTOR),
110  ],
111  extensions=[
112  ],
113  nested_types=[],
114  enum_types=[
115  ],
116  serialized_options=None,
117  is_extendable=False,
118  syntax='proto3',
119  extension_ranges=[],
120  oneofs=[
121  _descriptor.OneofDescriptor(
122  name='sampler', full_name='opencensus.proto.trace.v1.TraceConfig.sampler',
123  index=0, containing_type=None, fields=[]),
124  ],
125  serialized_start=76,
126  serialized_end=467,
127 )
128 
129 
130 _PROBABILITYSAMPLER = _descriptor.Descriptor(
131  name='ProbabilitySampler',
132  full_name='opencensus.proto.trace.v1.ProbabilitySampler',
133  filename=None,
134  file=DESCRIPTOR,
135  containing_type=None,
136  fields=[
137  _descriptor.FieldDescriptor(
138  name='samplingProbability', full_name='opencensus.proto.trace.v1.ProbabilitySampler.samplingProbability', index=0,
139  number=1, type=1, cpp_type=5, label=1,
140  has_default_value=False, default_value=float(0),
141  message_type=None, enum_type=None, containing_type=None,
142  is_extension=False, extension_scope=None,
143  serialized_options=None, file=DESCRIPTOR),
144  ],
145  extensions=[
146  ],
147  nested_types=[],
148  enum_types=[
149  ],
150  serialized_options=None,
151  is_extendable=False,
152  syntax='proto3',
153  extension_ranges=[],
154  oneofs=[
155  ],
156  serialized_start=469,
157  serialized_end=518,
158 )
159 
160 
161 _CONSTANTSAMPLER = _descriptor.Descriptor(
162  name='ConstantSampler',
163  full_name='opencensus.proto.trace.v1.ConstantSampler',
164  filename=None,
165  file=DESCRIPTOR,
166  containing_type=None,
167  fields=[
168  _descriptor.FieldDescriptor(
169  name='decision', full_name='opencensus.proto.trace.v1.ConstantSampler.decision', index=0,
170  number=1, type=14, cpp_type=8, label=1,
171  has_default_value=False, default_value=0,
172  message_type=None, enum_type=None, containing_type=None,
173  is_extension=False, extension_scope=None,
174  serialized_options=None, file=DESCRIPTOR),
175  ],
176  extensions=[
177  ],
178  nested_types=[],
179  enum_types=[
180  _CONSTANTSAMPLER_CONSTANTDECISION,
181  ],
182  serialized_options=None,
183  is_extendable=False,
184  syntax='proto3',
185  extension_ranges=[],
186  oneofs=[
187  ],
188  serialized_start=521,
189  serialized_end=687,
190 )
191 
192 
193 _RATELIMITINGSAMPLER = _descriptor.Descriptor(
194  name='RateLimitingSampler',
195  full_name='opencensus.proto.trace.v1.RateLimitingSampler',
196  filename=None,
197  file=DESCRIPTOR,
198  containing_type=None,
199  fields=[
200  _descriptor.FieldDescriptor(
201  name='qps', full_name='opencensus.proto.trace.v1.RateLimitingSampler.qps', index=0,
202  number=1, type=3, cpp_type=2, label=1,
203  has_default_value=False, default_value=0,
204  message_type=None, enum_type=None, containing_type=None,
205  is_extension=False, extension_scope=None,
206  serialized_options=None, file=DESCRIPTOR),
207  ],
208  extensions=[
209  ],
210  nested_types=[],
211  enum_types=[
212  ],
213  serialized_options=None,
214  is_extendable=False,
215  syntax='proto3',
216  extension_ranges=[],
217  oneofs=[
218  ],
219  serialized_start=689,
220  serialized_end=723,
221 )
222 
223 _TRACECONFIG.fields_by_name['probability_sampler'].message_type = _PROBABILITYSAMPLER
224 _TRACECONFIG.fields_by_name['constant_sampler'].message_type = _CONSTANTSAMPLER
225 _TRACECONFIG.fields_by_name['rate_limiting_sampler'].message_type = _RATELIMITINGSAMPLER
226 _TRACECONFIG.oneofs_by_name['sampler'].fields.append(
227  _TRACECONFIG.fields_by_name['probability_sampler'])
228 _TRACECONFIG.fields_by_name['probability_sampler'].containing_oneof = _TRACECONFIG.oneofs_by_name['sampler']
229 _TRACECONFIG.oneofs_by_name['sampler'].fields.append(
230  _TRACECONFIG.fields_by_name['constant_sampler'])
231 _TRACECONFIG.fields_by_name['constant_sampler'].containing_oneof = _TRACECONFIG.oneofs_by_name['sampler']
232 _TRACECONFIG.oneofs_by_name['sampler'].fields.append(
233  _TRACECONFIG.fields_by_name['rate_limiting_sampler'])
234 _TRACECONFIG.fields_by_name['rate_limiting_sampler'].containing_oneof = _TRACECONFIG.oneofs_by_name['sampler']
235 _CONSTANTSAMPLER.fields_by_name['decision'].enum_type = _CONSTANTSAMPLER_CONSTANTDECISION
236 _CONSTANTSAMPLER_CONSTANTDECISION.containing_type = _CONSTANTSAMPLER
237 DESCRIPTOR.message_types_by_name['TraceConfig'] = _TRACECONFIG
238 DESCRIPTOR.message_types_by_name['ProbabilitySampler'] = _PROBABILITYSAMPLER
239 DESCRIPTOR.message_types_by_name['ConstantSampler'] = _CONSTANTSAMPLER
240 DESCRIPTOR.message_types_by_name['RateLimitingSampler'] = _RATELIMITINGSAMPLER
241 _sym_db.RegisterFileDescriptor(DESCRIPTOR)
242 
243 TraceConfig = _reflection.GeneratedProtocolMessageType('TraceConfig', (_message.Message,), dict(
244  DESCRIPTOR = _TRACECONFIG,
245  __module__ = 'opencensus.proto.trace.v1.trace_config_pb2'
246  # @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.TraceConfig)
247  ))
248 _sym_db.RegisterMessage(TraceConfig)
249 
250 ProbabilitySampler = _reflection.GeneratedProtocolMessageType('ProbabilitySampler', (_message.Message,), dict(
251  DESCRIPTOR = _PROBABILITYSAMPLER,
252  __module__ = 'opencensus.proto.trace.v1.trace_config_pb2'
253  # @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.ProbabilitySampler)
254  ))
255 _sym_db.RegisterMessage(ProbabilitySampler)
256 
257 ConstantSampler = _reflection.GeneratedProtocolMessageType('ConstantSampler', (_message.Message,), dict(
258  DESCRIPTOR = _CONSTANTSAMPLER,
259  __module__ = 'opencensus.proto.trace.v1.trace_config_pb2'
260  # @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.ConstantSampler)
261  ))
262 _sym_db.RegisterMessage(ConstantSampler)
263 
264 RateLimitingSampler = _reflection.GeneratedProtocolMessageType('RateLimitingSampler', (_message.Message,), dict(
265  DESCRIPTOR = _RATELIMITINGSAMPLER,
266  __module__ = 'opencensus.proto.trace.v1.trace_config_pb2'
267  # @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.RateLimitingSampler)
268  ))
269 _sym_db.RegisterMessage(RateLimitingSampler)
270 
271 
272 DESCRIPTOR._options = None
273 # @@protoc_insertion_point(module_scope)
google::protobuf
Definition: bloaty/third_party/protobuf/benchmarks/util/data_proto2_to_proto3_util.h:12
opencensus.proto.trace.v1.trace_config_pb2._b
int _b
Definition: trace_config_pb2.py:5


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:40