diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc index c7f2b47a..940f53e3 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -155,7 +155,6 @@ PROTOBUF_CONSTEXPR CreateRequest::CreateRequest( , /*decltype(_impl_.engine_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.region_id_)*/uint64_t{0u} - , /*decltype(_impl_.create_if_not_exists_)*/false , /*decltype(_impl_._cached_size_)*/{}} {} struct CreateRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR CreateRequestDefaultTypeInternal() @@ -428,7 +427,6 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.engine_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.column_defs_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.primary_key_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.create_if_not_exists_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.path_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.options_), ~0u, // no _has_bits_ @@ -539,18 +537,18 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 63, -1, -1, sizeof(::greptime::v1::region::QueryRequest)}, { 72, 80, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)}, { 82, -1, -1, sizeof(::greptime::v1::region::CreateRequest)}, - { 95, -1, -1, sizeof(::greptime::v1::region::DropRequest)}, - { 102, 110, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)}, - { 112, -1, -1, sizeof(::greptime::v1::region::OpenRequest)}, - { 122, -1, -1, sizeof(::greptime::v1::region::CloseRequest)}, - { 129, -1, -1, sizeof(::greptime::v1::region::AlterRequest)}, - { 140, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, - { 147, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, - { 154, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, - { 162, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, - { 169, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, - { 176, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, - { 183, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, + { 94, -1, -1, sizeof(::greptime::v1::region::DropRequest)}, + { 101, 109, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)}, + { 111, -1, -1, sizeof(::greptime::v1::region::OpenRequest)}, + { 121, -1, -1, sizeof(::greptime::v1::region::CloseRequest)}, + { 128, -1, -1, sizeof(::greptime::v1::region::AlterRequest)}, + { 139, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, + { 146, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, + { 153, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, + { 161, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, + { 168, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, + { 175, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, + { 182, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -609,40 +607,40 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P "(\0132\021.greptime.v1.Rows\"h\n\014QueryRequest\0227\n" "\006header\030\001 \001(\0132\'.greptime.v1.region.Regio" "nRequestHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004pla" - "n\030\003 \001(\014\"\236\002\n\rCreateRequest\022\021\n\tregion_id\030\001" + "n\030\003 \001(\014\"\200\002\n\rCreateRequest\022\021\n\tregion_id\030\001" " \001(\004\022\016\n\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003(" "\0132#.greptime.v1.region.RegionColumnDef\022\023" - "\n\013primary_key\030\004 \003(\r\022\034\n\024create_if_not_exi" - "sts\030\005 \001(\010\022\014\n\004path\030\006 \001(\t\022\?\n\007options\030\007 \003(\013" - "2..greptime.v1.region.CreateRequest.Opti" - "onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - "\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022\021\n\tregio" - "n_id\030\001 \001(\004\"\255\001\n\013OpenRequest\022\021\n\tregion_id\030" - "\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022=\n\007o" - "ptions\030\004 \003(\0132,.greptime.v1.region.OpenRe" + "\n\013primary_key\030\004 \003(\r\022\014\n\004path\030\005 \001(\t\022\?\n\007opt" + "ions\030\006 \003(\0132..greptime.v1.region.CreateRe" "quest.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke" - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseReque" - "st\022\021\n\tregion_id\030\001 \001(\004\"\261\001\n\014AlterRequest\022\021" - "\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030\002 \001(\0132\036" - ".greptime.v1.region.AddColumnsH\000\0227\n\014drop" - "_columns\030\003 \001(\0132\037.greptime.v1.region.Drop" - "ColumnsH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004kin" - "d\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(\0132\035.g" - "reptime.v1.region.AddColumn\"C\n\013DropColum" - "ns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime.v1.r" - "egion.DropColumn\"v\n\tAddColumn\0227\n\ncolumn_" - "def\030\001 \001(\0132#.greptime.v1.region.RegionCol" - "umnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.A" - "ddColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001" - " \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"" - "#\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017" - "RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.gr" - "eptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y" - "\n\006Region\022O\n\006Handle\022!.greptime.v1.region." - "RegionRequest\032\".greptime.v1.region.Regio" - "nResponseB]\n\025io.greptime.v1.regionB\006Serv" - "erZ(from._internal_metadata_); @@ -3024,9 +3021,7 @@ CreateRequest::CreateRequest(const CreateRequest& from) _this->_impl_.path_.Set(from._internal_path(), _this->GetArenaForAllocation()); } - ::memcpy(&_impl_.region_id_, &from._impl_.region_id_, - static_cast(reinterpret_cast(&_impl_.create_if_not_exists_) - - reinterpret_cast(&_impl_.region_id_)) + sizeof(_impl_.create_if_not_exists_)); + _this->_impl_.region_id_ = from._impl_.region_id_; // @@protoc_insertion_point(copy_constructor:greptime.v1.region.CreateRequest) } @@ -3042,7 +3037,6 @@ inline void CreateRequest::SharedCtor( , decltype(_impl_.engine_){} , decltype(_impl_.path_){} , decltype(_impl_.region_id_){uint64_t{0u}} - , decltype(_impl_.create_if_not_exists_){false} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.engine_.InitDefault(); @@ -3094,9 +3088,7 @@ void CreateRequest::Clear() { _impl_.options_.Clear(); _impl_.engine_.ClearToEmpty(); _impl_.path_.ClearToEmpty(); - ::memset(&_impl_.region_id_, 0, static_cast( - reinterpret_cast(&_impl_.create_if_not_exists_) - - reinterpret_cast(&_impl_.region_id_)) + sizeof(_impl_.create_if_not_exists_)); + _impl_.region_id_ = uint64_t{0u}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -3148,17 +3140,9 @@ const char* CreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // bool create_if_not_exists = 5; + // string path = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _impl_.create_if_not_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string path = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { auto str = _internal_mutable_path(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); @@ -3166,16 +3150,16 @@ const char* CreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // map options = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + // map options = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(&_impl_.options_, ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); } else goto handle_unusual; continue; @@ -3241,23 +3225,17 @@ uint8_t* CreateRequest::_InternalSerialize( } } - // bool create_if_not_exists = 5; - if (this->_internal_create_if_not_exists() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_create_if_not_exists(), target); - } - - // string path = 6; + // string path = 5; if (!this->_internal_path().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_path().data(), static_cast(this->_internal_path().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "greptime.v1.region.CreateRequest.path"); target = stream->WriteStringMaybeAliased( - 6, this->_internal_path(), target); + 5, this->_internal_path(), target); } - // map options = 7; + // map options = 6; if (!this->_internal_options().empty()) { using MapType = ::_pb::Map; using WireHelper = CreateRequest_OptionsEntry_DoNotUse::Funcs; @@ -3276,12 +3254,12 @@ uint8_t* CreateRequest::_InternalSerialize( if (stream->IsSerializationDeterministic() && map_field.size() > 1) { for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); check_utf8(entry); } } else { for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); check_utf8(entry); } } @@ -3324,7 +3302,7 @@ size_t CreateRequest::ByteSizeLong() const { total_size += data_size; } - // map options = 7; + // map options = 6; total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size()); for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator @@ -3340,7 +3318,7 @@ size_t CreateRequest::ByteSizeLong() const { this->_internal_engine()); } - // string path = 6; + // string path = 5; if (!this->_internal_path().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( @@ -3352,11 +3330,6 @@ size_t CreateRequest::ByteSizeLong() const { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); } - // bool create_if_not_exists = 5; - if (this->_internal_create_if_not_exists() != 0) { - total_size += 1 + 1; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -3387,9 +3360,6 @@ void CreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :: if (from._internal_region_id() != 0) { _this->_internal_set_region_id(from._internal_region_id()); } - if (from._internal_create_if_not_exists() != 0) { - _this->_internal_set_create_if_not_exists(from._internal_create_if_not_exists()); - } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -3420,12 +3390,7 @@ void CreateRequest::InternalSwap(CreateRequest* other) { &_impl_.path_, lhs_arena, &other->_impl_.path_, rhs_arena ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CreateRequest, _impl_.create_if_not_exists_) - + sizeof(CreateRequest::_impl_.create_if_not_exists_) - - PROTOBUF_FIELD_OFFSET(CreateRequest, _impl_.region_id_)>( - reinterpret_cast(&_impl_.region_id_), - reinterpret_cast(&other->_impl_.region_id_)); + swap(_impl_.region_id_, other->_impl_.region_id_); } ::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest::GetMetadata() const { diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index 394bc965..50dc9e13 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -1837,11 +1837,10 @@ class CreateRequest final : enum : int { kColumnDefsFieldNumber = 3, kPrimaryKeyFieldNumber = 4, - kOptionsFieldNumber = 7, + kOptionsFieldNumber = 6, kEngineFieldNumber = 2, - kPathFieldNumber = 6, + kPathFieldNumber = 5, kRegionIdFieldNumber = 1, - kCreateIfNotExistsFieldNumber = 5, }; // repeated .greptime.v1.region.RegionColumnDef column_defs = 3; int column_defs_size() const; @@ -1883,7 +1882,7 @@ class CreateRequest final : ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* mutable_primary_key(); - // map options = 7; + // map options = 6; int options_size() const; private: int _internal_options_size() const; @@ -1914,7 +1913,7 @@ class CreateRequest final : std::string* _internal_mutable_engine(); public: - // string path = 6; + // string path = 5; void clear_path(); const std::string& path() const; template @@ -1937,15 +1936,6 @@ class CreateRequest final : void _internal_set_region_id(uint64_t value); public: - // bool create_if_not_exists = 5; - void clear_create_if_not_exists(); - bool create_if_not_exists() const; - void set_create_if_not_exists(bool value); - private: - bool _internal_create_if_not_exists() const; - void _internal_set_create_if_not_exists(bool value); - public: - // @@protoc_insertion_point(class_scope:greptime.v1.region.CreateRequest) private: class _Internal; @@ -1965,7 +1955,6 @@ class CreateRequest final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr engine_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; uint64_t region_id_; - bool create_if_not_exists_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -5389,27 +5378,7 @@ CreateRequest::mutable_primary_key() { return _internal_mutable_primary_key(); } -// bool create_if_not_exists = 5; -inline void CreateRequest::clear_create_if_not_exists() { - _impl_.create_if_not_exists_ = false; -} -inline bool CreateRequest::_internal_create_if_not_exists() const { - return _impl_.create_if_not_exists_; -} -inline bool CreateRequest::create_if_not_exists() const { - // @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.create_if_not_exists) - return _internal_create_if_not_exists(); -} -inline void CreateRequest::_internal_set_create_if_not_exists(bool value) { - - _impl_.create_if_not_exists_ = value; -} -inline void CreateRequest::set_create_if_not_exists(bool value) { - _internal_set_create_if_not_exists(value); - // @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.create_if_not_exists) -} - -// string path = 6; +// string path = 5; inline void CreateRequest::clear_path() { _impl_.path_.ClearToEmpty(); } @@ -5459,7 +5428,7 @@ inline void CreateRequest::set_allocated_path(std::string* path) { // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.CreateRequest.path) } -// map options = 7; +// map options = 6; inline int CreateRequest::_internal_options_size() const { return _impl_.options_.size(); } diff --git a/java/src/main/java/io/greptime/v1/region/Server.java b/java/src/main/java/io/greptime/v1/region/Server.java index 244fe142..ec66bea7 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -7943,22 +7943,12 @@ io.greptime.v1.region.Server.RegionColumnDefOrBuilder getColumnDefsOrBuilder( */ int getPrimaryKey(int index); - /** - *
-     * Create region if not exists.
-     * 
- * - * bool create_if_not_exists = 5; - * @return The createIfNotExists. - */ - boolean getCreateIfNotExists(); - /** *
      * Region storage path
      * 
* - * string path = 6; + * string path = 5; * @return The path. */ java.lang.String getPath(); @@ -7967,7 +7957,7 @@ io.greptime.v1.region.Server.RegionColumnDefOrBuilder getColumnDefsOrBuilder( * Region storage path * * - * string path = 6; + * string path = 5; * @return The bytes for path. */ com.google.protobuf.ByteString @@ -7978,7 +7968,7 @@ io.greptime.v1.region.Server.RegionColumnDefOrBuilder getColumnDefsOrBuilder( * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ int getOptionsCount(); /** @@ -7986,7 +7976,7 @@ io.greptime.v1.region.Server.RegionColumnDefOrBuilder getColumnDefsOrBuilder( * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ boolean containsOptions( java.lang.String key); @@ -8001,7 +7991,7 @@ boolean containsOptions( * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ java.util.Map getOptionsMap(); @@ -8010,7 +8000,7 @@ boolean containsOptions( * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ /* nullable */ @@ -8023,7 +8013,7 @@ java.lang.String getOptionsOrDefault( * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ java.lang.String getOptionsOrThrow( @@ -8120,18 +8110,13 @@ private CreateRequest( input.popLimit(limit); break; } - case 40: { - - createIfNotExists_ = input.readBool(); - break; - } - case 50: { + case 42: { java.lang.String s = input.readStringRequireUtf8(); path_ = s; break; } - case 58: { + case 50: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { options_ = com.google.protobuf.MapField.newMapField( OptionsDefaultEntryHolder.defaultEntry); @@ -8181,7 +8166,7 @@ private CreateRequest( protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { - case 7: + case 6: return internalGetOptions(); default: throw new RuntimeException( @@ -8353,29 +8338,14 @@ public int getPrimaryKey(int index) { } private int primaryKeyMemoizedSerializedSize = -1; - public static final int CREATE_IF_NOT_EXISTS_FIELD_NUMBER = 5; - private boolean createIfNotExists_; - /** - *
-     * Create region if not exists.
-     * 
- * - * bool create_if_not_exists = 5; - * @return The createIfNotExists. - */ - @java.lang.Override - public boolean getCreateIfNotExists() { - return createIfNotExists_; - } - - public static final int PATH_FIELD_NUMBER = 6; + public static final int PATH_FIELD_NUMBER = 5; private volatile java.lang.Object path_; /** *
      * Region storage path
      * 
* - * string path = 6; + * string path = 5; * @return The path. */ @java.lang.Override @@ -8396,7 +8366,7 @@ public java.lang.String getPath() { * Region storage path * * - * string path = 6; + * string path = 5; * @return The bytes for path. */ @java.lang.Override @@ -8414,7 +8384,7 @@ public java.lang.String getPath() { } } - public static final int OPTIONS_FIELD_NUMBER = 7; + public static final int OPTIONS_FIELD_NUMBER = 6; private static final class OptionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = @@ -8445,7 +8415,7 @@ public int getOptionsCount() { * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ @java.lang.Override @@ -8467,7 +8437,7 @@ public java.util.Map getOptions() { * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ @java.lang.Override @@ -8479,7 +8449,7 @@ public java.util.Map getOptionsMap() { * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ @java.lang.Override @@ -8496,7 +8466,7 @@ public java.lang.String getOptionsOrDefault( * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ @java.lang.Override @@ -8542,18 +8512,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < primaryKey_.size(); i++) { output.writeUInt32NoTag(primaryKey_.getInt(i)); } - if (createIfNotExists_ != false) { - output.writeBool(5, createIfNotExists_); - } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, path_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, path_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetOptions(), OptionsDefaultEntryHolder.defaultEntry, - 7); + 6); unknownFields.writeTo(output); } @@ -8588,12 +8555,8 @@ public int getSerializedSize() { } primaryKeyMemoizedSerializedSize = dataSize; } - if (createIfNotExists_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, createIfNotExists_); - } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, path_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, path_); } for (java.util.Map.Entry entry : internalGetOptions().getMap().entrySet()) { @@ -8603,7 +8566,7 @@ public int getSerializedSize() { .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, options__); + .computeMessageSize(6, options__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -8628,8 +8591,6 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getColumnDefsList())) return false; if (!getPrimaryKeyList() .equals(other.getPrimaryKeyList())) return false; - if (getCreateIfNotExists() - != other.getCreateIfNotExists()) return false; if (!getPath() .equals(other.getPath())) return false; if (!internalGetOptions().equals( @@ -8658,9 +8619,6 @@ public int hashCode() { hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; hash = (53 * hash) + getPrimaryKeyList().hashCode(); } - hash = (37 * hash) + CREATE_IF_NOT_EXISTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCreateIfNotExists()); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); if (!internalGetOptions().getMap().isEmpty()) { @@ -8778,7 +8736,7 @@ public static final class Builder extends protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { - case 7: + case 6: return internalGetOptions(); default: throw new RuntimeException( @@ -8789,7 +8747,7 @@ protected com.google.protobuf.MapField internalGetMapField( protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { - case 7: + case 6: return internalGetMutableOptions(); default: throw new RuntimeException( @@ -8835,8 +8793,6 @@ public Builder clear() { } primaryKey_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); - createIfNotExists_ = false; - path_ = ""; internalGetMutableOptions().clear(); @@ -8883,7 +8839,6 @@ public io.greptime.v1.region.Server.CreateRequest buildPartial() { bitField0_ = (bitField0_ & ~0x00000002); } result.primaryKey_ = primaryKey_; - result.createIfNotExists_ = createIfNotExists_; result.path_ = path_; result.options_ = internalGetOptions(); result.options_.makeImmutable(); @@ -8978,9 +8933,6 @@ public Builder mergeFrom(io.greptime.v1.region.Server.CreateRequest other) { } onChanged(); } - if (other.getCreateIfNotExists() != false) { - setCreateIfNotExists(other.getCreateIfNotExists()); - } if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); @@ -9563,56 +9515,13 @@ public Builder clearPrimaryKey() { return this; } - private boolean createIfNotExists_ ; - /** - *
-       * Create region if not exists.
-       * 
- * - * bool create_if_not_exists = 5; - * @return The createIfNotExists. - */ - @java.lang.Override - public boolean getCreateIfNotExists() { - return createIfNotExists_; - } - /** - *
-       * Create region if not exists.
-       * 
- * - * bool create_if_not_exists = 5; - * @param value The createIfNotExists to set. - * @return This builder for chaining. - */ - public Builder setCreateIfNotExists(boolean value) { - - createIfNotExists_ = value; - onChanged(); - return this; - } - /** - *
-       * Create region if not exists.
-       * 
- * - * bool create_if_not_exists = 5; - * @return This builder for chaining. - */ - public Builder clearCreateIfNotExists() { - - createIfNotExists_ = false; - onChanged(); - return this; - } - private java.lang.Object path_ = ""; /** *
        * Region storage path
        * 
* - * string path = 6; + * string path = 5; * @return The path. */ public java.lang.String getPath() { @@ -9632,7 +9541,7 @@ public java.lang.String getPath() { * Region storage path * * - * string path = 6; + * string path = 5; * @return The bytes for path. */ public com.google.protobuf.ByteString @@ -9653,7 +9562,7 @@ public java.lang.String getPath() { * Region storage path * * - * string path = 6; + * string path = 5; * @param value The path to set. * @return This builder for chaining. */ @@ -9672,7 +9581,7 @@ public Builder setPath( * Region storage path * * - * string path = 6; + * string path = 5; * @return This builder for chaining. */ public Builder clearPath() { @@ -9686,7 +9595,7 @@ public Builder clearPath() { * Region storage path * * - * string path = 6; + * string path = 5; * @param value The bytes for path to set. * @return This builder for chaining. */ @@ -9733,7 +9642,7 @@ public int getOptionsCount() { * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ @java.lang.Override @@ -9755,7 +9664,7 @@ public java.util.Map getOptions() { * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ @java.lang.Override @@ -9767,7 +9676,7 @@ public java.util.Map getOptionsMap() { * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ @java.lang.Override @@ -9784,7 +9693,7 @@ public java.lang.String getOptionsOrDefault( * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ @java.lang.Override @@ -9809,7 +9718,7 @@ public Builder clearOptions() { * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ public Builder removeOptions( @@ -9832,7 +9741,7 @@ public Builder removeOptions( * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ public Builder putOptions( java.lang.String key, @@ -9851,7 +9760,7 @@ public Builder putOptions( * Options of the created region. * * - * map<string, string> options = 7; + * map<string, string> options = 6; */ public Builder putAllOptions( @@ -18084,40 +17993,40 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType() "(\0132\021.greptime.v1.Rows\"h\n\014QueryRequest\0227\n" + "\006header\030\001 \001(\0132\'.greptime.v1.region.Regio" + "nRequestHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004pla" + - "n\030\003 \001(\014\"\236\002\n\rCreateRequest\022\021\n\tregion_id\030\001" + + "n\030\003 \001(\014\"\200\002\n\rCreateRequest\022\021\n\tregion_id\030\001" + " \001(\004\022\016\n\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003(" + "\0132#.greptime.v1.region.RegionColumnDef\022\023" + - "\n\013primary_key\030\004 \003(\r\022\034\n\024create_if_not_exi" + - "sts\030\005 \001(\010\022\014\n\004path\030\006 \001(\t\022?\n\007options\030\007 \003(\013" + - "2..greptime.v1.region.CreateRequest.Opti" + - "onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022\021\n\tregio" + - "n_id\030\001 \001(\004\"\255\001\n\013OpenRequest\022\021\n\tregion_id\030" + - "\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022=\n\007o" + - "ptions\030\004 \003(\0132,.greptime.v1.region.OpenRe" + + "\n\013primary_key\030\004 \003(\r\022\014\n\004path\030\005 \001(\t\022?\n\007opt" + + "ions\030\006 \003(\0132..greptime.v1.region.CreateRe" + "quest.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseReque" + - "st\022\021\n\tregion_id\030\001 \001(\004\"\261\001\n\014AlterRequest\022\021" + - "\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030\002 \001(\0132\036" + - ".greptime.v1.region.AddColumnsH\000\0227\n\014drop" + - "_columns\030\003 \001(\0132\037.greptime.v1.region.Drop" + - "ColumnsH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004kin" + - "d\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(\0132\035.g" + - "reptime.v1.region.AddColumn\"C\n\013DropColum" + - "ns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime.v1.r" + - "egion.DropColumn\"v\n\tAddColumn\0227\n\ncolumn_" + - "def\030\001 \001(\0132#.greptime.v1.region.RegionCol" + - "umnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.A" + - "ddColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001" + - " \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"" + - "#\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017" + - "RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.gr" + - "eptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y" + - "\n\006Region\022O\n\006Handle\022!.greptime.v1.region." + - "RegionRequest\032\".greptime.v1.region.Regio" + - "nResponseB]\n\025io.greptime.v1.regionB\006Serv" + - "erZ options = 7; + map options = 6; // TODO: add partition def }