# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/devtools/cloudtrace_v2/proto/tracing.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database

# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.api import client_pb2 as google_dot_api_dot_client__pb2
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_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/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\352\002\030Google::Cloud::Trace::V2",
    create_key=_descriptor._internal_create_key,
    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\xc7\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\\V2\xea\x02\x18Google::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_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,
    ],
)


_BATCHWRITESPANSREQUEST = _descriptor.Descriptor(
    name="BatchWriteSpansRequest",
    full_name="google.devtools.cloudtrace.v2.BatchWriteSpansRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    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,
            serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _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,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=323,
    serialized_end=471,
)

_BATCHWRITESPANSREQUEST.fields_by_name[
    "spans"
].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,),
    {
        "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
          format is ``projects/[PROJECT_ID]``.
      spans:
          Required. 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)
    },
)
_sym_db.RegisterMessage(BatchWriteSpansRequest)


DESCRIPTOR._options = None
_BATCHWRITESPANSREQUEST.fields_by_name["name"]._options = None
_BATCHWRITESPANSREQUEST.fields_by_name["spans"]._options = None

_TRACESERVICE = _descriptor.ServiceDescriptor(
    name="TraceService",
    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",
    create_key=_descriptor._internal_create_key,
    serialized_start=474,
    serialized_end=916,
    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,
            serialized_options=b"\202\323\344\223\002,\"'/v2/{name=projects/*}/traces:batchWrite:\001*\332A\nname,spans",
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.MethodDescriptor(
            name="CreateSpan",
            full_name="google.devtools.cloudtrace.v2.TraceService.CreateSpan",
            index=1,
            containing_service=None,
            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*',
            create_key=_descriptor._internal_create_key,
        ),
    ],
)
_sym_db.RegisterServiceDescriptor(_TRACESERVICE)

DESCRIPTOR.services_by_name["TraceService"] = _TRACESERVICE

# @@protoc_insertion_point(module_scope)
