#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: spark/connect/catalog.proto
# Protobuf Python Version: 6.33.5
"""Generated protocol buffer code."""

from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder

_runtime_version.ValidateProtobufRuntimeVersion(
    _runtime_version.Domain.PUBLIC, 6, 33, 5, "", "spark/connect/catalog.proto"
)
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from pyspark.sql.connect.proto import common_pb2 as spark_dot_connect_dot_common__pb2
from pyspark.sql.connect.proto import types_pb2 as spark_dot_connect_dot_types__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
    b'\n\x1bspark/connect/catalog.proto\x12\rspark.connect\x1a\x1aspark/connect/common.proto\x1a\x19spark/connect/types.proto"\xdd\x14\n\x07\x43\x61talog\x12K\n\x10\x63urrent_database\x18\x01 \x01(\x0b\x32\x1e.spark.connect.CurrentDatabaseH\x00R\x0f\x63urrentDatabase\x12U\n\x14set_current_database\x18\x02 \x01(\x0b\x32!.spark.connect.SetCurrentDatabaseH\x00R\x12setCurrentDatabase\x12\x45\n\x0elist_databases\x18\x03 \x01(\x0b\x32\x1c.spark.connect.ListDatabasesH\x00R\rlistDatabases\x12<\n\x0blist_tables\x18\x04 \x01(\x0b\x32\x19.spark.connect.ListTablesH\x00R\nlistTables\x12\x45\n\x0elist_functions\x18\x05 \x01(\x0b\x32\x1c.spark.connect.ListFunctionsH\x00R\rlistFunctions\x12?\n\x0clist_columns\x18\x06 \x01(\x0b\x32\x1a.spark.connect.ListColumnsH\x00R\x0blistColumns\x12?\n\x0cget_database\x18\x07 \x01(\x0b\x32\x1a.spark.connect.GetDatabaseH\x00R\x0bgetDatabase\x12\x36\n\tget_table\x18\x08 \x01(\x0b\x32\x17.spark.connect.GetTableH\x00R\x08getTable\x12?\n\x0cget_function\x18\t \x01(\x0b\x32\x1a.spark.connect.GetFunctionH\x00R\x0bgetFunction\x12H\n\x0f\x64\x61tabase_exists\x18\n \x01(\x0b\x32\x1d.spark.connect.DatabaseExistsH\x00R\x0e\x64\x61tabaseExists\x12?\n\x0ctable_exists\x18\x0b \x01(\x0b\x32\x1a.spark.connect.TableExistsH\x00R\x0btableExists\x12H\n\x0f\x66unction_exists\x18\x0c \x01(\x0b\x32\x1d.spark.connect.FunctionExistsH\x00R\x0e\x66unctionExists\x12X\n\x15\x63reate_external_table\x18\r \x01(\x0b\x32".spark.connect.CreateExternalTableH\x00R\x13\x63reateExternalTable\x12?\n\x0c\x63reate_table\x18\x0e \x01(\x0b\x32\x1a.spark.connect.CreateTableH\x00R\x0b\x63reateTable\x12\x43\n\x0e\x64rop_temp_view\x18\x0f \x01(\x0b\x32\x1b.spark.connect.DropTempViewH\x00R\x0c\x64ropTempView\x12V\n\x15\x64rop_global_temp_view\x18\x10 \x01(\x0b\x32!.spark.connect.DropGlobalTempViewH\x00R\x12\x64ropGlobalTempView\x12Q\n\x12recover_partitions\x18\x11 \x01(\x0b\x32 .spark.connect.RecoverPartitionsH\x00R\x11recoverPartitions\x12\x36\n\tis_cached\x18\x12 \x01(\x0b\x32\x17.spark.connect.IsCachedH\x00R\x08isCached\x12<\n\x0b\x63\x61\x63he_table\x18\x13 \x01(\x0b\x32\x19.spark.connect.CacheTableH\x00R\ncacheTable\x12\x42\n\runcache_table\x18\x14 \x01(\x0b\x32\x1b.spark.connect.UncacheTableH\x00R\x0cuncacheTable\x12<\n\x0b\x63lear_cache\x18\x15 \x01(\x0b\x32\x19.spark.connect.ClearCacheH\x00R\nclearCache\x12\x42\n\rrefresh_table\x18\x16 \x01(\x0b\x32\x1b.spark.connect.RefreshTableH\x00R\x0crefreshTable\x12\x46\n\x0frefresh_by_path\x18\x17 \x01(\x0b\x32\x1c.spark.connect.RefreshByPathH\x00R\rrefreshByPath\x12H\n\x0f\x63urrent_catalog\x18\x18 \x01(\x0b\x32\x1d.spark.connect.CurrentCatalogH\x00R\x0e\x63urrentCatalog\x12R\n\x13set_current_catalog\x18\x19 \x01(\x0b\x32 .spark.connect.SetCurrentCatalogH\x00R\x11setCurrentCatalog\x12\x42\n\rlist_catalogs\x18\x1a \x01(\x0b\x32\x1b.spark.connect.ListCatalogsH\x00R\x0clistCatalogs\x12O\n\x12list_cached_tables\x18\x1b \x01(\x0b\x32\x1f.spark.connect.ListCachedTablesH\x00R\x10listCachedTables\x12\x39\n\ndrop_table\x18\x1c \x01(\x0b\x32\x18.spark.connect.DropTableH\x00R\tdropTable\x12\x36\n\tdrop_view\x18\x1d \x01(\x0b\x32\x17.spark.connect.DropViewH\x00R\x08\x64ropView\x12H\n\x0f\x63reate_database\x18\x1e \x01(\x0b\x32\x1d.spark.connect.CreateDatabaseH\x00R\x0e\x63reateDatabase\x12\x42\n\rdrop_database\x18\x1f \x01(\x0b\x32\x1b.spark.connect.DropDatabaseH\x00R\x0c\x64ropDatabase\x12H\n\x0flist_partitions\x18  \x01(\x0b\x32\x1d.spark.connect.ListPartitionsH\x00R\x0elistPartitions\x12\x39\n\nlist_views\x18! \x01(\x0b\x32\x18.spark.connect.ListViewsH\x00R\tlistViews\x12U\n\x14get_table_properties\x18" \x01(\x0b\x32!.spark.connect.GetTablePropertiesH\x00R\x12getTableProperties\x12\\\n\x17get_create_table_string\x18# \x01(\x0b\x32#.spark.connect.GetCreateTableStringH\x00R\x14getCreateTableString\x12\x45\n\x0etruncate_table\x18$ \x01(\x0b\x32\x1c.spark.connect.TruncateTableH\x00R\rtruncateTable\x12\x42\n\ranalyze_table\x18% \x01(\x0b\x32\x1b.spark.connect.AnalyzeTableH\x00R\x0c\x61nalyzeTableB\n\n\x08\x63\x61t_type"\x11\n\x0f\x43urrentDatabase"-\n\x12SetCurrentDatabase\x12\x17\n\x07\x64\x62_name\x18\x01 \x01(\tR\x06\x64\x62Name":\n\rListDatabases\x12\x1d\n\x07pattern\x18\x01 \x01(\tH\x00R\x07pattern\x88\x01\x01\x42\n\n\x08_pattern"a\n\nListTables\x12\x1c\n\x07\x64\x62_name\x18\x01 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x12\x1d\n\x07pattern\x18\x02 \x01(\tH\x01R\x07pattern\x88\x01\x01\x42\n\n\x08_db_nameB\n\n\x08_pattern"d\n\rListFunctions\x12\x1c\n\x07\x64\x62_name\x18\x01 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x12\x1d\n\x07pattern\x18\x02 \x01(\tH\x01R\x07pattern\x88\x01\x01\x42\n\n\x08_db_nameB\n\n\x08_pattern"V\n\x0bListColumns\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x1c\n\x07\x64\x62_name\x18\x02 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x42\n\n\x08_db_name"&\n\x0bGetDatabase\x12\x17\n\x07\x64\x62_name\x18\x01 \x01(\tR\x06\x64\x62Name"S\n\x08GetTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x1c\n\x07\x64\x62_name\x18\x02 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x42\n\n\x08_db_name"\\\n\x0bGetFunction\x12#\n\rfunction_name\x18\x01 \x01(\tR\x0c\x66unctionName\x12\x1c\n\x07\x64\x62_name\x18\x02 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x42\n\n\x08_db_name")\n\x0e\x44\x61tabaseExists\x12\x17\n\x07\x64\x62_name\x18\x01 \x01(\tR\x06\x64\x62Name"V\n\x0bTableExists\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x1c\n\x07\x64\x62_name\x18\x02 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x42\n\n\x08_db_name"_\n\x0e\x46unctionExists\x12#\n\rfunction_name\x18\x01 \x01(\tR\x0c\x66unctionName\x12\x1c\n\x07\x64\x62_name\x18\x02 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x42\n\n\x08_db_name"\xc6\x02\n\x13\x43reateExternalTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x17\n\x04path\x18\x02 \x01(\tH\x00R\x04path\x88\x01\x01\x12\x1b\n\x06source\x18\x03 \x01(\tH\x01R\x06source\x88\x01\x01\x12\x34\n\x06schema\x18\x04 \x01(\x0b\x32\x17.spark.connect.DataTypeH\x02R\x06schema\x88\x01\x01\x12I\n\x07options\x18\x05 \x03(\x0b\x32/.spark.connect.CreateExternalTable.OptionsEntryR\x07options\x1a:\n\x0cOptionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x07\n\x05_pathB\t\n\x07_sourceB\t\n\x07_schema"\xed\x02\n\x0b\x43reateTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x17\n\x04path\x18\x02 \x01(\tH\x00R\x04path\x88\x01\x01\x12\x1b\n\x06source\x18\x03 \x01(\tH\x01R\x06source\x88\x01\x01\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tH\x02R\x0b\x64\x65scription\x88\x01\x01\x12\x34\n\x06schema\x18\x05 \x01(\x0b\x32\x17.spark.connect.DataTypeH\x03R\x06schema\x88\x01\x01\x12\x41\n\x07options\x18\x06 \x03(\x0b\x32\'.spark.connect.CreateTable.OptionsEntryR\x07options\x1a:\n\x0cOptionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x07\n\x05_pathB\t\n\x07_sourceB\x0e\n\x0c_descriptionB\t\n\x07_schema"+\n\x0c\x44ropTempView\x12\x1b\n\tview_name\x18\x01 \x01(\tR\x08viewName"1\n\x12\x44ropGlobalTempView\x12\x1b\n\tview_name\x18\x01 \x01(\tR\x08viewName"2\n\x11RecoverPartitions\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName")\n\x08IsCached\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"\x84\x01\n\nCacheTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x45\n\rstorage_level\x18\x02 \x01(\x0b\x32\x1b.spark.connect.StorageLevelH\x00R\x0cstorageLevel\x88\x01\x01\x42\x10\n\x0e_storage_level"-\n\x0cUncacheTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"\x0c\n\nClearCache"-\n\x0cRefreshTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"#\n\rRefreshByPath\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path"\x10\n\x0e\x43urrentCatalog"6\n\x11SetCurrentCatalog\x12!\n\x0c\x63\x61talog_name\x18\x01 \x01(\tR\x0b\x63\x61talogName"9\n\x0cListCatalogs\x12\x1d\n\x07pattern\x18\x01 \x01(\tH\x00R\x07pattern\x88\x01\x01\x42\n\n\x08_pattern"\x12\n\x10ListCachedTables"]\n\tDropTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x1b\n\tif_exists\x18\x02 \x01(\x08R\x08ifExists\x12\x14\n\x05purge\x18\x03 \x01(\x08R\x05purge"D\n\x08\x44ropView\x12\x1b\n\tview_name\x18\x01 \x01(\tR\x08viewName\x12\x1b\n\tif_exists\x18\x02 \x01(\x08R\x08ifExists"\xdb\x01\n\x0e\x43reateDatabase\x12\x17\n\x07\x64\x62_name\x18\x01 \x01(\tR\x06\x64\x62Name\x12"\n\rif_not_exists\x18\x02 \x01(\x08R\x0bifNotExists\x12M\n\nproperties\x18\x03 \x03(\x0b\x32-.spark.connect.CreateDatabase.PropertiesEntryR\nproperties\x1a=\n\x0fPropertiesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01"^\n\x0c\x44ropDatabase\x12\x17\n\x07\x64\x62_name\x18\x01 \x01(\tR\x06\x64\x62Name\x12\x1b\n\tif_exists\x18\x02 \x01(\x08R\x08ifExists\x12\x18\n\x07\x63\x61scade\x18\x03 \x01(\x08R\x07\x63\x61scade"/\n\x0eListPartitions\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"`\n\tListViews\x12\x1c\n\x07\x64\x62_name\x18\x01 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x12\x1d\n\x07pattern\x18\x02 \x01(\tH\x01R\x07pattern\x88\x01\x01\x42\n\n\x08_db_nameB\n\n\x08_pattern"3\n\x12GetTableProperties\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"P\n\x14GetCreateTableString\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x19\n\x08\x61s_serde\x18\x02 \x01(\x08R\x07\x61sSerde".\n\rTruncateTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"F\n\x0c\x41nalyzeTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x17\n\x07no_scan\x18\x02 \x01(\x08R\x06noScanB6\n\x1eorg.apache.spark.connect.protoP\x01Z\x12internal/generatedb\x06proto3'
)

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(
    DESCRIPTOR, "pyspark.sql.connect.proto.catalog_pb2", _globals
)
if not _descriptor._USE_C_DESCRIPTORS:
    _globals["DESCRIPTOR"]._loaded_options = None
    _globals[
        "DESCRIPTOR"
    ]._serialized_options = b"\n\036org.apache.spark.connect.protoP\001Z\022internal/generated"
    _globals["_CREATEEXTERNALTABLE_OPTIONSENTRY"]._loaded_options = None
    _globals["_CREATEEXTERNALTABLE_OPTIONSENTRY"]._serialized_options = b"8\001"
    _globals["_CREATETABLE_OPTIONSENTRY"]._loaded_options = None
    _globals["_CREATETABLE_OPTIONSENTRY"]._serialized_options = b"8\001"
    _globals["_CREATEDATABASE_PROPERTIESENTRY"]._loaded_options = None
    _globals["_CREATEDATABASE_PROPERTIESENTRY"]._serialized_options = b"8\001"
    _globals["_CATALOG"]._serialized_start = 102
    _globals["_CATALOG"]._serialized_end = 2755
    _globals["_CURRENTDATABASE"]._serialized_start = 2757
    _globals["_CURRENTDATABASE"]._serialized_end = 2774
    _globals["_SETCURRENTDATABASE"]._serialized_start = 2776
    _globals["_SETCURRENTDATABASE"]._serialized_end = 2821
    _globals["_LISTDATABASES"]._serialized_start = 2823
    _globals["_LISTDATABASES"]._serialized_end = 2881
    _globals["_LISTTABLES"]._serialized_start = 2883
    _globals["_LISTTABLES"]._serialized_end = 2980
    _globals["_LISTFUNCTIONS"]._serialized_start = 2982
    _globals["_LISTFUNCTIONS"]._serialized_end = 3082
    _globals["_LISTCOLUMNS"]._serialized_start = 3084
    _globals["_LISTCOLUMNS"]._serialized_end = 3170
    _globals["_GETDATABASE"]._serialized_start = 3172
    _globals["_GETDATABASE"]._serialized_end = 3210
    _globals["_GETTABLE"]._serialized_start = 3212
    _globals["_GETTABLE"]._serialized_end = 3295
    _globals["_GETFUNCTION"]._serialized_start = 3297
    _globals["_GETFUNCTION"]._serialized_end = 3389
    _globals["_DATABASEEXISTS"]._serialized_start = 3391
    _globals["_DATABASEEXISTS"]._serialized_end = 3432
    _globals["_TABLEEXISTS"]._serialized_start = 3434
    _globals["_TABLEEXISTS"]._serialized_end = 3520
    _globals["_FUNCTIONEXISTS"]._serialized_start = 3522
    _globals["_FUNCTIONEXISTS"]._serialized_end = 3617
    _globals["_CREATEEXTERNALTABLE"]._serialized_start = 3620
    _globals["_CREATEEXTERNALTABLE"]._serialized_end = 3946
    _globals["_CREATEEXTERNALTABLE_OPTIONSENTRY"]._serialized_start = 3857
    _globals["_CREATEEXTERNALTABLE_OPTIONSENTRY"]._serialized_end = 3915
    _globals["_CREATETABLE"]._serialized_start = 3949
    _globals["_CREATETABLE"]._serialized_end = 4314
    _globals["_CREATETABLE_OPTIONSENTRY"]._serialized_start = 3857
    _globals["_CREATETABLE_OPTIONSENTRY"]._serialized_end = 3915
    _globals["_DROPTEMPVIEW"]._serialized_start = 4316
    _globals["_DROPTEMPVIEW"]._serialized_end = 4359
    _globals["_DROPGLOBALTEMPVIEW"]._serialized_start = 4361
    _globals["_DROPGLOBALTEMPVIEW"]._serialized_end = 4410
    _globals["_RECOVERPARTITIONS"]._serialized_start = 4412
    _globals["_RECOVERPARTITIONS"]._serialized_end = 4462
    _globals["_ISCACHED"]._serialized_start = 4464
    _globals["_ISCACHED"]._serialized_end = 4505
    _globals["_CACHETABLE"]._serialized_start = 4508
    _globals["_CACHETABLE"]._serialized_end = 4640
    _globals["_UNCACHETABLE"]._serialized_start = 4642
    _globals["_UNCACHETABLE"]._serialized_end = 4687
    _globals["_CLEARCACHE"]._serialized_start = 4689
    _globals["_CLEARCACHE"]._serialized_end = 4701
    _globals["_REFRESHTABLE"]._serialized_start = 4703
    _globals["_REFRESHTABLE"]._serialized_end = 4748
    _globals["_REFRESHBYPATH"]._serialized_start = 4750
    _globals["_REFRESHBYPATH"]._serialized_end = 4785
    _globals["_CURRENTCATALOG"]._serialized_start = 4787
    _globals["_CURRENTCATALOG"]._serialized_end = 4803
    _globals["_SETCURRENTCATALOG"]._serialized_start = 4805
    _globals["_SETCURRENTCATALOG"]._serialized_end = 4859
    _globals["_LISTCATALOGS"]._serialized_start = 4861
    _globals["_LISTCATALOGS"]._serialized_end = 4918
    _globals["_LISTCACHEDTABLES"]._serialized_start = 4920
    _globals["_LISTCACHEDTABLES"]._serialized_end = 4938
    _globals["_DROPTABLE"]._serialized_start = 4940
    _globals["_DROPTABLE"]._serialized_end = 5033
    _globals["_DROPVIEW"]._serialized_start = 5035
    _globals["_DROPVIEW"]._serialized_end = 5103
    _globals["_CREATEDATABASE"]._serialized_start = 5106
    _globals["_CREATEDATABASE"]._serialized_end = 5325
    _globals["_CREATEDATABASE_PROPERTIESENTRY"]._serialized_start = 5264
    _globals["_CREATEDATABASE_PROPERTIESENTRY"]._serialized_end = 5325
    _globals["_DROPDATABASE"]._serialized_start = 5327
    _globals["_DROPDATABASE"]._serialized_end = 5421
    _globals["_LISTPARTITIONS"]._serialized_start = 5423
    _globals["_LISTPARTITIONS"]._serialized_end = 5470
    _globals["_LISTVIEWS"]._serialized_start = 5472
    _globals["_LISTVIEWS"]._serialized_end = 5568
    _globals["_GETTABLEPROPERTIES"]._serialized_start = 5570
    _globals["_GETTABLEPROPERTIES"]._serialized_end = 5621
    _globals["_GETCREATETABLESTRING"]._serialized_start = 5623
    _globals["_GETCREATETABLESTRING"]._serialized_end = 5703
    _globals["_TRUNCATETABLE"]._serialized_start = 5705
    _globals["_TRUNCATETABLE"]._serialized_end = 5751
    _globals["_ANALYZETABLE"]._serialized_start = 5753
    _globals["_ANALYZETABLE"]._serialized_end = 5823
# @@protoc_insertion_point(module_scope)
