chore: change create database api (#143)

This commit is contained in:
Yohan Wal
2024-04-09 17:29:04 +08:00
committed by GitHub
parent c00c73b76e
commit b97efbf92a
5 changed files with 285 additions and 285 deletions
+59 -59
View File
@@ -119,7 +119,7 @@ PROTOBUF_CONSTEXPR CreateDatabaseExpr::CreateDatabaseExpr(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()}
, /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.database_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.create_if_not_exists_)*/false
, /*decltype(_impl_._cached_size_)*/{}} {}
struct CreateDatabaseExprDefaultTypeInternal {
@@ -361,7 +361,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateDatabaseExpr, _impl_.catalog_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateDatabaseExpr, _impl_.database_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateDatabaseExpr, _impl_.schema_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateDatabaseExpr, _impl_.create_if_not_exists_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateDatabaseExpr, _impl_.options_),
~0u, // no _has_bits_
@@ -517,44 +517,44 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
"alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n"
"table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre"
"ptime.v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010"
"\"\316\001\n\022CreateDatabaseExpr\022\024\n\014catalog_name\030"
"\001 \001(\t\022\025\n\rdatabase_name\030\002 \001(\t\022\034\n\024create_i"
"f_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.gr"
"eptime.v1.CreateDatabaseExpr.OptionsEntr"
"y\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
"\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalo"
"g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntab"
"le_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grepti"
"me.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014cat"
"alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016"
"drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013ad"
"d_columns\030\001 \003(\0132\026.greptime.v1.AddColumn\""
"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.g"
"reptime.v1.DropColumn\"%\n\013RenameTable\022\026\n\016"
"new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncol"
"umn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n"
"\010location\030\003 \001(\0132\036.greptime.v1.AddColumnL"
"ocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007T"
"ableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name"
"\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1."
"ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022d"
"efault_constraint\030\004 \001(\014\0220\n\rsemantic_type"
"\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007com"
"ment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$"
".greptime.v1.ColumnDataTypeExtension\"\230\001\n"
"\021AddColumnLocation\022B\n\rlocation_type\030\001 \001("
"\0162+.greptime.v1.AddColumnLocation.Locati"
"onType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Loc"
"ationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.gr"
"eptime.v1B\003DdlZ5github.com/GreptimeTeam/"
"greptime-proto/go/greptime/v1b\006proto3"
"\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_name\030"
"\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_"
"not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.grep"
"time.v1.CreateDatabaseExpr.OptionsEntry\032"
".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
"\001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_"
"name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable"
"_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime"
".v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014catal"
"og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr"
"op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_"
"columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n"
"\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre"
"ptime.v1.DropColumn\"%\n\013RenameTable\022\026\n\016ne"
"w_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolum"
"n_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010l"
"ocation\030\003 \001(\0132\036.greptime.v1.AddColumnLoc"
"ation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007Tab"
"leId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001"
" \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1.Co"
"lumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022def"
"ault_constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005"
" \001(\0162\031.greptime.v1.SemanticType\022\017\n\007comme"
"nt\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.g"
"reptime.v1.ColumnDataTypeExtension\"\230\001\n\021A"
"ddColumnLocation\022B\n\rlocation_type\030\001 \001(\0162"
"+.greptime.v1.AddColumnLocation.Location"
"Type\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locat"
"ionType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.grep"
"time.v1B\003DdlZ5github.com/GreptimeTeam/gr"
"eptime-proto/go/greptime/v1b\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
false, false, 2357, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
false, false, 2355, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
"greptime/v1/ddl.proto",
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 17,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
@@ -2677,7 +2677,7 @@ CreateDatabaseExpr::CreateDatabaseExpr(const CreateDatabaseExpr& from)
new (&_impl_) Impl_{
/*decltype(_impl_.options_)*/{}
, decltype(_impl_.catalog_name_){}
, decltype(_impl_.database_name_){}
, decltype(_impl_.schema_name_){}
, decltype(_impl_.create_if_not_exists_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -2691,12 +2691,12 @@ CreateDatabaseExpr::CreateDatabaseExpr(const CreateDatabaseExpr& from)
_this->_impl_.catalog_name_.Set(from._internal_catalog_name(),
_this->GetArenaForAllocation());
}
_impl_.database_name_.InitDefault();
_impl_.schema_name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.database_name_.Set("", GetArenaForAllocation());
_impl_.schema_name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_database_name().empty()) {
_this->_impl_.database_name_.Set(from._internal_database_name(),
if (!from._internal_schema_name().empty()) {
_this->_impl_.schema_name_.Set(from._internal_schema_name(),
_this->GetArenaForAllocation());
}
_this->_impl_.create_if_not_exists_ = from._impl_.create_if_not_exists_;
@@ -2710,7 +2710,7 @@ inline void CreateDatabaseExpr::SharedCtor(
new (&_impl_) Impl_{
/*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena}
, decltype(_impl_.catalog_name_){}
, decltype(_impl_.database_name_){}
, decltype(_impl_.schema_name_){}
, decltype(_impl_.create_if_not_exists_){false}
, /*decltype(_impl_._cached_size_)*/{}
};
@@ -2718,9 +2718,9 @@ inline void CreateDatabaseExpr::SharedCtor(
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.catalog_name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.database_name_.InitDefault();
_impl_.schema_name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.database_name_.Set("", GetArenaForAllocation());
_impl_.schema_name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
@@ -2739,7 +2739,7 @@ inline void CreateDatabaseExpr::SharedDtor() {
_impl_.options_.Destruct();
_impl_.options_.~MapField();
_impl_.catalog_name_.Destroy();
_impl_.database_name_.Destroy();
_impl_.schema_name_.Destroy();
}
void CreateDatabaseExpr::ArenaDtor(void* object) {
@@ -2758,7 +2758,7 @@ void CreateDatabaseExpr::Clear() {
_impl_.options_.Clear();
_impl_.catalog_name_.ClearToEmpty();
_impl_.database_name_.ClearToEmpty();
_impl_.schema_name_.ClearToEmpty();
_impl_.create_if_not_exists_ = false;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -2779,13 +2779,13 @@ const char* CreateDatabaseExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon
} else
goto handle_unusual;
continue;
// string database_name = 2;
// string schema_name = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_database_name();
auto str = _internal_mutable_schema_name();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateDatabaseExpr.database_name"));
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateDatabaseExpr.schema_name"));
} else
goto handle_unusual;
continue;
@@ -2849,14 +2849,14 @@ uint8_t* CreateDatabaseExpr::_InternalSerialize(
1, this->_internal_catalog_name(), target);
}
// string database_name = 2;
if (!this->_internal_database_name().empty()) {
// string schema_name = 2;
if (!this->_internal_schema_name().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_database_name().data(), static_cast<int>(this->_internal_database_name().length()),
this->_internal_schema_name().data(), static_cast<int>(this->_internal_schema_name().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.CreateDatabaseExpr.database_name");
"greptime.v1.CreateDatabaseExpr.schema_name");
target = stream->WriteStringMaybeAliased(
2, this->_internal_database_name(), target);
2, this->_internal_schema_name(), target);
}
// bool create_if_not_exists = 3;
@@ -2927,11 +2927,11 @@ size_t CreateDatabaseExpr::ByteSizeLong() const {
this->_internal_catalog_name());
}
// string database_name = 2;
if (!this->_internal_database_name().empty()) {
// string schema_name = 2;
if (!this->_internal_schema_name().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_database_name());
this->_internal_schema_name());
}
// bool create_if_not_exists = 3;
@@ -2961,8 +2961,8 @@ void CreateDatabaseExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con
if (!from._internal_catalog_name().empty()) {
_this->_internal_set_catalog_name(from._internal_catalog_name());
}
if (!from._internal_database_name().empty()) {
_this->_internal_set_database_name(from._internal_database_name());
if (!from._internal_schema_name().empty()) {
_this->_internal_set_schema_name(from._internal_schema_name());
}
if (from._internal_create_if_not_exists() != 0) {
_this->_internal_set_create_if_not_exists(from._internal_create_if_not_exists());
@@ -2992,8 +2992,8 @@ void CreateDatabaseExpr::InternalSwap(CreateDatabaseExpr* other) {
&other->_impl_.catalog_name_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.database_name_, lhs_arena,
&other->_impl_.database_name_, rhs_arena
&_impl_.schema_name_, lhs_arena,
&other->_impl_.schema_name_, rhs_arena
);
swap(_impl_.create_if_not_exists_, other->_impl_.create_if_not_exists_);
}
+39 -39
View File
@@ -1415,7 +1415,7 @@ class CreateDatabaseExpr final :
enum : int {
kOptionsFieldNumber = 4,
kCatalogNameFieldNumber = 1,
kDatabaseNameFieldNumber = 2,
kSchemaNameFieldNumber = 2,
kCreateIfNotExistsFieldNumber = 3,
};
// map<string, string> options = 4;
@@ -1449,18 +1449,18 @@ class CreateDatabaseExpr final :
std::string* _internal_mutable_catalog_name();
public:
// string database_name = 2;
void clear_database_name();
const std::string& database_name() const;
// string schema_name = 2;
void clear_schema_name();
const std::string& schema_name() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_database_name(ArgT0&& arg0, ArgT... args);
std::string* mutable_database_name();
PROTOBUF_NODISCARD std::string* release_database_name();
void set_allocated_database_name(std::string* database_name);
void set_schema_name(ArgT0&& arg0, ArgT... args);
std::string* mutable_schema_name();
PROTOBUF_NODISCARD std::string* release_schema_name();
void set_allocated_schema_name(std::string* schema_name);
private:
const std::string& _internal_database_name() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_database_name(const std::string& value);
std::string* _internal_mutable_database_name();
const std::string& _internal_schema_name() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value);
std::string* _internal_mutable_schema_name();
public:
// bool create_if_not_exists = 3;
@@ -1486,7 +1486,7 @@ class CreateDatabaseExpr final :
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_;
bool create_if_not_exists_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -4910,54 +4910,54 @@ inline void CreateDatabaseExpr::set_allocated_catalog_name(std::string* catalog_
// @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateDatabaseExpr.catalog_name)
}
// string database_name = 2;
inline void CreateDatabaseExpr::clear_database_name() {
_impl_.database_name_.ClearToEmpty();
// string schema_name = 2;
inline void CreateDatabaseExpr::clear_schema_name() {
_impl_.schema_name_.ClearToEmpty();
}
inline const std::string& CreateDatabaseExpr::database_name() const {
// @@protoc_insertion_point(field_get:greptime.v1.CreateDatabaseExpr.database_name)
return _internal_database_name();
inline const std::string& CreateDatabaseExpr::schema_name() const {
// @@protoc_insertion_point(field_get:greptime.v1.CreateDatabaseExpr.schema_name)
return _internal_schema_name();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void CreateDatabaseExpr::set_database_name(ArgT0&& arg0, ArgT... args) {
void CreateDatabaseExpr::set_schema_name(ArgT0&& arg0, ArgT... args) {
_impl_.database_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.CreateDatabaseExpr.database_name)
_impl_.schema_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.CreateDatabaseExpr.schema_name)
}
inline std::string* CreateDatabaseExpr::mutable_database_name() {
std::string* _s = _internal_mutable_database_name();
// @@protoc_insertion_point(field_mutable:greptime.v1.CreateDatabaseExpr.database_name)
inline std::string* CreateDatabaseExpr::mutable_schema_name() {
std::string* _s = _internal_mutable_schema_name();
// @@protoc_insertion_point(field_mutable:greptime.v1.CreateDatabaseExpr.schema_name)
return _s;
}
inline const std::string& CreateDatabaseExpr::_internal_database_name() const {
return _impl_.database_name_.Get();
inline const std::string& CreateDatabaseExpr::_internal_schema_name() const {
return _impl_.schema_name_.Get();
}
inline void CreateDatabaseExpr::_internal_set_database_name(const std::string& value) {
inline void CreateDatabaseExpr::_internal_set_schema_name(const std::string& value) {
_impl_.database_name_.Set(value, GetArenaForAllocation());
_impl_.schema_name_.Set(value, GetArenaForAllocation());
}
inline std::string* CreateDatabaseExpr::_internal_mutable_database_name() {
inline std::string* CreateDatabaseExpr::_internal_mutable_schema_name() {
return _impl_.database_name_.Mutable(GetArenaForAllocation());
return _impl_.schema_name_.Mutable(GetArenaForAllocation());
}
inline std::string* CreateDatabaseExpr::release_database_name() {
// @@protoc_insertion_point(field_release:greptime.v1.CreateDatabaseExpr.database_name)
return _impl_.database_name_.Release();
inline std::string* CreateDatabaseExpr::release_schema_name() {
// @@protoc_insertion_point(field_release:greptime.v1.CreateDatabaseExpr.schema_name)
return _impl_.schema_name_.Release();
}
inline void CreateDatabaseExpr::set_allocated_database_name(std::string* database_name) {
if (database_name != nullptr) {
inline void CreateDatabaseExpr::set_allocated_schema_name(std::string* schema_name) {
if (schema_name != nullptr) {
} else {
}
_impl_.database_name_.SetAllocated(database_name, GetArenaForAllocation());
_impl_.schema_name_.SetAllocated(schema_name, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.database_name_.IsDefault()) {
_impl_.database_name_.Set("", GetArenaForAllocation());
if (_impl_.schema_name_.IsDefault()) {
_impl_.schema_name_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateDatabaseExpr.database_name)
// @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateDatabaseExpr.schema_name)
}
// bool create_if_not_exists = 3;
+100 -100
View File
@@ -538,7 +538,7 @@ type CreateDatabaseExpr struct {
unknownFields protoimpl.UnknownFields
CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"`
DatabaseName string `protobuf:"bytes,2,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"`
SchemaName string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"`
CreateIfNotExists bool `protobuf:"varint,3,opt,name=create_if_not_exists,json=createIfNotExists,proto3" json:"create_if_not_exists,omitempty"`
Options map[string]string `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
@@ -582,9 +582,9 @@ func (x *CreateDatabaseExpr) GetCatalogName() string {
return ""
}
func (x *CreateDatabaseExpr) GetDatabaseName() string {
func (x *CreateDatabaseExpr) GetSchemaName() string {
if x != nil {
return x.DatabaseName
return x.SchemaName
}
return ""
}
@@ -1272,105 +1272,105 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f,
0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28,
0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22,
0x91, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,
0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61,
0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74,
0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f,
0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f,
0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12,
0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70,
0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07,
0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74,
0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b,
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a,
0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62,
0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x7c, 0x0a,
0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70,
0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66,
0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64,
0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x0a, 0x41,
0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64,
0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a,
0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e,
0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61,
0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12,
0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22,
0xd8, 0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70,
0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69,
0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12,
0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69,
0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73,
0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01,
0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73,
0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63,
0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f,
0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70,
0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78,
0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70,
0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41,
0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c,
0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79,
0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61,
0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24,
0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09,
0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54,
0x45, 0x52, 0x10, 0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f,
0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73,
0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e,
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22,
0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c,
0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74,
0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73,
0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62,
0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74,
0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c,
0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f,
0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a,
0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65,
0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d,
0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69,
0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49,
0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49,
0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a,
0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72,
0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e,
0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e,
0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44,
0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20,
0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0xd8, 0x02, 0x0a, 0x09,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a,
0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64,
0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75,
0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73,
0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61,
0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e,
0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e,
0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d,
0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e,
0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78,
0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74,
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d,
0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65,
0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a,
0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49,
0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01,
0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d,
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
+86 -86
View File
@@ -6969,16 +6969,16 @@ java.lang.String defaultValue);
getCatalogNameBytes();
/**
* <code>string database_name = 2;</code>
* @return The databaseName.
* <code>string schema_name = 2;</code>
* @return The schemaName.
*/
java.lang.String getDatabaseName();
java.lang.String getSchemaName();
/**
* <code>string database_name = 2;</code>
* @return The bytes for databaseName.
* <code>string schema_name = 2;</code>
* @return The bytes for schemaName.
*/
com.google.protobuf.ByteString
getDatabaseNameBytes();
getSchemaNameBytes();
/**
* <code>bool create_if_not_exists = 3;</code>
@@ -7036,7 +7036,7 @@ java.lang.String defaultValue);
}
private CreateDatabaseExpr() {
catalogName_ = "";
databaseName_ = "";
schemaName_ = "";
}
@java.lang.Override
@@ -7079,7 +7079,7 @@ java.lang.String defaultValue);
case 18: {
java.lang.String s = input.readStringRequireUtf8();
databaseName_ = s;
schemaName_ = s;
break;
}
case 24: {
@@ -7184,38 +7184,38 @@ java.lang.String defaultValue);
}
}
public static final int DATABASE_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object databaseName_;
public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object schemaName_;
/**
* <code>string database_name = 2;</code>
* @return The databaseName.
* <code>string schema_name = 2;</code>
* @return The schemaName.
*/
@java.lang.Override
public java.lang.String getDatabaseName() {
java.lang.Object ref = databaseName_;
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
databaseName_ = s;
schemaName_ = s;
return s;
}
}
/**
* <code>string database_name = 2;</code>
* @return The bytes for databaseName.
* <code>string schema_name = 2;</code>
* @return The bytes for schemaName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatabaseNameBytes() {
java.lang.Object ref = databaseName_;
getSchemaNameBytes() {
java.lang.Object ref = schemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
databaseName_ = b;
schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -7331,8 +7331,8 @@ java.lang.String defaultValue);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, databaseName_);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_);
}
if (createIfNotExists_ != false) {
output.writeBool(3, createIfNotExists_);
@@ -7355,8 +7355,8 @@ java.lang.String defaultValue);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, databaseName_);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_);
}
if (createIfNotExists_ != false) {
size += com.google.protobuf.CodedOutputStream
@@ -7389,8 +7389,8 @@ java.lang.String defaultValue);
if (!getCatalogName()
.equals(other.getCatalogName())) return false;
if (!getDatabaseName()
.equals(other.getDatabaseName())) return false;
if (!getSchemaName()
.equals(other.getSchemaName())) return false;
if (getCreateIfNotExists()
!= other.getCreateIfNotExists()) return false;
if (!internalGetOptions().equals(
@@ -7408,8 +7408,8 @@ java.lang.String defaultValue);
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER;
hash = (53 * hash) + getCatalogName().hashCode();
hash = (37 * hash) + DATABASE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDatabaseName().hashCode();
hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
hash = (37 * hash) + CREATE_IF_NOT_EXISTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCreateIfNotExists());
@@ -7574,7 +7574,7 @@ java.lang.String defaultValue);
super.clear();
catalogName_ = "";
databaseName_ = "";
schemaName_ = "";
createIfNotExists_ = false;
@@ -7607,7 +7607,7 @@ java.lang.String defaultValue);
io.greptime.v1.Ddl.CreateDatabaseExpr result = new io.greptime.v1.Ddl.CreateDatabaseExpr(this);
int from_bitField0_ = bitField0_;
result.catalogName_ = catalogName_;
result.databaseName_ = databaseName_;
result.schemaName_ = schemaName_;
result.createIfNotExists_ = createIfNotExists_;
result.options_ = internalGetOptions();
result.options_.makeImmutable();
@@ -7663,8 +7663,8 @@ java.lang.String defaultValue);
catalogName_ = other.catalogName_;
onChanged();
}
if (!other.getDatabaseName().isEmpty()) {
databaseName_ = other.databaseName_;
if (!other.getSchemaName().isEmpty()) {
schemaName_ = other.schemaName_;
onChanged();
}
if (other.getCreateIfNotExists() != false) {
@@ -7778,78 +7778,78 @@ java.lang.String defaultValue);
return this;
}
private java.lang.Object databaseName_ = "";
private java.lang.Object schemaName_ = "";
/**
* <code>string database_name = 2;</code>
* @return The databaseName.
* <code>string schema_name = 2;</code>
* @return The schemaName.
*/
public java.lang.String getDatabaseName() {
java.lang.Object ref = databaseName_;
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
databaseName_ = s;
schemaName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string database_name = 2;</code>
* @return The bytes for databaseName.
* <code>string schema_name = 2;</code>
* @return The bytes for schemaName.
*/
public com.google.protobuf.ByteString
getDatabaseNameBytes() {
java.lang.Object ref = databaseName_;
getSchemaNameBytes() {
java.lang.Object ref = schemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
databaseName_ = b;
schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string database_name = 2;</code>
* @param value The databaseName to set.
* <code>string schema_name = 2;</code>
* @param value The schemaName to set.
* @return This builder for chaining.
*/
public Builder setDatabaseName(
public Builder setSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
databaseName_ = value;
schemaName_ = value;
onChanged();
return this;
}
/**
* <code>string database_name = 2;</code>
* <code>string schema_name = 2;</code>
* @return This builder for chaining.
*/
public Builder clearDatabaseName() {
public Builder clearSchemaName() {
databaseName_ = getDefaultInstance().getDatabaseName();
schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
/**
* <code>string database_name = 2;</code>
* @param value The bytes for databaseName to set.
* <code>string schema_name = 2;</code>
* @param value The bytes for schemaName to set.
* @return This builder for chaining.
*/
public Builder setDatabaseNameBytes(
public Builder setSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
databaseName_ = value;
schemaName_ = value;
onChanged();
return this;
}
@@ -16227,37 +16227,37 @@ java.lang.String defaultValue);
"alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n" +
"table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre" +
"ptime.v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010" +
"\"\316\001\n\022CreateDatabaseExpr\022\024\n\014catalog_name\030" +
"\001 \001(\t\022\025\n\rdatabase_name\030\002 \001(\t\022\034\n\024create_i" +
"f_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.gr" +
"eptime.v1.CreateDatabaseExpr.OptionsEntr" +
"y\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" +
"\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalo" +
"g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntab" +
"le_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grepti" +
"me.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014cat" +
"alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016" +
"drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013ad" +
"d_columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"" +
"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.g" +
"reptime.v1.DropColumn\"%\n\013RenameTable\022\026\n\016" +
"new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncol" +
"umn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n" +
"\010location\030\003 \001(\0132\036.greptime.v1.AddColumnL" +
"ocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007T" +
"ableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name" +
"\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1." +
"ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022d" +
"efault_constraint\030\004 \001(\014\0220\n\rsemantic_type" +
"\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007com" +
"ment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$" +
".greptime.v1.ColumnDataTypeExtension\"\230\001\n" +
"\021AddColumnLocation\022B\n\rlocation_type\030\001 \001(" +
"\0162+.greptime.v1.AddColumnLocation.Locati" +
"onType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Loc" +
"ationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.gr" +
"eptime.v1B\003DdlZ5github.com/GreptimeTeam/" +
"greptime-proto/go/greptime/v1b\006proto3"
"\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_name\030" +
"\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_" +
"not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.grep" +
"time.v1.CreateDatabaseExpr.OptionsEntry\032" +
".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
"\001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_" +
"name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable" +
"_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime" +
".v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014catal" +
"og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr" +
"op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_" +
"columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n" +
"\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre" +
"ptime.v1.DropColumn\"%\n\013RenameTable\022\026\n\016ne" +
"w_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolum" +
"n_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010l" +
"ocation\030\003 \001(\0132\036.greptime.v1.AddColumnLoc" +
"ation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007Tab" +
"leId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001" +
" \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1.Co" +
"lumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022def" +
"ault_constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005" +
" \001(\0162\031.greptime.v1.SemanticType\022\017\n\007comme" +
"nt\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.g" +
"reptime.v1.ColumnDataTypeExtension\"\230\001\n\021A" +
"ddColumnLocation\022B\n\rlocation_type\030\001 \001(\0162" +
"+.greptime.v1.AddColumnLocation.Location" +
"Type\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locat" +
"ionType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.grep" +
"time.v1B\003DdlZ5github.com/GreptimeTeam/gr" +
"eptime-proto/go/greptime/v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -16299,7 +16299,7 @@ java.lang.String defaultValue);
internal_static_greptime_v1_CreateDatabaseExpr_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_CreateDatabaseExpr_descriptor,
new java.lang.String[] { "CatalogName", "DatabaseName", "CreateIfNotExists", "Options", });
new java.lang.String[] { "CatalogName", "SchemaName", "CreateIfNotExists", "Options", });
internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_descriptor =
internal_static_greptime_v1_CreateDatabaseExpr_descriptor.getNestedTypes().get(0);
internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_fieldAccessorTable = new
+1 -1
View File
@@ -71,7 +71,7 @@ message DropTableExpr {
message CreateDatabaseExpr {
string catalog_name = 1;
string database_name = 2;
string schema_name = 2;
bool create_if_not_exists = 3;
map<string, string> options = 4;
}