# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/datacatalog_v1beta1/proto/table_spec.proto

import sys

_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database

# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


DESCRIPTOR = _descriptor.FileDescriptor(
    name="google/cloud/datacatalog_v1beta1/proto/table_spec.proto",
    package="google.cloud.datacatalog.v1beta1",
    syntax="proto3",
    serialized_options=_b(
        "\n\034com.google.cloud.datacatalogP\001ZKgoogle.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog\370\001\001"
    ),
    serialized_pb=_b(
        '\n7google/cloud/datacatalog_v1beta1/proto/table_spec.proto\x12 google.cloud.datacatalog.v1beta1"\xa0\x01\n\x11\x42igQueryTableSpec\x12L\n\x11table_source_type\x18\x01 \x01(\x0e\x32\x31.google.cloud.datacatalog.v1beta1.TableSourceType\x12=\n\tview_spec\x18\x02 \x01(\x0b\x32*.google.cloud.datacatalog.v1beta1.ViewSpec"\x1e\n\x08ViewSpec\x12\x12\n\nview_query\x18\x01 \x01(\t*[\n\x0fTableSourceType\x12!\n\x1dTABLE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rBIGQUERY_VIEW\x10\x02\x12\x12\n\x0e\x42IGQUERY_TABLE\x10\x05\x42p\n\x1c\x63om.google.cloud.datacatalogP\x01ZKgoogle.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog\xf8\x01\x01\x62\x06proto3'
    ),
)

_TABLESOURCETYPE = _descriptor.EnumDescriptor(
    name="TableSourceType",
    full_name="google.cloud.datacatalog.v1beta1.TableSourceType",
    filename=None,
    file=DESCRIPTOR,
    values=[
        _descriptor.EnumValueDescriptor(
            name="TABLE_SOURCE_TYPE_UNSPECIFIED",
            index=0,
            number=0,
            serialized_options=None,
            type=None,
        ),
        _descriptor.EnumValueDescriptor(
            name="BIGQUERY_VIEW", index=1, number=2, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="BIGQUERY_TABLE", index=2, number=5, serialized_options=None, type=None
        ),
    ],
    containing_type=None,
    serialized_options=None,
    serialized_start=288,
    serialized_end=379,
)
_sym_db.RegisterEnumDescriptor(_TABLESOURCETYPE)

TableSourceType = enum_type_wrapper.EnumTypeWrapper(_TABLESOURCETYPE)
TABLE_SOURCE_TYPE_UNSPECIFIED = 0
BIGQUERY_VIEW = 2
BIGQUERY_TABLE = 5


_BIGQUERYTABLESPEC = _descriptor.Descriptor(
    name="BigQueryTableSpec",
    full_name="google.cloud.datacatalog.v1beta1.BigQueryTableSpec",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="table_source_type",
            full_name="google.cloud.datacatalog.v1beta1.BigQueryTableSpec.table_source_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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="view_spec",
            full_name="google.cloud.datacatalog.v1beta1.BigQueryTableSpec.view_spec",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=94,
    serialized_end=254,
)


_VIEWSPEC = _descriptor.Descriptor(
    name="ViewSpec",
    full_name="google.cloud.datacatalog.v1beta1.ViewSpec",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="view_query",
            full_name="google.cloud.datacatalog.v1beta1.ViewSpec.view_query",
            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=None,
            file=DESCRIPTOR,
        )
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=256,
    serialized_end=286,
)

_BIGQUERYTABLESPEC.fields_by_name["table_source_type"].enum_type = _TABLESOURCETYPE
_BIGQUERYTABLESPEC.fields_by_name["view_spec"].message_type = _VIEWSPEC
DESCRIPTOR.message_types_by_name["BigQueryTableSpec"] = _BIGQUERYTABLESPEC
DESCRIPTOR.message_types_by_name["ViewSpec"] = _VIEWSPEC
DESCRIPTOR.enum_types_by_name["TableSourceType"] = _TABLESOURCETYPE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

BigQueryTableSpec = _reflection.GeneratedProtocolMessageType(
    "BigQueryTableSpec",
    (_message.Message,),
    dict(
        DESCRIPTOR=_BIGQUERYTABLESPEC,
        __module__="google.cloud.datacatalog_v1beta1.proto.table_spec_pb2",
        __doc__="""Describes a BigQuery table.
  
  
  Attributes:
      table_source_type:
          The table source type.
      view_spec:
          Table view specification. This field should only be populated
          if table\_source\_type is BIGQUERY\_VIEW.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.BigQueryTableSpec)
    ),
)
_sym_db.RegisterMessage(BigQueryTableSpec)

ViewSpec = _reflection.GeneratedProtocolMessageType(
    "ViewSpec",
    (_message.Message,),
    dict(
        DESCRIPTOR=_VIEWSPEC,
        __module__="google.cloud.datacatalog_v1beta1.proto.table_spec_pb2",
        __doc__="""Table view specification.
  
  
  Attributes:
      view_query:
          The query that defines the table view.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ViewSpec)
    ),
)
_sym_db.RegisterMessage(ViewSpec)


DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
