diff --git a/packages/google-cloud-trace/google/cloud/trace_v1/proto/trace_pb2.py b/packages/google-cloud-trace/google/cloud/trace_v1/proto/trace_pb2.py index c200c051a32a..6b1ab8237b1a 100644 --- a/packages/google-cloud-trace/google/cloud/trace_v1/proto/trace_pb2.py +++ b/packages/google-cloud-trace/google/cloud/trace_v1/proto/trace_pb2.py @@ -3,12 +3,14 @@ # source: google/devtools/cloudtrace_v1/proto/trace.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) 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 from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,481 +22,760 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/devtools/cloudtrace_v1/proto/trace.proto', - package='google.devtools.cloudtrace.v1', - syntax='proto3', - serialized_pb=_b('\n/google/devtools/cloudtrace_v1/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"f\n\x05Trace\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08trace_id\x18\x02 \x01(\t\x12\x37\n\x05spans\x18\x03 \x03(\x0b\x32(.google.devtools.cloudtrace.v1.TraceSpan\">\n\x06Traces\x12\x34\n\x06traces\x18\x01 \x03(\x0b\x32$.google.devtools.cloudtrace.v1.Trace\"\x9d\x03\n\tTraceSpan\x12\x0f\n\x07span_id\x18\x01 \x01(\x06\x12?\n\x04kind\x18\x02 \x01(\x0e\x32\x31.google.devtools.cloudtrace.v1.TraceSpan.SpanKind\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eparent_span_id\x18\x06 \x01(\x06\x12\x44\n\x06labels\x18\x07 \x03(\x0b\x32\x34.google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"E\n\x08SpanKind\x12\x19\n\x15SPAN_KIND_UNSPECIFIED\x10\x00\x12\x0e\n\nRPC_SERVER\x10\x01\x12\x0e\n\nRPC_CLIENT\x10\x02\"\xe7\x02\n\x11ListTracesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12G\n\x04view\x18\x02 \x01(\x0e\x32\x39.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x66ilter\x18\x07 \x01(\t\x12\x10\n\x08order_by\x18\x08 \x01(\t\"N\n\x08ViewType\x12\x19\n\x15VIEW_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07MINIMAL\x10\x01\x12\x0c\n\x08ROOTSPAN\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03\"c\n\x12ListTracesResponse\x12\x34\n\x06traces\x18\x01 \x03(\x0b\x32$.google.devtools.cloudtrace.v1.Trace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"7\n\x0fGetTraceRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08trace_id\x18\x02 \x01(\t\"_\n\x12PatchTracesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x35\n\x06traces\x18\x02 \x01(\x0b\x32%.google.devtools.cloudtrace.v1.Traces2\xd1\x03\n\x0cTraceService\x12\x9b\x01\n\nListTraces\x12\x30.google.devtools.cloudtrace.v1.ListTracesRequest\x1a\x31.google.devtools.cloudtrace.v1.ListTracesResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /v1/projects/{project_id}/traces\x12\x95\x01\n\x08GetTrace\x12..google.devtools.cloudtrace.v1.GetTraceRequest\x1a$.google.devtools.cloudtrace.v1.Trace\"3\x82\xd3\xe4\x93\x02-\x12+/v1/projects/{project_id}/traces/{trace_id}\x12\x8a\x01\n\x0bPatchTraces\x12\x31.google.devtools.cloudtrace.v1.PatchTracesRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\x02*2 /v1/projects/{project_id}/traces:\x06tracesB\xaa\x01\n!com.google.devtools.cloudtrace.v1B\nTraceProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v1;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V1\xca\x02\x15Google\\Cloud\\Trace\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/devtools/cloudtrace_v1/proto/trace.proto", + package="google.devtools.cloudtrace.v1", + syntax="proto3", + serialized_pb=_b( + '\n/google/devtools/cloudtrace_v1/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"f\n\x05Trace\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08trace_id\x18\x02 \x01(\t\x12\x37\n\x05spans\x18\x03 \x03(\x0b\x32(.google.devtools.cloudtrace.v1.TraceSpan">\n\x06Traces\x12\x34\n\x06traces\x18\x01 \x03(\x0b\x32$.google.devtools.cloudtrace.v1.Trace"\x9d\x03\n\tTraceSpan\x12\x0f\n\x07span_id\x18\x01 \x01(\x06\x12?\n\x04kind\x18\x02 \x01(\x0e\x32\x31.google.devtools.cloudtrace.v1.TraceSpan.SpanKind\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eparent_span_id\x18\x06 \x01(\x06\x12\x44\n\x06labels\x18\x07 \x03(\x0b\x32\x34.google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"E\n\x08SpanKind\x12\x19\n\x15SPAN_KIND_UNSPECIFIED\x10\x00\x12\x0e\n\nRPC_SERVER\x10\x01\x12\x0e\n\nRPC_CLIENT\x10\x02"\xe7\x02\n\x11ListTracesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12G\n\x04view\x18\x02 \x01(\x0e\x32\x39.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x66ilter\x18\x07 \x01(\t\x12\x10\n\x08order_by\x18\x08 \x01(\t"N\n\x08ViewType\x12\x19\n\x15VIEW_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07MINIMAL\x10\x01\x12\x0c\n\x08ROOTSPAN\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03"c\n\x12ListTracesResponse\x12\x34\n\x06traces\x18\x01 \x03(\x0b\x32$.google.devtools.cloudtrace.v1.Trace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"7\n\x0fGetTraceRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08trace_id\x18\x02 \x01(\t"_\n\x12PatchTracesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x35\n\x06traces\x18\x02 \x01(\x0b\x32%.google.devtools.cloudtrace.v1.Traces2\xd1\x03\n\x0cTraceService\x12\x9b\x01\n\nListTraces\x12\x30.google.devtools.cloudtrace.v1.ListTracesRequest\x1a\x31.google.devtools.cloudtrace.v1.ListTracesResponse"(\x82\xd3\xe4\x93\x02"\x12 /v1/projects/{project_id}/traces\x12\x95\x01\n\x08GetTrace\x12..google.devtools.cloudtrace.v1.GetTraceRequest\x1a$.google.devtools.cloudtrace.v1.Trace"3\x82\xd3\xe4\x93\x02-\x12+/v1/projects/{project_id}/traces/{trace_id}\x12\x8a\x01\n\x0bPatchTraces\x12\x31.google.devtools.cloudtrace.v1.PatchTracesRequest\x1a\x16.google.protobuf.Empty"0\x82\xd3\xe4\x93\x02*2 /v1/projects/{project_id}/traces:\x06tracesB\xaa\x01\n!com.google.devtools.cloudtrace.v1B\nTraceProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v1;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V1\xca\x02\x15Google\\Cloud\\Trace\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _TRACESPAN_SPANKIND = _descriptor.EnumDescriptor( - name='SpanKind', - full_name='google.devtools.cloudtrace.v1.TraceSpan.SpanKind', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='SPAN_KIND_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RPC_SERVER', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RPC_CLIENT', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=687, - serialized_end=756, + name="SpanKind", + full_name="google.devtools.cloudtrace.v1.TraceSpan.SpanKind", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="SPAN_KIND_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RPC_SERVER", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RPC_CLIENT", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=687, + serialized_end=756, ) _sym_db.RegisterEnumDescriptor(_TRACESPAN_SPANKIND) _LISTTRACESREQUEST_VIEWTYPE = _descriptor.EnumDescriptor( - name='ViewType', - full_name='google.devtools.cloudtrace.v1.ListTracesRequest.ViewType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='VIEW_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MINIMAL', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ROOTSPAN', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPLETE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1040, - serialized_end=1118, + name="ViewType", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.ViewType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="VIEW_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MINIMAL", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ROOTSPAN", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPLETE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1040, + serialized_end=1118, ) _sym_db.RegisterEnumDescriptor(_LISTTRACESREQUEST_VIEWTYPE) _TRACE = _descriptor.Descriptor( - name='Trace', - full_name='google.devtools.cloudtrace.v1.Trace', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.devtools.cloudtrace.v1.Trace.project_id', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='trace_id', full_name='google.devtools.cloudtrace.v1.Trace.trace_id', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spans', full_name='google.devtools.cloudtrace.v1.Trace.spans', index=2, - number=3, 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=174, - serialized_end=276, + name="Trace", + full_name="google.devtools.cloudtrace.v1.Trace", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.devtools.cloudtrace.v1.Trace.project_id", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="trace_id", + full_name="google.devtools.cloudtrace.v1.Trace.trace_id", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spans", + full_name="google.devtools.cloudtrace.v1.Trace.spans", + index=2, + number=3, + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=174, + serialized_end=276, ) _TRACES = _descriptor.Descriptor( - name='Traces', - full_name='google.devtools.cloudtrace.v1.Traces', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='traces', full_name='google.devtools.cloudtrace.v1.Traces.traces', index=0, - number=1, 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=278, - serialized_end=340, + name="Traces", + full_name="google.devtools.cloudtrace.v1.Traces", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="traces", + full_name="google.devtools.cloudtrace.v1.Traces.traces", + index=0, + number=1, + 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, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=278, + serialized_end=340, ) _TRACESPAN_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.devtools.cloudtrace.v1.TraceSpan.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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.devtools.cloudtrace.v1.TraceSpan.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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=640, - serialized_end=685, + name="LabelsEntry", + full_name="google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.devtools.cloudtrace.v1.TraceSpan.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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.devtools.cloudtrace.v1.TraceSpan.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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=640, + serialized_end=685, ) _TRACESPAN = _descriptor.Descriptor( - name='TraceSpan', - full_name='google.devtools.cloudtrace.v1.TraceSpan', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='span_id', full_name='google.devtools.cloudtrace.v1.TraceSpan.span_id', index=0, - number=1, type=6, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='kind', full_name='google.devtools.cloudtrace.v1.TraceSpan.kind', index=1, - number=2, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.devtools.cloudtrace.v1.TraceSpan.name', index=2, - number=3, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.devtools.cloudtrace.v1.TraceSpan.start_time', index=3, - number=4, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.devtools.cloudtrace.v1.TraceSpan.end_time', index=4, - number=5, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_span_id', full_name='google.devtools.cloudtrace.v1.TraceSpan.parent_span_id', index=5, - number=6, type=6, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.devtools.cloudtrace.v1.TraceSpan.labels', index=6, - number=7, 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TRACESPAN_LABELSENTRY, ], - enum_types=[ - _TRACESPAN_SPANKIND, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=343, - serialized_end=756, + name="TraceSpan", + full_name="google.devtools.cloudtrace.v1.TraceSpan", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="span_id", + full_name="google.devtools.cloudtrace.v1.TraceSpan.span_id", + index=0, + number=1, + type=6, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="kind", + full_name="google.devtools.cloudtrace.v1.TraceSpan.kind", + index=1, + number=2, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.devtools.cloudtrace.v1.TraceSpan.name", + index=2, + number=3, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.devtools.cloudtrace.v1.TraceSpan.start_time", + index=3, + number=4, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.devtools.cloudtrace.v1.TraceSpan.end_time", + index=4, + number=5, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parent_span_id", + full_name="google.devtools.cloudtrace.v1.TraceSpan.parent_span_id", + index=5, + number=6, + type=6, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.devtools.cloudtrace.v1.TraceSpan.labels", + index=6, + number=7, + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_TRACESPAN_LABELSENTRY], + enum_types=[_TRACESPAN_SPANKIND], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=343, + serialized_end=756, ) _LISTTRACESREQUEST = _descriptor.Descriptor( - name='ListTracesRequest', - full_name='google.devtools.cloudtrace.v1.ListTracesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.project_id', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.view', index=1, - number=2, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.page_token', index=3, - number=4, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.start_time', index=4, - number=5, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.end_time', index=5, - number=6, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.filter', index=6, - number=7, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.order_by', index=7, - number=8, 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _LISTTRACESREQUEST_VIEWTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=759, - serialized_end=1118, + name="ListTracesRequest", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.project_id", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="view", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.view", + index=1, + number=2, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.page_token", + index=3, + number=4, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.start_time", + index=4, + number=5, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.end_time", + index=5, + number=6, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.filter", + index=6, + number=7, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.order_by", + index=7, + number=8, + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_LISTTRACESREQUEST_VIEWTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=759, + serialized_end=1118, ) _LISTTRACESRESPONSE = _descriptor.Descriptor( - name='ListTracesResponse', - full_name='google.devtools.cloudtrace.v1.ListTracesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='traces', full_name='google.devtools.cloudtrace.v1.ListTracesResponse.traces', index=0, - number=1, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.devtools.cloudtrace.v1.ListTracesResponse.next_page_token', 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1120, - serialized_end=1219, + name="ListTracesResponse", + full_name="google.devtools.cloudtrace.v1.ListTracesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="traces", + full_name="google.devtools.cloudtrace.v1.ListTracesResponse.traces", + index=0, + number=1, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.devtools.cloudtrace.v1.ListTracesResponse.next_page_token", + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1120, + serialized_end=1219, ) _GETTRACEREQUEST = _descriptor.Descriptor( - name='GetTraceRequest', - full_name='google.devtools.cloudtrace.v1.GetTraceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.devtools.cloudtrace.v1.GetTraceRequest.project_id', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='trace_id', full_name='google.devtools.cloudtrace.v1.GetTraceRequest.trace_id', 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1221, - serialized_end=1276, + name="GetTraceRequest", + full_name="google.devtools.cloudtrace.v1.GetTraceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.devtools.cloudtrace.v1.GetTraceRequest.project_id", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="trace_id", + full_name="google.devtools.cloudtrace.v1.GetTraceRequest.trace_id", + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1221, + serialized_end=1276, ) _PATCHTRACESREQUEST = _descriptor.Descriptor( - name='PatchTracesRequest', - full_name='google.devtools.cloudtrace.v1.PatchTracesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.devtools.cloudtrace.v1.PatchTracesRequest.project_id', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='traces', full_name='google.devtools.cloudtrace.v1.PatchTracesRequest.traces', 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1278, - serialized_end=1373, + name="PatchTracesRequest", + full_name="google.devtools.cloudtrace.v1.PatchTracesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.devtools.cloudtrace.v1.PatchTracesRequest.project_id", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="traces", + full_name="google.devtools.cloudtrace.v1.PatchTracesRequest.traces", + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1278, + serialized_end=1373, ) -_TRACE.fields_by_name['spans'].message_type = _TRACESPAN -_TRACES.fields_by_name['traces'].message_type = _TRACE +_TRACE.fields_by_name["spans"].message_type = _TRACESPAN +_TRACES.fields_by_name["traces"].message_type = _TRACE _TRACESPAN_LABELSENTRY.containing_type = _TRACESPAN -_TRACESPAN.fields_by_name['kind'].enum_type = _TRACESPAN_SPANKIND -_TRACESPAN.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRACESPAN.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRACESPAN.fields_by_name['labels'].message_type = _TRACESPAN_LABELSENTRY +_TRACESPAN.fields_by_name["kind"].enum_type = _TRACESPAN_SPANKIND +_TRACESPAN.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRACESPAN.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRACESPAN.fields_by_name["labels"].message_type = _TRACESPAN_LABELSENTRY _TRACESPAN_SPANKIND.containing_type = _TRACESPAN -_LISTTRACESREQUEST.fields_by_name['view'].enum_type = _LISTTRACESREQUEST_VIEWTYPE -_LISTTRACESREQUEST.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_LISTTRACESREQUEST.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LISTTRACESREQUEST.fields_by_name["view"].enum_type = _LISTTRACESREQUEST_VIEWTYPE +_LISTTRACESREQUEST.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LISTTRACESREQUEST.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _LISTTRACESREQUEST_VIEWTYPE.containing_type = _LISTTRACESREQUEST -_LISTTRACESRESPONSE.fields_by_name['traces'].message_type = _TRACE -_PATCHTRACESREQUEST.fields_by_name['traces'].message_type = _TRACES -DESCRIPTOR.message_types_by_name['Trace'] = _TRACE -DESCRIPTOR.message_types_by_name['Traces'] = _TRACES -DESCRIPTOR.message_types_by_name['TraceSpan'] = _TRACESPAN -DESCRIPTOR.message_types_by_name['ListTracesRequest'] = _LISTTRACESREQUEST -DESCRIPTOR.message_types_by_name['ListTracesResponse'] = _LISTTRACESRESPONSE -DESCRIPTOR.message_types_by_name['GetTraceRequest'] = _GETTRACEREQUEST -DESCRIPTOR.message_types_by_name['PatchTracesRequest'] = _PATCHTRACESREQUEST +_LISTTRACESRESPONSE.fields_by_name["traces"].message_type = _TRACE +_PATCHTRACESREQUEST.fields_by_name["traces"].message_type = _TRACES +DESCRIPTOR.message_types_by_name["Trace"] = _TRACE +DESCRIPTOR.message_types_by_name["Traces"] = _TRACES +DESCRIPTOR.message_types_by_name["TraceSpan"] = _TRACESPAN +DESCRIPTOR.message_types_by_name["ListTracesRequest"] = _LISTTRACESREQUEST +DESCRIPTOR.message_types_by_name["ListTracesResponse"] = _LISTTRACESRESPONSE +DESCRIPTOR.message_types_by_name["GetTraceRequest"] = _GETTRACEREQUEST +DESCRIPTOR.message_types_by_name["PatchTracesRequest"] = _PATCHTRACESREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Trace = _reflection.GeneratedProtocolMessageType('Trace', (_message.Message,), dict( - DESCRIPTOR = _TRACE, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """A trace describes how long it takes for an application to perform an +Trace = _reflection.GeneratedProtocolMessageType( + "Trace", + (_message.Message,), + dict( + DESCRIPTOR=_TRACE, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""A trace describes how long it takes for an application to perform an operation. It consists of a set of spans, each of which represent a single timed event within the operation. @@ -509,37 +790,45 @@ spans: Collection of spans in the trace. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.Trace) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.Trace) + ), +) _sym_db.RegisterMessage(Trace) -Traces = _reflection.GeneratedProtocolMessageType('Traces', (_message.Message,), dict( - DESCRIPTOR = _TRACES, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """List of new or updated traces. +Traces = _reflection.GeneratedProtocolMessageType( + "Traces", + (_message.Message,), + dict( + DESCRIPTOR=_TRACES, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""List of new or updated traces. Attributes: traces: List of traces. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.Traces) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.Traces) + ), +) _sym_db.RegisterMessage(Traces) -TraceSpan = _reflection.GeneratedProtocolMessageType('TraceSpan', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _TRACESPAN_LABELSENTRY, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry) - )) - , - DESCRIPTOR = _TRACESPAN, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """A span represents a single timed event within a trace. Spans can be +TraceSpan = _reflection.GeneratedProtocolMessageType( + "TraceSpan", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_TRACESPAN_LABELSENTRY, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2" + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry) + ), + ), + DESCRIPTOR=_TRACESPAN, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""A span represents a single timed event within a trace. Spans can be nested and form a trace tree. Often, a trace contains a root span that describes the end-to-end latency of an operation and, optionally, one or more subspans for its suboperations. Spans do not need to be contiguous. @@ -589,16 +878,19 @@ ``/http/user_agent`` - ``/pid`` - ``/stacktrace`` - ``/tid`` """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.TraceSpan) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.TraceSpan) + ), +) _sym_db.RegisterMessage(TraceSpan) _sym_db.RegisterMessage(TraceSpan.LabelsEntry) -ListTracesRequest = _reflection.GeneratedProtocolMessageType('ListTracesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTRACESREQUEST, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """The request message for the ``ListTraces`` method. All fields are +ListTracesRequest = _reflection.GeneratedProtocolMessageType( + "ListTracesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTRACESREQUEST, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""The request message for the ``ListTraces`` method. All fields are required unless specified. @@ -661,15 +953,18 @@ (for example, ``name desc``). Only one sort field is permitted. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.ListTracesRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.ListTracesRequest) + ), +) _sym_db.RegisterMessage(ListTracesRequest) -ListTracesResponse = _reflection.GeneratedProtocolMessageType('ListTracesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTRACESRESPONSE, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """The response message for the ``ListTraces`` method. +ListTracesResponse = _reflection.GeneratedProtocolMessageType( + "ListTracesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTRACESRESPONSE, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""The response message for the ``ListTraces`` method. Attributes: @@ -680,15 +975,18 @@ the request and that this value should be passed to the next request to continue retrieving additional traces. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.ListTracesResponse) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.ListTracesResponse) + ), +) _sym_db.RegisterMessage(ListTracesResponse) -GetTraceRequest = _reflection.GeneratedProtocolMessageType('GetTraceRequest', (_message.Message,), dict( - DESCRIPTOR = _GETTRACEREQUEST, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """The request message for the ``GetTrace`` method. +GetTraceRequest = _reflection.GeneratedProtocolMessageType( + "GetTraceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETTRACEREQUEST, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""The request message for the ``GetTrace`` method. Attributes: @@ -697,15 +995,18 @@ trace_id: ID of the trace to return. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.GetTraceRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.GetTraceRequest) + ), +) _sym_db.RegisterMessage(GetTraceRequest) -PatchTracesRequest = _reflection.GeneratedProtocolMessageType('PatchTracesRequest', (_message.Message,), dict( - DESCRIPTOR = _PATCHTRACESREQUEST, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """The request message for the ``PatchTraces`` method. +PatchTracesRequest = _reflection.GeneratedProtocolMessageType( + "PatchTracesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PATCHTRACESREQUEST, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""The request message for the ``PatchTraces`` method. Attributes: @@ -714,55 +1015,77 @@ traces: The body of the message. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.PatchTracesRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.PatchTracesRequest) + ), +) _sym_db.RegisterMessage(PatchTracesRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.devtools.cloudtrace.v1B\nTraceProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v1;cloudtrace\252\002\025Google.Cloud.Trace.V1\312\002\025Google\\Cloud\\Trace\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.devtools.cloudtrace.v1B\nTraceProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v1;cloudtrace\252\002\025Google.Cloud.Trace.V1\312\002\025Google\\Cloud\\Trace\\V1" + ), +) _TRACESPAN_LABELSENTRY.has_options = True -_TRACESPAN_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_TRACESPAN_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _TRACESERVICE = _descriptor.ServiceDescriptor( - name='TraceService', - full_name='google.devtools.cloudtrace.v1.TraceService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1376, - serialized_end=1841, - methods=[ - _descriptor.MethodDescriptor( - name='ListTraces', - full_name='google.devtools.cloudtrace.v1.TraceService.ListTraces', + name="TraceService", + full_name="google.devtools.cloudtrace.v1.TraceService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTTRACESREQUEST, - output_type=_LISTTRACESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\"\022 /v1/projects/{project_id}/traces')), - ), - _descriptor.MethodDescriptor( - name='GetTrace', - full_name='google.devtools.cloudtrace.v1.TraceService.GetTrace', - index=1, - containing_service=None, - input_type=_GETTRACEREQUEST, - output_type=_TRACE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002-\022+/v1/projects/{project_id}/traces/{trace_id}')), - ), - _descriptor.MethodDescriptor( - name='PatchTraces', - full_name='google.devtools.cloudtrace.v1.TraceService.PatchTraces', - index=2, - containing_service=None, - input_type=_PATCHTRACESREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002*2 /v1/projects/{project_id}/traces:\006traces')), - ), -]) + options=None, + serialized_start=1376, + serialized_end=1841, + methods=[ + _descriptor.MethodDescriptor( + name="ListTraces", + full_name="google.devtools.cloudtrace.v1.TraceService.ListTraces", + index=0, + containing_service=None, + input_type=_LISTTRACESREQUEST, + output_type=_LISTTRACESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002"\022 /v1/projects/{project_id}/traces'), + ), + ), + _descriptor.MethodDescriptor( + name="GetTrace", + full_name="google.devtools.cloudtrace.v1.TraceService.GetTrace", + index=1, + containing_service=None, + input_type=_GETTRACEREQUEST, + output_type=_TRACE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002-\022+/v1/projects/{project_id}/traces/{trace_id}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="PatchTraces", + full_name="google.devtools.cloudtrace.v1.TraceService.PatchTraces", + index=2, + containing_service=None, + input_type=_PATCHTRACESREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002*2 /v1/projects/{project_id}/traces:\006traces" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_TRACESERVICE) -DESCRIPTOR.services_by_name['TraceService'] = _TRACESERVICE +DESCRIPTOR.services_by_name["TraceService"] = _TRACESERVICE # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-trace/google/cloud/trace_v1/proto/trace_pb2_grpc.py b/packages/google-cloud-trace/google/cloud/trace_v1/proto/trace_pb2_grpc.py index 71f0d876ebcf..e15c63100fd0 100644 --- a/packages/google-cloud-trace/google/cloud/trace_v1/proto/trace_pb2_grpc.py +++ b/packages/google-cloud-trace/google/cloud/trace_v1/proto/trace_pb2_grpc.py @@ -1,93 +1,96 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.trace_v1.proto import trace_pb2 as google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2 +from google.cloud.trace_v1.proto import ( + trace_pb2 as google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class TraceServiceStub(object): - """This file describes an API for collecting and viewing traces and spans + """This file describes an API for collecting and viewing traces and spans within a trace. A Trace is a collection of spans corresponding to a single operation or set of operations for an application. A span is an individual timed event which forms a node of the trace tree. Spans for a single trace may span multiple services. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListTraces = channel.unary_unary( - '/google.devtools.cloudtrace.v1.TraceService/ListTraces', - request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.FromString, + self.ListTraces = channel.unary_unary( + "/google.devtools.cloudtrace.v1.TraceService/ListTraces", + request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.SerializeToString, + response_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.FromString, ) - self.GetTrace = channel.unary_unary( - '/google.devtools.cloudtrace.v1.TraceService/GetTrace', - request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.FromString, + self.GetTrace = channel.unary_unary( + "/google.devtools.cloudtrace.v1.TraceService/GetTrace", + request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.SerializeToString, + response_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.FromString, ) - self.PatchTraces = channel.unary_unary( - '/google.devtools.cloudtrace.v1.TraceService/PatchTraces', - request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.PatchTraces = channel.unary_unary( + "/google.devtools.cloudtrace.v1.TraceService/PatchTraces", + request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) class TraceServiceServicer(object): - """This file describes an API for collecting and viewing traces and spans + """This file describes an API for collecting and viewing traces and spans within a trace. A Trace is a collection of spans corresponding to a single operation or set of operations for an application. A span is an individual timed event which forms a node of the trace tree. Spans for a single trace may span multiple services. """ - def ListTraces(self, request, context): - """Returns of a list of traces that match the specified filter conditions. + def ListTraces(self, request, context): + """Returns of a list of traces that match the specified filter conditions. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetTrace(self, request, context): - """Gets a single trace by its ID. + def GetTrace(self, request, context): + """Gets a single trace by its ID. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def PatchTraces(self, request, context): - """Sends new traces to Stackdriver Trace or updates existing traces. If the ID + def PatchTraces(self, request, context): + """Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_TraceServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListTraces': grpc.unary_unary_rpc_method_handler( - servicer.ListTraces, - request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.SerializeToString, - ), - 'GetTrace': grpc.unary_unary_rpc_method_handler( - servicer.GetTrace, - request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.SerializeToString, - ), - 'PatchTraces': grpc.unary_unary_rpc_method_handler( - servicer.PatchTraces, - request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.devtools.cloudtrace.v1.TraceService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListTraces": grpc.unary_unary_rpc_method_handler( + servicer.ListTraces, + request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.FromString, + response_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.SerializeToString, + ), + "GetTrace": grpc.unary_unary_rpc_method_handler( + servicer.GetTrace, + request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.FromString, + response_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.SerializeToString, + ), + "PatchTraces": grpc.unary_unary_rpc_method_handler( + servicer.PatchTraces, + request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.devtools.cloudtrace.v1.TraceService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/packages/google-cloud-trace/google/cloud/trace_v2/proto/trace_pb2.py b/packages/google-cloud-trace/google/cloud/trace_v2/proto/trace_pb2.py index 087ab5d6216b..7115abbe8538 100644 --- a/packages/google-cloud-trace/google/cloud/trace_v2/proto/trace_pb2.py +++ b/packages/google-cloud-trace/google/cloud/trace_v2/proto/trace_pb2.py @@ -3,12 +3,14 @@ # source: google/devtools/cloudtrace_v2/proto/trace.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) 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 from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,876 +23,1473 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/devtools/cloudtrace_v2/proto/trace.proto', - package='google.devtools.cloudtrace.v2', - syntax='proto3', - serialized_pb=_b('\n/google/devtools/cloudtrace_v2/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xc5\x0f\n\x04Span\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07span_id\x18\x02 \x01(\t\x12\x16\n\x0eparent_span_id\x18\x03 \x01(\t\x12\x46\n\x0c\x64isplay_name\x18\x04 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\nattributes\x18\x07 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes\x12>\n\x0bstack_trace\x18\x08 \x01(\x0b\x32).google.devtools.cloudtrace.v2.StackTrace\x12\x43\n\x0btime_events\x18\t \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.TimeEvents\x12\x38\n\x05links\x18\n \x01(\x0b\x32).google.devtools.cloudtrace.v2.Span.Links\x12\"\n\x06status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12?\n\x1bsame_process_as_parent_span\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x35\n\x10\x63hild_span_count\x18\r \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x1a\xeb\x01\n\nAttributes\x12W\n\rattribute_map\x18\x01 \x03(\x0b\x32@.google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry\x12 \n\x18\x64ropped_attributes_count\x18\x02 \x01(\x05\x1a\x62\n\x11\x41ttributeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.google.devtools.cloudtrace.v2.AttributeValue:\x02\x38\x01\x1a\xdf\x04\n\tTimeEvent\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\nannotation\x18\x02 \x01(\x0b\x32\x38.google.devtools.cloudtrace.v2.Span.TimeEvent.AnnotationH\x00\x12S\n\rmessage_event\x18\x03 \x01(\x0b\x32:.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEventH\x00\x1a\x97\x01\n\nAnnotation\x12\x45\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x42\n\nattributes\x18\x02 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes\x1a\xdf\x01\n\x0cMessageEvent\x12M\n\x04type\x18\x01 \x01(\x0e\x32?.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type\x12\n\n\x02id\x18\x02 \x01(\x03\x12\x1f\n\x17uncompressed_size_bytes\x18\x03 \x01(\x03\x12\x1d\n\x15\x63ompressed_size_bytes\x18\x04 \x01(\x03\"4\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04SENT\x10\x01\x12\x0c\n\x08RECEIVED\x10\x02\x42\x07\n\x05value\x1a\x98\x01\n\nTimeEvents\x12\x41\n\ntime_event\x18\x01 \x03(\x0b\x32-.google.devtools.cloudtrace.v2.Span.TimeEvent\x12!\n\x19\x64ropped_annotations_count\x18\x02 \x01(\x05\x12$\n\x1c\x64ropped_message_events_count\x18\x03 \x01(\x05\x1a\xf7\x01\n\x04Link\x12\x10\n\x08trace_id\x18\x01 \x01(\t\x12\x0f\n\x07span_id\x18\x02 \x01(\t\x12;\n\x04type\x18\x03 \x01(\x0e\x32-.google.devtools.cloudtrace.v2.Span.Link.Type\x12\x42\n\nattributes\x18\x04 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes\"K\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43HILD_LINKED_SPAN\x10\x01\x12\x16\n\x12PARENT_LINKED_SPAN\x10\x02\x1a\\\n\x05Links\x12\x36\n\x04link\x18\x01 \x03(\x0b\x32(.google.devtools.cloudtrace.v2.Span.Link\x12\x1b\n\x13\x64ropped_links_count\x18\x02 \x01(\x05\"\x8e\x01\n\x0e\x41ttributeValue\x12H\n\x0cstring_value\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableStringH\x00\x12\x13\n\tint_value\x18\x02 \x01(\x03H\x00\x12\x14\n\nbool_value\x18\x03 \x01(\x08H\x00\x42\x07\n\x05value\"\x89\x05\n\nStackTrace\x12K\n\x0cstack_frames\x18\x01 \x01(\x0b\x32\x35.google.devtools.cloudtrace.v2.StackTrace.StackFrames\x12\x1b\n\x13stack_trace_hash_id\x18\x02 \x01(\x03\x1a\x9e\x03\n\nStackFrame\x12G\n\rfunction_name\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12P\n\x16original_function_name\x18\x02 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x43\n\tfile_name\x18\x03 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x13\n\x0bline_number\x18\x04 \x01(\x03\x12\x15\n\rcolumn_number\x18\x05 \x01(\x03\x12:\n\x0bload_module\x18\x06 \x01(\x0b\x32%.google.devtools.cloudtrace.v2.Module\x12H\n\x0esource_version\x18\x07 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x1ap\n\x0bStackFrames\x12\x43\n\x05\x66rame\x18\x01 \x03(\x0b\x32\x34.google.devtools.cloudtrace.v2.StackTrace.StackFrame\x12\x1c\n\x14\x64ropped_frames_count\x18\x02 \x01(\x05\"\x8e\x01\n\x06Module\x12@\n\x06module\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x42\n\x08\x62uild_id\x18\x02 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\"@\n\x11TruncatableString\x12\r\n\x05value\x18\x01 \x01(\t\x12\x1c\n\x14truncated_byte_count\x18\x02 \x01(\x05\x42\xaa\x01\n!com.google.devtools.cloudtrace.v2B\nTraceProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V2\xca\x02\x15Google\\Cloud\\Trace\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - + name="google/devtools/cloudtrace_v2/proto/trace.proto", + package="google.devtools.cloudtrace.v2", + syntax="proto3", + serialized_pb=_b( + '\n/google/devtools/cloudtrace_v2/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto"\xc5\x0f\n\x04Span\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07span_id\x18\x02 \x01(\t\x12\x16\n\x0eparent_span_id\x18\x03 \x01(\t\x12\x46\n\x0c\x64isplay_name\x18\x04 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\nattributes\x18\x07 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes\x12>\n\x0bstack_trace\x18\x08 \x01(\x0b\x32).google.devtools.cloudtrace.v2.StackTrace\x12\x43\n\x0btime_events\x18\t \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.TimeEvents\x12\x38\n\x05links\x18\n \x01(\x0b\x32).google.devtools.cloudtrace.v2.Span.Links\x12"\n\x06status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12?\n\x1bsame_process_as_parent_span\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x35\n\x10\x63hild_span_count\x18\r \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x1a\xeb\x01\n\nAttributes\x12W\n\rattribute_map\x18\x01 \x03(\x0b\x32@.google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry\x12 \n\x18\x64ropped_attributes_count\x18\x02 \x01(\x05\x1a\x62\n\x11\x41ttributeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.google.devtools.cloudtrace.v2.AttributeValue:\x02\x38\x01\x1a\xdf\x04\n\tTimeEvent\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\nannotation\x18\x02 \x01(\x0b\x32\x38.google.devtools.cloudtrace.v2.Span.TimeEvent.AnnotationH\x00\x12S\n\rmessage_event\x18\x03 \x01(\x0b\x32:.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEventH\x00\x1a\x97\x01\n\nAnnotation\x12\x45\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x42\n\nattributes\x18\x02 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes\x1a\xdf\x01\n\x0cMessageEvent\x12M\n\x04type\x18\x01 \x01(\x0e\x32?.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type\x12\n\n\x02id\x18\x02 \x01(\x03\x12\x1f\n\x17uncompressed_size_bytes\x18\x03 \x01(\x03\x12\x1d\n\x15\x63ompressed_size_bytes\x18\x04 \x01(\x03"4\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04SENT\x10\x01\x12\x0c\n\x08RECEIVED\x10\x02\x42\x07\n\x05value\x1a\x98\x01\n\nTimeEvents\x12\x41\n\ntime_event\x18\x01 \x03(\x0b\x32-.google.devtools.cloudtrace.v2.Span.TimeEvent\x12!\n\x19\x64ropped_annotations_count\x18\x02 \x01(\x05\x12$\n\x1c\x64ropped_message_events_count\x18\x03 \x01(\x05\x1a\xf7\x01\n\x04Link\x12\x10\n\x08trace_id\x18\x01 \x01(\t\x12\x0f\n\x07span_id\x18\x02 \x01(\t\x12;\n\x04type\x18\x03 \x01(\x0e\x32-.google.devtools.cloudtrace.v2.Span.Link.Type\x12\x42\n\nattributes\x18\x04 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes"K\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43HILD_LINKED_SPAN\x10\x01\x12\x16\n\x12PARENT_LINKED_SPAN\x10\x02\x1a\\\n\x05Links\x12\x36\n\x04link\x18\x01 \x03(\x0b\x32(.google.devtools.cloudtrace.v2.Span.Link\x12\x1b\n\x13\x64ropped_links_count\x18\x02 \x01(\x05"\x8e\x01\n\x0e\x41ttributeValue\x12H\n\x0cstring_value\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableStringH\x00\x12\x13\n\tint_value\x18\x02 \x01(\x03H\x00\x12\x14\n\nbool_value\x18\x03 \x01(\x08H\x00\x42\x07\n\x05value"\x89\x05\n\nStackTrace\x12K\n\x0cstack_frames\x18\x01 \x01(\x0b\x32\x35.google.devtools.cloudtrace.v2.StackTrace.StackFrames\x12\x1b\n\x13stack_trace_hash_id\x18\x02 \x01(\x03\x1a\x9e\x03\n\nStackFrame\x12G\n\rfunction_name\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12P\n\x16original_function_name\x18\x02 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x43\n\tfile_name\x18\x03 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x13\n\x0bline_number\x18\x04 \x01(\x03\x12\x15\n\rcolumn_number\x18\x05 \x01(\x03\x12:\n\x0bload_module\x18\x06 \x01(\x0b\x32%.google.devtools.cloudtrace.v2.Module\x12H\n\x0esource_version\x18\x07 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x1ap\n\x0bStackFrames\x12\x43\n\x05\x66rame\x18\x01 \x03(\x0b\x32\x34.google.devtools.cloudtrace.v2.StackTrace.StackFrame\x12\x1c\n\x14\x64ropped_frames_count\x18\x02 \x01(\x05"\x8e\x01\n\x06Module\x12@\n\x06module\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x42\n\x08\x62uild_id\x18\x02 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString"@\n\x11TruncatableString\x12\r\n\x05value\x18\x01 \x01(\t\x12\x1c\n\x14truncated_byte_count\x18\x02 \x01(\x05\x42\xaa\x01\n!com.google.devtools.cloudtrace.v2B\nTraceProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V2\xca\x02\x15Google\\Cloud\\Trace\\V2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _SPAN_TIMEEVENT_MESSAGEEVENT_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SENT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RECEIVED', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1632, - serialized_end=1684, + name="Type", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SENT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RECEIVED", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1632, + serialized_end=1684, ) _sym_db.RegisterEnumDescriptor(_SPAN_TIMEEVENT_MESSAGEEVENT_TYPE) _SPAN_LINK_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.devtools.cloudtrace.v2.Span.Link.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHILD_LINKED_SPAN', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PARENT_LINKED_SPAN', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2023, - serialized_end=2098, + name="Type", + full_name="google.devtools.cloudtrace.v2.Span.Link.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHILD_LINKED_SPAN", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PARENT_LINKED_SPAN", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2023, + serialized_end=2098, ) _sym_db.RegisterEnumDescriptor(_SPAN_LINK_TYPE) _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY = _descriptor.Descriptor( - name='AttributeMapEntry', - full_name='google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry.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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry.value', 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=985, - serialized_end=1083, + name="AttributeMapEntry", + full_name="google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry.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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry.value", + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=985, + serialized_end=1083, ) _SPAN_ATTRIBUTES = _descriptor.Descriptor( - name='Attributes', - full_name='google.devtools.cloudtrace.v2.Span.Attributes', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='attribute_map', full_name='google.devtools.cloudtrace.v2.Span.Attributes.attribute_map', index=0, - number=1, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dropped_attributes_count', full_name='google.devtools.cloudtrace.v2.Span.Attributes.dropped_attributes_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=848, - serialized_end=1083, + name="Attributes", + full_name="google.devtools.cloudtrace.v2.Span.Attributes", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="attribute_map", + full_name="google.devtools.cloudtrace.v2.Span.Attributes.attribute_map", + index=0, + number=1, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dropped_attributes_count", + full_name="google.devtools.cloudtrace.v2.Span.Attributes.dropped_attributes_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=848, + serialized_end=1083, ) _SPAN_TIMEEVENT_ANNOTATION = _descriptor.Descriptor( - name='Annotation', - full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='description', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation.description', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attributes', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation.attributes', 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1307, - serialized_end=1458, + name="Annotation", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="description", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation.description", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attributes", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation.attributes", + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1307, + serialized_end=1458, ) _SPAN_TIMEEVENT_MESSAGEEVENT = _descriptor.Descriptor( - name='MessageEvent', - full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.type', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.id', index=1, - number=2, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uncompressed_size_bytes', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.uncompressed_size_bytes', index=2, - number=3, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='compressed_size_bytes', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.compressed_size_bytes', 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SPAN_TIMEEVENT_MESSAGEEVENT_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1461, - serialized_end=1684, + name="MessageEvent", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.type", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="id", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.id", + index=1, + number=2, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uncompressed_size_bytes", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.uncompressed_size_bytes", + index=2, + number=3, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="compressed_size_bytes", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.compressed_size_bytes", + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_SPAN_TIMEEVENT_MESSAGEEVENT_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1461, + serialized_end=1684, ) _SPAN_TIMEEVENT = _descriptor.Descriptor( - name='TimeEvent', - full_name='google.devtools.cloudtrace.v2.Span.TimeEvent', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.time', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='annotation', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.annotation', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message_event', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.message_event', 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SPAN_TIMEEVENT_ANNOTATION, _SPAN_TIMEEVENT_MESSAGEEVENT, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='value', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.value', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1086, - serialized_end=1693, + name="TimeEvent", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.time", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="annotation", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.annotation", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message_event", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.message_event", + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SPAN_TIMEEVENT_ANNOTATION, _SPAN_TIMEEVENT_MESSAGEEVENT], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="value", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.value", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1086, + serialized_end=1693, ) _SPAN_TIMEEVENTS = _descriptor.Descriptor( - name='TimeEvents', - full_name='google.devtools.cloudtrace.v2.Span.TimeEvents', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_event', full_name='google.devtools.cloudtrace.v2.Span.TimeEvents.time_event', index=0, - number=1, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dropped_annotations_count', full_name='google.devtools.cloudtrace.v2.Span.TimeEvents.dropped_annotations_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dropped_message_events_count', full_name='google.devtools.cloudtrace.v2.Span.TimeEvents.dropped_message_events_count', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1696, - serialized_end=1848, + name="TimeEvents", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvents", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_event", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvents.time_event", + index=0, + number=1, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dropped_annotations_count", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvents.dropped_annotations_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dropped_message_events_count", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvents.dropped_message_events_count", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1696, + serialized_end=1848, ) _SPAN_LINK = _descriptor.Descriptor( - name='Link', - full_name='google.devtools.cloudtrace.v2.Span.Link', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='trace_id', full_name='google.devtools.cloudtrace.v2.Span.Link.trace_id', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='span_id', full_name='google.devtools.cloudtrace.v2.Span.Link.span_id', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.devtools.cloudtrace.v2.Span.Link.type', index=2, - number=3, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attributes', full_name='google.devtools.cloudtrace.v2.Span.Link.attributes', index=3, - number=4, 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SPAN_LINK_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1851, - serialized_end=2098, + name="Link", + full_name="google.devtools.cloudtrace.v2.Span.Link", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="trace_id", + full_name="google.devtools.cloudtrace.v2.Span.Link.trace_id", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="span_id", + full_name="google.devtools.cloudtrace.v2.Span.Link.span_id", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.devtools.cloudtrace.v2.Span.Link.type", + index=2, + number=3, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attributes", + full_name="google.devtools.cloudtrace.v2.Span.Link.attributes", + index=3, + number=4, + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_SPAN_LINK_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1851, + serialized_end=2098, ) _SPAN_LINKS = _descriptor.Descriptor( - name='Links', - full_name='google.devtools.cloudtrace.v2.Span.Links', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='link', full_name='google.devtools.cloudtrace.v2.Span.Links.link', index=0, - number=1, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dropped_links_count', full_name='google.devtools.cloudtrace.v2.Span.Links.dropped_links_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2100, - serialized_end=2192, + name="Links", + full_name="google.devtools.cloudtrace.v2.Span.Links", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="link", + full_name="google.devtools.cloudtrace.v2.Span.Links.link", + index=0, + number=1, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dropped_links_count", + full_name="google.devtools.cloudtrace.v2.Span.Links.dropped_links_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2100, + serialized_end=2192, ) _SPAN = _descriptor.Descriptor( - name='Span', - full_name='google.devtools.cloudtrace.v2.Span', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.devtools.cloudtrace.v2.Span.name', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='span_id', full_name='google.devtools.cloudtrace.v2.Span.span_id', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_span_id', full_name='google.devtools.cloudtrace.v2.Span.parent_span_id', index=2, - number=3, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.devtools.cloudtrace.v2.Span.display_name', index=3, - number=4, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.devtools.cloudtrace.v2.Span.start_time', index=4, - number=5, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.devtools.cloudtrace.v2.Span.end_time', index=5, - number=6, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attributes', full_name='google.devtools.cloudtrace.v2.Span.attributes', index=6, - number=7, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stack_trace', full_name='google.devtools.cloudtrace.v2.Span.stack_trace', index=7, - number=8, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_events', full_name='google.devtools.cloudtrace.v2.Span.time_events', index=8, - number=9, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='links', full_name='google.devtools.cloudtrace.v2.Span.links', index=9, - number=10, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.devtools.cloudtrace.v2.Span.status', index=10, - number=11, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='same_process_as_parent_span', full_name='google.devtools.cloudtrace.v2.Span.same_process_as_parent_span', index=11, - number=12, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='child_span_count', full_name='google.devtools.cloudtrace.v2.Span.child_span_count', index=12, - number=13, 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SPAN_ATTRIBUTES, _SPAN_TIMEEVENT, _SPAN_TIMEEVENTS, _SPAN_LINK, _SPAN_LINKS, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=203, - serialized_end=2192, + name="Span", + full_name="google.devtools.cloudtrace.v2.Span", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.devtools.cloudtrace.v2.Span.name", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="span_id", + full_name="google.devtools.cloudtrace.v2.Span.span_id", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parent_span_id", + full_name="google.devtools.cloudtrace.v2.Span.parent_span_id", + index=2, + number=3, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.devtools.cloudtrace.v2.Span.display_name", + index=3, + number=4, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.devtools.cloudtrace.v2.Span.start_time", + index=4, + number=5, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.devtools.cloudtrace.v2.Span.end_time", + index=5, + number=6, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attributes", + full_name="google.devtools.cloudtrace.v2.Span.attributes", + index=6, + number=7, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stack_trace", + full_name="google.devtools.cloudtrace.v2.Span.stack_trace", + index=7, + number=8, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_events", + full_name="google.devtools.cloudtrace.v2.Span.time_events", + index=8, + number=9, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="links", + full_name="google.devtools.cloudtrace.v2.Span.links", + index=9, + number=10, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.devtools.cloudtrace.v2.Span.status", + index=10, + number=11, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="same_process_as_parent_span", + full_name="google.devtools.cloudtrace.v2.Span.same_process_as_parent_span", + index=11, + number=12, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="child_span_count", + full_name="google.devtools.cloudtrace.v2.Span.child_span_count", + index=12, + number=13, + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _SPAN_ATTRIBUTES, + _SPAN_TIMEEVENT, + _SPAN_TIMEEVENTS, + _SPAN_LINK, + _SPAN_LINKS, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=203, + serialized_end=2192, ) _ATTRIBUTEVALUE = _descriptor.Descriptor( - name='AttributeValue', - full_name='google.devtools.cloudtrace.v2.AttributeValue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='string_value', full_name='google.devtools.cloudtrace.v2.AttributeValue.string_value', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='int_value', full_name='google.devtools.cloudtrace.v2.AttributeValue.int_value', index=1, - number=2, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bool_value', full_name='google.devtools.cloudtrace.v2.AttributeValue.bool_value', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='value', full_name='google.devtools.cloudtrace.v2.AttributeValue.value', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2195, - serialized_end=2337, + name="AttributeValue", + full_name="google.devtools.cloudtrace.v2.AttributeValue", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="string_value", + full_name="google.devtools.cloudtrace.v2.AttributeValue.string_value", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="int_value", + full_name="google.devtools.cloudtrace.v2.AttributeValue.int_value", + index=1, + number=2, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bool_value", + full_name="google.devtools.cloudtrace.v2.AttributeValue.bool_value", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="value", + full_name="google.devtools.cloudtrace.v2.AttributeValue.value", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2195, + serialized_end=2337, ) _STACKTRACE_STACKFRAME = _descriptor.Descriptor( - name='StackFrame', - full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='function_name', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.function_name', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='original_function_name', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.original_function_name', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='file_name', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.file_name', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='line_number', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.line_number', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='column_number', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.column_number', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='load_module', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.load_module', index=5, - number=6, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source_version', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.source_version', index=6, - number=7, 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2461, - serialized_end=2875, + name="StackFrame", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="function_name", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.function_name", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="original_function_name", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.original_function_name", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="file_name", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.file_name", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="line_number", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.line_number", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="column_number", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.column_number", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="load_module", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.load_module", + index=5, + number=6, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="source_version", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.source_version", + index=6, + number=7, + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2461, + serialized_end=2875, ) _STACKTRACE_STACKFRAMES = _descriptor.Descriptor( - name='StackFrames', - full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrames', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='frame', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrames.frame', index=0, - number=1, 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dropped_frames_count', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrames.dropped_frames_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2877, - serialized_end=2989, + name="StackFrames", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrames", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="frame", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrames.frame", + index=0, + number=1, + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dropped_frames_count", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrames.dropped_frames_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2877, + serialized_end=2989, ) _STACKTRACE = _descriptor.Descriptor( - name='StackTrace', - full_name='google.devtools.cloudtrace.v2.StackTrace', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='stack_frames', full_name='google.devtools.cloudtrace.v2.StackTrace.stack_frames', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stack_trace_hash_id', full_name='google.devtools.cloudtrace.v2.StackTrace.stack_trace_hash_id', index=1, - number=2, 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_STACKTRACE_STACKFRAME, _STACKTRACE_STACKFRAMES, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2340, - serialized_end=2989, + name="StackTrace", + full_name="google.devtools.cloudtrace.v2.StackTrace", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="stack_frames", + full_name="google.devtools.cloudtrace.v2.StackTrace.stack_frames", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stack_trace_hash_id", + full_name="google.devtools.cloudtrace.v2.StackTrace.stack_trace_hash_id", + index=1, + number=2, + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_STACKTRACE_STACKFRAME, _STACKTRACE_STACKFRAMES], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2340, + serialized_end=2989, ) _MODULE = _descriptor.Descriptor( - name='Module', - full_name='google.devtools.cloudtrace.v2.Module', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='module', full_name='google.devtools.cloudtrace.v2.Module.module', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='build_id', full_name='google.devtools.cloudtrace.v2.Module.build_id', 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2992, - serialized_end=3134, + name="Module", + full_name="google.devtools.cloudtrace.v2.Module", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="module", + full_name="google.devtools.cloudtrace.v2.Module.module", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="build_id", + full_name="google.devtools.cloudtrace.v2.Module.build_id", + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2992, + serialized_end=3134, ) _TRUNCATABLESTRING = _descriptor.Descriptor( - name='TruncatableString', - full_name='google.devtools.cloudtrace.v2.TruncatableString', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='value', full_name='google.devtools.cloudtrace.v2.TruncatableString.value', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='truncated_byte_count', full_name='google.devtools.cloudtrace.v2.TruncatableString.truncated_byte_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3136, - serialized_end=3200, + name="TruncatableString", + full_name="google.devtools.cloudtrace.v2.TruncatableString", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="value", + full_name="google.devtools.cloudtrace.v2.TruncatableString.value", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="truncated_byte_count", + full_name="google.devtools.cloudtrace.v2.TruncatableString.truncated_byte_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3136, + serialized_end=3200, ) -_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY.fields_by_name['value'].message_type = _ATTRIBUTEVALUE +_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY.fields_by_name[ + "value" +].message_type = _ATTRIBUTEVALUE _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY.containing_type = _SPAN_ATTRIBUTES -_SPAN_ATTRIBUTES.fields_by_name['attribute_map'].message_type = _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY +_SPAN_ATTRIBUTES.fields_by_name[ + "attribute_map" +].message_type = _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY _SPAN_ATTRIBUTES.containing_type = _SPAN -_SPAN_TIMEEVENT_ANNOTATION.fields_by_name['description'].message_type = _TRUNCATABLESTRING -_SPAN_TIMEEVENT_ANNOTATION.fields_by_name['attributes'].message_type = _SPAN_ATTRIBUTES +_SPAN_TIMEEVENT_ANNOTATION.fields_by_name[ + "description" +].message_type = _TRUNCATABLESTRING +_SPAN_TIMEEVENT_ANNOTATION.fields_by_name["attributes"].message_type = _SPAN_ATTRIBUTES _SPAN_TIMEEVENT_ANNOTATION.containing_type = _SPAN_TIMEEVENT -_SPAN_TIMEEVENT_MESSAGEEVENT.fields_by_name['type'].enum_type = _SPAN_TIMEEVENT_MESSAGEEVENT_TYPE +_SPAN_TIMEEVENT_MESSAGEEVENT.fields_by_name[ + "type" +].enum_type = _SPAN_TIMEEVENT_MESSAGEEVENT_TYPE _SPAN_TIMEEVENT_MESSAGEEVENT.containing_type = _SPAN_TIMEEVENT _SPAN_TIMEEVENT_MESSAGEEVENT_TYPE.containing_type = _SPAN_TIMEEVENT_MESSAGEEVENT -_SPAN_TIMEEVENT.fields_by_name['time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SPAN_TIMEEVENT.fields_by_name['annotation'].message_type = _SPAN_TIMEEVENT_ANNOTATION -_SPAN_TIMEEVENT.fields_by_name['message_event'].message_type = _SPAN_TIMEEVENT_MESSAGEEVENT +_SPAN_TIMEEVENT.fields_by_name[ + "time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SPAN_TIMEEVENT.fields_by_name["annotation"].message_type = _SPAN_TIMEEVENT_ANNOTATION +_SPAN_TIMEEVENT.fields_by_name[ + "message_event" +].message_type = _SPAN_TIMEEVENT_MESSAGEEVENT _SPAN_TIMEEVENT.containing_type = _SPAN -_SPAN_TIMEEVENT.oneofs_by_name['value'].fields.append( - _SPAN_TIMEEVENT.fields_by_name['annotation']) -_SPAN_TIMEEVENT.fields_by_name['annotation'].containing_oneof = _SPAN_TIMEEVENT.oneofs_by_name['value'] -_SPAN_TIMEEVENT.oneofs_by_name['value'].fields.append( - _SPAN_TIMEEVENT.fields_by_name['message_event']) -_SPAN_TIMEEVENT.fields_by_name['message_event'].containing_oneof = _SPAN_TIMEEVENT.oneofs_by_name['value'] -_SPAN_TIMEEVENTS.fields_by_name['time_event'].message_type = _SPAN_TIMEEVENT +_SPAN_TIMEEVENT.oneofs_by_name["value"].fields.append( + _SPAN_TIMEEVENT.fields_by_name["annotation"] +) +_SPAN_TIMEEVENT.fields_by_name[ + "annotation" +].containing_oneof = _SPAN_TIMEEVENT.oneofs_by_name["value"] +_SPAN_TIMEEVENT.oneofs_by_name["value"].fields.append( + _SPAN_TIMEEVENT.fields_by_name["message_event"] +) +_SPAN_TIMEEVENT.fields_by_name[ + "message_event" +].containing_oneof = _SPAN_TIMEEVENT.oneofs_by_name["value"] +_SPAN_TIMEEVENTS.fields_by_name["time_event"].message_type = _SPAN_TIMEEVENT _SPAN_TIMEEVENTS.containing_type = _SPAN -_SPAN_LINK.fields_by_name['type'].enum_type = _SPAN_LINK_TYPE -_SPAN_LINK.fields_by_name['attributes'].message_type = _SPAN_ATTRIBUTES +_SPAN_LINK.fields_by_name["type"].enum_type = _SPAN_LINK_TYPE +_SPAN_LINK.fields_by_name["attributes"].message_type = _SPAN_ATTRIBUTES _SPAN_LINK.containing_type = _SPAN _SPAN_LINK_TYPE.containing_type = _SPAN_LINK -_SPAN_LINKS.fields_by_name['link'].message_type = _SPAN_LINK +_SPAN_LINKS.fields_by_name["link"].message_type = _SPAN_LINK _SPAN_LINKS.containing_type = _SPAN -_SPAN.fields_by_name['display_name'].message_type = _TRUNCATABLESTRING -_SPAN.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SPAN.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SPAN.fields_by_name['attributes'].message_type = _SPAN_ATTRIBUTES -_SPAN.fields_by_name['stack_trace'].message_type = _STACKTRACE -_SPAN.fields_by_name['time_events'].message_type = _SPAN_TIMEEVENTS -_SPAN.fields_by_name['links'].message_type = _SPAN_LINKS -_SPAN.fields_by_name['status'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_SPAN.fields_by_name['same_process_as_parent_span'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_SPAN.fields_by_name['child_span_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_ATTRIBUTEVALUE.fields_by_name['string_value'].message_type = _TRUNCATABLESTRING -_ATTRIBUTEVALUE.oneofs_by_name['value'].fields.append( - _ATTRIBUTEVALUE.fields_by_name['string_value']) -_ATTRIBUTEVALUE.fields_by_name['string_value'].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name['value'] -_ATTRIBUTEVALUE.oneofs_by_name['value'].fields.append( - _ATTRIBUTEVALUE.fields_by_name['int_value']) -_ATTRIBUTEVALUE.fields_by_name['int_value'].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name['value'] -_ATTRIBUTEVALUE.oneofs_by_name['value'].fields.append( - _ATTRIBUTEVALUE.fields_by_name['bool_value']) -_ATTRIBUTEVALUE.fields_by_name['bool_value'].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name['value'] -_STACKTRACE_STACKFRAME.fields_by_name['function_name'].message_type = _TRUNCATABLESTRING -_STACKTRACE_STACKFRAME.fields_by_name['original_function_name'].message_type = _TRUNCATABLESTRING -_STACKTRACE_STACKFRAME.fields_by_name['file_name'].message_type = _TRUNCATABLESTRING -_STACKTRACE_STACKFRAME.fields_by_name['load_module'].message_type = _MODULE -_STACKTRACE_STACKFRAME.fields_by_name['source_version'].message_type = _TRUNCATABLESTRING +_SPAN.fields_by_name["display_name"].message_type = _TRUNCATABLESTRING +_SPAN.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SPAN.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SPAN.fields_by_name["attributes"].message_type = _SPAN_ATTRIBUTES +_SPAN.fields_by_name["stack_trace"].message_type = _STACKTRACE +_SPAN.fields_by_name["time_events"].message_type = _SPAN_TIMEEVENTS +_SPAN.fields_by_name["links"].message_type = _SPAN_LINKS +_SPAN.fields_by_name["status"].message_type = google_dot_rpc_dot_status__pb2._STATUS +_SPAN.fields_by_name[ + "same_process_as_parent_span" +].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_SPAN.fields_by_name[ + "child_span_count" +].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_ATTRIBUTEVALUE.fields_by_name["string_value"].message_type = _TRUNCATABLESTRING +_ATTRIBUTEVALUE.oneofs_by_name["value"].fields.append( + _ATTRIBUTEVALUE.fields_by_name["string_value"] +) +_ATTRIBUTEVALUE.fields_by_name[ + "string_value" +].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name["value"] +_ATTRIBUTEVALUE.oneofs_by_name["value"].fields.append( + _ATTRIBUTEVALUE.fields_by_name["int_value"] +) +_ATTRIBUTEVALUE.fields_by_name[ + "int_value" +].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name["value"] +_ATTRIBUTEVALUE.oneofs_by_name["value"].fields.append( + _ATTRIBUTEVALUE.fields_by_name["bool_value"] +) +_ATTRIBUTEVALUE.fields_by_name[ + "bool_value" +].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name["value"] +_STACKTRACE_STACKFRAME.fields_by_name["function_name"].message_type = _TRUNCATABLESTRING +_STACKTRACE_STACKFRAME.fields_by_name[ + "original_function_name" +].message_type = _TRUNCATABLESTRING +_STACKTRACE_STACKFRAME.fields_by_name["file_name"].message_type = _TRUNCATABLESTRING +_STACKTRACE_STACKFRAME.fields_by_name["load_module"].message_type = _MODULE +_STACKTRACE_STACKFRAME.fields_by_name[ + "source_version" +].message_type = _TRUNCATABLESTRING _STACKTRACE_STACKFRAME.containing_type = _STACKTRACE -_STACKTRACE_STACKFRAMES.fields_by_name['frame'].message_type = _STACKTRACE_STACKFRAME +_STACKTRACE_STACKFRAMES.fields_by_name["frame"].message_type = _STACKTRACE_STACKFRAME _STACKTRACE_STACKFRAMES.containing_type = _STACKTRACE -_STACKTRACE.fields_by_name['stack_frames'].message_type = _STACKTRACE_STACKFRAMES -_MODULE.fields_by_name['module'].message_type = _TRUNCATABLESTRING -_MODULE.fields_by_name['build_id'].message_type = _TRUNCATABLESTRING -DESCRIPTOR.message_types_by_name['Span'] = _SPAN -DESCRIPTOR.message_types_by_name['AttributeValue'] = _ATTRIBUTEVALUE -DESCRIPTOR.message_types_by_name['StackTrace'] = _STACKTRACE -DESCRIPTOR.message_types_by_name['Module'] = _MODULE -DESCRIPTOR.message_types_by_name['TruncatableString'] = _TRUNCATABLESTRING +_STACKTRACE.fields_by_name["stack_frames"].message_type = _STACKTRACE_STACKFRAMES +_MODULE.fields_by_name["module"].message_type = _TRUNCATABLESTRING +_MODULE.fields_by_name["build_id"].message_type = _TRUNCATABLESTRING +DESCRIPTOR.message_types_by_name["Span"] = _SPAN +DESCRIPTOR.message_types_by_name["AttributeValue"] = _ATTRIBUTEVALUE +DESCRIPTOR.message_types_by_name["StackTrace"] = _STACKTRACE +DESCRIPTOR.message_types_by_name["Module"] = _MODULE +DESCRIPTOR.message_types_by_name["TruncatableString"] = _TRUNCATABLESTRING _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Span = _reflection.GeneratedProtocolMessageType('Span', (_message.Message,), dict( - - Attributes = _reflection.GeneratedProtocolMessageType('Attributes', (_message.Message,), dict( - - AttributeMapEntry = _reflection.GeneratedProtocolMessageType('AttributeMapEntry', (_message.Message,), dict( - DESCRIPTOR = _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry) - )) - , - DESCRIPTOR = _SPAN_ATTRIBUTES, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A set of attributes, each in the format ``[KEY]:[VALUE]``. +Span = _reflection.GeneratedProtocolMessageType( + "Span", + (_message.Message,), + dict( + Attributes=_reflection.GeneratedProtocolMessageType( + "Attributes", + (_message.Message,), + dict( + AttributeMapEntry=_reflection.GeneratedProtocolMessageType( + "AttributeMapEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2" + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry) + ), + ), + DESCRIPTOR=_SPAN_ATTRIBUTES, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A set of attributes, each in the format ``[KEY]:[VALUE]``. Attributes: @@ -907,17 +1506,20 @@ are too many attributes. If this value is 0 then all attributes are valid. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Attributes) - )) - , - - TimeEvent = _reflection.GeneratedProtocolMessageType('TimeEvent', (_message.Message,), dict( - - Annotation = _reflection.GeneratedProtocolMessageType('Annotation', (_message.Message,), dict( - DESCRIPTOR = _SPAN_TIMEEVENT_ANNOTATION, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """Text annotation with a set of attributes. + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Attributes) + ), + ), + TimeEvent=_reflection.GeneratedProtocolMessageType( + "TimeEvent", + (_message.Message,), + dict( + Annotation=_reflection.GeneratedProtocolMessageType( + "Annotation", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_TIMEEVENT_ANNOTATION, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""Text annotation with a set of attributes. Attributes: @@ -928,15 +1530,16 @@ A set of attributes on the annotation. You can have up to 4 attributes per Annotation. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation) - )) - , - - MessageEvent = _reflection.GeneratedProtocolMessageType('MessageEvent', (_message.Message,), dict( - DESCRIPTOR = _SPAN_TIMEEVENT_MESSAGEEVENT, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """An event describing a message sent/received between Spans. + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation) + ), + ), + MessageEvent=_reflection.GeneratedProtocolMessageType( + "MessageEvent", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_TIMEEVENT_MESSAGEEVENT, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""An event describing a message sent/received between Spans. Attributes: @@ -953,13 +1556,12 @@ The number of compressed bytes sent or received. If missing assumed to be the same size as uncompressed. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent) - )) - , - DESCRIPTOR = _SPAN_TIMEEVENT, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A time-stamped annotation or message event in the Span. + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent) + ), + ), + DESCRIPTOR=_SPAN_TIMEEVENT, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A time-stamped annotation or message event in the Span. Attributes: @@ -973,15 +1575,16 @@ message_event: An event describing a message sent/received between Spans. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent) - )) - , - - TimeEvents = _reflection.GeneratedProtocolMessageType('TimeEvents', (_message.Message,), dict( - DESCRIPTOR = _SPAN_TIMEEVENTS, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A collection of ``TimeEvent``\ s. A ``TimeEvent`` is a time-stamped + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent) + ), + ), + TimeEvents=_reflection.GeneratedProtocolMessageType( + "TimeEvents", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_TIMEEVENTS, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A collection of ``TimeEvent``\ s. A ``TimeEvent`` is a time-stamped annotation on the span, consisting of either user-supplied key:value pairs, or details of a message sent/received between Spans. @@ -997,15 +1600,16 @@ events. If the value is 0, then no message events were dropped. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvents) - )) - , - - Link = _reflection.GeneratedProtocolMessageType('Link', (_message.Message,), dict( - DESCRIPTOR = _SPAN_LINK, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A pointer from the current span to another span in the same trace or in + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvents) + ), + ), + Link=_reflection.GeneratedProtocolMessageType( + "Link", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_LINK, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project. @@ -1023,15 +1627,16 @@ A set of attributes on the link. You have have up to 32 attributes per link. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Link) - )) - , - - Links = _reflection.GeneratedProtocolMessageType('Links', (_message.Message,), dict( - DESCRIPTOR = _SPAN_LINKS, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A collection of links, which are references from this span to a span in + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Link) + ), + ), + Links=_reflection.GeneratedProtocolMessageType( + "Links", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_LINKS, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A collection of links, which are references from this span to a span in the same or different trace. @@ -1042,13 +1647,12 @@ The number of dropped links after the maximum size was enforced. If this value is 0, then no links were dropped. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Links) - )) - , - DESCRIPTOR = _SPAN, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A span represents a single operation within a trace. Spans can be nested + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Links) + ), + ), + DESCRIPTOR=_SPAN, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A span represents a single operation within a trace. Spans can be nested to form a trace tree. Often, a trace contains a root span that describes the end-to-end latency, and one or more subspans for its sub-operations. A trace can also contain multiple root spans, or none at all. Spans do @@ -1112,8 +1716,9 @@ this span was active. If set, allows implementation to detect missing child spans. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span) + ), +) _sym_db.RegisterMessage(Span) _sym_db.RegisterMessage(Span.Attributes) _sym_db.RegisterMessage(Span.Attributes.AttributeMapEntry) @@ -1124,11 +1729,13 @@ _sym_db.RegisterMessage(Span.Link) _sym_db.RegisterMessage(Span.Links) -AttributeValue = _reflection.GeneratedProtocolMessageType('AttributeValue', (_message.Message,), dict( - DESCRIPTOR = _ATTRIBUTEVALUE, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """The allowed types for [VALUE] in a ``[KEY]:[VALUE]`` attribute. +AttributeValue = _reflection.GeneratedProtocolMessageType( + "AttributeValue", + (_message.Message,), + dict( + DESCRIPTOR=_ATTRIBUTEVALUE, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""The allowed types for [VALUE] in a ``[KEY]:[VALUE]`` attribute. Attributes: @@ -1141,17 +1748,22 @@ bool_value: A Boolean value represented by ``true`` or ``false``. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.AttributeValue) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.AttributeValue) + ), +) _sym_db.RegisterMessage(AttributeValue) -StackTrace = _reflection.GeneratedProtocolMessageType('StackTrace', (_message.Message,), dict( - - StackFrame = _reflection.GeneratedProtocolMessageType('StackFrame', (_message.Message,), dict( - DESCRIPTOR = _STACKTRACE_STACKFRAME, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """Represents a single stack frame in a stack trace. +StackTrace = _reflection.GeneratedProtocolMessageType( + "StackTrace", + (_message.Message,), + dict( + StackFrame=_reflection.GeneratedProtocolMessageType( + "StackFrame", + (_message.Message,), + dict( + DESCRIPTOR=_STACKTRACE_STACKFRAME, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""Represents a single stack frame in a stack trace. Attributes: @@ -1177,15 +1789,16 @@ source_version: The version of the deployed source code (up to 128 bytes). """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace.StackFrame) - )) - , - - StackFrames = _reflection.GeneratedProtocolMessageType('StackFrames', (_message.Message,), dict( - DESCRIPTOR = _STACKTRACE_STACKFRAMES, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A collection of stack frames, which can be truncated. + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace.StackFrame) + ), + ), + StackFrames=_reflection.GeneratedProtocolMessageType( + "StackFrames", + (_message.Message,), + dict( + DESCRIPTOR=_STACKTRACE_STACKFRAMES, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A collection of stack frames, which can be truncated. Attributes: @@ -1196,13 +1809,12 @@ were too many stack frames. If this value is 0, then no stack frames were dropped. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace.StackFrames) - )) - , - DESCRIPTOR = _STACKTRACE, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A call stack appearing in a trace. + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace.StackFrames) + ), + ), + DESCRIPTOR=_STACKTRACE, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A call stack appearing in a trace. Attributes: @@ -1218,17 +1830,20 @@ within the same request can refer to that stack trace by only setting ``stackTraceHashId``. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace) + ), +) _sym_db.RegisterMessage(StackTrace) _sym_db.RegisterMessage(StackTrace.StackFrame) _sym_db.RegisterMessage(StackTrace.StackFrames) -Module = _reflection.GeneratedProtocolMessageType('Module', (_message.Message,), dict( - DESCRIPTOR = _MODULE, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """Binary module. +Module = _reflection.GeneratedProtocolMessageType( + "Module", + (_message.Message,), + dict( + DESCRIPTOR=_MODULE, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""Binary module. Attributes: @@ -1239,15 +1854,18 @@ A unique identifier for the module, usually a hash of its contents (up to 128 bytes). """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Module) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Module) + ), +) _sym_db.RegisterMessage(Module) -TruncatableString = _reflection.GeneratedProtocolMessageType('TruncatableString', (_message.Message,), dict( - DESCRIPTOR = _TRUNCATABLESTRING, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """Represents a string that might be shortened to a specified length. +TruncatableString = _reflection.GeneratedProtocolMessageType( + "TruncatableString", + (_message.Message,), + dict( + DESCRIPTOR=_TRUNCATABLESTRING, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""Represents a string that might be shortened to a specified length. Attributes: @@ -1262,13 +1880,21 @@ The number of bytes removed from the original string. If this value is 0, then the string was not shortened. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.TruncatableString) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.TruncatableString) + ), +) _sym_db.RegisterMessage(TruncatableString) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.devtools.cloudtrace.v2B\nTraceProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\252\002\025Google.Cloud.Trace.V2\312\002\025Google\\Cloud\\Trace\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.devtools.cloudtrace.v2B\nTraceProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\252\002\025Google.Cloud.Trace.V2\312\002\025Google\\Cloud\\Trace\\V2" + ), +) _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY.has_options = True -_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-trace/google/cloud/trace_v2/proto/trace_pb2_grpc.py b/packages/google-cloud-trace/google/cloud/trace_v2/proto/trace_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-trace/google/cloud/trace_v2/proto/trace_pb2_grpc.py +++ b/packages/google-cloud-trace/google/cloud/trace_v2/proto/trace_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/packages/google-cloud-trace/google/cloud/trace_v2/proto/tracing_pb2.py b/packages/google-cloud-trace/google/cloud/trace_v2/proto/tracing_pb2.py index 80b9db9ccd95..9c69b0821115 100644 --- a/packages/google-cloud-trace/google/cloud/trace_v2/proto/tracing_pb2.py +++ b/packages/google-cloud-trace/google/cloud/trace_v2/proto/tracing_pb2.py @@ -3,80 +3,112 @@ # source: google/devtools/cloudtrace_v2/proto/tracing.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) 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 from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.trace_v2.proto import trace_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2 +from google.cloud.trace_v2.proto import ( + trace_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/devtools/cloudtrace_v2/proto/tracing.proto', - package='google.devtools.cloudtrace.v2', - syntax='proto3', - serialized_pb=_b('\n1google/devtools/cloudtrace_v2/proto/tracing.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a/google/devtools/cloudtrace_v2/proto/trace.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"Z\n\x16\x42\x61tchWriteSpansRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x05spans\x18\x02 \x03(\x0b\x32#.google.devtools.cloudtrace.v2.Span2\xaf\x02\n\x0cTraceService\x12\x94\x01\n\x0f\x42\x61tchWriteSpans\x12\x35.google.devtools.cloudtrace.v2.BatchWriteSpansRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,\"\'/v2/{name=projects/*}/traces:batchWrite:\x01*\x12\x87\x01\n\nCreateSpan\x12#.google.devtools.cloudtrace.v2.Span\x1a#.google.devtools.cloudtrace.v2.Span\"/\x82\xd3\xe4\x93\x02)\"$/v2/{name=projects/*/traces/*}/spans:\x01*B\xac\x01\n!com.google.devtools.cloudtrace.v2B\x0cTracingProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V2\xca\x02\x15Google\\Cloud\\Trace\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/devtools/cloudtrace_v2/proto/tracing.proto", + package="google.devtools.cloudtrace.v2", + syntax="proto3", + serialized_pb=_b( + '\n1google/devtools/cloudtrace_v2/proto/tracing.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a/google/devtools/cloudtrace_v2/proto/trace.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"Z\n\x16\x42\x61tchWriteSpansRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x05spans\x18\x02 \x03(\x0b\x32#.google.devtools.cloudtrace.v2.Span2\xaf\x02\n\x0cTraceService\x12\x94\x01\n\x0f\x42\x61tchWriteSpans\x12\x35.google.devtools.cloudtrace.v2.BatchWriteSpansRequest\x1a\x16.google.protobuf.Empty"2\x82\xd3\xe4\x93\x02,"\'/v2/{name=projects/*}/traces:batchWrite:\x01*\x12\x87\x01\n\nCreateSpan\x12#.google.devtools.cloudtrace.v2.Span\x1a#.google.devtools.cloudtrace.v2.Span"/\x82\xd3\xe4\x93\x02)"$/v2/{name=projects/*/traces/*}/spans:\x01*B\xac\x01\n!com.google.devtools.cloudtrace.v2B\x0cTracingProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V2\xca\x02\x15Google\\Cloud\\Trace\\V2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _BATCHWRITESPANSREQUEST = _descriptor.Descriptor( - name='BatchWriteSpansRequest', - full_name='google.devtools.cloudtrace.v2.BatchWriteSpansRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.devtools.cloudtrace.v2.BatchWriteSpansRequest.name', 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, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spans', full_name='google.devtools.cloudtrace.v2.BatchWriteSpansRequest.spans', 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, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=225, - serialized_end=315, + name="BatchWriteSpansRequest", + full_name="google.devtools.cloudtrace.v2.BatchWriteSpansRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.devtools.cloudtrace.v2.BatchWriteSpansRequest.name", + 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, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spans", + full_name="google.devtools.cloudtrace.v2.BatchWriteSpansRequest.spans", + 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, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=225, + serialized_end=315, ) -_BATCHWRITESPANSREQUEST.fields_by_name['spans'].message_type = google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN -DESCRIPTOR.message_types_by_name['BatchWriteSpansRequest'] = _BATCHWRITESPANSREQUEST +_BATCHWRITESPANSREQUEST.fields_by_name[ + "spans" +].message_type = google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN +DESCRIPTOR.message_types_by_name["BatchWriteSpansRequest"] = _BATCHWRITESPANSREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -BatchWriteSpansRequest = _reflection.GeneratedProtocolMessageType('BatchWriteSpansRequest', (_message.Message,), dict( - DESCRIPTOR = _BATCHWRITESPANSREQUEST, - __module__ = 'google.devtools.cloudtrace_v2.proto.tracing_pb2' - , - __doc__ = """The request message for the ``BatchWriteSpans`` method. +BatchWriteSpansRequest = _reflection.GeneratedProtocolMessageType( + "BatchWriteSpansRequest", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHWRITESPANSREQUEST, + __module__="google.devtools.cloudtrace_v2.proto.tracing_pb2", + __doc__="""The request message for the ``BatchWriteSpans`` method. Attributes: @@ -87,44 +119,59 @@ A list of new spans. The span names must not match existing spans, or the results are undefined. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.BatchWriteSpansRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.BatchWriteSpansRequest) + ), +) _sym_db.RegisterMessage(BatchWriteSpansRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.devtools.cloudtrace.v2B\014TracingProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\252\002\025Google.Cloud.Trace.V2\312\002\025Google\\Cloud\\Trace\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.devtools.cloudtrace.v2B\014TracingProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\252\002\025Google.Cloud.Trace.V2\312\002\025Google\\Cloud\\Trace\\V2" + ), +) _TRACESERVICE = _descriptor.ServiceDescriptor( - name='TraceService', - full_name='google.devtools.cloudtrace.v2.TraceService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=318, - serialized_end=621, - methods=[ - _descriptor.MethodDescriptor( - name='BatchWriteSpans', - full_name='google.devtools.cloudtrace.v2.TraceService.BatchWriteSpans', + name="TraceService", + full_name="google.devtools.cloudtrace.v2.TraceService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_BATCHWRITESPANSREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\"\'/v2/{name=projects/*}/traces:batchWrite:\001*')), - ), - _descriptor.MethodDescriptor( - name='CreateSpan', - full_name='google.devtools.cloudtrace.v2.TraceService.CreateSpan', - index=1, - containing_service=None, - input_type=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN, - output_type=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002)\"$/v2/{name=projects/*/traces/*}/spans:\001*')), - ), -]) + options=None, + serialized_start=318, + serialized_end=621, + methods=[ + _descriptor.MethodDescriptor( + name="BatchWriteSpans", + full_name="google.devtools.cloudtrace.v2.TraceService.BatchWriteSpans", + index=0, + containing_service=None, + input_type=_BATCHWRITESPANSREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\"'/v2/{name=projects/*}/traces:batchWrite:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateSpan", + full_name="google.devtools.cloudtrace.v2.TraceService.CreateSpan", + index=1, + containing_service=None, + input_type=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN, + output_type=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002)"$/v2/{name=projects/*/traces/*}/spans:\001*'), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_TRACESERVICE) -DESCRIPTOR.services_by_name['TraceService'] = _TRACESERVICE +DESCRIPTOR.services_by_name["TraceService"] = _TRACESERVICE # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-trace/google/cloud/trace_v2/proto/tracing_pb2_grpc.py b/packages/google-cloud-trace/google/cloud/trace_v2/proto/tracing_pb2_grpc.py index c64c413e20f9..dcc08852bd85 100644 --- a/packages/google-cloud-trace/google/cloud/trace_v2/proto/tracing_pb2_grpc.py +++ b/packages/google-cloud-trace/google/cloud/trace_v2/proto/tracing_pb2_grpc.py @@ -1,74 +1,79 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.trace_v2.proto import trace_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2 -from google.cloud.trace_v2.proto import tracing_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2 +from google.cloud.trace_v2.proto import ( + trace_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2, +) +from google.cloud.trace_v2.proto import ( + tracing_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class TraceServiceStub(object): - """This file describes an API for collecting and viewing traces and spans + """This file describes an API for collecting and viewing traces and spans within a trace. A Trace is a collection of spans corresponding to a single operation or set of operations for an application. A span is an individual timed event which forms a node of the trace tree. A single trace may contain span(s) from multiple services. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.BatchWriteSpans = channel.unary_unary( - '/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans', - request_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2.BatchWriteSpansRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.BatchWriteSpans = channel.unary_unary( + "/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans", + request_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2.BatchWriteSpansRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateSpan = channel.unary_unary( - '/google.devtools.cloudtrace.v2.TraceService/CreateSpan', - request_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.FromString, + self.CreateSpan = channel.unary_unary( + "/google.devtools.cloudtrace.v2.TraceService/CreateSpan", + request_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.SerializeToString, + response_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.FromString, ) class TraceServiceServicer(object): - """This file describes an API for collecting and viewing traces and spans + """This file describes an API for collecting and viewing traces and spans within a trace. A Trace is a collection of spans corresponding to a single operation or set of operations for an application. A span is an individual timed event which forms a node of the trace tree. A single trace may contain span(s) from multiple services. """ - def BatchWriteSpans(self, request, context): - """Sends new spans to new or existing traces. You cannot update + def BatchWriteSpans(self, request, context): + """Sends new spans to new or existing traces. You cannot update existing spans. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateSpan(self, request, context): - """Creates a new span. + def CreateSpan(self, request, context): + """Creates a new span. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_TraceServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'BatchWriteSpans': grpc.unary_unary_rpc_method_handler( - servicer.BatchWriteSpans, - request_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2.BatchWriteSpansRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateSpan': grpc.unary_unary_rpc_method_handler( - servicer.CreateSpan, - request_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.FromString, - response_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.devtools.cloudtrace.v2.TraceService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "BatchWriteSpans": grpc.unary_unary_rpc_method_handler( + servicer.BatchWriteSpans, + request_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2.BatchWriteSpansRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateSpan": grpc.unary_unary_rpc_method_handler( + servicer.CreateSpan, + request_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.FromString, + response_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.devtools.cloudtrace.v2.TraceService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,))