From 74df351491d4e52efa728a2c42b3c5b6ea158812 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 28 Apr 2020 16:33:15 -0700 Subject: [PATCH] chore: update docstring formatting; update templates (via synth) (#16) --- google/cloud/trace_v1/gapic/enums.py | 4 +- google/cloud/trace_v1/proto/trace_pb2.py | 237 ++++++----- google/cloud/trace_v1/proto/trace_pb2_grpc.py | 22 +- .../trace_v2/gapic/trace_service_client.py | 16 +- google/cloud/trace_v2/proto/trace_pb2.py | 367 +++++++++--------- google/cloud/trace_v2/proto/tracing_pb2.py | 67 ++-- .../cloud/trace_v2/proto/tracing_pb2_grpc.py | 16 +- noxfile.py | 3 +- synth.metadata | 21 +- 9 files changed, 376 insertions(+), 377 deletions(-) diff --git a/google/cloud/trace_v1/gapic/enums.py b/google/cloud/trace_v1/gapic/enums.py index 0f4f3f9c..3d5e74ac 100644 --- a/google/cloud/trace_v1/gapic/enums.py +++ b/google/cloud/trace_v1/gapic/enums.py @@ -30,8 +30,8 @@ class ViewType(enum.IntEnum): and trace IDs. ROOTSPAN (int): Root span view of the trace record that returns the root spans along with the minimal trace data. - COMPLETE (int): Complete view of the trace record that contains the actual trace data. - This is equivalent to calling the REST ``get`` or RPC ``GetTrace`` + COMPLETE (int): Complete view of the trace record that contains the actual trace + data. This is equivalent to calling the REST ``get`` or RPC ``GetTrace`` method using the ID of each listed trace. """ diff --git a/google/cloud/trace_v1/proto/trace_pb2.py b/google/cloud/trace_v1/proto/trace_pb2.py index 32966c02..60fb4250 100644 --- a/google/cloud/trace_v1/proto/trace_pb2.py +++ b/google/cloud/trace_v1/proto/trace_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/devtools/cloudtrace_v1/proto/trace.proto +# source: google/cloud/devtools/cloudtrace_v1/proto/trace.proto -import sys - -_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 @@ -24,15 +21,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name="google/devtools/cloudtrace_v1/proto/trace.proto", + name="google/cloud/devtools/cloudtrace_v1/proto/trace.proto", package="google.devtools.cloudtrace.v1", syntax="proto3", - serialized_options=_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" - ), - serialized_pb=_b( - '\n/google/devtools/cloudtrace_v1/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.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"\xa2\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\x1b\n\x0eparent_span_id\x18\x06 \x01(\x06\x42\x03\xe0\x41\x01\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"\x80\x03\n\x11ListTracesRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x04view\x18\x02 \x01(\x0e\x32\x39.google.devtools.cloudtrace.v1.ListTracesRequest.ViewTypeB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\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\x13\n\x06\x66ilter\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x08 \x01(\tB\x03\xe0\x41\x01"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"A\n\x0fGetTraceRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08trace_id\x18\x02 \x01(\tB\x03\xe0\x41\x02"i\n\x12PatchTracesRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12:\n\x06traces\x18\x02 \x01(\x0b\x32%.google.devtools.cloudtrace.v1.TracesB\x03\xe0\x41\x02\x32\xb5\x05\n\x0cTraceService\x12\xa8\x01\n\nListTraces\x12\x30.google.devtools.cloudtrace.v1.ListTracesRequest\x1a\x31.google.devtools.cloudtrace.v1.ListTracesResponse"5\x82\xd3\xe4\x93\x02"\x12 /v1/projects/{project_id}/traces\xda\x41\nproject_id\x12\xab\x01\n\x08GetTrace\x12..google.devtools.cloudtrace.v1.GetTraceRequest\x1a$.google.devtools.cloudtrace.v1.Trace"I\x82\xd3\xe4\x93\x02-\x12+/v1/projects/{project_id}/traces/{trace_id}\xda\x41\x13project_id,trace_id\x12\x9e\x01\n\x0bPatchTraces\x12\x31.google.devtools.cloudtrace.v1.PatchTracesRequest\x1a\x16.google.protobuf.Empty"D\x82\xd3\xe4\x93\x02*2 /v1/projects/{project_id}/traces:\x06traces\xda\x41\x11project_id,traces\x1a\xaa\x01\xca\x41\x19\x63loudtrace.googleapis.com\xd2\x41\x8a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/trace.append,https://www.googleapis.com/auth/trace.readonlyB\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' - ), + serialized_options=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", + serialized_pb=b'\n5google/cloud/devtools/cloudtrace_v1/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.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"\xa2\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\x1b\n\x0eparent_span_id\x18\x06 \x01(\x06\x42\x03\xe0\x41\x01\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"\x80\x03\n\x11ListTracesRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x04view\x18\x02 \x01(\x0e\x32\x39.google.devtools.cloudtrace.v1.ListTracesRequest.ViewTypeB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\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\x13\n\x06\x66ilter\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x08 \x01(\tB\x03\xe0\x41\x01"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"A\n\x0fGetTraceRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08trace_id\x18\x02 \x01(\tB\x03\xe0\x41\x02"i\n\x12PatchTracesRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12:\n\x06traces\x18\x02 \x01(\x0b\x32%.google.devtools.cloudtrace.v1.TracesB\x03\xe0\x41\x02\x32\xb5\x05\n\x0cTraceService\x12\xa8\x01\n\nListTraces\x12\x30.google.devtools.cloudtrace.v1.ListTracesRequest\x1a\x31.google.devtools.cloudtrace.v1.ListTracesResponse"5\x82\xd3\xe4\x93\x02"\x12 /v1/projects/{project_id}/traces\xda\x41\nproject_id\x12\xab\x01\n\x08GetTrace\x12..google.devtools.cloudtrace.v1.GetTraceRequest\x1a$.google.devtools.cloudtrace.v1.Trace"I\x82\xd3\xe4\x93\x02-\x12+/v1/projects/{project_id}/traces/{trace_id}\xda\x41\x13project_id,trace_id\x12\x9e\x01\n\x0bPatchTraces\x12\x31.google.devtools.cloudtrace.v1.PatchTracesRequest\x1a\x16.google.protobuf.Empty"D\x82\xd3\xe4\x93\x02*2 /v1/projects/{project_id}/traces:\x06traces\xda\x41\x11project_id,traces\x1a\xaa\x01\xca\x41\x19\x63loudtrace.googleapis.com\xd2\x41\x8a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/trace.append,https://www.googleapis.com/auth/trace.readonlyB\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_api_dot_client__pb2.DESCRIPTOR, @@ -66,8 +59,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=777, - serialized_end=846, + serialized_start=783, + serialized_end=852, ) _sym_db.RegisterEnumDescriptor(_TRACESPAN_SPANKIND) @@ -96,8 +89,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1155, - serialized_end=1233, + serialized_start=1161, + serialized_end=1239, ) _sym_db.RegisterEnumDescriptor(_LISTTRACESREQUEST_VIEWTYPE) @@ -118,7 +111,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -136,7 +129,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -172,8 +165,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=259, - serialized_end=361, + serialized_start=265, + serialized_end=367, ) @@ -211,8 +204,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=363, - serialized_end=425, + serialized_start=369, + serialized_end=431, ) @@ -232,7 +225,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -250,7 +243,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -263,13 +256,13 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=730, - serialized_end=775, + serialized_start=736, + serialized_end=781, ) _TRACESPAN = _descriptor.Descriptor( @@ -324,7 +317,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -384,7 +377,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -414,8 +407,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=428, - serialized_end=846, + serialized_start=434, + serialized_end=852, ) @@ -435,13 +428,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -459,7 +452,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -477,7 +470,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -489,7 +482,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -543,13 +536,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -561,13 +554,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, ), ], @@ -579,8 +572,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=849, - serialized_end=1233, + serialized_start=855, + serialized_end=1239, ) @@ -618,7 +611,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -636,8 +629,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1235, - serialized_end=1334, + serialized_start=1241, + serialized_end=1340, ) @@ -657,13 +650,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -675,13 +668,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -693,8 +686,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1336, - serialized_end=1401, + serialized_start=1342, + serialized_end=1407, ) @@ -714,13 +707,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -738,7 +731,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -750,8 +743,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1403, - serialized_end=1508, + serialized_start=1409, + serialized_end=1514, ) _TRACE.fields_by_name["spans"].message_type = _TRACESPAN @@ -788,12 +781,14 @@ 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. + { + "DESCRIPTOR": _TRACE, + "__module__": "google.cloud.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. + + Attributes: project_id: Project ID of the Cloud project where the trace data is @@ -806,46 +801,50 @@ Collection of spans in the 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. + { + "DESCRIPTOR": _TRACES, + "__module__": "google.cloud.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) - ), + }, ) _sym_db.RegisterMessage(Traces) TraceSpan = _reflection.GeneratedProtocolMessageType( "TraceSpan", (_message.Message,), - dict( - LabelsEntry=_reflection.GeneratedProtocolMessageType( + { + "LabelsEntry": _reflection.GeneratedProtocolMessageType( "LabelsEntry", (_message.Message,), - dict( - DESCRIPTOR=_TRACESPAN_LABELSENTRY, - __module__="google.devtools.cloudtrace_v1.proto.trace_pb2" + { + "DESCRIPTOR": _TRACESPAN_LABELSENTRY, + "__module__": "google.cloud.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. There may be gaps between spans in a trace. + "DESCRIPTOR": _TRACESPAN, + "__module__": "google.cloud.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. There may be gaps between spans in a trace. + + Attributes: span_id: Identifier for the span. Must be a 64-bit integer other than 0 @@ -891,7 +890,7 @@ ``/tid`` """, # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.TraceSpan) - ), + }, ) _sym_db.RegisterMessage(TraceSpan) _sym_db.RegisterMessage(TraceSpan.LabelsEntry) @@ -899,11 +898,13 @@ 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. + { + "DESCRIPTOR": _LISTTRACESREQUEST, + "__module__": "google.cloud.devtools.cloudtrace_v1.proto.trace_pb2", + "__doc__": """The request message for the ``ListTraces`` method. All + fields are required unless specified. + + Attributes: project_id: Required. ID of the Cloud project where the trace data is @@ -933,10 +934,10 @@ terms are ANDed. Syntax: - ``root:NAME_PREFIX`` or ``NAME_PREFIX``: Return traces where any root span starts with ``NAME_PREFIX``. - ``+root:NAME`` or ``+NAME``: Return - traces where any root span's name is exactly ``NAME``. - + traces where any root span’s name is exactly ``NAME``. - ``span:NAME_PREFIX``: Return traces where any span starts with ``NAME_PREFIX``. - ``+span:NAME``: Return traces where any - span's name is exactly ``NAME``. - ``latency:DURATION``: + span’s name is exactly ``NAME``. - ``latency:DURATION``: Return traces whose overall latency is greater or equal to than ``DURATION``. Accepted units are nanoseconds (``ns``), milliseconds (``ms``), and seconds (``s``). Default is @@ -944,7 +945,7 @@ overall latency is greater than or equal to 24 milliseconds. - ``label:LABEL_KEY``: Return all traces containing the specified label key (exact match, case- - sensitive) regardless of the key:value pair's value + sensitive) regardless of the key:value pair’s value (including empty values). - ``LABEL_KEY:VALUE_PREFIX``: Return all traces containing the specified label key (exact match, case-sensitive) whose value starts with @@ -965,17 +966,19 @@ permitted. """, # @@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. + { + "DESCRIPTOR": _LISTTRACESRESPONSE, + "__module__": "google.cloud.devtools.cloudtrace_v1.proto.trace_pb2", + "__doc__": """The response message for the ``ListTraces`` method. + + Attributes: traces: List of trace records as specified by the view parameter. @@ -985,17 +988,19 @@ request to continue retrieving additional traces. """, # @@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. + { + "DESCRIPTOR": _GETTRACEREQUEST, + "__module__": "google.cloud.devtools.cloudtrace_v1.proto.trace_pb2", + "__doc__": """The request message for the ``GetTrace`` method. + + Attributes: project_id: Required. ID of the Cloud project where the trace data is @@ -1004,17 +1009,19 @@ Required. ID of the trace to return. """, # @@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. + { + "DESCRIPTOR": _PATCHTRACESREQUEST, + "__module__": "google.cloud.devtools.cloudtrace_v1.proto.trace_pb2", + "__doc__": """The request message for the ``PatchTraces`` method. + + Attributes: project_id: Required. ID of the Cloud project where the trace data is @@ -1023,7 +1030,7 @@ Required. The body of the message. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.PatchTracesRequest) - ), + }, ) _sym_db.RegisterMessage(PatchTracesRequest) @@ -1046,11 +1053,9 @@ full_name="google.devtools.cloudtrace.v1.TraceService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\031cloudtrace.googleapis.com\322A\212\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/trace.append,https://www.googleapis.com/auth/trace.readonly" - ), - serialized_start=1511, - serialized_end=2204, + serialized_options=b"\312A\031cloudtrace.googleapis.com\322A\212\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/trace.append,https://www.googleapis.com/auth/trace.readonly", + serialized_start=1517, + serialized_end=2210, methods=[ _descriptor.MethodDescriptor( name="ListTraces", @@ -1059,9 +1064,7 @@ containing_service=None, input_type=_LISTTRACESREQUEST, output_type=_LISTTRACESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002"\022 /v1/projects/{project_id}/traces\332A\nproject_id' - ), + serialized_options=b'\202\323\344\223\002"\022 /v1/projects/{project_id}/traces\332A\nproject_id', ), _descriptor.MethodDescriptor( name="GetTrace", @@ -1070,9 +1073,7 @@ containing_service=None, input_type=_GETTRACEREQUEST, output_type=_TRACE, - serialized_options=_b( - "\202\323\344\223\002-\022+/v1/projects/{project_id}/traces/{trace_id}\332A\023project_id,trace_id" - ), + serialized_options=b"\202\323\344\223\002-\022+/v1/projects/{project_id}/traces/{trace_id}\332A\023project_id,trace_id", ), _descriptor.MethodDescriptor( name="PatchTraces", @@ -1081,9 +1082,7 @@ containing_service=None, input_type=_PATCHTRACESREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002*2 /v1/projects/{project_id}/traces:\006traces\332A\021project_id,traces" - ), + serialized_options=b"\202\323\344\223\002*2 /v1/projects/{project_id}/traces:\006traces\332A\021project_id,traces", ), ], ) diff --git a/google/cloud/trace_v1/proto/trace_pb2_grpc.py b/google/cloud/trace_v1/proto/trace_pb2_grpc.py index e15c6310..52264afc 100644 --- a/google/cloud/trace_v1/proto/trace_pb2_grpc.py +++ b/google/cloud/trace_v1/proto/trace_pb2_grpc.py @@ -2,7 +2,7 @@ import grpc from google.cloud.trace_v1.proto import ( - trace_pb2 as google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2, + trace_pb2 as google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2, ) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 @@ -23,17 +23,17 @@ def __init__(self, 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, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.SerializeToString, + response_deserializer=google_dot_cloud_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, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.SerializeToString, + response_deserializer=google_dot_cloud_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, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) @@ -76,17 +76,17 @@ 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, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.FromString, + response_serializer=google_dot_cloud_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, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.FromString, + response_serializer=google_dot_cloud_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, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), } diff --git a/google/cloud/trace_v2/gapic/trace_service_client.py b/google/cloud/trace_v2/gapic/trace_service_client.py index e45cfc2d..4fe5dc6d 100644 --- a/google/cloud/trace_v2/gapic/trace_service_client.py +++ b/google/cloud/trace_v2/gapic/trace_service_client.py @@ -235,8 +235,8 @@ def batch_write_spans( >>> client.batch_write_spans(name, spans) Args: - name (str): Required. The name of the project where the spans belong. The format is - ``projects/[PROJECT_ID]``. + name (str): Required. The name of the project where the spans belong. The format + is ``projects/[PROJECT_ID]``. spans (list[Union[dict, ~google.cloud.trace_v2.types.Span]]): Required. A list of new spans. The span names must not match existing spans, or the results are undefined. @@ -335,14 +335,14 @@ def create_span( :: - projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] + projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] - [TRACE\_ID] is a unique identifier for a trace within a project; it is a + [TRACE_ID] is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. - [SPAN\_ID] is a unique identifier for a span within a trace; it is a + [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. - span_id (str): The [SPAN\_ID] portion of the span's resource name. + span_id (str): The [SPAN_ID] portion of the span's resource name. display_name (Union[dict, ~google.cloud.trace_v2.types.TruncatableString]): A description of the span's operation (up to 128 bytes). Stackdriver Trace displays the description in the Google Cloud Platform Console. @@ -365,8 +365,8 @@ def create_span( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.trace_v2.types.Timestamp` - parent_span_id (str): The [SPAN\_ID] of this span's parent span. If this is a root span, then - this field must be empty. + parent_span_id (str): The [SPAN_ID] of this span's parent span. If this is a root span, + then this field must be empty. attributes (Union[dict, ~google.cloud.trace_v2.types.Attributes]): A set of attributes on the span. You can have up to 32 attributes per span. diff --git a/google/cloud/trace_v2/proto/trace_pb2.py b/google/cloud/trace_v2/proto/trace_pb2.py index 6506db32..74c0310a 100644 --- a/google/cloud/trace_v2/proto/trace_pb2.py +++ b/google/cloud/trace_v2/proto/trace_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/devtools/cloudtrace_v2/proto/trace.proto +# source: google/cloud/devtools/cloudtrace_v2/proto/trace.proto -import sys - -_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 @@ -24,15 +21,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name="google/devtools/cloudtrace_v2/proto/trace.proto", + name="google/cloud/devtools/cloudtrace_v2/proto/trace.proto", package="google.devtools.cloudtrace.v2", syntax="proto3", - serialized_options=_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" - ), - serialized_pb=_b( - '\n/google/devtools/cloudtrace_v2/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto"\xc2\x10\n\x04Span\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07span_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\x0eparent_span_id\x18\x03 \x01(\t\x12K\n\x0c\x64isplay_name\x18\x04 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableStringB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x31\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\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.StatusB\x03\xe0\x41\x01\x12\x44\n\x1bsame_process_as_parent_span\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x01\x12:\n\x10\x63hild_span_count\x18\r \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x01\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:S\xea\x41P\n\x1e\x63loudtrace.googleapis.com/Span\x12.projects/{project}/traces/{trace}/spans/{span}"\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' - ), + serialized_options=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", + serialized_pb=b'\n5google/cloud/devtools/cloudtrace_v2/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto"\xc2\x10\n\x04Span\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07span_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\x0eparent_span_id\x18\x03 \x01(\t\x12K\n\x0c\x64isplay_name\x18\x04 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableStringB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x31\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\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.StatusB\x03\xe0\x41\x01\x12\x44\n\x1bsame_process_as_parent_span\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x01\x12:\n\x10\x63hild_span_count\x18\r \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x01\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:S\xea\x41P\n\x1e\x63loudtrace.googleapis.com/Span\x12.projects/{project}/traces/{trace}/spans/{span}"\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_api_dot_field__behavior__pb2.DESCRIPTOR, @@ -66,8 +59,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1732, - serialized_end=1784, + serialized_start=1738, + serialized_end=1790, ) _sym_db.RegisterEnumDescriptor(_SPAN_TIMEEVENT_MESSAGEEVENT_TYPE) @@ -101,8 +94,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2123, - serialized_end=2198, + serialized_start=2129, + serialized_end=2204, ) _sym_db.RegisterEnumDescriptor(_SPAN_LINK_TYPE) @@ -123,7 +116,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -154,13 +147,13 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1085, - serialized_end=1183, + serialized_start=1091, + serialized_end=1189, ) _SPAN_ATTRIBUTES = _descriptor.Descriptor( @@ -215,8 +208,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=948, - serialized_end=1183, + serialized_start=954, + serialized_end=1189, ) _SPAN_TIMEEVENT_ANNOTATION = _descriptor.Descriptor( @@ -271,8 +264,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1407, - serialized_end=1558, + serialized_start=1413, + serialized_end=1564, ) _SPAN_TIMEEVENT_MESSAGEEVENT = _descriptor.Descriptor( @@ -363,8 +356,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1561, - serialized_end=1784, + serialized_start=1567, + serialized_end=1790, ) _SPAN_TIMEEVENT = _descriptor.Descriptor( @@ -445,8 +438,8 @@ fields=[], ) ], - serialized_start=1186, - serialized_end=1793, + serialized_start=1192, + serialized_end=1799, ) _SPAN_TIMEEVENTS = _descriptor.Descriptor( @@ -519,8 +512,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1796, - serialized_end=1948, + serialized_start=1802, + serialized_end=1954, ) _SPAN_LINK = _descriptor.Descriptor( @@ -539,7 +532,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -557,7 +550,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -611,8 +604,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1951, - serialized_end=2198, + serialized_start=1957, + serialized_end=2204, ) _SPAN_LINKS = _descriptor.Descriptor( @@ -667,8 +660,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2200, - serialized_end=2292, + serialized_start=2206, + serialized_end=2298, ) _SPAN = _descriptor.Descriptor( @@ -687,13 +680,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -705,13 +698,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -723,7 +716,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -747,7 +740,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -765,7 +758,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -783,7 +776,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -873,7 +866,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -891,7 +884,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -909,7 +902,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, ), ], @@ -922,15 +915,13 @@ _SPAN_LINKS, ], enum_types=[], - serialized_options=_b( - "\352AP\n\036cloudtrace.googleapis.com/Span\022.projects/{project}/traces/{trace}/spans/{span}" - ), + serialized_options=b"\352AP\n\036cloudtrace.googleapis.com/Span\022.projects/{project}/traces/{trace}/spans/{span}", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=263, - serialized_end=2377, + serialized_start=269, + serialized_end=2383, ) @@ -1012,8 +1003,8 @@ fields=[], ) ], - serialized_start=2380, - serialized_end=2522, + serialized_start=2386, + serialized_end=2528, ) @@ -1159,8 +1150,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2646, - serialized_end=3060, + serialized_start=2652, + serialized_end=3066, ) _STACKTRACE_STACKFRAMES = _descriptor.Descriptor( @@ -1215,8 +1206,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3062, - serialized_end=3174, + serialized_start=3068, + serialized_end=3180, ) _STACKTRACE = _descriptor.Descriptor( @@ -1271,8 +1262,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2525, - serialized_end=3174, + serialized_start=2531, + serialized_end=3180, ) @@ -1328,8 +1319,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3177, - serialized_end=3319, + serialized_start=3183, + serialized_end=3325, ) @@ -1349,7 +1340,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1385,8 +1376,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3321, - serialized_end=3385, + serialized_start=3327, + serialized_end=3391, ) _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY.fields_by_name[ @@ -1497,30 +1488,32 @@ Span = _reflection.GeneratedProtocolMessageType( "Span", (_message.Message,), - dict( - Attributes=_reflection.GeneratedProtocolMessageType( + { + "Attributes": _reflection.GeneratedProtocolMessageType( "Attributes", (_message.Message,), - dict( - AttributeMapEntry=_reflection.GeneratedProtocolMessageType( + { + "AttributeMapEntry": _reflection.GeneratedProtocolMessageType( "AttributeMapEntry", (_message.Message,), - dict( - DESCRIPTOR=_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY, - __module__="google.devtools.cloudtrace_v2.proto.trace_pb2" + { + "DESCRIPTOR": _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY, + "__module__": "google.cloud.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]``. + "DESCRIPTOR": _SPAN_ATTRIBUTES, + "__module__": "google.cloud.devtools.cloudtrace_v2.proto.trace_pb2", + "__doc__": """A set of attributes, each in the format ``[KEY]:[VALUE]``. + + Attributes: attribute_map: - The set of attributes. Each attribute's key can be up to 128 + The set of attributes. Each attribute’s key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the Boolean values ``true`` and - ``false``. For example: :: "/instance_id": "my-instance" - "/http/user_agent": "" "/http/request_bytes": 300 + ``false``. For example: :: "/instance_id": "my-instance" + "/http/user_agent": "" "/http/request_bytes": 300 "abc.com/myattribute": true dropped_attributes_count: The number of attributes that were discarded. Attributes can @@ -1529,19 +1522,21 @@ attributes are valid. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Attributes) - ), + }, ), - TimeEvent=_reflection.GeneratedProtocolMessageType( + "TimeEvent": _reflection.GeneratedProtocolMessageType( "TimeEvent", (_message.Message,), - dict( - Annotation=_reflection.GeneratedProtocolMessageType( + { + "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. + { + "DESCRIPTOR": _SPAN_TIMEEVENT_ANNOTATION, + "__module__": "google.cloud.devtools.cloudtrace_v2.proto.trace_pb2", + "__doc__": """Text annotation with a set of attributes. + + Attributes: description: A user-supplied message describing the event. The maximum @@ -1551,21 +1546,23 @@ attributes per Annotation. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation) - ), + }, ), - MessageEvent=_reflection.GeneratedProtocolMessageType( + "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. + { + "DESCRIPTOR": _SPAN_TIMEEVENT_MESSAGEEVENT, + "__module__": "google.cloud.devtools.cloudtrace_v2.proto.trace_pb2", + "__doc__": """An event describing a message sent/received between Spans. + + Attributes: type: Type of MessageEvent. Indicates whether the message was sent or received. id: - An identifier for the MessageEvent's message that can be used + An identifier for the MessageEvent’s message that can be used to match SENT and RECEIVED MessageEvents. It is recommended to be unique within a Span. uncompressed_size_bytes: @@ -1575,11 +1572,13 @@ 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. + "DESCRIPTOR": _SPAN_TIMEEVENT, + "__module__": "google.cloud.devtools.cloudtrace_v2.proto.trace_pb2", + "__doc__": """A time-stamped annotation or message event in the Span. + + Attributes: time: The timestamp indicating the time the event occurred. @@ -1592,17 +1591,19 @@ An event describing a message sent/received between Spans. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent) - ), + }, ), - TimeEvents=_reflection.GeneratedProtocolMessageType( + "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. + { + "DESCRIPTOR": _SPAN_TIMEEVENTS, + "__module__": "google.cloud.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. + + Attributes: time_event: A collection of ``TimeEvent``\ s. @@ -1615,24 +1616,26 @@ dropped. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvents) - ), + }, ), - Link=_reflection.GeneratedProtocolMessageType( + "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. + { + "DESCRIPTOR": _SPAN_LINK, + "__module__": "google.cloud.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. + + Attributes: trace_id: - The [TRACE\_ID] for a trace within a project. + The [TRACE_ID] for a trace within a project. span_id: - The [SPAN\_ID] for a span within a trace. + The [SPAN_ID] for a span within a trace. type: The relationship of the current span relative to the linked span. @@ -1641,16 +1644,18 @@ attributes per link. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Link) - ), + }, ), - Links=_reflection.GeneratedProtocolMessageType( + "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. + { + "DESCRIPTOR": _SPAN_LINKS, + "__module__": "google.cloud.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. + + Attributes: link: A collection of links. @@ -1659,32 +1664,34 @@ 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 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 not need to be contiguous—there may be gaps or - overlaps between spans in a trace. + }, + ), + "DESCRIPTOR": _SPAN, + "__module__": "google.cloud.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 not need to be contiguous—there may be gaps or overlaps + between spans in a trace. + + Attributes: name: The resource name of the span in the following format: :: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] - [TRACE\_ID] is a unique identifier for a trace within a + [TRACE_ID] is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a - 16-byte array. [SPAN\_ID] is a unique identifier for a span + 16-byte array. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. span_id: - The [SPAN\_ID] portion of the span's resource name. + The [SPAN_ID] portion of the span’s resource name. parent_span_id: - The [SPAN\_ID] of this span's parent span. If this is a root + The [SPAN_ID] of this span’s parent span. If this is a root span, then this field must be empty. display_name: - A description of the span's operation (up to 128 bytes). + A description of the span’s operation (up to 128 bytes). Stackdriver Trace displays the description in the Google Cloud Platform Console. For example, the display name can be a qualified method name or a file name and a line number where @@ -1694,7 +1701,7 @@ start_time: The start time of the span. On the client side, this is the time kept by the local machine where the span execution - starts. On the server side, this is the time when the server's + starts. On the server side, this is the time when the server’s application handler starts running. end_time: The end time of the span. On the client side, this is the time @@ -1725,7 +1732,7 @@ missing child spans. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span) - ), + }, ) _sym_db.RegisterMessage(Span) _sym_db.RegisterMessage(Span.Attributes) @@ -1740,10 +1747,13 @@ 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. + { + "DESCRIPTOR": _ATTRIBUTEVALUE, + "__module__": "google.cloud.devtools.cloudtrace_v2.proto.trace_pb2", + "__doc__": """The allowed types for [VALUE] in a ``[KEY]:[VALUE]`` + attribute. + + Attributes: value: The type of the value. @@ -1755,21 +1765,23 @@ A Boolean value represented by ``true`` or ``false``. """, # @@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": _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. + { + "DESCRIPTOR": _STACKTRACE_STACKFRAME, + "__module__": "google.cloud.devtools.cloudtrace_v2.proto.trace_pb2", + "__doc__": """Represents a single stack frame in a stack trace. + + Attributes: function_name: The fully-qualified name that uniquely identifies the function @@ -1794,15 +1806,17 @@ 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": _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. + { + "DESCRIPTOR": _STACKTRACE_STACKFRAMES, + "__module__": "google.cloud.devtools.cloudtrace_v2.proto.trace_pb2", + "__doc__": """A collection of stack frames, which can be truncated. + + Attributes: frame: Stack frames in this call stack. @@ -1812,11 +1826,13 @@ 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. + "DESCRIPTOR": _STACKTRACE, + "__module__": "google.cloud.devtools.cloudtrace_v2.proto.trace_pb2", + "__doc__": """A call stack appearing in a trace. + + Attributes: stack_frames: Stack frames in this stack trace. A maximum of 128 frames are @@ -1831,7 +1847,7 @@ setting ``stackTraceHashId``. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace) - ), + }, ) _sym_db.RegisterMessage(StackTrace) _sym_db.RegisterMessage(StackTrace.StackFrame) @@ -1840,10 +1856,12 @@ Module = _reflection.GeneratedProtocolMessageType( "Module", (_message.Message,), - dict( - DESCRIPTOR=_MODULE, - __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", - __doc__="""Binary module. + { + "DESCRIPTOR": _MODULE, + "__module__": "google.cloud.devtools.cloudtrace_v2.proto.trace_pb2", + "__doc__": """Binary module. + + Attributes: module: For example: main binary, kernel modules, and dynamic @@ -1853,17 +1871,20 @@ contents (up to 128 bytes). """, # @@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. + { + "DESCRIPTOR": _TRUNCATABLESTRING, + "__module__": "google.cloud.devtools.cloudtrace_v2.proto.trace_pb2", + "__doc__": """Represents a string that might be shortened to a specified + length. + + Attributes: value: The shortened string. For example, if the original string is @@ -1877,7 +1898,7 @@ value is 0, then the string was not shortened. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.TruncatableString) - ), + }, ) _sym_db.RegisterMessage(TruncatableString) diff --git a/google/cloud/trace_v2/proto/tracing_pb2.py b/google/cloud/trace_v2/proto/tracing_pb2.py index 525b6748..4c47183f 100644 --- a/google/cloud/trace_v2/proto/tracing_pb2.py +++ b/google/cloud/trace_v2/proto/tracing_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/devtools/cloudtrace_v2/proto/tracing.proto +# source: google/cloud/devtools/cloudtrace_v2/proto/tracing.proto -import sys - -_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 @@ -20,28 +17,24 @@ from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 from google.cloud.trace_v2.proto import ( - trace_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2, + trace_pb2 as google_dot_cloud_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", + name="google/cloud/devtools/cloudtrace_v2/proto/tracing.proto", package="google.devtools.cloudtrace.v2", syntax="proto3", - serialized_options=_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" - ), - serialized_pb=_b( - '\n1google/devtools/cloudtrace_v2/proto/tracing.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a/google/devtools/cloudtrace_v2/proto/trace.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x94\x01\n\x16\x42\x61tchWriteSpansRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x37\n\x05spans\x18\x02 \x03(\x0b\x32#.google.devtools.cloudtrace.v2.SpanB\x03\xe0\x41\x02\x32\xba\x03\n\x0cTraceService\x12\xa1\x01\n\x0f\x42\x61tchWriteSpans\x12\x35.google.devtools.cloudtrace.v2.BatchWriteSpansRequest\x1a\x16.google.protobuf.Empty"?\x82\xd3\xe4\x93\x02,"\'/v2/{name=projects/*}/traces:batchWrite:\x01*\xda\x41\nname,spans\x12\x89\x01\n\nCreateSpan\x12#.google.devtools.cloudtrace.v2.Span\x1a#.google.devtools.cloudtrace.v2.Span"1\x82\xd3\xe4\x93\x02+"&/v2/{name=projects/*/traces/*/spans/*}:\x01*\x1az\xca\x41\x19\x63loudtrace.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/trace.appendB\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' - ), + serialized_options=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", + serialized_pb=b'\n7google/cloud/devtools/cloudtrace_v2/proto/tracing.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/devtools/cloudtrace_v2/proto/trace.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x94\x01\n\x16\x42\x61tchWriteSpansRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x37\n\x05spans\x18\x02 \x03(\x0b\x32#.google.devtools.cloudtrace.v2.SpanB\x03\xe0\x41\x02\x32\xba\x03\n\x0cTraceService\x12\xa1\x01\n\x0f\x42\x61tchWriteSpans\x12\x35.google.devtools.cloudtrace.v2.BatchWriteSpansRequest\x1a\x16.google.protobuf.Empty"?\x82\xd3\xe4\x93\x02,"\'/v2/{name=projects/*}/traces:batchWrite:\x01*\xda\x41\nname,spans\x12\x89\x01\n\nCreateSpan\x12#.google.devtools.cloudtrace.v2.Span\x1a#.google.devtools.cloudtrace.v2.Span"1\x82\xd3\xe4\x93\x02+"&/v2/{name=projects/*/traces/*/spans/*}:\x01*\x1az\xca\x41\x19\x63loudtrace.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/trace.appendB\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_api_dot_client__pb2.DESCRIPTOR, google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, - google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.DESCRIPTOR, + google_dot_cloud_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, ], @@ -64,15 +57,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -90,7 +81,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -102,23 +93,27 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=311, - serialized_end=459, + serialized_start=323, + serialized_end=471, ) _BATCHWRITESPANSREQUEST.fields_by_name[ "spans" -].message_type = google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN +].message_type = ( + google_dot_cloud_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. + { + "DESCRIPTOR": _BATCHWRITESPANSREQUEST, + "__module__": "google.cloud.devtools.cloudtrace_v2.proto.tracing_pb2", + "__doc__": """The request message for the ``BatchWriteSpans`` method. + + Attributes: name: Required. The name of the project where the spans belong. The @@ -128,7 +123,7 @@ existing spans, or the results are undefined. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.BatchWriteSpansRequest) - ), + }, ) _sym_db.RegisterMessage(BatchWriteSpansRequest) @@ -142,11 +137,9 @@ full_name="google.devtools.cloudtrace.v2.TraceService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\031cloudtrace.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/trace.append" - ), - serialized_start=462, - serialized_end=904, + serialized_options=b"\312A\031cloudtrace.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/trace.append", + serialized_start=474, + serialized_end=916, methods=[ _descriptor.MethodDescriptor( name="BatchWriteSpans", @@ -155,20 +148,16 @@ containing_service=None, input_type=_BATCHWRITESPANSREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002,\"'/v2/{name=projects/*}/traces:batchWrite:\001*\332A\nname,spans" - ), + serialized_options=b"\202\323\344\223\002,\"'/v2/{name=projects/*}/traces:batchWrite:\001*\332A\nname,spans", ), _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, - serialized_options=_b( - '\202\323\344\223\002+"&/v2/{name=projects/*/traces/*/spans/*}:\001*' - ), + input_type=google_dot_cloud_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN, + output_type=google_dot_cloud_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN, + serialized_options=b'\202\323\344\223\002+"&/v2/{name=projects/*/traces/*/spans/*}:\001*', ), ], ) diff --git a/google/cloud/trace_v2/proto/tracing_pb2_grpc.py b/google/cloud/trace_v2/proto/tracing_pb2_grpc.py index dcc08852..d33c26f4 100644 --- a/google/cloud/trace_v2/proto/tracing_pb2_grpc.py +++ b/google/cloud/trace_v2/proto/tracing_pb2_grpc.py @@ -2,10 +2,10 @@ import grpc from google.cloud.trace_v2.proto import ( - trace_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2, + trace_pb2 as google_dot_cloud_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, + tracing_pb2 as google_dot_cloud_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2, ) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 @@ -26,13 +26,13 @@ def __init__(self, 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, + request_serializer=google_dot_cloud_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, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.FromString, ) @@ -64,13 +64,13 @@ 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, + request_deserializer=google_dot_cloud_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, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( diff --git a/noxfile.py b/noxfile.py index c6591285..8db400ea 100644 --- a/noxfile.py +++ b/noxfile.py @@ -110,8 +110,7 @@ def system(session): # Install all test dependencies, then install this package into the # virtualenv's dist-packages. - session.install("mock", "pytest") - session.install("git+https://github.com/googleapis/python-test-utils") + session.install("mock", "pytest", "google-cloud-testutils") session.install("-e", ".") # Run py.test against the system tests. diff --git a/synth.metadata b/synth.metadata index 357f5903..02bacc4a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,32 +1,25 @@ { "sources": [ - { - "generator": { - "name": "artman", - "version": "2.0.0", - "dockerImage": "googleapis/artman@sha256:b3b47805231a305d0f40c4bf069df20f6a2635574e6d4259fac651d3f9f6e098" - } - }, { "git": { "name": ".", "remote": "git@github.com:googleapis/python-trace", - "sha": "59e0079f7154190a27faf7cc57d970645f6f8594" + "sha": "821cc6d7f74d731753ead631131cb5bf21b633c1" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "2bf9f22da3f101aeb536e1e88fe036323b8e9188", - "internalRef": "307654927" + "sha": "756b174de4a122461993c1c583345533d819936d", + "internalRef": "308824110" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "716f741f2d307b48cbe8a5bc3bc883571212344a" + "sha": "01b6f23d24b27878b48667ce597876d66b59780e" } } ], @@ -37,8 +30,7 @@ "apiName": "trace", "apiVersion": "v1", "language": "python", - "generator": "gapic", - "config": "google/devtools/cloudtrace/artman_cloudtrace_v1.yaml" + "generator": "bazel" } }, { @@ -47,8 +39,7 @@ "apiName": "trace", "apiVersion": "v2", "language": "python", - "generator": "gapic", - "config": "google/devtools/cloudtrace/artman_cloudtrace_v2.yaml" + "generator": "bazel" } } ]