diff --git a/c++/greptime/v1/database.pb.cc b/c++/greptime/v1/database.pb.cc index 021a7b4..0764ef9 100644 --- a/c++/greptime/v1/database.pb.cc +++ b/c++/greptime/v1/database.pb.cc @@ -111,9 +111,52 @@ struct DeleteRequestDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRequestDefaultTypeInternal _DeleteRequest_default_instance_; +PROTOBUF_CONSTEXPR RowInsertRequests::RowInsertRequests( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.inserts_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RowInsertRequestsDefaultTypeInternal { + PROTOBUF_CONSTEXPR RowInsertRequestsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RowInsertRequestsDefaultTypeInternal() {} + union { + RowInsertRequests _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowInsertRequestsDefaultTypeInternal _RowInsertRequests_default_instance_; +PROTOBUF_CONSTEXPR RowInsertRequest::RowInsertRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.rows_)*/nullptr + , /*decltype(_impl_.region_number_)*/0u + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RowInsertRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RowInsertRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RowInsertRequestDefaultTypeInternal() {} + union { + RowInsertRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowInsertRequestDefaultTypeInternal _RowInsertRequest_default_instance_; +PROTOBUF_CONSTEXPR RowDeleteRequest::RowDeleteRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.rows_)*/nullptr + , /*decltype(_impl_.region_number_)*/0u + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RowDeleteRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RowDeleteRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RowDeleteRequestDefaultTypeInternal() {} + union { + RowDeleteRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowDeleteRequestDefaultTypeInternal _RowDeleteRequest_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fdatabase_2eproto[6]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fdatabase_2eproto[9]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fdatabase_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fdatabase_2eproto = nullptr; @@ -129,6 +172,8 @@ const uint32_t TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets[] PROTOBUF_ ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::GreptimeRequest, _impl_.request_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::GreptimeResponse, _internal_metadata_), @@ -176,14 +221,42 @@ const uint32_t TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets[] PROTOBUF_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DeleteRequest, _impl_.region_number_), PROTOBUF_FIELD_OFFSET(::greptime::v1::DeleteRequest, _impl_.key_columns_), PROTOBUF_FIELD_OFFSET(::greptime::v1::DeleteRequest, _impl_.row_count_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::RowInsertRequests, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::RowInsertRequests, _impl_.inserts_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::RowInsertRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::RowInsertRequest, _impl_.table_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::RowInsertRequest, _impl_.rows_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::RowInsertRequest, _impl_.region_number_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::RowDeleteRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::RowDeleteRequest, _impl_.table_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::RowDeleteRequest, _impl_.rows_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::RowDeleteRequest, _impl_.region_number_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::GreptimeRequest)}, - { 12, -1, -1, sizeof(::greptime::v1::GreptimeResponse)}, - { 21, -1, -1, sizeof(::greptime::v1::QueryRequest)}, - { 31, -1, -1, sizeof(::greptime::v1::InsertRequests)}, - { 38, -1, -1, sizeof(::greptime::v1::InsertRequest)}, - { 48, -1, -1, sizeof(::greptime::v1::DeleteRequest)}, + { 14, -1, -1, sizeof(::greptime::v1::GreptimeResponse)}, + { 23, -1, -1, sizeof(::greptime::v1::QueryRequest)}, + { 33, -1, -1, sizeof(::greptime::v1::InsertRequests)}, + { 40, -1, -1, sizeof(::greptime::v1::InsertRequest)}, + { 50, -1, -1, sizeof(::greptime::v1::DeleteRequest)}, + { 60, -1, -1, sizeof(::greptime::v1::RowInsertRequests)}, + { 67, -1, -1, sizeof(::greptime::v1::RowInsertRequest)}, + { 76, -1, -1, sizeof(::greptime::v1::RowDeleteRequest)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -193,52 +266,65 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_InsertRequests_default_instance_._instance, &::greptime::v1::_InsertRequest_default_instance_._instance, &::greptime::v1::_DeleteRequest_default_instance_._instance, + &::greptime::v1::_RowInsertRequests_default_instance_._instance, + &::greptime::v1::_RowInsertRequest_default_instance_._instance, + &::greptime::v1::_RowDeleteRequest_default_instance_._instance, }; const char descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\032greptime/v1/database.proto\022\013greptime.v" "1\032\025greptime/v1/ddl.proto\032\030greptime/v1/co" - "lumn.proto\032\026greptime/v1/prom.proto\032\030grep" - "time/v1/common.proto\"\372\001\n\017GreptimeRequest" - "\022*\n\006header\030\001 \001(\0132\032.greptime.v1.RequestHe" - "ader\022.\n\007inserts\030\002 \001(\0132\033.greptime.v1.Inse" - "rtRequestsH\000\022*\n\005query\030\003 \001(\0132\031.greptime.v" - "1.QueryRequestH\000\022&\n\003ddl\030\004 \001(\0132\027.greptime" - ".v1.DdlRequestH\000\022,\n\006delete\030\005 \001(\0132\032.grept" - "ime.v1.DeleteRequestH\000B\t\n\007request\"\177\n\020Gre" - "ptimeResponse\022+\n\006header\030\001 \001(\0132\033.greptime" - ".v1.ResponseHeader\0222\n\raffected_rows\030\002 \001(" - "\0132\031.greptime.v1.AffectedRowsH\000B\n\n\010respon" - "se\"w\n\014QueryRequest\022\r\n\003sql\030\001 \001(\tH\000\022\026\n\014log" - "ical_plan\030\002 \001(\014H\000\0227\n\020prom_range_query\030\003 " - "\001(\0132\033.greptime.v1.PromRangeQueryH\000B\007\n\005qu" - "ery\"=\n\016InsertRequests\022+\n\007inserts\030\001 \003(\0132\032" - ".greptime.v1.InsertRequest\"s\n\rInsertRequ" - "est\022\022\n\ntable_name\030\001 \001(\t\022$\n\007columns\030\003 \003(\013" - "2\023.greptime.v1.Column\022\021\n\trow_count\030\004 \001(\r" - "\022\025\n\rregion_number\030\005 \001(\r\"w\n\rDeleteRequest" - "\022\022\n\ntable_name\030\001 \001(\t\022\025\n\rregion_number\030\002 " - "\001(\r\022(\n\013key_columns\030\003 \003(\0132\023.greptime.v1.C" - "olumn\022\021\n\trow_count\030\004 \001(\r2\252\001\n\020GreptimeDat" - "abase\022E\n\006Handle\022\034.greptime.v1.GreptimeRe" - "quest\032\035.greptime.v1.GreptimeResponse\022O\n\016" - "HandleRequests\022\034.greptime.v1.GreptimeReq" - "uest\032\035.greptime.v1.GreptimeResponse(\001BQ\n" - "\016io.greptime.v1B\010DatabaseZ5github.com/Gr" - "eptimeTeam/greptime-proto/go/greptime/v1" - "b\006proto3" + "lumn.proto\032\025greptime/v1/row.proto\032\026grept" + "ime/v1/prom.proto\032\030greptime/v1/common.pr" + "oto\"\346\002\n\017GreptimeRequest\022*\n\006header\030\001 \001(\0132" + "\032.greptime.v1.RequestHeader\022.\n\007inserts\030\002" + " \001(\0132\033.greptime.v1.InsertRequestsH\000\022*\n\005q" + "uery\030\003 \001(\0132\031.greptime.v1.QueryRequestH\000\022" + "&\n\003ddl\030\004 \001(\0132\027.greptime.v1.DdlRequestH\000\022" + ",\n\006delete\030\005 \001(\0132\032.greptime.v1.DeleteRequ" + "estH\000\0225\n\013row_inserts\030\006 \001(\0132\036.greptime.v1" + ".RowInsertRequestsH\000\0223\n\nrow_delete\030\007 \001(\013" + "2\035.greptime.v1.RowDeleteRequestH\000B\t\n\007req" + "uest\"\177\n\020GreptimeResponse\022+\n\006header\030\001 \001(\013" + "2\033.greptime.v1.ResponseHeader\0222\n\raffecte" + "d_rows\030\002 \001(\0132\031.greptime.v1.AffectedRowsH" + "\000B\n\n\010response\"w\n\014QueryRequest\022\r\n\003sql\030\001 \001" + "(\tH\000\022\026\n\014logical_plan\030\002 \001(\014H\000\0227\n\020prom_ran" + "ge_query\030\003 \001(\0132\033.greptime.v1.PromRangeQu" + "eryH\000B\007\n\005query\"=\n\016InsertRequests\022+\n\007inse" + "rts\030\001 \003(\0132\032.greptime.v1.InsertRequest\"s\n" + "\rInsertRequest\022\022\n\ntable_name\030\001 \001(\t\022$\n\007co" + "lumns\030\003 \003(\0132\023.greptime.v1.Column\022\021\n\trow_" + "count\030\004 \001(\r\022\025\n\rregion_number\030\005 \001(\r\"w\n\rDe" + "leteRequest\022\022\n\ntable_name\030\001 \001(\t\022\025\n\rregio" + "n_number\030\002 \001(\r\022(\n\013key_columns\030\003 \003(\0132\023.gr" + "eptime.v1.Column\022\021\n\trow_count\030\004 \001(\r\"C\n\021R" + "owInsertRequests\022.\n\007inserts\030\001 \003(\0132\035.grep" + "time.v1.RowInsertRequest\"^\n\020RowInsertReq" + "uest\022\022\n\ntable_name\030\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021" + ".greptime.v1.Rows\022\025\n\rregion_number\030\003 \001(\r" + "\"^\n\020RowDeleteRequest\022\022\n\ntable_name\030\001 \001(\t" + "\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\022\025\n\rreg" + "ion_number\030\003 \001(\r2\252\001\n\020GreptimeDatabase\022E\n" + "\006Handle\022\034.greptime.v1.GreptimeRequest\032\035." + "greptime.v1.GreptimeResponse\022O\n\016HandleRe" + "quests\022\034.greptime.v1.GreptimeRequest\032\035.g" + "reptime.v1.GreptimeResponse(\001BQ\n\016io.grep" + "time.v1B\010DatabaseZ5github.com/GreptimeTe" + "am/greptime-proto/go/greptime/v1b\006proto3" ; -static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps[4] = { +static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps[5] = { &::descriptor_table_greptime_2fv1_2fcolumn_2eproto, &::descriptor_table_greptime_2fv1_2fcommon_2eproto, &::descriptor_table_greptime_2fv1_2fddl_2eproto, &::descriptor_table_greptime_2fv1_2fprom_2eproto, + &::descriptor_table_greptime_2fv1_2frow_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fdatabase_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fdatabase_2eproto = { - false, false, 1208, descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto, + false, false, 1600, descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto, "greptime/v1/database.proto", - &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once, descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps, 4, 6, + &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once, descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps, 5, 9, schemas, file_default_instances, TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets, file_level_metadata_greptime_2fv1_2fdatabase_2eproto, file_level_enum_descriptors_greptime_2fv1_2fdatabase_2eproto, file_level_service_descriptors_greptime_2fv1_2fdatabase_2eproto, @@ -261,6 +347,8 @@ class GreptimeRequest::_Internal { static const ::greptime::v1::QueryRequest& query(const GreptimeRequest* msg); static const ::greptime::v1::DdlRequest& ddl(const GreptimeRequest* msg); static const ::greptime::v1::DeleteRequest& delete_(const GreptimeRequest* msg); + static const ::greptime::v1::RowInsertRequests& row_inserts(const GreptimeRequest* msg); + static const ::greptime::v1::RowDeleteRequest& row_delete(const GreptimeRequest* msg); }; const ::greptime::v1::RequestHeader& @@ -283,6 +371,14 @@ const ::greptime::v1::DeleteRequest& GreptimeRequest::_Internal::delete_(const GreptimeRequest* msg) { return *msg->_impl_.request_.delete__; } +const ::greptime::v1::RowInsertRequests& +GreptimeRequest::_Internal::row_inserts(const GreptimeRequest* msg) { + return *msg->_impl_.request_.row_inserts_; +} +const ::greptime::v1::RowDeleteRequest& +GreptimeRequest::_Internal::row_delete(const GreptimeRequest* msg) { + return *msg->_impl_.request_.row_delete_; +} void GreptimeRequest::clear_header() { if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; @@ -358,6 +454,36 @@ void GreptimeRequest::set_allocated_delete_(::greptime::v1::DeleteRequest* delet } // @@protoc_insertion_point(field_set_allocated:greptime.v1.GreptimeRequest.delete) } +void GreptimeRequest::set_allocated_row_inserts(::greptime::v1::RowInsertRequests* row_inserts) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (row_inserts) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(row_inserts); + if (message_arena != submessage_arena) { + row_inserts = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, row_inserts, submessage_arena); + } + set_has_row_inserts(); + _impl_.request_.row_inserts_ = row_inserts; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.GreptimeRequest.row_inserts) +} +void GreptimeRequest::set_allocated_row_delete(::greptime::v1::RowDeleteRequest* row_delete) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (row_delete) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(row_delete); + if (message_arena != submessage_arena) { + row_delete = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, row_delete, submessage_arena); + } + set_has_row_delete(); + _impl_.request_.row_delete_ = row_delete; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.GreptimeRequest.row_delete) +} GreptimeRequest::GreptimeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -399,6 +525,16 @@ GreptimeRequest::GreptimeRequest(const GreptimeRequest& from) from._internal_delete_()); break; } + case kRowInserts: { + _this->_internal_mutable_row_inserts()->::greptime::v1::RowInsertRequests::MergeFrom( + from._internal_row_inserts()); + break; + } + case kRowDelete: { + _this->_internal_mutable_row_delete()->::greptime::v1::RowDeleteRequest::MergeFrom( + from._internal_row_delete()); + break; + } case REQUEST_NOT_SET: { break; } @@ -467,6 +603,18 @@ void GreptimeRequest::clear_request() { } break; } + case kRowInserts: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.row_inserts_; + } + break; + } + case kRowDelete: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.row_delete_; + } + break; + } case REQUEST_NOT_SET: { break; } @@ -535,6 +683,22 @@ const char* GreptimeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContex } else goto handle_unusual; continue; + // .greptime.v1.RowInsertRequests row_inserts = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_row_inserts(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.RowDeleteRequest row_delete = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_row_delete(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -599,6 +763,20 @@ uint8_t* GreptimeRequest::_InternalSerialize( _Internal::delete_(this).GetCachedSize(), target, stream); } + // .greptime.v1.RowInsertRequests row_inserts = 6; + if (_internal_has_row_inserts()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::row_inserts(this), + _Internal::row_inserts(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.RowDeleteRequest row_delete = 7; + if (_internal_has_row_delete()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::row_delete(this), + _Internal::row_delete(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -651,6 +829,20 @@ size_t GreptimeRequest::ByteSizeLong() const { *_impl_.request_.delete__); break; } + // .greptime.v1.RowInsertRequests row_inserts = 6; + case kRowInserts: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_.row_inserts_); + break; + } + // .greptime.v1.RowDeleteRequest row_delete = 7; + case kRowDelete: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_.row_delete_); + break; + } case REQUEST_NOT_SET: { break; } @@ -698,6 +890,16 @@ void GreptimeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const from._internal_delete_()); break; } + case kRowInserts: { + _this->_internal_mutable_row_inserts()->::greptime::v1::RowInsertRequests::MergeFrom( + from._internal_row_inserts()); + break; + } + case kRowDelete: { + _this->_internal_mutable_row_delete()->::greptime::v1::RowDeleteRequest::MergeFrom( + from._internal_row_delete()); + break; + } case REQUEST_NOT_SET: { break; } @@ -2148,6 +2350,755 @@ void DeleteRequest::InternalSwap(DeleteRequest* other) { file_level_metadata_greptime_2fv1_2fdatabase_2eproto[5]); } +// =================================================================== + +class RowInsertRequests::_Internal { + public: +}; + +RowInsertRequests::RowInsertRequests(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.RowInsertRequests) +} +RowInsertRequests::RowInsertRequests(const RowInsertRequests& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RowInsertRequests* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.inserts_){from._impl_.inserts_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.RowInsertRequests) +} + +inline void RowInsertRequests::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.inserts_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +RowInsertRequests::~RowInsertRequests() { + // @@protoc_insertion_point(destructor:greptime.v1.RowInsertRequests) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RowInsertRequests::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.inserts_.~RepeatedPtrField(); +} + +void RowInsertRequests::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RowInsertRequests::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.RowInsertRequests) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.inserts_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RowInsertRequests::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .greptime.v1.RowInsertRequest inserts = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_inserts(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* RowInsertRequests::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.RowInsertRequests) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.RowInsertRequest inserts = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_inserts_size()); i < n; i++) { + const auto& repfield = this->_internal_inserts(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.RowInsertRequests) + return target; +} + +size_t RowInsertRequests::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.RowInsertRequests) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .greptime.v1.RowInsertRequest inserts = 1; + total_size += 1UL * this->_internal_inserts_size(); + for (const auto& msg : this->_impl_.inserts_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RowInsertRequests::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RowInsertRequests::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RowInsertRequests::GetClassData() const { return &_class_data_; } + + +void RowInsertRequests::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.RowInsertRequests) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.inserts_.MergeFrom(from._impl_.inserts_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RowInsertRequests::CopyFrom(const RowInsertRequests& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.RowInsertRequests) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RowInsertRequests::IsInitialized() const { + return true; +} + +void RowInsertRequests::InternalSwap(RowInsertRequests* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.inserts_.InternalSwap(&other->_impl_.inserts_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RowInsertRequests::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once, + file_level_metadata_greptime_2fv1_2fdatabase_2eproto[6]); +} + +// =================================================================== + +class RowInsertRequest::_Internal { + public: + static const ::greptime::v1::Rows& rows(const RowInsertRequest* msg); +}; + +const ::greptime::v1::Rows& +RowInsertRequest::_Internal::rows(const RowInsertRequest* msg) { + return *msg->_impl_.rows_; +} +void RowInsertRequest::clear_rows() { + if (GetArenaForAllocation() == nullptr && _impl_.rows_ != nullptr) { + delete _impl_.rows_; + } + _impl_.rows_ = nullptr; +} +RowInsertRequest::RowInsertRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.RowInsertRequest) +} +RowInsertRequest::RowInsertRequest(const RowInsertRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RowInsertRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.table_name_){} + , decltype(_impl_.rows_){nullptr} + , decltype(_impl_.region_number_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_table_name().empty()) { + _this->_impl_.table_name_.Set(from._internal_table_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_rows()) { + _this->_impl_.rows_ = new ::greptime::v1::Rows(*from._impl_.rows_); + } + _this->_impl_.region_number_ = from._impl_.region_number_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.RowInsertRequest) +} + +inline void RowInsertRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.table_name_){} + , decltype(_impl_.rows_){nullptr} + , decltype(_impl_.region_number_){0u} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RowInsertRequest::~RowInsertRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.RowInsertRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RowInsertRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.table_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.rows_; +} + +void RowInsertRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RowInsertRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.RowInsertRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.table_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.rows_ != nullptr) { + delete _impl_.rows_; + } + _impl_.rows_ = nullptr; + _impl_.region_number_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RowInsertRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string table_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_table_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.RowInsertRequest.table_name")); + } else + goto handle_unusual; + continue; + // .greptime.v1.Rows rows = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_rows(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 region_number = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.region_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* RowInsertRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.RowInsertRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string table_name = 1; + if (!this->_internal_table_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table_name().data(), static_cast(this->_internal_table_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.RowInsertRequest.table_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_table_name(), target); + } + + // .greptime.v1.Rows rows = 2; + if (this->_internal_has_rows()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::rows(this), + _Internal::rows(this).GetCachedSize(), target, stream); + } + + // uint32 region_number = 3; + if (this->_internal_region_number() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_region_number(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.RowInsertRequest) + return target; +} + +size_t RowInsertRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.RowInsertRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table_name = 1; + if (!this->_internal_table_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table_name()); + } + + // .greptime.v1.Rows rows = 2; + if (this->_internal_has_rows()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.rows_); + } + + // uint32 region_number = 3; + if (this->_internal_region_number() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_region_number()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RowInsertRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RowInsertRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RowInsertRequest::GetClassData() const { return &_class_data_; } + + +void RowInsertRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.RowInsertRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_table_name().empty()) { + _this->_internal_set_table_name(from._internal_table_name()); + } + if (from._internal_has_rows()) { + _this->_internal_mutable_rows()->::greptime::v1::Rows::MergeFrom( + from._internal_rows()); + } + if (from._internal_region_number() != 0) { + _this->_internal_set_region_number(from._internal_region_number()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RowInsertRequest::CopyFrom(const RowInsertRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.RowInsertRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RowInsertRequest::IsInitialized() const { + return true; +} + +void RowInsertRequest::InternalSwap(RowInsertRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_name_, lhs_arena, + &other->_impl_.table_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RowInsertRequest, _impl_.region_number_) + + sizeof(RowInsertRequest::_impl_.region_number_) + - PROTOBUF_FIELD_OFFSET(RowInsertRequest, _impl_.rows_)>( + reinterpret_cast(&_impl_.rows_), + reinterpret_cast(&other->_impl_.rows_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RowInsertRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once, + file_level_metadata_greptime_2fv1_2fdatabase_2eproto[7]); +} + +// =================================================================== + +class RowDeleteRequest::_Internal { + public: + static const ::greptime::v1::Rows& rows(const RowDeleteRequest* msg); +}; + +const ::greptime::v1::Rows& +RowDeleteRequest::_Internal::rows(const RowDeleteRequest* msg) { + return *msg->_impl_.rows_; +} +void RowDeleteRequest::clear_rows() { + if (GetArenaForAllocation() == nullptr && _impl_.rows_ != nullptr) { + delete _impl_.rows_; + } + _impl_.rows_ = nullptr; +} +RowDeleteRequest::RowDeleteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.RowDeleteRequest) +} +RowDeleteRequest::RowDeleteRequest(const RowDeleteRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RowDeleteRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.table_name_){} + , decltype(_impl_.rows_){nullptr} + , decltype(_impl_.region_number_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_table_name().empty()) { + _this->_impl_.table_name_.Set(from._internal_table_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_rows()) { + _this->_impl_.rows_ = new ::greptime::v1::Rows(*from._impl_.rows_); + } + _this->_impl_.region_number_ = from._impl_.region_number_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.RowDeleteRequest) +} + +inline void RowDeleteRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.table_name_){} + , decltype(_impl_.rows_){nullptr} + , decltype(_impl_.region_number_){0u} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RowDeleteRequest::~RowDeleteRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.RowDeleteRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RowDeleteRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.table_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.rows_; +} + +void RowDeleteRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RowDeleteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.RowDeleteRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.table_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.rows_ != nullptr) { + delete _impl_.rows_; + } + _impl_.rows_ = nullptr; + _impl_.region_number_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RowDeleteRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string table_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_table_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.RowDeleteRequest.table_name")); + } else + goto handle_unusual; + continue; + // .greptime.v1.Rows rows = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_rows(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 region_number = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.region_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* RowDeleteRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.RowDeleteRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string table_name = 1; + if (!this->_internal_table_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table_name().data(), static_cast(this->_internal_table_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.RowDeleteRequest.table_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_table_name(), target); + } + + // .greptime.v1.Rows rows = 2; + if (this->_internal_has_rows()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::rows(this), + _Internal::rows(this).GetCachedSize(), target, stream); + } + + // uint32 region_number = 3; + if (this->_internal_region_number() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_region_number(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.RowDeleteRequest) + return target; +} + +size_t RowDeleteRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.RowDeleteRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table_name = 1; + if (!this->_internal_table_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table_name()); + } + + // .greptime.v1.Rows rows = 2; + if (this->_internal_has_rows()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.rows_); + } + + // uint32 region_number = 3; + if (this->_internal_region_number() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_region_number()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RowDeleteRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RowDeleteRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RowDeleteRequest::GetClassData() const { return &_class_data_; } + + +void RowDeleteRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.RowDeleteRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_table_name().empty()) { + _this->_internal_set_table_name(from._internal_table_name()); + } + if (from._internal_has_rows()) { + _this->_internal_mutable_rows()->::greptime::v1::Rows::MergeFrom( + from._internal_rows()); + } + if (from._internal_region_number() != 0) { + _this->_internal_set_region_number(from._internal_region_number()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RowDeleteRequest::CopyFrom(const RowDeleteRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.RowDeleteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RowDeleteRequest::IsInitialized() const { + return true; +} + +void RowDeleteRequest::InternalSwap(RowDeleteRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_name_, lhs_arena, + &other->_impl_.table_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RowDeleteRequest, _impl_.region_number_) + + sizeof(RowDeleteRequest::_impl_.region_number_) + - PROTOBUF_FIELD_OFFSET(RowDeleteRequest, _impl_.rows_)>( + reinterpret_cast(&_impl_.rows_), + reinterpret_cast(&other->_impl_.rows_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RowDeleteRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once, + file_level_metadata_greptime_2fv1_2fdatabase_2eproto[8]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace greptime @@ -2176,6 +3127,18 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::DeleteRequest* Arena::CreateMaybeMessage< ::greptime::v1::DeleteRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::DeleteRequest >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::RowInsertRequests* +Arena::CreateMaybeMessage< ::greptime::v1::RowInsertRequests >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::RowInsertRequests >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::RowInsertRequest* +Arena::CreateMaybeMessage< ::greptime::v1::RowInsertRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::RowInsertRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::RowDeleteRequest* +Arena::CreateMaybeMessage< ::greptime::v1::RowDeleteRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::RowDeleteRequest >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/c++/greptime/v1/database.pb.h b/c++/greptime/v1/database.pb.h index 94256f6..1a0a61a 100644 --- a/c++/greptime/v1/database.pb.h +++ b/c++/greptime/v1/database.pb.h @@ -32,6 +32,7 @@ #include #include "greptime/v1/ddl.pb.h" #include "greptime/v1/column.pb.h" +#include "greptime/v1/row.pb.h" #include "greptime/v1/prom.pb.h" #include "greptime/v1/common.pb.h" // @@protoc_insertion_point(includes) @@ -68,6 +69,15 @@ extern InsertRequestsDefaultTypeInternal _InsertRequests_default_instance_; class QueryRequest; struct QueryRequestDefaultTypeInternal; extern QueryRequestDefaultTypeInternal _QueryRequest_default_instance_; +class RowDeleteRequest; +struct RowDeleteRequestDefaultTypeInternal; +extern RowDeleteRequestDefaultTypeInternal _RowDeleteRequest_default_instance_; +class RowInsertRequest; +struct RowInsertRequestDefaultTypeInternal; +extern RowInsertRequestDefaultTypeInternal _RowInsertRequest_default_instance_; +class RowInsertRequests; +struct RowInsertRequestsDefaultTypeInternal; +extern RowInsertRequestsDefaultTypeInternal _RowInsertRequests_default_instance_; } // namespace v1 } // namespace greptime PROTOBUF_NAMESPACE_OPEN @@ -77,6 +87,9 @@ template<> ::greptime::v1::GreptimeResponse* Arena::CreateMaybeMessage<::greptim template<> ::greptime::v1::InsertRequest* Arena::CreateMaybeMessage<::greptime::v1::InsertRequest>(Arena*); template<> ::greptime::v1::InsertRequests* Arena::CreateMaybeMessage<::greptime::v1::InsertRequests>(Arena*); template<> ::greptime::v1::QueryRequest* Arena::CreateMaybeMessage<::greptime::v1::QueryRequest>(Arena*); +template<> ::greptime::v1::RowDeleteRequest* Arena::CreateMaybeMessage<::greptime::v1::RowDeleteRequest>(Arena*); +template<> ::greptime::v1::RowInsertRequest* Arena::CreateMaybeMessage<::greptime::v1::RowInsertRequest>(Arena*); +template<> ::greptime::v1::RowInsertRequests* Arena::CreateMaybeMessage<::greptime::v1::RowInsertRequests>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace greptime { namespace v1 { @@ -131,6 +144,8 @@ class GreptimeRequest final : kQuery = 3, kDdl = 4, kDelete = 5, + kRowInserts = 6, + kRowDelete = 7, REQUEST_NOT_SET = 0, }; @@ -217,6 +232,8 @@ class GreptimeRequest final : kQueryFieldNumber = 3, kDdlFieldNumber = 4, kDeleteFieldNumber = 5, + kRowInsertsFieldNumber = 6, + kRowDeleteFieldNumber = 7, }; // .greptime.v1.RequestHeader header = 1; bool has_header() const; @@ -308,6 +325,42 @@ class GreptimeRequest final : ::greptime::v1::DeleteRequest* delete_); ::greptime::v1::DeleteRequest* unsafe_arena_release_delete_(); + // .greptime.v1.RowInsertRequests row_inserts = 6; + bool has_row_inserts() const; + private: + bool _internal_has_row_inserts() const; + public: + void clear_row_inserts(); + const ::greptime::v1::RowInsertRequests& row_inserts() const; + PROTOBUF_NODISCARD ::greptime::v1::RowInsertRequests* release_row_inserts(); + ::greptime::v1::RowInsertRequests* mutable_row_inserts(); + void set_allocated_row_inserts(::greptime::v1::RowInsertRequests* row_inserts); + private: + const ::greptime::v1::RowInsertRequests& _internal_row_inserts() const; + ::greptime::v1::RowInsertRequests* _internal_mutable_row_inserts(); + public: + void unsafe_arena_set_allocated_row_inserts( + ::greptime::v1::RowInsertRequests* row_inserts); + ::greptime::v1::RowInsertRequests* unsafe_arena_release_row_inserts(); + + // .greptime.v1.RowDeleteRequest row_delete = 7; + bool has_row_delete() const; + private: + bool _internal_has_row_delete() const; + public: + void clear_row_delete(); + const ::greptime::v1::RowDeleteRequest& row_delete() const; + PROTOBUF_NODISCARD ::greptime::v1::RowDeleteRequest* release_row_delete(); + ::greptime::v1::RowDeleteRequest* mutable_row_delete(); + void set_allocated_row_delete(::greptime::v1::RowDeleteRequest* row_delete); + private: + const ::greptime::v1::RowDeleteRequest& _internal_row_delete() const; + ::greptime::v1::RowDeleteRequest* _internal_mutable_row_delete(); + public: + void unsafe_arena_set_allocated_row_delete( + ::greptime::v1::RowDeleteRequest* row_delete); + ::greptime::v1::RowDeleteRequest* unsafe_arena_release_row_delete(); + void clear_request(); RequestCase request_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.GreptimeRequest) @@ -317,6 +370,8 @@ class GreptimeRequest final : void set_has_query(); void set_has_ddl(); void set_has_delete_(); + void set_has_row_inserts(); + void set_has_row_delete(); inline bool has_request() const; inline void clear_has_request(); @@ -333,6 +388,8 @@ class GreptimeRequest final : ::greptime::v1::QueryRequest* query_; ::greptime::v1::DdlRequest* ddl_; ::greptime::v1::DeleteRequest* delete__; + ::greptime::v1::RowInsertRequests* row_inserts_; + ::greptime::v1::RowDeleteRequest* row_delete_; } request_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -1300,6 +1357,531 @@ class DeleteRequest final : union { Impl_ _impl_; }; friend struct ::TableStruct_greptime_2fv1_2fdatabase_2eproto; }; +// ------------------------------------------------------------------- + +class RowInsertRequests final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RowInsertRequests) */ { + public: + inline RowInsertRequests() : RowInsertRequests(nullptr) {} + ~RowInsertRequests() override; + explicit PROTOBUF_CONSTEXPR RowInsertRequests(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RowInsertRequests(const RowInsertRequests& from); + RowInsertRequests(RowInsertRequests&& from) noexcept + : RowInsertRequests() { + *this = ::std::move(from); + } + + inline RowInsertRequests& operator=(const RowInsertRequests& from) { + CopyFrom(from); + return *this; + } + inline RowInsertRequests& operator=(RowInsertRequests&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const RowInsertRequests& default_instance() { + return *internal_default_instance(); + } + static inline const RowInsertRequests* internal_default_instance() { + return reinterpret_cast( + &_RowInsertRequests_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(RowInsertRequests& a, RowInsertRequests& b) { + a.Swap(&b); + } + inline void Swap(RowInsertRequests* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RowInsertRequests* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RowInsertRequests* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RowInsertRequests& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RowInsertRequests& from) { + RowInsertRequests::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RowInsertRequests* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.RowInsertRequests"; + } + protected: + explicit RowInsertRequests(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kInsertsFieldNumber = 1, + }; + // repeated .greptime.v1.RowInsertRequest inserts = 1; + int inserts_size() const; + private: + int _internal_inserts_size() const; + public: + void clear_inserts(); + ::greptime::v1::RowInsertRequest* mutable_inserts(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::RowInsertRequest >* + mutable_inserts(); + private: + const ::greptime::v1::RowInsertRequest& _internal_inserts(int index) const; + ::greptime::v1::RowInsertRequest* _internal_add_inserts(); + public: + const ::greptime::v1::RowInsertRequest& inserts(int index) const; + ::greptime::v1::RowInsertRequest* add_inserts(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::RowInsertRequest >& + inserts() const; + + // @@protoc_insertion_point(class_scope:greptime.v1.RowInsertRequests) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::RowInsertRequest > inserts_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fdatabase_2eproto; +}; +// ------------------------------------------------------------------- + +class RowInsertRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RowInsertRequest) */ { + public: + inline RowInsertRequest() : RowInsertRequest(nullptr) {} + ~RowInsertRequest() override; + explicit PROTOBUF_CONSTEXPR RowInsertRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RowInsertRequest(const RowInsertRequest& from); + RowInsertRequest(RowInsertRequest&& from) noexcept + : RowInsertRequest() { + *this = ::std::move(from); + } + + inline RowInsertRequest& operator=(const RowInsertRequest& from) { + CopyFrom(from); + return *this; + } + inline RowInsertRequest& operator=(RowInsertRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const RowInsertRequest& default_instance() { + return *internal_default_instance(); + } + static inline const RowInsertRequest* internal_default_instance() { + return reinterpret_cast( + &_RowInsertRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(RowInsertRequest& a, RowInsertRequest& b) { + a.Swap(&b); + } + inline void Swap(RowInsertRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RowInsertRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RowInsertRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RowInsertRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RowInsertRequest& from) { + RowInsertRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RowInsertRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.RowInsertRequest"; + } + protected: + explicit RowInsertRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTableNameFieldNumber = 1, + kRowsFieldNumber = 2, + kRegionNumberFieldNumber = 3, + }; + // string table_name = 1; + void clear_table_name(); + const std::string& table_name() const; + template + void set_table_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_table_name(); + PROTOBUF_NODISCARD std::string* release_table_name(); + void set_allocated_table_name(std::string* table_name); + private: + const std::string& _internal_table_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_name(const std::string& value); + std::string* _internal_mutable_table_name(); + public: + + // .greptime.v1.Rows rows = 2; + bool has_rows() const; + private: + bool _internal_has_rows() const; + public: + void clear_rows(); + const ::greptime::v1::Rows& rows() const; + PROTOBUF_NODISCARD ::greptime::v1::Rows* release_rows(); + ::greptime::v1::Rows* mutable_rows(); + void set_allocated_rows(::greptime::v1::Rows* rows); + private: + const ::greptime::v1::Rows& _internal_rows() const; + ::greptime::v1::Rows* _internal_mutable_rows(); + public: + void unsafe_arena_set_allocated_rows( + ::greptime::v1::Rows* rows); + ::greptime::v1::Rows* unsafe_arena_release_rows(); + + // uint32 region_number = 3; + void clear_region_number(); + uint32_t region_number() const; + void set_region_number(uint32_t value); + private: + uint32_t _internal_region_number() const; + void _internal_set_region_number(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.RowInsertRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; + ::greptime::v1::Rows* rows_; + uint32_t region_number_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fdatabase_2eproto; +}; +// ------------------------------------------------------------------- + +class RowDeleteRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RowDeleteRequest) */ { + public: + inline RowDeleteRequest() : RowDeleteRequest(nullptr) {} + ~RowDeleteRequest() override; + explicit PROTOBUF_CONSTEXPR RowDeleteRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RowDeleteRequest(const RowDeleteRequest& from); + RowDeleteRequest(RowDeleteRequest&& from) noexcept + : RowDeleteRequest() { + *this = ::std::move(from); + } + + inline RowDeleteRequest& operator=(const RowDeleteRequest& from) { + CopyFrom(from); + return *this; + } + inline RowDeleteRequest& operator=(RowDeleteRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const RowDeleteRequest& default_instance() { + return *internal_default_instance(); + } + static inline const RowDeleteRequest* internal_default_instance() { + return reinterpret_cast( + &_RowDeleteRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(RowDeleteRequest& a, RowDeleteRequest& b) { + a.Swap(&b); + } + inline void Swap(RowDeleteRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RowDeleteRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RowDeleteRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RowDeleteRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RowDeleteRequest& from) { + RowDeleteRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RowDeleteRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.RowDeleteRequest"; + } + protected: + explicit RowDeleteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTableNameFieldNumber = 1, + kRowsFieldNumber = 2, + kRegionNumberFieldNumber = 3, + }; + // string table_name = 1; + void clear_table_name(); + const std::string& table_name() const; + template + void set_table_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_table_name(); + PROTOBUF_NODISCARD std::string* release_table_name(); + void set_allocated_table_name(std::string* table_name); + private: + const std::string& _internal_table_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_name(const std::string& value); + std::string* _internal_mutable_table_name(); + public: + + // .greptime.v1.Rows rows = 2; + bool has_rows() const; + private: + bool _internal_has_rows() const; + public: + void clear_rows(); + const ::greptime::v1::Rows& rows() const; + PROTOBUF_NODISCARD ::greptime::v1::Rows* release_rows(); + ::greptime::v1::Rows* mutable_rows(); + void set_allocated_rows(::greptime::v1::Rows* rows); + private: + const ::greptime::v1::Rows& _internal_rows() const; + ::greptime::v1::Rows* _internal_mutable_rows(); + public: + void unsafe_arena_set_allocated_rows( + ::greptime::v1::Rows* rows); + ::greptime::v1::Rows* unsafe_arena_release_rows(); + + // uint32 region_number = 3; + void clear_region_number(); + uint32_t region_number() const; + void set_region_number(uint32_t value); + private: + uint32_t _internal_region_number() const; + void _internal_set_region_number(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.RowDeleteRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; + ::greptime::v1::Rows* rows_; + uint32_t region_number_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fdatabase_2eproto; +}; // =================================================================== @@ -1684,6 +2266,154 @@ inline ::greptime::v1::DeleteRequest* GreptimeRequest::mutable_delete_() { return _msg; } +// .greptime.v1.RowInsertRequests row_inserts = 6; +inline bool GreptimeRequest::_internal_has_row_inserts() const { + return request_case() == kRowInserts; +} +inline bool GreptimeRequest::has_row_inserts() const { + return _internal_has_row_inserts(); +} +inline void GreptimeRequest::set_has_row_inserts() { + _impl_._oneof_case_[0] = kRowInserts; +} +inline void GreptimeRequest::clear_row_inserts() { + if (_internal_has_row_inserts()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.row_inserts_; + } + clear_has_request(); + } +} +inline ::greptime::v1::RowInsertRequests* GreptimeRequest::release_row_inserts() { + // @@protoc_insertion_point(field_release:greptime.v1.GreptimeRequest.row_inserts) + if (_internal_has_row_inserts()) { + clear_has_request(); + ::greptime::v1::RowInsertRequests* temp = _impl_.request_.row_inserts_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.row_inserts_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::RowInsertRequests& GreptimeRequest::_internal_row_inserts() const { + return _internal_has_row_inserts() + ? *_impl_.request_.row_inserts_ + : reinterpret_cast< ::greptime::v1::RowInsertRequests&>(::greptime::v1::_RowInsertRequests_default_instance_); +} +inline const ::greptime::v1::RowInsertRequests& GreptimeRequest::row_inserts() const { + // @@protoc_insertion_point(field_get:greptime.v1.GreptimeRequest.row_inserts) + return _internal_row_inserts(); +} +inline ::greptime::v1::RowInsertRequests* GreptimeRequest::unsafe_arena_release_row_inserts() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.GreptimeRequest.row_inserts) + if (_internal_has_row_inserts()) { + clear_has_request(); + ::greptime::v1::RowInsertRequests* temp = _impl_.request_.row_inserts_; + _impl_.request_.row_inserts_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GreptimeRequest::unsafe_arena_set_allocated_row_inserts(::greptime::v1::RowInsertRequests* row_inserts) { + clear_request(); + if (row_inserts) { + set_has_row_inserts(); + _impl_.request_.row_inserts_ = row_inserts; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.GreptimeRequest.row_inserts) +} +inline ::greptime::v1::RowInsertRequests* GreptimeRequest::_internal_mutable_row_inserts() { + if (!_internal_has_row_inserts()) { + clear_request(); + set_has_row_inserts(); + _impl_.request_.row_inserts_ = CreateMaybeMessage< ::greptime::v1::RowInsertRequests >(GetArenaForAllocation()); + } + return _impl_.request_.row_inserts_; +} +inline ::greptime::v1::RowInsertRequests* GreptimeRequest::mutable_row_inserts() { + ::greptime::v1::RowInsertRequests* _msg = _internal_mutable_row_inserts(); + // @@protoc_insertion_point(field_mutable:greptime.v1.GreptimeRequest.row_inserts) + return _msg; +} + +// .greptime.v1.RowDeleteRequest row_delete = 7; +inline bool GreptimeRequest::_internal_has_row_delete() const { + return request_case() == kRowDelete; +} +inline bool GreptimeRequest::has_row_delete() const { + return _internal_has_row_delete(); +} +inline void GreptimeRequest::set_has_row_delete() { + _impl_._oneof_case_[0] = kRowDelete; +} +inline void GreptimeRequest::clear_row_delete() { + if (_internal_has_row_delete()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.row_delete_; + } + clear_has_request(); + } +} +inline ::greptime::v1::RowDeleteRequest* GreptimeRequest::release_row_delete() { + // @@protoc_insertion_point(field_release:greptime.v1.GreptimeRequest.row_delete) + if (_internal_has_row_delete()) { + clear_has_request(); + ::greptime::v1::RowDeleteRequest* temp = _impl_.request_.row_delete_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.row_delete_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::RowDeleteRequest& GreptimeRequest::_internal_row_delete() const { + return _internal_has_row_delete() + ? *_impl_.request_.row_delete_ + : reinterpret_cast< ::greptime::v1::RowDeleteRequest&>(::greptime::v1::_RowDeleteRequest_default_instance_); +} +inline const ::greptime::v1::RowDeleteRequest& GreptimeRequest::row_delete() const { + // @@protoc_insertion_point(field_get:greptime.v1.GreptimeRequest.row_delete) + return _internal_row_delete(); +} +inline ::greptime::v1::RowDeleteRequest* GreptimeRequest::unsafe_arena_release_row_delete() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.GreptimeRequest.row_delete) + if (_internal_has_row_delete()) { + clear_has_request(); + ::greptime::v1::RowDeleteRequest* temp = _impl_.request_.row_delete_; + _impl_.request_.row_delete_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void GreptimeRequest::unsafe_arena_set_allocated_row_delete(::greptime::v1::RowDeleteRequest* row_delete) { + clear_request(); + if (row_delete) { + set_has_row_delete(); + _impl_.request_.row_delete_ = row_delete; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.GreptimeRequest.row_delete) +} +inline ::greptime::v1::RowDeleteRequest* GreptimeRequest::_internal_mutable_row_delete() { + if (!_internal_has_row_delete()) { + clear_request(); + set_has_row_delete(); + _impl_.request_.row_delete_ = CreateMaybeMessage< ::greptime::v1::RowDeleteRequest >(GetArenaForAllocation()); + } + return _impl_.request_.row_delete_; +} +inline ::greptime::v1::RowDeleteRequest* GreptimeRequest::mutable_row_delete() { + ::greptime::v1::RowDeleteRequest* _msg = _internal_mutable_row_delete(); + // @@protoc_insertion_point(field_mutable:greptime.v1.GreptimeRequest.row_delete) + return _msg; +} + inline bool GreptimeRequest::has_request() const { return request_case() != REQUEST_NOT_SET; } @@ -2396,6 +3126,368 @@ inline void DeleteRequest::set_row_count(uint32_t value) { // @@protoc_insertion_point(field_set:greptime.v1.DeleteRequest.row_count) } +// ------------------------------------------------------------------- + +// RowInsertRequests + +// repeated .greptime.v1.RowInsertRequest inserts = 1; +inline int RowInsertRequests::_internal_inserts_size() const { + return _impl_.inserts_.size(); +} +inline int RowInsertRequests::inserts_size() const { + return _internal_inserts_size(); +} +inline void RowInsertRequests::clear_inserts() { + _impl_.inserts_.Clear(); +} +inline ::greptime::v1::RowInsertRequest* RowInsertRequests::mutable_inserts(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.RowInsertRequests.inserts) + return _impl_.inserts_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::RowInsertRequest >* +RowInsertRequests::mutable_inserts() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.RowInsertRequests.inserts) + return &_impl_.inserts_; +} +inline const ::greptime::v1::RowInsertRequest& RowInsertRequests::_internal_inserts(int index) const { + return _impl_.inserts_.Get(index); +} +inline const ::greptime::v1::RowInsertRequest& RowInsertRequests::inserts(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.RowInsertRequests.inserts) + return _internal_inserts(index); +} +inline ::greptime::v1::RowInsertRequest* RowInsertRequests::_internal_add_inserts() { + return _impl_.inserts_.Add(); +} +inline ::greptime::v1::RowInsertRequest* RowInsertRequests::add_inserts() { + ::greptime::v1::RowInsertRequest* _add = _internal_add_inserts(); + // @@protoc_insertion_point(field_add:greptime.v1.RowInsertRequests.inserts) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::RowInsertRequest >& +RowInsertRequests::inserts() const { + // @@protoc_insertion_point(field_list:greptime.v1.RowInsertRequests.inserts) + return _impl_.inserts_; +} + +// ------------------------------------------------------------------- + +// RowInsertRequest + +// string table_name = 1; +inline void RowInsertRequest::clear_table_name() { + _impl_.table_name_.ClearToEmpty(); +} +inline const std::string& RowInsertRequest::table_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.RowInsertRequest.table_name) + return _internal_table_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RowInsertRequest::set_table_name(ArgT0&& arg0, ArgT... args) { + + _impl_.table_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.RowInsertRequest.table_name) +} +inline std::string* RowInsertRequest::mutable_table_name() { + std::string* _s = _internal_mutable_table_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.RowInsertRequest.table_name) + return _s; +} +inline const std::string& RowInsertRequest::_internal_table_name() const { + return _impl_.table_name_.Get(); +} +inline void RowInsertRequest::_internal_set_table_name(const std::string& value) { + + _impl_.table_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RowInsertRequest::_internal_mutable_table_name() { + + return _impl_.table_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RowInsertRequest::release_table_name() { + // @@protoc_insertion_point(field_release:greptime.v1.RowInsertRequest.table_name) + return _impl_.table_name_.Release(); +} +inline void RowInsertRequest::set_allocated_table_name(std::string* table_name) { + if (table_name != nullptr) { + + } else { + + } + _impl_.table_name_.SetAllocated(table_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.table_name_.IsDefault()) { + _impl_.table_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.RowInsertRequest.table_name) +} + +// .greptime.v1.Rows rows = 2; +inline bool RowInsertRequest::_internal_has_rows() const { + return this != internal_default_instance() && _impl_.rows_ != nullptr; +} +inline bool RowInsertRequest::has_rows() const { + return _internal_has_rows(); +} +inline const ::greptime::v1::Rows& RowInsertRequest::_internal_rows() const { + const ::greptime::v1::Rows* p = _impl_.rows_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_Rows_default_instance_); +} +inline const ::greptime::v1::Rows& RowInsertRequest::rows() const { + // @@protoc_insertion_point(field_get:greptime.v1.RowInsertRequest.rows) + return _internal_rows(); +} +inline void RowInsertRequest::unsafe_arena_set_allocated_rows( + ::greptime::v1::Rows* rows) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rows_); + } + _impl_.rows_ = rows; + if (rows) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.RowInsertRequest.rows) +} +inline ::greptime::v1::Rows* RowInsertRequest::release_rows() { + + ::greptime::v1::Rows* temp = _impl_.rows_; + _impl_.rows_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::Rows* RowInsertRequest::unsafe_arena_release_rows() { + // @@protoc_insertion_point(field_release:greptime.v1.RowInsertRequest.rows) + + ::greptime::v1::Rows* temp = _impl_.rows_; + _impl_.rows_ = nullptr; + return temp; +} +inline ::greptime::v1::Rows* RowInsertRequest::_internal_mutable_rows() { + + if (_impl_.rows_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::Rows>(GetArenaForAllocation()); + _impl_.rows_ = p; + } + return _impl_.rows_; +} +inline ::greptime::v1::Rows* RowInsertRequest::mutable_rows() { + ::greptime::v1::Rows* _msg = _internal_mutable_rows(); + // @@protoc_insertion_point(field_mutable:greptime.v1.RowInsertRequest.rows) + return _msg; +} +inline void RowInsertRequest::set_allocated_rows(::greptime::v1::Rows* rows) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rows_); + } + if (rows) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(rows)); + if (message_arena != submessage_arena) { + rows = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, rows, submessage_arena); + } + + } else { + + } + _impl_.rows_ = rows; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.RowInsertRequest.rows) +} + +// uint32 region_number = 3; +inline void RowInsertRequest::clear_region_number() { + _impl_.region_number_ = 0u; +} +inline uint32_t RowInsertRequest::_internal_region_number() const { + return _impl_.region_number_; +} +inline uint32_t RowInsertRequest::region_number() const { + // @@protoc_insertion_point(field_get:greptime.v1.RowInsertRequest.region_number) + return _internal_region_number(); +} +inline void RowInsertRequest::_internal_set_region_number(uint32_t value) { + + _impl_.region_number_ = value; +} +inline void RowInsertRequest::set_region_number(uint32_t value) { + _internal_set_region_number(value); + // @@protoc_insertion_point(field_set:greptime.v1.RowInsertRequest.region_number) +} + +// ------------------------------------------------------------------- + +// RowDeleteRequest + +// string table_name = 1; +inline void RowDeleteRequest::clear_table_name() { + _impl_.table_name_.ClearToEmpty(); +} +inline const std::string& RowDeleteRequest::table_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.RowDeleteRequest.table_name) + return _internal_table_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RowDeleteRequest::set_table_name(ArgT0&& arg0, ArgT... args) { + + _impl_.table_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.RowDeleteRequest.table_name) +} +inline std::string* RowDeleteRequest::mutable_table_name() { + std::string* _s = _internal_mutable_table_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.RowDeleteRequest.table_name) + return _s; +} +inline const std::string& RowDeleteRequest::_internal_table_name() const { + return _impl_.table_name_.Get(); +} +inline void RowDeleteRequest::_internal_set_table_name(const std::string& value) { + + _impl_.table_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RowDeleteRequest::_internal_mutable_table_name() { + + return _impl_.table_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RowDeleteRequest::release_table_name() { + // @@protoc_insertion_point(field_release:greptime.v1.RowDeleteRequest.table_name) + return _impl_.table_name_.Release(); +} +inline void RowDeleteRequest::set_allocated_table_name(std::string* table_name) { + if (table_name != nullptr) { + + } else { + + } + _impl_.table_name_.SetAllocated(table_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.table_name_.IsDefault()) { + _impl_.table_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.RowDeleteRequest.table_name) +} + +// .greptime.v1.Rows rows = 2; +inline bool RowDeleteRequest::_internal_has_rows() const { + return this != internal_default_instance() && _impl_.rows_ != nullptr; +} +inline bool RowDeleteRequest::has_rows() const { + return _internal_has_rows(); +} +inline const ::greptime::v1::Rows& RowDeleteRequest::_internal_rows() const { + const ::greptime::v1::Rows* p = _impl_.rows_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_Rows_default_instance_); +} +inline const ::greptime::v1::Rows& RowDeleteRequest::rows() const { + // @@protoc_insertion_point(field_get:greptime.v1.RowDeleteRequest.rows) + return _internal_rows(); +} +inline void RowDeleteRequest::unsafe_arena_set_allocated_rows( + ::greptime::v1::Rows* rows) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rows_); + } + _impl_.rows_ = rows; + if (rows) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.RowDeleteRequest.rows) +} +inline ::greptime::v1::Rows* RowDeleteRequest::release_rows() { + + ::greptime::v1::Rows* temp = _impl_.rows_; + _impl_.rows_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::Rows* RowDeleteRequest::unsafe_arena_release_rows() { + // @@protoc_insertion_point(field_release:greptime.v1.RowDeleteRequest.rows) + + ::greptime::v1::Rows* temp = _impl_.rows_; + _impl_.rows_ = nullptr; + return temp; +} +inline ::greptime::v1::Rows* RowDeleteRequest::_internal_mutable_rows() { + + if (_impl_.rows_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::Rows>(GetArenaForAllocation()); + _impl_.rows_ = p; + } + return _impl_.rows_; +} +inline ::greptime::v1::Rows* RowDeleteRequest::mutable_rows() { + ::greptime::v1::Rows* _msg = _internal_mutable_rows(); + // @@protoc_insertion_point(field_mutable:greptime.v1.RowDeleteRequest.rows) + return _msg; +} +inline void RowDeleteRequest::set_allocated_rows(::greptime::v1::Rows* rows) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rows_); + } + if (rows) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(rows)); + if (message_arena != submessage_arena) { + rows = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, rows, submessage_arena); + } + + } else { + + } + _impl_.rows_ = rows; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.RowDeleteRequest.rows) +} + +// uint32 region_number = 3; +inline void RowDeleteRequest::clear_region_number() { + _impl_.region_number_ = 0u; +} +inline uint32_t RowDeleteRequest::_internal_region_number() const { + return _impl_.region_number_; +} +inline uint32_t RowDeleteRequest::region_number() const { + // @@protoc_insertion_point(field_get:greptime.v1.RowDeleteRequest.region_number) + return _internal_region_number(); +} +inline void RowDeleteRequest::_internal_set_region_number(uint32_t value) { + + _impl_.region_number_ = value; +} +inline void RowDeleteRequest::set_region_number(uint32_t value) { + _internal_set_region_number(value); + // @@protoc_insertion_point(field_set:greptime.v1.RowDeleteRequest.region_number) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -2409,6 +3501,12 @@ inline void DeleteRequest::set_row_count(uint32_t value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/row.grpc.pb.cc b/c++/greptime/v1/row.grpc.pb.cc new file mode 100644 index 0000000..12f5542 --- /dev/null +++ b/c++/greptime/v1/row.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: greptime/v1/row.proto + +#include "greptime/v1/row.pb.h" +#include "greptime/v1/row.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace greptime { +namespace v1 { + +} // namespace greptime +} // namespace v1 + diff --git a/c++/greptime/v1/row.grpc.pb.h b/c++/greptime/v1/row.grpc.pb.h new file mode 100644 index 0000000..f0dbecc --- /dev/null +++ b/c++/greptime/v1/row.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: greptime/v1/row.proto +// Original file comments: +// Copyright 2023 Greptime Team +// +// Licensed 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. +// +#ifndef GRPC_greptime_2fv1_2frow_2eproto__INCLUDED +#define GRPC_greptime_2fv1_2frow_2eproto__INCLUDED + +#include "greptime/v1/row.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace greptime { +namespace v1 { + +} // namespace v1 +} // namespace greptime + + +#endif // GRPC_greptime_2fv1_2frow_2eproto__INCLUDED diff --git a/c++/greptime/v1/row.pb.cc b/c++/greptime/v1/row.pb.cc new file mode 100644 index 0000000..1cc3aa6 --- /dev/null +++ b/c++/greptime/v1/row.pb.cc @@ -0,0 +1,1831 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/row.proto + +#include "greptime/v1/row.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace greptime { +namespace v1 { +PROTOBUF_CONSTEXPR Rows::Rows( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.schema_)*/{} + , /*decltype(_impl_.rows_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RowsDefaultTypeInternal { + PROTOBUF_CONSTEXPR RowsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RowsDefaultTypeInternal() {} + union { + Rows _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowsDefaultTypeInternal _Rows_default_instance_; +PROTOBUF_CONSTEXPR ColumnSchema::ColumnSchema( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.datatype_)*/0 + , /*decltype(_impl_.semantic_type_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ColumnSchemaDefaultTypeInternal { + PROTOBUF_CONSTEXPR ColumnSchemaDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ColumnSchemaDefaultTypeInternal() {} + union { + ColumnSchema _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnSchemaDefaultTypeInternal _ColumnSchema_default_instance_; +PROTOBUF_CONSTEXPR Row::Row( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.values_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RowDefaultTypeInternal { + PROTOBUF_CONSTEXPR RowDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RowDefaultTypeInternal() {} + union { + Row _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowDefaultTypeInternal _Row_default_instance_; +PROTOBUF_CONSTEXPR Value::Value( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.value_data_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct ValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ValueDefaultTypeInternal() {} + union { + Value _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; +} // namespace v1 +} // namespace greptime +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2frow_2eproto[4]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2frow_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2frow_2eproto = nullptr; + +const uint32_t TableStruct_greptime_2fv1_2frow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::Rows, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::Rows, _impl_.schema_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::Rows, _impl_.rows_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.column_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.datatype_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.semantic_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::Row, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::Row, _impl_.values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::Value, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::Value, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::greptime::v1::Value, _impl_.value_data_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::greptime::v1::Rows)}, + { 8, -1, -1, sizeof(::greptime::v1::ColumnSchema)}, + { 17, -1, -1, sizeof(::greptime::v1::Row)}, + { 24, -1, -1, sizeof(::greptime::v1::Value)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::greptime::v1::_Rows_default_instance_._instance, + &::greptime::v1::_ColumnSchema_default_instance_._instance, + &::greptime::v1::_Row_default_instance_._instance, + &::greptime::v1::_Value_default_instance_._instance, +}; + +const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\025greptime/v1/row.proto\022\013greptime.v1\032\030gr" + "eptime/v1/common.proto\"Q\n\004Rows\022)\n\006schema" + "\030\001 \003(\0132\031.greptime.v1.ColumnSchema\022\036\n\004row" + "s\030\002 \003(\0132\020.greptime.v1.Row\"\204\001\n\014ColumnSche" + "ma\022\023\n\013column_name\030\001 \001(\t\022-\n\010datatype\030\002 \001(" + "\0162\033.greptime.v1.ColumnDataType\0220\n\rsemant" + "ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType" + "\")\n\003Row\022\"\n\006values\030\001 \003(\0132\022.greptime.v1.Va" + "lue\"\327\004\n\005Value\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16" + "_value\030\002 \001(\005H\000\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti" + "64_value\030\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\t" + "u16_value\030\006 \001(\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023" + "\n\tu64_value\030\010 \001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000" + "\022\023\n\tf64_value\030\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(" + "\010H\000\022\026\n\014binary_value\030\014 \001(\014H\000\022\026\n\014string_va" + "lue\030\r \001(\tH\000\022\024\n\ndate_value\030\016 \001(\005H\000\022\030\n\016dat" + "etime_value\030\017 \001(\003H\000\022\031\n\017ts_second_value\030\020" + " \001(\003H\000\022\036\n\024ts_millisecond_value\030\021 \001(\003H\000\022\036" + "\n\024ts_microsecond_value\030\022 \001(\003H\000\022\035\n\023ts_nan" + "osecond_value\030\023 \001(\003H\000\022\033\n\021time_second_val" + "ue\030\024 \001(\003H\000\022 \n\026time_millisecond_value\030\025 \001" + "(\003H\000\022 \n\026time_microsecond_value\030\026 \001(\003H\000\022\037" + "\n\025time_nanosecond_value\030\027 \001(\003H\000B\014\n\nvalue" + "_dataBP\n\016io.greptime.v1B\007RowDataZ5github" + ".com/GreptimeTeam/greptime-proto/go/grep" + "time/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2frow_2eproto_deps[1] = { + &::descriptor_table_greptime_2fv1_2fcommon_2eproto, +}; +static ::_pbi::once_flag descriptor_table_greptime_2fv1_2frow_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2frow_2eproto = { + false, false, 1015, descriptor_table_protodef_greptime_2fv1_2frow_2eproto, + "greptime/v1/row.proto", + &descriptor_table_greptime_2fv1_2frow_2eproto_once, descriptor_table_greptime_2fv1_2frow_2eproto_deps, 1, 4, + schemas, file_default_instances, TableStruct_greptime_2fv1_2frow_2eproto::offsets, + file_level_metadata_greptime_2fv1_2frow_2eproto, file_level_enum_descriptors_greptime_2fv1_2frow_2eproto, + file_level_service_descriptors_greptime_2fv1_2frow_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_greptime_2fv1_2frow_2eproto_getter() { + return &descriptor_table_greptime_2fv1_2frow_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_greptime_2fv1_2frow_2eproto(&descriptor_table_greptime_2fv1_2frow_2eproto); +namespace greptime { +namespace v1 { + +// =================================================================== + +class Rows::_Internal { + public: +}; + +Rows::Rows(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.Rows) +} +Rows::Rows(const Rows& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Rows* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.schema_){from._impl_.schema_} + , decltype(_impl_.rows_){from._impl_.rows_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.Rows) +} + +inline void Rows::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.schema_){arena} + , decltype(_impl_.rows_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Rows::~Rows() { + // @@protoc_insertion_point(destructor:greptime.v1.Rows) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Rows::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.schema_.~RepeatedPtrField(); + _impl_.rows_.~RepeatedPtrField(); +} + +void Rows::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Rows::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.Rows) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.schema_.Clear(); + _impl_.rows_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Rows::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .greptime.v1.ColumnSchema schema = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_schema(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .greptime.v1.Row rows = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_rows(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Rows::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.Rows) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.ColumnSchema schema = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_schema_size()); i < n; i++) { + const auto& repfield = this->_internal_schema(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .greptime.v1.Row rows = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_rows_size()); i < n; i++) { + const auto& repfield = this->_internal_rows(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.Rows) + return target; +} + +size_t Rows::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.Rows) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .greptime.v1.ColumnSchema schema = 1; + total_size += 1UL * this->_internal_schema_size(); + for (const auto& msg : this->_impl_.schema_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .greptime.v1.Row rows = 2; + total_size += 1UL * this->_internal_rows_size(); + for (const auto& msg : this->_impl_.rows_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Rows::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Rows::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Rows::GetClassData() const { return &_class_data_; } + + +void Rows::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.Rows) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.schema_.MergeFrom(from._impl_.schema_); + _this->_impl_.rows_.MergeFrom(from._impl_.rows_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Rows::CopyFrom(const Rows& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.Rows) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Rows::IsInitialized() const { + return true; +} + +void Rows::InternalSwap(Rows* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.schema_.InternalSwap(&other->_impl_.schema_); + _impl_.rows_.InternalSwap(&other->_impl_.rows_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Rows::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2frow_2eproto_getter, &descriptor_table_greptime_2fv1_2frow_2eproto_once, + file_level_metadata_greptime_2fv1_2frow_2eproto[0]); +} + +// =================================================================== + +class ColumnSchema::_Internal { + public: +}; + +ColumnSchema::ColumnSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.ColumnSchema) +} +ColumnSchema::ColumnSchema(const ColumnSchema& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ColumnSchema* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , decltype(_impl_.datatype_){} + , decltype(_impl_.semantic_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_column_name().empty()) { + _this->_impl_.column_name_.Set(from._internal_column_name(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.datatype_, &from._impl_.datatype_, + static_cast(reinterpret_cast(&_impl_.semantic_type_) - + reinterpret_cast(&_impl_.datatype_)) + sizeof(_impl_.semantic_type_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.ColumnSchema) +} + +inline void ColumnSchema::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , decltype(_impl_.datatype_){0} + , decltype(_impl_.semantic_type_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ColumnSchema::~ColumnSchema() { + // @@protoc_insertion_point(destructor:greptime.v1.ColumnSchema) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ColumnSchema::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.column_name_.Destroy(); +} + +void ColumnSchema::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ColumnSchema::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ColumnSchema) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.column_name_.ClearToEmpty(); + ::memset(&_impl_.datatype_, 0, static_cast( + reinterpret_cast(&_impl_.semantic_type_) - + reinterpret_cast(&_impl_.datatype_)) + sizeof(_impl_.semantic_type_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ColumnSchema::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string column_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_column_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ColumnSchema.column_name")); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnDataType datatype = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_datatype(static_cast<::greptime::v1::ColumnDataType>(val)); + } else + goto handle_unusual; + continue; + // .greptime.v1.SemanticType semantic_type = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_semantic_type(static_cast<::greptime::v1::SemanticType>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ColumnSchema::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ColumnSchema) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.ColumnSchema.column_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_column_name(), target); + } + + // .greptime.v1.ColumnDataType datatype = 2; + if (this->_internal_datatype() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_datatype(), target); + } + + // .greptime.v1.SemanticType semantic_type = 3; + if (this->_internal_semantic_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_semantic_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ColumnSchema) + return target; +} + +size_t ColumnSchema::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ColumnSchema) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_column_name()); + } + + // .greptime.v1.ColumnDataType datatype = 2; + if (this->_internal_datatype() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_datatype()); + } + + // .greptime.v1.SemanticType semantic_type = 3; + if (this->_internal_semantic_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_semantic_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ColumnSchema::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ColumnSchema::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ColumnSchema::GetClassData() const { return &_class_data_; } + + +void ColumnSchema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.ColumnSchema) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_column_name().empty()) { + _this->_internal_set_column_name(from._internal_column_name()); + } + if (from._internal_datatype() != 0) { + _this->_internal_set_datatype(from._internal_datatype()); + } + if (from._internal_semantic_type() != 0) { + _this->_internal_set_semantic_type(from._internal_semantic_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ColumnSchema::CopyFrom(const ColumnSchema& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ColumnSchema) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ColumnSchema::IsInitialized() const { + return true; +} + +void ColumnSchema::InternalSwap(ColumnSchema* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.column_name_, lhs_arena, + &other->_impl_.column_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ColumnSchema, _impl_.semantic_type_) + + sizeof(ColumnSchema::_impl_.semantic_type_) + - PROTOBUF_FIELD_OFFSET(ColumnSchema, _impl_.datatype_)>( + reinterpret_cast(&_impl_.datatype_), + reinterpret_cast(&other->_impl_.datatype_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ColumnSchema::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2frow_2eproto_getter, &descriptor_table_greptime_2fv1_2frow_2eproto_once, + file_level_metadata_greptime_2fv1_2frow_2eproto[1]); +} + +// =================================================================== + +class Row::_Internal { + public: +}; + +Row::Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.Row) +} +Row::Row(const Row& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Row* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.values_){from._impl_.values_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.Row) +} + +inline void Row::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.values_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +Row::~Row() { + // @@protoc_insertion_point(destructor:greptime.v1.Row) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Row::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.values_.~RepeatedPtrField(); +} + +void Row::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Row::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.Row) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.values_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Row::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .greptime.v1.Value values = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_values(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Row::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.Row) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.Value values = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_values_size()); i < n; i++) { + const auto& repfield = this->_internal_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.Row) + return target; +} + +size_t Row::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.Row) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .greptime.v1.Value values = 1; + total_size += 1UL * this->_internal_values_size(); + for (const auto& msg : this->_impl_.values_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Row::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Row::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Row::GetClassData() const { return &_class_data_; } + + +void Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.Row) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.values_.MergeFrom(from._impl_.values_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Row::CopyFrom(const Row& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.Row) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Row::IsInitialized() const { + return true; +} + +void Row::InternalSwap(Row* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.values_.InternalSwap(&other->_impl_.values_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Row::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2frow_2eproto_getter, &descriptor_table_greptime_2fv1_2frow_2eproto_once, + file_level_metadata_greptime_2fv1_2frow_2eproto[2]); +} + +// =================================================================== + +class Value::_Internal { + public: +}; + +Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.Value) +} +Value::Value(const Value& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Value* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.value_data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_value_data(); + switch (from.value_data_case()) { + case kI8Value: { + _this->_internal_set_i8_value(from._internal_i8_value()); + break; + } + case kI16Value: { + _this->_internal_set_i16_value(from._internal_i16_value()); + break; + } + case kI32Value: { + _this->_internal_set_i32_value(from._internal_i32_value()); + break; + } + case kI64Value: { + _this->_internal_set_i64_value(from._internal_i64_value()); + break; + } + case kU8Value: { + _this->_internal_set_u8_value(from._internal_u8_value()); + break; + } + case kU16Value: { + _this->_internal_set_u16_value(from._internal_u16_value()); + break; + } + case kU32Value: { + _this->_internal_set_u32_value(from._internal_u32_value()); + break; + } + case kU64Value: { + _this->_internal_set_u64_value(from._internal_u64_value()); + break; + } + case kF32Value: { + _this->_internal_set_f32_value(from._internal_f32_value()); + break; + } + case kF64Value: { + _this->_internal_set_f64_value(from._internal_f64_value()); + break; + } + case kBoolValue: { + _this->_internal_set_bool_value(from._internal_bool_value()); + break; + } + case kBinaryValue: { + _this->_internal_set_binary_value(from._internal_binary_value()); + break; + } + case kStringValue: { + _this->_internal_set_string_value(from._internal_string_value()); + break; + } + case kDateValue: { + _this->_internal_set_date_value(from._internal_date_value()); + break; + } + case kDatetimeValue: { + _this->_internal_set_datetime_value(from._internal_datetime_value()); + break; + } + case kTsSecondValue: { + _this->_internal_set_ts_second_value(from._internal_ts_second_value()); + break; + } + case kTsMillisecondValue: { + _this->_internal_set_ts_millisecond_value(from._internal_ts_millisecond_value()); + break; + } + case kTsMicrosecondValue: { + _this->_internal_set_ts_microsecond_value(from._internal_ts_microsecond_value()); + break; + } + case kTsNanosecondValue: { + _this->_internal_set_ts_nanosecond_value(from._internal_ts_nanosecond_value()); + break; + } + case kTimeSecondValue: { + _this->_internal_set_time_second_value(from._internal_time_second_value()); + break; + } + case kTimeMillisecondValue: { + _this->_internal_set_time_millisecond_value(from._internal_time_millisecond_value()); + break; + } + case kTimeMicrosecondValue: { + _this->_internal_set_time_microsecond_value(from._internal_time_microsecond_value()); + break; + } + case kTimeNanosecondValue: { + _this->_internal_set_time_nanosecond_value(from._internal_time_nanosecond_value()); + break; + } + case VALUE_DATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.Value) +} + +inline void Value::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.value_data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_value_data(); +} + +Value::~Value() { + // @@protoc_insertion_point(destructor:greptime.v1.Value) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Value::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_value_data()) { + clear_value_data(); + } +} + +void Value::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Value::clear_value_data() { +// @@protoc_insertion_point(one_of_clear_start:greptime.v1.Value) + switch (value_data_case()) { + case kI8Value: { + // No need to clear + break; + } + case kI16Value: { + // No need to clear + break; + } + case kI32Value: { + // No need to clear + break; + } + case kI64Value: { + // No need to clear + break; + } + case kU8Value: { + // No need to clear + break; + } + case kU16Value: { + // No need to clear + break; + } + case kU32Value: { + // No need to clear + break; + } + case kU64Value: { + // No need to clear + break; + } + case kF32Value: { + // No need to clear + break; + } + case kF64Value: { + // No need to clear + break; + } + case kBoolValue: { + // No need to clear + break; + } + case kBinaryValue: { + _impl_.value_data_.binary_value_.Destroy(); + break; + } + case kStringValue: { + _impl_.value_data_.string_value_.Destroy(); + break; + } + case kDateValue: { + // No need to clear + break; + } + case kDatetimeValue: { + // No need to clear + break; + } + case kTsSecondValue: { + // No need to clear + break; + } + case kTsMillisecondValue: { + // No need to clear + break; + } + case kTsMicrosecondValue: { + // No need to clear + break; + } + case kTsNanosecondValue: { + // No need to clear + break; + } + case kTimeSecondValue: { + // No need to clear + break; + } + case kTimeMillisecondValue: { + // No need to clear + break; + } + case kTimeMicrosecondValue: { + // No need to clear + break; + } + case kTimeNanosecondValue: { + // No need to clear + break; + } + case VALUE_DATA_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = VALUE_DATA_NOT_SET; +} + + +void Value::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.Value) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_value_data(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int32 i8_value = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _internal_set_i8_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 i16_value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _internal_set_i16_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 i32_value = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _internal_set_i32_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 i64_value = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _internal_set_i64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 u8_value = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _internal_set_u8_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 u16_value = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _internal_set_u16_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 u32_value = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + _internal_set_u32_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 u64_value = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + _internal_set_u64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // float f32_value = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 77)) { + _internal_set_f32_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + // double f64_value = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 81)) { + _internal_set_f64_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // bool bool_value = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { + _internal_set_bool_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes binary_value = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_binary_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string string_value = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + auto str = _internal_mutable_string_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.Value.string_value")); + } else + goto handle_unusual; + continue; + // int32 date_value = 14; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { + _internal_set_date_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 datetime_value = 15; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { + _internal_set_datetime_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 ts_second_value = 16; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 128)) { + _internal_set_ts_second_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 ts_millisecond_value = 17; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 136)) { + _internal_set_ts_millisecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 ts_microsecond_value = 18; + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 144)) { + _internal_set_ts_microsecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 ts_nanosecond_value = 19; + case 19: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 152)) { + _internal_set_ts_nanosecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 time_second_value = 20; + case 20: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 160)) { + _internal_set_time_second_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 time_millisecond_value = 21; + case 21: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 168)) { + _internal_set_time_millisecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 time_microsecond_value = 22; + case 22: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 176)) { + _internal_set_time_microsecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 time_nanosecond_value = 23; + case 23: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 184)) { + _internal_set_time_nanosecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Value::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.Value) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 i8_value = 1; + if (_internal_has_i8_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_i8_value(), target); + } + + // int32 i16_value = 2; + if (_internal_has_i16_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_i16_value(), target); + } + + // int32 i32_value = 3; + if (_internal_has_i32_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_i32_value(), target); + } + + // int64 i64_value = 4; + if (_internal_has_i64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(4, this->_internal_i64_value(), target); + } + + // uint32 u8_value = 5; + if (_internal_has_u8_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_u8_value(), target); + } + + // uint32 u16_value = 6; + if (_internal_has_u16_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_u16_value(), target); + } + + // uint32 u32_value = 7; + if (_internal_has_u32_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_u32_value(), target); + } + + // uint64 u64_value = 8; + if (_internal_has_u64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(8, this->_internal_u64_value(), target); + } + + // float f32_value = 9; + if (_internal_has_f32_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(9, this->_internal_f32_value(), target); + } + + // double f64_value = 10; + if (_internal_has_f64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(10, this->_internal_f64_value(), target); + } + + // bool bool_value = 11; + if (_internal_has_bool_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(11, this->_internal_bool_value(), target); + } + + // bytes binary_value = 12; + if (_internal_has_binary_value()) { + target = stream->WriteBytesMaybeAliased( + 12, this->_internal_binary_value(), target); + } + + // string string_value = 13; + if (_internal_has_string_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_string_value().data(), static_cast(this->_internal_string_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.Value.string_value"); + target = stream->WriteStringMaybeAliased( + 13, this->_internal_string_value(), target); + } + + // int32 date_value = 14; + if (_internal_has_date_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(14, this->_internal_date_value(), target); + } + + // int64 datetime_value = 15; + if (_internal_has_datetime_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_datetime_value(), target); + } + + // int64 ts_second_value = 16; + if (_internal_has_ts_second_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(16, this->_internal_ts_second_value(), target); + } + + // int64 ts_millisecond_value = 17; + if (_internal_has_ts_millisecond_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(17, this->_internal_ts_millisecond_value(), target); + } + + // int64 ts_microsecond_value = 18; + if (_internal_has_ts_microsecond_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(18, this->_internal_ts_microsecond_value(), target); + } + + // int64 ts_nanosecond_value = 19; + if (_internal_has_ts_nanosecond_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(19, this->_internal_ts_nanosecond_value(), target); + } + + // int64 time_second_value = 20; + if (_internal_has_time_second_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(20, this->_internal_time_second_value(), target); + } + + // int64 time_millisecond_value = 21; + if (_internal_has_time_millisecond_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(21, this->_internal_time_millisecond_value(), target); + } + + // int64 time_microsecond_value = 22; + if (_internal_has_time_microsecond_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(22, this->_internal_time_microsecond_value(), target); + } + + // int64 time_nanosecond_value = 23; + if (_internal_has_time_nanosecond_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(23, this->_internal_time_nanosecond_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.Value) + return target; +} + +size_t Value::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.Value) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (value_data_case()) { + // int32 i8_value = 1; + case kI8Value: { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_i8_value()); + break; + } + // int32 i16_value = 2; + case kI16Value: { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_i16_value()); + break; + } + // int32 i32_value = 3; + case kI32Value: { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_i32_value()); + break; + } + // int64 i64_value = 4; + case kI64Value: { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_i64_value()); + break; + } + // uint32 u8_value = 5; + case kU8Value: { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_u8_value()); + break; + } + // uint32 u16_value = 6; + case kU16Value: { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_u16_value()); + break; + } + // uint32 u32_value = 7; + case kU32Value: { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_u32_value()); + break; + } + // uint64 u64_value = 8; + case kU64Value: { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_u64_value()); + break; + } + // float f32_value = 9; + case kF32Value: { + total_size += 1 + 4; + break; + } + // double f64_value = 10; + case kF64Value: { + total_size += 1 + 8; + break; + } + // bool bool_value = 11; + case kBoolValue: { + total_size += 1 + 1; + break; + } + // bytes binary_value = 12; + case kBinaryValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_binary_value()); + break; + } + // string string_value = 13; + case kStringValue: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_string_value()); + break; + } + // int32 date_value = 14; + case kDateValue: { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_date_value()); + break; + } + // int64 datetime_value = 15; + case kDatetimeValue: { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_datetime_value()); + break; + } + // int64 ts_second_value = 16; + case kTsSecondValue: { + total_size += 2 + + ::_pbi::WireFormatLite::Int64Size( + this->_internal_ts_second_value()); + break; + } + // int64 ts_millisecond_value = 17; + case kTsMillisecondValue: { + total_size += 2 + + ::_pbi::WireFormatLite::Int64Size( + this->_internal_ts_millisecond_value()); + break; + } + // int64 ts_microsecond_value = 18; + case kTsMicrosecondValue: { + total_size += 2 + + ::_pbi::WireFormatLite::Int64Size( + this->_internal_ts_microsecond_value()); + break; + } + // int64 ts_nanosecond_value = 19; + case kTsNanosecondValue: { + total_size += 2 + + ::_pbi::WireFormatLite::Int64Size( + this->_internal_ts_nanosecond_value()); + break; + } + // int64 time_second_value = 20; + case kTimeSecondValue: { + total_size += 2 + + ::_pbi::WireFormatLite::Int64Size( + this->_internal_time_second_value()); + break; + } + // int64 time_millisecond_value = 21; + case kTimeMillisecondValue: { + total_size += 2 + + ::_pbi::WireFormatLite::Int64Size( + this->_internal_time_millisecond_value()); + break; + } + // int64 time_microsecond_value = 22; + case kTimeMicrosecondValue: { + total_size += 2 + + ::_pbi::WireFormatLite::Int64Size( + this->_internal_time_microsecond_value()); + break; + } + // int64 time_nanosecond_value = 23; + case kTimeNanosecondValue: { + total_size += 2 + + ::_pbi::WireFormatLite::Int64Size( + this->_internal_time_nanosecond_value()); + break; + } + case VALUE_DATA_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Value::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value::GetClassData() const { return &_class_data_; } + + +void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.Value) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.value_data_case()) { + case kI8Value: { + _this->_internal_set_i8_value(from._internal_i8_value()); + break; + } + case kI16Value: { + _this->_internal_set_i16_value(from._internal_i16_value()); + break; + } + case kI32Value: { + _this->_internal_set_i32_value(from._internal_i32_value()); + break; + } + case kI64Value: { + _this->_internal_set_i64_value(from._internal_i64_value()); + break; + } + case kU8Value: { + _this->_internal_set_u8_value(from._internal_u8_value()); + break; + } + case kU16Value: { + _this->_internal_set_u16_value(from._internal_u16_value()); + break; + } + case kU32Value: { + _this->_internal_set_u32_value(from._internal_u32_value()); + break; + } + case kU64Value: { + _this->_internal_set_u64_value(from._internal_u64_value()); + break; + } + case kF32Value: { + _this->_internal_set_f32_value(from._internal_f32_value()); + break; + } + case kF64Value: { + _this->_internal_set_f64_value(from._internal_f64_value()); + break; + } + case kBoolValue: { + _this->_internal_set_bool_value(from._internal_bool_value()); + break; + } + case kBinaryValue: { + _this->_internal_set_binary_value(from._internal_binary_value()); + break; + } + case kStringValue: { + _this->_internal_set_string_value(from._internal_string_value()); + break; + } + case kDateValue: { + _this->_internal_set_date_value(from._internal_date_value()); + break; + } + case kDatetimeValue: { + _this->_internal_set_datetime_value(from._internal_datetime_value()); + break; + } + case kTsSecondValue: { + _this->_internal_set_ts_second_value(from._internal_ts_second_value()); + break; + } + case kTsMillisecondValue: { + _this->_internal_set_ts_millisecond_value(from._internal_ts_millisecond_value()); + break; + } + case kTsMicrosecondValue: { + _this->_internal_set_ts_microsecond_value(from._internal_ts_microsecond_value()); + break; + } + case kTsNanosecondValue: { + _this->_internal_set_ts_nanosecond_value(from._internal_ts_nanosecond_value()); + break; + } + case kTimeSecondValue: { + _this->_internal_set_time_second_value(from._internal_time_second_value()); + break; + } + case kTimeMillisecondValue: { + _this->_internal_set_time_millisecond_value(from._internal_time_millisecond_value()); + break; + } + case kTimeMicrosecondValue: { + _this->_internal_set_time_microsecond_value(from._internal_time_microsecond_value()); + break; + } + case kTimeNanosecondValue: { + _this->_internal_set_time_nanosecond_value(from._internal_time_nanosecond_value()); + break; + } + case VALUE_DATA_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Value::CopyFrom(const Value& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.Value) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Value::IsInitialized() const { + return true; +} + +void Value::InternalSwap(Value* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.value_data_, other->_impl_.value_data_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2frow_2eproto_getter, &descriptor_table_greptime_2fv1_2frow_2eproto_once, + file_level_metadata_greptime_2fv1_2frow_2eproto[3]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace greptime +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::greptime::v1::Rows* +Arena::CreateMaybeMessage< ::greptime::v1::Rows >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::Rows >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnSchema* +Arena::CreateMaybeMessage< ::greptime::v1::ColumnSchema >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ColumnSchema >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::Row* +Arena::CreateMaybeMessage< ::greptime::v1::Row >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::Row >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::Value* +Arena::CreateMaybeMessage< ::greptime::v1::Value >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::Value >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/c++/greptime/v1/row.pb.h b/c++/greptime/v1/row.pb.h new file mode 100644 index 0000000..907e95b --- /dev/null +++ b/c++/greptime/v1/row.pb.h @@ -0,0 +1,2347 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/row.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2frow_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2frow_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3021006 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "greptime/v1/common.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2frow_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_greptime_2fv1_2frow_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_greptime_2fv1_2frow_2eproto; +namespace greptime { +namespace v1 { +class ColumnSchema; +struct ColumnSchemaDefaultTypeInternal; +extern ColumnSchemaDefaultTypeInternal _ColumnSchema_default_instance_; +class Row; +struct RowDefaultTypeInternal; +extern RowDefaultTypeInternal _Row_default_instance_; +class Rows; +struct RowsDefaultTypeInternal; +extern RowsDefaultTypeInternal _Rows_default_instance_; +class Value; +struct ValueDefaultTypeInternal; +extern ValueDefaultTypeInternal _Value_default_instance_; +} // namespace v1 +} // namespace greptime +PROTOBUF_NAMESPACE_OPEN +template<> ::greptime::v1::ColumnSchema* Arena::CreateMaybeMessage<::greptime::v1::ColumnSchema>(Arena*); +template<> ::greptime::v1::Row* Arena::CreateMaybeMessage<::greptime::v1::Row>(Arena*); +template<> ::greptime::v1::Rows* Arena::CreateMaybeMessage<::greptime::v1::Rows>(Arena*); +template<> ::greptime::v1::Value* Arena::CreateMaybeMessage<::greptime::v1::Value>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace greptime { +namespace v1 { + +// =================================================================== + +class Rows final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.Rows) */ { + public: + inline Rows() : Rows(nullptr) {} + ~Rows() override; + explicit PROTOBUF_CONSTEXPR Rows(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Rows(const Rows& from); + Rows(Rows&& from) noexcept + : Rows() { + *this = ::std::move(from); + } + + inline Rows& operator=(const Rows& from) { + CopyFrom(from); + return *this; + } + inline Rows& operator=(Rows&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Rows& default_instance() { + return *internal_default_instance(); + } + static inline const Rows* internal_default_instance() { + return reinterpret_cast( + &_Rows_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Rows& a, Rows& b) { + a.Swap(&b); + } + inline void Swap(Rows* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Rows* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Rows* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Rows& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Rows& from) { + Rows::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Rows* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.Rows"; + } + protected: + explicit Rows(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kSchemaFieldNumber = 1, + kRowsFieldNumber = 2, + }; + // repeated .greptime.v1.ColumnSchema schema = 1; + int schema_size() const; + private: + int _internal_schema_size() const; + public: + void clear_schema(); + ::greptime::v1::ColumnSchema* mutable_schema(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ColumnSchema >* + mutable_schema(); + private: + const ::greptime::v1::ColumnSchema& _internal_schema(int index) const; + ::greptime::v1::ColumnSchema* _internal_add_schema(); + public: + const ::greptime::v1::ColumnSchema& schema(int index) const; + ::greptime::v1::ColumnSchema* add_schema(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ColumnSchema >& + schema() const; + + // repeated .greptime.v1.Row rows = 2; + int rows_size() const; + private: + int _internal_rows_size() const; + public: + void clear_rows(); + ::greptime::v1::Row* mutable_rows(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >* + mutable_rows(); + private: + const ::greptime::v1::Row& _internal_rows(int index) const; + ::greptime::v1::Row* _internal_add_rows(); + public: + const ::greptime::v1::Row& rows(int index) const; + ::greptime::v1::Row* add_rows(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >& + rows() const; + + // @@protoc_insertion_point(class_scope:greptime.v1.Rows) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ColumnSchema > schema_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row > rows_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2frow_2eproto; +}; +// ------------------------------------------------------------------- + +class ColumnSchema final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ColumnSchema) */ { + public: + inline ColumnSchema() : ColumnSchema(nullptr) {} + ~ColumnSchema() override; + explicit PROTOBUF_CONSTEXPR ColumnSchema(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ColumnSchema(const ColumnSchema& from); + ColumnSchema(ColumnSchema&& from) noexcept + : ColumnSchema() { + *this = ::std::move(from); + } + + inline ColumnSchema& operator=(const ColumnSchema& from) { + CopyFrom(from); + return *this; + } + inline ColumnSchema& operator=(ColumnSchema&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ColumnSchema& default_instance() { + return *internal_default_instance(); + } + static inline const ColumnSchema* internal_default_instance() { + return reinterpret_cast( + &_ColumnSchema_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(ColumnSchema& a, ColumnSchema& b) { + a.Swap(&b); + } + inline void Swap(ColumnSchema* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ColumnSchema* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ColumnSchema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ColumnSchema& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ColumnSchema& from) { + ColumnSchema::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ColumnSchema* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.ColumnSchema"; + } + protected: + explicit ColumnSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kColumnNameFieldNumber = 1, + kDatatypeFieldNumber = 2, + kSemanticTypeFieldNumber = 3, + }; + // string column_name = 1; + void clear_column_name(); + const std::string& column_name() const; + template + void set_column_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_column_name(); + PROTOBUF_NODISCARD std::string* release_column_name(); + void set_allocated_column_name(std::string* column_name); + private: + const std::string& _internal_column_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); + std::string* _internal_mutable_column_name(); + public: + + // .greptime.v1.ColumnDataType datatype = 2; + void clear_datatype(); + ::greptime::v1::ColumnDataType datatype() const; + void set_datatype(::greptime::v1::ColumnDataType value); + private: + ::greptime::v1::ColumnDataType _internal_datatype() const; + void _internal_set_datatype(::greptime::v1::ColumnDataType value); + public: + + // .greptime.v1.SemanticType semantic_type = 3; + void clear_semantic_type(); + ::greptime::v1::SemanticType semantic_type() const; + void set_semantic_type(::greptime::v1::SemanticType value); + private: + ::greptime::v1::SemanticType _internal_semantic_type() const; + void _internal_set_semantic_type(::greptime::v1::SemanticType value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.ColumnSchema) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; + int datatype_; + int semantic_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2frow_2eproto; +}; +// ------------------------------------------------------------------- + +class Row final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.Row) */ { + public: + inline Row() : Row(nullptr) {} + ~Row() override; + explicit PROTOBUF_CONSTEXPR Row(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Row(const Row& from); + Row(Row&& from) noexcept + : Row() { + *this = ::std::move(from); + } + + inline Row& operator=(const Row& from) { + CopyFrom(from); + return *this; + } + inline Row& operator=(Row&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Row& default_instance() { + return *internal_default_instance(); + } + static inline const Row* internal_default_instance() { + return reinterpret_cast( + &_Row_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(Row& a, Row& b) { + a.Swap(&b); + } + inline void Swap(Row* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Row* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Row* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Row& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Row& from) { + Row::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Row* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.Row"; + } + protected: + explicit Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kValuesFieldNumber = 1, + }; + // repeated .greptime.v1.Value values = 1; + int values_size() const; + private: + int _internal_values_size() const; + public: + void clear_values(); + ::greptime::v1::Value* mutable_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >* + mutable_values(); + private: + const ::greptime::v1::Value& _internal_values(int index) const; + ::greptime::v1::Value* _internal_add_values(); + public: + const ::greptime::v1::Value& values(int index) const; + ::greptime::v1::Value* add_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >& + values() const; + + // @@protoc_insertion_point(class_scope:greptime.v1.Row) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value > values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2frow_2eproto; +}; +// ------------------------------------------------------------------- + +class Value final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.Value) */ { + public: + inline Value() : Value(nullptr) {} + ~Value() override; + explicit PROTOBUF_CONSTEXPR Value(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Value(const Value& from); + Value(Value&& from) noexcept + : Value() { + *this = ::std::move(from); + } + + inline Value& operator=(const Value& from) { + CopyFrom(from); + return *this; + } + inline Value& operator=(Value&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Value& default_instance() { + return *internal_default_instance(); + } + enum ValueDataCase { + kI8Value = 1, + kI16Value = 2, + kI32Value = 3, + kI64Value = 4, + kU8Value = 5, + kU16Value = 6, + kU32Value = 7, + kU64Value = 8, + kF32Value = 9, + kF64Value = 10, + kBoolValue = 11, + kBinaryValue = 12, + kStringValue = 13, + kDateValue = 14, + kDatetimeValue = 15, + kTsSecondValue = 16, + kTsMillisecondValue = 17, + kTsMicrosecondValue = 18, + kTsNanosecondValue = 19, + kTimeSecondValue = 20, + kTimeMillisecondValue = 21, + kTimeMicrosecondValue = 22, + kTimeNanosecondValue = 23, + VALUE_DATA_NOT_SET = 0, + }; + + static inline const Value* internal_default_instance() { + return reinterpret_cast( + &_Value_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(Value& a, Value& b) { + a.Swap(&b); + } + inline void Swap(Value* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Value* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Value& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Value& from) { + Value::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Value* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.Value"; + } + protected: + explicit Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kI8ValueFieldNumber = 1, + kI16ValueFieldNumber = 2, + kI32ValueFieldNumber = 3, + kI64ValueFieldNumber = 4, + kU8ValueFieldNumber = 5, + kU16ValueFieldNumber = 6, + kU32ValueFieldNumber = 7, + kU64ValueFieldNumber = 8, + kF32ValueFieldNumber = 9, + kF64ValueFieldNumber = 10, + kBoolValueFieldNumber = 11, + kBinaryValueFieldNumber = 12, + kStringValueFieldNumber = 13, + kDateValueFieldNumber = 14, + kDatetimeValueFieldNumber = 15, + kTsSecondValueFieldNumber = 16, + kTsMillisecondValueFieldNumber = 17, + kTsMicrosecondValueFieldNumber = 18, + kTsNanosecondValueFieldNumber = 19, + kTimeSecondValueFieldNumber = 20, + kTimeMillisecondValueFieldNumber = 21, + kTimeMicrosecondValueFieldNumber = 22, + kTimeNanosecondValueFieldNumber = 23, + }; + // int32 i8_value = 1; + bool has_i8_value() const; + private: + bool _internal_has_i8_value() const; + public: + void clear_i8_value(); + int32_t i8_value() const; + void set_i8_value(int32_t value); + private: + int32_t _internal_i8_value() const; + void _internal_set_i8_value(int32_t value); + public: + + // int32 i16_value = 2; + bool has_i16_value() const; + private: + bool _internal_has_i16_value() const; + public: + void clear_i16_value(); + int32_t i16_value() const; + void set_i16_value(int32_t value); + private: + int32_t _internal_i16_value() const; + void _internal_set_i16_value(int32_t value); + public: + + // int32 i32_value = 3; + bool has_i32_value() const; + private: + bool _internal_has_i32_value() const; + public: + void clear_i32_value(); + int32_t i32_value() const; + void set_i32_value(int32_t value); + private: + int32_t _internal_i32_value() const; + void _internal_set_i32_value(int32_t value); + public: + + // int64 i64_value = 4; + bool has_i64_value() const; + private: + bool _internal_has_i64_value() const; + public: + void clear_i64_value(); + int64_t i64_value() const; + void set_i64_value(int64_t value); + private: + int64_t _internal_i64_value() const; + void _internal_set_i64_value(int64_t value); + public: + + // uint32 u8_value = 5; + bool has_u8_value() const; + private: + bool _internal_has_u8_value() const; + public: + void clear_u8_value(); + uint32_t u8_value() const; + void set_u8_value(uint32_t value); + private: + uint32_t _internal_u8_value() const; + void _internal_set_u8_value(uint32_t value); + public: + + // uint32 u16_value = 6; + bool has_u16_value() const; + private: + bool _internal_has_u16_value() const; + public: + void clear_u16_value(); + uint32_t u16_value() const; + void set_u16_value(uint32_t value); + private: + uint32_t _internal_u16_value() const; + void _internal_set_u16_value(uint32_t value); + public: + + // uint32 u32_value = 7; + bool has_u32_value() const; + private: + bool _internal_has_u32_value() const; + public: + void clear_u32_value(); + uint32_t u32_value() const; + void set_u32_value(uint32_t value); + private: + uint32_t _internal_u32_value() const; + void _internal_set_u32_value(uint32_t value); + public: + + // uint64 u64_value = 8; + bool has_u64_value() const; + private: + bool _internal_has_u64_value() const; + public: + void clear_u64_value(); + uint64_t u64_value() const; + void set_u64_value(uint64_t value); + private: + uint64_t _internal_u64_value() const; + void _internal_set_u64_value(uint64_t value); + public: + + // float f32_value = 9; + bool has_f32_value() const; + private: + bool _internal_has_f32_value() const; + public: + void clear_f32_value(); + float f32_value() const; + void set_f32_value(float value); + private: + float _internal_f32_value() const; + void _internal_set_f32_value(float value); + public: + + // double f64_value = 10; + bool has_f64_value() const; + private: + bool _internal_has_f64_value() const; + public: + void clear_f64_value(); + double f64_value() const; + void set_f64_value(double value); + private: + double _internal_f64_value() const; + void _internal_set_f64_value(double value); + public: + + // bool bool_value = 11; + bool has_bool_value() const; + private: + bool _internal_has_bool_value() const; + public: + void clear_bool_value(); + bool bool_value() const; + void set_bool_value(bool value); + private: + bool _internal_bool_value() const; + void _internal_set_bool_value(bool value); + public: + + // bytes binary_value = 12; + bool has_binary_value() const; + private: + bool _internal_has_binary_value() const; + public: + void clear_binary_value(); + const std::string& binary_value() const; + template + void set_binary_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_binary_value(); + PROTOBUF_NODISCARD std::string* release_binary_value(); + void set_allocated_binary_value(std::string* binary_value); + private: + const std::string& _internal_binary_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary_value(const std::string& value); + std::string* _internal_mutable_binary_value(); + public: + + // string string_value = 13; + bool has_string_value() const; + private: + bool _internal_has_string_value() const; + public: + void clear_string_value(); + const std::string& string_value() const; + template + void set_string_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_string_value(); + PROTOBUF_NODISCARD std::string* release_string_value(); + void set_allocated_string_value(std::string* string_value); + private: + const std::string& _internal_string_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value); + std::string* _internal_mutable_string_value(); + public: + + // int32 date_value = 14; + bool has_date_value() const; + private: + bool _internal_has_date_value() const; + public: + void clear_date_value(); + int32_t date_value() const; + void set_date_value(int32_t value); + private: + int32_t _internal_date_value() const; + void _internal_set_date_value(int32_t value); + public: + + // int64 datetime_value = 15; + bool has_datetime_value() const; + private: + bool _internal_has_datetime_value() const; + public: + void clear_datetime_value(); + int64_t datetime_value() const; + void set_datetime_value(int64_t value); + private: + int64_t _internal_datetime_value() const; + void _internal_set_datetime_value(int64_t value); + public: + + // int64 ts_second_value = 16; + bool has_ts_second_value() const; + private: + bool _internal_has_ts_second_value() const; + public: + void clear_ts_second_value(); + int64_t ts_second_value() const; + void set_ts_second_value(int64_t value); + private: + int64_t _internal_ts_second_value() const; + void _internal_set_ts_second_value(int64_t value); + public: + + // int64 ts_millisecond_value = 17; + bool has_ts_millisecond_value() const; + private: + bool _internal_has_ts_millisecond_value() const; + public: + void clear_ts_millisecond_value(); + int64_t ts_millisecond_value() const; + void set_ts_millisecond_value(int64_t value); + private: + int64_t _internal_ts_millisecond_value() const; + void _internal_set_ts_millisecond_value(int64_t value); + public: + + // int64 ts_microsecond_value = 18; + bool has_ts_microsecond_value() const; + private: + bool _internal_has_ts_microsecond_value() const; + public: + void clear_ts_microsecond_value(); + int64_t ts_microsecond_value() const; + void set_ts_microsecond_value(int64_t value); + private: + int64_t _internal_ts_microsecond_value() const; + void _internal_set_ts_microsecond_value(int64_t value); + public: + + // int64 ts_nanosecond_value = 19; + bool has_ts_nanosecond_value() const; + private: + bool _internal_has_ts_nanosecond_value() const; + public: + void clear_ts_nanosecond_value(); + int64_t ts_nanosecond_value() const; + void set_ts_nanosecond_value(int64_t value); + private: + int64_t _internal_ts_nanosecond_value() const; + void _internal_set_ts_nanosecond_value(int64_t value); + public: + + // int64 time_second_value = 20; + bool has_time_second_value() const; + private: + bool _internal_has_time_second_value() const; + public: + void clear_time_second_value(); + int64_t time_second_value() const; + void set_time_second_value(int64_t value); + private: + int64_t _internal_time_second_value() const; + void _internal_set_time_second_value(int64_t value); + public: + + // int64 time_millisecond_value = 21; + bool has_time_millisecond_value() const; + private: + bool _internal_has_time_millisecond_value() const; + public: + void clear_time_millisecond_value(); + int64_t time_millisecond_value() const; + void set_time_millisecond_value(int64_t value); + private: + int64_t _internal_time_millisecond_value() const; + void _internal_set_time_millisecond_value(int64_t value); + public: + + // int64 time_microsecond_value = 22; + bool has_time_microsecond_value() const; + private: + bool _internal_has_time_microsecond_value() const; + public: + void clear_time_microsecond_value(); + int64_t time_microsecond_value() const; + void set_time_microsecond_value(int64_t value); + private: + int64_t _internal_time_microsecond_value() const; + void _internal_set_time_microsecond_value(int64_t value); + public: + + // int64 time_nanosecond_value = 23; + bool has_time_nanosecond_value() const; + private: + bool _internal_has_time_nanosecond_value() const; + public: + void clear_time_nanosecond_value(); + int64_t time_nanosecond_value() const; + void set_time_nanosecond_value(int64_t value); + private: + int64_t _internal_time_nanosecond_value() const; + void _internal_set_time_nanosecond_value(int64_t value); + public: + + void clear_value_data(); + ValueDataCase value_data_case() const; + // @@protoc_insertion_point(class_scope:greptime.v1.Value) + private: + class _Internal; + void set_has_i8_value(); + void set_has_i16_value(); + void set_has_i32_value(); + void set_has_i64_value(); + void set_has_u8_value(); + void set_has_u16_value(); + void set_has_u32_value(); + void set_has_u64_value(); + void set_has_f32_value(); + void set_has_f64_value(); + void set_has_bool_value(); + void set_has_binary_value(); + void set_has_string_value(); + void set_has_date_value(); + void set_has_datetime_value(); + void set_has_ts_second_value(); + void set_has_ts_millisecond_value(); + void set_has_ts_microsecond_value(); + void set_has_ts_nanosecond_value(); + void set_has_time_second_value(); + void set_has_time_millisecond_value(); + void set_has_time_microsecond_value(); + void set_has_time_nanosecond_value(); + + inline bool has_value_data() const; + inline void clear_has_value_data(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union ValueDataUnion { + constexpr ValueDataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + int32_t i8_value_; + int32_t i16_value_; + int32_t i32_value_; + int64_t i64_value_; + uint32_t u8_value_; + uint32_t u16_value_; + uint32_t u32_value_; + uint64_t u64_value_; + float f32_value_; + double f64_value_; + bool bool_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr binary_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; + int32_t date_value_; + int64_t datetime_value_; + int64_t ts_second_value_; + int64_t ts_millisecond_value_; + int64_t ts_microsecond_value_; + int64_t ts_nanosecond_value_; + int64_t time_second_value_; + int64_t time_millisecond_value_; + int64_t time_microsecond_value_; + int64_t time_nanosecond_value_; + } value_data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2frow_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Rows + +// repeated .greptime.v1.ColumnSchema schema = 1; +inline int Rows::_internal_schema_size() const { + return _impl_.schema_.size(); +} +inline int Rows::schema_size() const { + return _internal_schema_size(); +} +inline void Rows::clear_schema() { + _impl_.schema_.Clear(); +} +inline ::greptime::v1::ColumnSchema* Rows::mutable_schema(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.Rows.schema) + return _impl_.schema_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ColumnSchema >* +Rows::mutable_schema() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.Rows.schema) + return &_impl_.schema_; +} +inline const ::greptime::v1::ColumnSchema& Rows::_internal_schema(int index) const { + return _impl_.schema_.Get(index); +} +inline const ::greptime::v1::ColumnSchema& Rows::schema(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.Rows.schema) + return _internal_schema(index); +} +inline ::greptime::v1::ColumnSchema* Rows::_internal_add_schema() { + return _impl_.schema_.Add(); +} +inline ::greptime::v1::ColumnSchema* Rows::add_schema() { + ::greptime::v1::ColumnSchema* _add = _internal_add_schema(); + // @@protoc_insertion_point(field_add:greptime.v1.Rows.schema) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ColumnSchema >& +Rows::schema() const { + // @@protoc_insertion_point(field_list:greptime.v1.Rows.schema) + return _impl_.schema_; +} + +// repeated .greptime.v1.Row rows = 2; +inline int Rows::_internal_rows_size() const { + return _impl_.rows_.size(); +} +inline int Rows::rows_size() const { + return _internal_rows_size(); +} +inline void Rows::clear_rows() { + _impl_.rows_.Clear(); +} +inline ::greptime::v1::Row* Rows::mutable_rows(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.Rows.rows) + return _impl_.rows_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >* +Rows::mutable_rows() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.Rows.rows) + return &_impl_.rows_; +} +inline const ::greptime::v1::Row& Rows::_internal_rows(int index) const { + return _impl_.rows_.Get(index); +} +inline const ::greptime::v1::Row& Rows::rows(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.Rows.rows) + return _internal_rows(index); +} +inline ::greptime::v1::Row* Rows::_internal_add_rows() { + return _impl_.rows_.Add(); +} +inline ::greptime::v1::Row* Rows::add_rows() { + ::greptime::v1::Row* _add = _internal_add_rows(); + // @@protoc_insertion_point(field_add:greptime.v1.Rows.rows) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >& +Rows::rows() const { + // @@protoc_insertion_point(field_list:greptime.v1.Rows.rows) + return _impl_.rows_; +} + +// ------------------------------------------------------------------- + +// ColumnSchema + +// string column_name = 1; +inline void ColumnSchema::clear_column_name() { + _impl_.column_name_.ClearToEmpty(); +} +inline const std::string& ColumnSchema::column_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.ColumnSchema.column_name) + return _internal_column_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ColumnSchema::set_column_name(ArgT0&& arg0, ArgT... args) { + + _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.ColumnSchema.column_name) +} +inline std::string* ColumnSchema::mutable_column_name() { + std::string* _s = _internal_mutable_column_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ColumnSchema.column_name) + return _s; +} +inline const std::string& ColumnSchema::_internal_column_name() const { + return _impl_.column_name_.Get(); +} +inline void ColumnSchema::_internal_set_column_name(const std::string& value) { + + _impl_.column_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ColumnSchema::_internal_mutable_column_name() { + + return _impl_.column_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ColumnSchema::release_column_name() { + // @@protoc_insertion_point(field_release:greptime.v1.ColumnSchema.column_name) + return _impl_.column_name_.Release(); +} +inline void ColumnSchema::set_allocated_column_name(std::string* column_name) { + if (column_name != nullptr) { + + } else { + + } + _impl_.column_name_.SetAllocated(column_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.column_name_.IsDefault()) { + _impl_.column_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnSchema.column_name) +} + +// .greptime.v1.ColumnDataType datatype = 2; +inline void ColumnSchema::clear_datatype() { + _impl_.datatype_ = 0; +} +inline ::greptime::v1::ColumnDataType ColumnSchema::_internal_datatype() const { + return static_cast< ::greptime::v1::ColumnDataType >(_impl_.datatype_); +} +inline ::greptime::v1::ColumnDataType ColumnSchema::datatype() const { + // @@protoc_insertion_point(field_get:greptime.v1.ColumnSchema.datatype) + return _internal_datatype(); +} +inline void ColumnSchema::_internal_set_datatype(::greptime::v1::ColumnDataType value) { + + _impl_.datatype_ = value; +} +inline void ColumnSchema::set_datatype(::greptime::v1::ColumnDataType value) { + _internal_set_datatype(value); + // @@protoc_insertion_point(field_set:greptime.v1.ColumnSchema.datatype) +} + +// .greptime.v1.SemanticType semantic_type = 3; +inline void ColumnSchema::clear_semantic_type() { + _impl_.semantic_type_ = 0; +} +inline ::greptime::v1::SemanticType ColumnSchema::_internal_semantic_type() const { + return static_cast< ::greptime::v1::SemanticType >(_impl_.semantic_type_); +} +inline ::greptime::v1::SemanticType ColumnSchema::semantic_type() const { + // @@protoc_insertion_point(field_get:greptime.v1.ColumnSchema.semantic_type) + return _internal_semantic_type(); +} +inline void ColumnSchema::_internal_set_semantic_type(::greptime::v1::SemanticType value) { + + _impl_.semantic_type_ = value; +} +inline void ColumnSchema::set_semantic_type(::greptime::v1::SemanticType value) { + _internal_set_semantic_type(value); + // @@protoc_insertion_point(field_set:greptime.v1.ColumnSchema.semantic_type) +} + +// ------------------------------------------------------------------- + +// Row + +// repeated .greptime.v1.Value values = 1; +inline int Row::_internal_values_size() const { + return _impl_.values_.size(); +} +inline int Row::values_size() const { + return _internal_values_size(); +} +inline void Row::clear_values() { + _impl_.values_.Clear(); +} +inline ::greptime::v1::Value* Row::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.Row.values) + return _impl_.values_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >* +Row::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.Row.values) + return &_impl_.values_; +} +inline const ::greptime::v1::Value& Row::_internal_values(int index) const { + return _impl_.values_.Get(index); +} +inline const ::greptime::v1::Value& Row::values(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.Row.values) + return _internal_values(index); +} +inline ::greptime::v1::Value* Row::_internal_add_values() { + return _impl_.values_.Add(); +} +inline ::greptime::v1::Value* Row::add_values() { + ::greptime::v1::Value* _add = _internal_add_values(); + // @@protoc_insertion_point(field_add:greptime.v1.Row.values) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >& +Row::values() const { + // @@protoc_insertion_point(field_list:greptime.v1.Row.values) + return _impl_.values_; +} + +// ------------------------------------------------------------------- + +// Value + +// int32 i8_value = 1; +inline bool Value::_internal_has_i8_value() const { + return value_data_case() == kI8Value; +} +inline bool Value::has_i8_value() const { + return _internal_has_i8_value(); +} +inline void Value::set_has_i8_value() { + _impl_._oneof_case_[0] = kI8Value; +} +inline void Value::clear_i8_value() { + if (_internal_has_i8_value()) { + _impl_.value_data_.i8_value_ = 0; + clear_has_value_data(); + } +} +inline int32_t Value::_internal_i8_value() const { + if (_internal_has_i8_value()) { + return _impl_.value_data_.i8_value_; + } + return 0; +} +inline void Value::_internal_set_i8_value(int32_t value) { + if (!_internal_has_i8_value()) { + clear_value_data(); + set_has_i8_value(); + } + _impl_.value_data_.i8_value_ = value; +} +inline int32_t Value::i8_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.i8_value) + return _internal_i8_value(); +} +inline void Value::set_i8_value(int32_t value) { + _internal_set_i8_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.i8_value) +} + +// int32 i16_value = 2; +inline bool Value::_internal_has_i16_value() const { + return value_data_case() == kI16Value; +} +inline bool Value::has_i16_value() const { + return _internal_has_i16_value(); +} +inline void Value::set_has_i16_value() { + _impl_._oneof_case_[0] = kI16Value; +} +inline void Value::clear_i16_value() { + if (_internal_has_i16_value()) { + _impl_.value_data_.i16_value_ = 0; + clear_has_value_data(); + } +} +inline int32_t Value::_internal_i16_value() const { + if (_internal_has_i16_value()) { + return _impl_.value_data_.i16_value_; + } + return 0; +} +inline void Value::_internal_set_i16_value(int32_t value) { + if (!_internal_has_i16_value()) { + clear_value_data(); + set_has_i16_value(); + } + _impl_.value_data_.i16_value_ = value; +} +inline int32_t Value::i16_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.i16_value) + return _internal_i16_value(); +} +inline void Value::set_i16_value(int32_t value) { + _internal_set_i16_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.i16_value) +} + +// int32 i32_value = 3; +inline bool Value::_internal_has_i32_value() const { + return value_data_case() == kI32Value; +} +inline bool Value::has_i32_value() const { + return _internal_has_i32_value(); +} +inline void Value::set_has_i32_value() { + _impl_._oneof_case_[0] = kI32Value; +} +inline void Value::clear_i32_value() { + if (_internal_has_i32_value()) { + _impl_.value_data_.i32_value_ = 0; + clear_has_value_data(); + } +} +inline int32_t Value::_internal_i32_value() const { + if (_internal_has_i32_value()) { + return _impl_.value_data_.i32_value_; + } + return 0; +} +inline void Value::_internal_set_i32_value(int32_t value) { + if (!_internal_has_i32_value()) { + clear_value_data(); + set_has_i32_value(); + } + _impl_.value_data_.i32_value_ = value; +} +inline int32_t Value::i32_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.i32_value) + return _internal_i32_value(); +} +inline void Value::set_i32_value(int32_t value) { + _internal_set_i32_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.i32_value) +} + +// int64 i64_value = 4; +inline bool Value::_internal_has_i64_value() const { + return value_data_case() == kI64Value; +} +inline bool Value::has_i64_value() const { + return _internal_has_i64_value(); +} +inline void Value::set_has_i64_value() { + _impl_._oneof_case_[0] = kI64Value; +} +inline void Value::clear_i64_value() { + if (_internal_has_i64_value()) { + _impl_.value_data_.i64_value_ = int64_t{0}; + clear_has_value_data(); + } +} +inline int64_t Value::_internal_i64_value() const { + if (_internal_has_i64_value()) { + return _impl_.value_data_.i64_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_i64_value(int64_t value) { + if (!_internal_has_i64_value()) { + clear_value_data(); + set_has_i64_value(); + } + _impl_.value_data_.i64_value_ = value; +} +inline int64_t Value::i64_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.i64_value) + return _internal_i64_value(); +} +inline void Value::set_i64_value(int64_t value) { + _internal_set_i64_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.i64_value) +} + +// uint32 u8_value = 5; +inline bool Value::_internal_has_u8_value() const { + return value_data_case() == kU8Value; +} +inline bool Value::has_u8_value() const { + return _internal_has_u8_value(); +} +inline void Value::set_has_u8_value() { + _impl_._oneof_case_[0] = kU8Value; +} +inline void Value::clear_u8_value() { + if (_internal_has_u8_value()) { + _impl_.value_data_.u8_value_ = 0u; + clear_has_value_data(); + } +} +inline uint32_t Value::_internal_u8_value() const { + if (_internal_has_u8_value()) { + return _impl_.value_data_.u8_value_; + } + return 0u; +} +inline void Value::_internal_set_u8_value(uint32_t value) { + if (!_internal_has_u8_value()) { + clear_value_data(); + set_has_u8_value(); + } + _impl_.value_data_.u8_value_ = value; +} +inline uint32_t Value::u8_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.u8_value) + return _internal_u8_value(); +} +inline void Value::set_u8_value(uint32_t value) { + _internal_set_u8_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.u8_value) +} + +// uint32 u16_value = 6; +inline bool Value::_internal_has_u16_value() const { + return value_data_case() == kU16Value; +} +inline bool Value::has_u16_value() const { + return _internal_has_u16_value(); +} +inline void Value::set_has_u16_value() { + _impl_._oneof_case_[0] = kU16Value; +} +inline void Value::clear_u16_value() { + if (_internal_has_u16_value()) { + _impl_.value_data_.u16_value_ = 0u; + clear_has_value_data(); + } +} +inline uint32_t Value::_internal_u16_value() const { + if (_internal_has_u16_value()) { + return _impl_.value_data_.u16_value_; + } + return 0u; +} +inline void Value::_internal_set_u16_value(uint32_t value) { + if (!_internal_has_u16_value()) { + clear_value_data(); + set_has_u16_value(); + } + _impl_.value_data_.u16_value_ = value; +} +inline uint32_t Value::u16_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.u16_value) + return _internal_u16_value(); +} +inline void Value::set_u16_value(uint32_t value) { + _internal_set_u16_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.u16_value) +} + +// uint32 u32_value = 7; +inline bool Value::_internal_has_u32_value() const { + return value_data_case() == kU32Value; +} +inline bool Value::has_u32_value() const { + return _internal_has_u32_value(); +} +inline void Value::set_has_u32_value() { + _impl_._oneof_case_[0] = kU32Value; +} +inline void Value::clear_u32_value() { + if (_internal_has_u32_value()) { + _impl_.value_data_.u32_value_ = 0u; + clear_has_value_data(); + } +} +inline uint32_t Value::_internal_u32_value() const { + if (_internal_has_u32_value()) { + return _impl_.value_data_.u32_value_; + } + return 0u; +} +inline void Value::_internal_set_u32_value(uint32_t value) { + if (!_internal_has_u32_value()) { + clear_value_data(); + set_has_u32_value(); + } + _impl_.value_data_.u32_value_ = value; +} +inline uint32_t Value::u32_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.u32_value) + return _internal_u32_value(); +} +inline void Value::set_u32_value(uint32_t value) { + _internal_set_u32_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.u32_value) +} + +// uint64 u64_value = 8; +inline bool Value::_internal_has_u64_value() const { + return value_data_case() == kU64Value; +} +inline bool Value::has_u64_value() const { + return _internal_has_u64_value(); +} +inline void Value::set_has_u64_value() { + _impl_._oneof_case_[0] = kU64Value; +} +inline void Value::clear_u64_value() { + if (_internal_has_u64_value()) { + _impl_.value_data_.u64_value_ = uint64_t{0u}; + clear_has_value_data(); + } +} +inline uint64_t Value::_internal_u64_value() const { + if (_internal_has_u64_value()) { + return _impl_.value_data_.u64_value_; + } + return uint64_t{0u}; +} +inline void Value::_internal_set_u64_value(uint64_t value) { + if (!_internal_has_u64_value()) { + clear_value_data(); + set_has_u64_value(); + } + _impl_.value_data_.u64_value_ = value; +} +inline uint64_t Value::u64_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.u64_value) + return _internal_u64_value(); +} +inline void Value::set_u64_value(uint64_t value) { + _internal_set_u64_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.u64_value) +} + +// float f32_value = 9; +inline bool Value::_internal_has_f32_value() const { + return value_data_case() == kF32Value; +} +inline bool Value::has_f32_value() const { + return _internal_has_f32_value(); +} +inline void Value::set_has_f32_value() { + _impl_._oneof_case_[0] = kF32Value; +} +inline void Value::clear_f32_value() { + if (_internal_has_f32_value()) { + _impl_.value_data_.f32_value_ = 0; + clear_has_value_data(); + } +} +inline float Value::_internal_f32_value() const { + if (_internal_has_f32_value()) { + return _impl_.value_data_.f32_value_; + } + return 0; +} +inline void Value::_internal_set_f32_value(float value) { + if (!_internal_has_f32_value()) { + clear_value_data(); + set_has_f32_value(); + } + _impl_.value_data_.f32_value_ = value; +} +inline float Value::f32_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.f32_value) + return _internal_f32_value(); +} +inline void Value::set_f32_value(float value) { + _internal_set_f32_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.f32_value) +} + +// double f64_value = 10; +inline bool Value::_internal_has_f64_value() const { + return value_data_case() == kF64Value; +} +inline bool Value::has_f64_value() const { + return _internal_has_f64_value(); +} +inline void Value::set_has_f64_value() { + _impl_._oneof_case_[0] = kF64Value; +} +inline void Value::clear_f64_value() { + if (_internal_has_f64_value()) { + _impl_.value_data_.f64_value_ = 0; + clear_has_value_data(); + } +} +inline double Value::_internal_f64_value() const { + if (_internal_has_f64_value()) { + return _impl_.value_data_.f64_value_; + } + return 0; +} +inline void Value::_internal_set_f64_value(double value) { + if (!_internal_has_f64_value()) { + clear_value_data(); + set_has_f64_value(); + } + _impl_.value_data_.f64_value_ = value; +} +inline double Value::f64_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.f64_value) + return _internal_f64_value(); +} +inline void Value::set_f64_value(double value) { + _internal_set_f64_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.f64_value) +} + +// bool bool_value = 11; +inline bool Value::_internal_has_bool_value() const { + return value_data_case() == kBoolValue; +} +inline bool Value::has_bool_value() const { + return _internal_has_bool_value(); +} +inline void Value::set_has_bool_value() { + _impl_._oneof_case_[0] = kBoolValue; +} +inline void Value::clear_bool_value() { + if (_internal_has_bool_value()) { + _impl_.value_data_.bool_value_ = false; + clear_has_value_data(); + } +} +inline bool Value::_internal_bool_value() const { + if (_internal_has_bool_value()) { + return _impl_.value_data_.bool_value_; + } + return false; +} +inline void Value::_internal_set_bool_value(bool value) { + if (!_internal_has_bool_value()) { + clear_value_data(); + set_has_bool_value(); + } + _impl_.value_data_.bool_value_ = value; +} +inline bool Value::bool_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.bool_value) + return _internal_bool_value(); +} +inline void Value::set_bool_value(bool value) { + _internal_set_bool_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.bool_value) +} + +// bytes binary_value = 12; +inline bool Value::_internal_has_binary_value() const { + return value_data_case() == kBinaryValue; +} +inline bool Value::has_binary_value() const { + return _internal_has_binary_value(); +} +inline void Value::set_has_binary_value() { + _impl_._oneof_case_[0] = kBinaryValue; +} +inline void Value::clear_binary_value() { + if (_internal_has_binary_value()) { + _impl_.value_data_.binary_value_.Destroy(); + clear_has_value_data(); + } +} +inline const std::string& Value::binary_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.binary_value) + return _internal_binary_value(); +} +template +inline void Value::set_binary_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_binary_value()) { + clear_value_data(); + set_has_binary_value(); + _impl_.value_data_.binary_value_.InitDefault(); + } + _impl_.value_data_.binary_value_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.Value.binary_value) +} +inline std::string* Value::mutable_binary_value() { + std::string* _s = _internal_mutable_binary_value(); + // @@protoc_insertion_point(field_mutable:greptime.v1.Value.binary_value) + return _s; +} +inline const std::string& Value::_internal_binary_value() const { + if (_internal_has_binary_value()) { + return _impl_.value_data_.binary_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Value::_internal_set_binary_value(const std::string& value) { + if (!_internal_has_binary_value()) { + clear_value_data(); + set_has_binary_value(); + _impl_.value_data_.binary_value_.InitDefault(); + } + _impl_.value_data_.binary_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Value::_internal_mutable_binary_value() { + if (!_internal_has_binary_value()) { + clear_value_data(); + set_has_binary_value(); + _impl_.value_data_.binary_value_.InitDefault(); + } + return _impl_.value_data_.binary_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Value::release_binary_value() { + // @@protoc_insertion_point(field_release:greptime.v1.Value.binary_value) + if (_internal_has_binary_value()) { + clear_has_value_data(); + return _impl_.value_data_.binary_value_.Release(); + } else { + return nullptr; + } +} +inline void Value::set_allocated_binary_value(std::string* binary_value) { + if (has_value_data()) { + clear_value_data(); + } + if (binary_value != nullptr) { + set_has_binary_value(); + _impl_.value_data_.binary_value_.InitAllocated(binary_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.Value.binary_value) +} + +// string string_value = 13; +inline bool Value::_internal_has_string_value() const { + return value_data_case() == kStringValue; +} +inline bool Value::has_string_value() const { + return _internal_has_string_value(); +} +inline void Value::set_has_string_value() { + _impl_._oneof_case_[0] = kStringValue; +} +inline void Value::clear_string_value() { + if (_internal_has_string_value()) { + _impl_.value_data_.string_value_.Destroy(); + clear_has_value_data(); + } +} +inline const std::string& Value::string_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.string_value) + return _internal_string_value(); +} +template +inline void Value::set_string_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_string_value()) { + clear_value_data(); + set_has_string_value(); + _impl_.value_data_.string_value_.InitDefault(); + } + _impl_.value_data_.string_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.Value.string_value) +} +inline std::string* Value::mutable_string_value() { + std::string* _s = _internal_mutable_string_value(); + // @@protoc_insertion_point(field_mutable:greptime.v1.Value.string_value) + return _s; +} +inline const std::string& Value::_internal_string_value() const { + if (_internal_has_string_value()) { + return _impl_.value_data_.string_value_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Value::_internal_set_string_value(const std::string& value) { + if (!_internal_has_string_value()) { + clear_value_data(); + set_has_string_value(); + _impl_.value_data_.string_value_.InitDefault(); + } + _impl_.value_data_.string_value_.Set(value, GetArenaForAllocation()); +} +inline std::string* Value::_internal_mutable_string_value() { + if (!_internal_has_string_value()) { + clear_value_data(); + set_has_string_value(); + _impl_.value_data_.string_value_.InitDefault(); + } + return _impl_.value_data_.string_value_.Mutable( GetArenaForAllocation()); +} +inline std::string* Value::release_string_value() { + // @@protoc_insertion_point(field_release:greptime.v1.Value.string_value) + if (_internal_has_string_value()) { + clear_has_value_data(); + return _impl_.value_data_.string_value_.Release(); + } else { + return nullptr; + } +} +inline void Value::set_allocated_string_value(std::string* string_value) { + if (has_value_data()) { + clear_value_data(); + } + if (string_value != nullptr) { + set_has_string_value(); + _impl_.value_data_.string_value_.InitAllocated(string_value, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.Value.string_value) +} + +// int32 date_value = 14; +inline bool Value::_internal_has_date_value() const { + return value_data_case() == kDateValue; +} +inline bool Value::has_date_value() const { + return _internal_has_date_value(); +} +inline void Value::set_has_date_value() { + _impl_._oneof_case_[0] = kDateValue; +} +inline void Value::clear_date_value() { + if (_internal_has_date_value()) { + _impl_.value_data_.date_value_ = 0; + clear_has_value_data(); + } +} +inline int32_t Value::_internal_date_value() const { + if (_internal_has_date_value()) { + return _impl_.value_data_.date_value_; + } + return 0; +} +inline void Value::_internal_set_date_value(int32_t value) { + if (!_internal_has_date_value()) { + clear_value_data(); + set_has_date_value(); + } + _impl_.value_data_.date_value_ = value; +} +inline int32_t Value::date_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.date_value) + return _internal_date_value(); +} +inline void Value::set_date_value(int32_t value) { + _internal_set_date_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.date_value) +} + +// int64 datetime_value = 15; +inline bool Value::_internal_has_datetime_value() const { + return value_data_case() == kDatetimeValue; +} +inline bool Value::has_datetime_value() const { + return _internal_has_datetime_value(); +} +inline void Value::set_has_datetime_value() { + _impl_._oneof_case_[0] = kDatetimeValue; +} +inline void Value::clear_datetime_value() { + if (_internal_has_datetime_value()) { + _impl_.value_data_.datetime_value_ = int64_t{0}; + clear_has_value_data(); + } +} +inline int64_t Value::_internal_datetime_value() const { + if (_internal_has_datetime_value()) { + return _impl_.value_data_.datetime_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_datetime_value(int64_t value) { + if (!_internal_has_datetime_value()) { + clear_value_data(); + set_has_datetime_value(); + } + _impl_.value_data_.datetime_value_ = value; +} +inline int64_t Value::datetime_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.datetime_value) + return _internal_datetime_value(); +} +inline void Value::set_datetime_value(int64_t value) { + _internal_set_datetime_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.datetime_value) +} + +// int64 ts_second_value = 16; +inline bool Value::_internal_has_ts_second_value() const { + return value_data_case() == kTsSecondValue; +} +inline bool Value::has_ts_second_value() const { + return _internal_has_ts_second_value(); +} +inline void Value::set_has_ts_second_value() { + _impl_._oneof_case_[0] = kTsSecondValue; +} +inline void Value::clear_ts_second_value() { + if (_internal_has_ts_second_value()) { + _impl_.value_data_.ts_second_value_ = int64_t{0}; + clear_has_value_data(); + } +} +inline int64_t Value::_internal_ts_second_value() const { + if (_internal_has_ts_second_value()) { + return _impl_.value_data_.ts_second_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_ts_second_value(int64_t value) { + if (!_internal_has_ts_second_value()) { + clear_value_data(); + set_has_ts_second_value(); + } + _impl_.value_data_.ts_second_value_ = value; +} +inline int64_t Value::ts_second_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.ts_second_value) + return _internal_ts_second_value(); +} +inline void Value::set_ts_second_value(int64_t value) { + _internal_set_ts_second_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.ts_second_value) +} + +// int64 ts_millisecond_value = 17; +inline bool Value::_internal_has_ts_millisecond_value() const { + return value_data_case() == kTsMillisecondValue; +} +inline bool Value::has_ts_millisecond_value() const { + return _internal_has_ts_millisecond_value(); +} +inline void Value::set_has_ts_millisecond_value() { + _impl_._oneof_case_[0] = kTsMillisecondValue; +} +inline void Value::clear_ts_millisecond_value() { + if (_internal_has_ts_millisecond_value()) { + _impl_.value_data_.ts_millisecond_value_ = int64_t{0}; + clear_has_value_data(); + } +} +inline int64_t Value::_internal_ts_millisecond_value() const { + if (_internal_has_ts_millisecond_value()) { + return _impl_.value_data_.ts_millisecond_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_ts_millisecond_value(int64_t value) { + if (!_internal_has_ts_millisecond_value()) { + clear_value_data(); + set_has_ts_millisecond_value(); + } + _impl_.value_data_.ts_millisecond_value_ = value; +} +inline int64_t Value::ts_millisecond_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.ts_millisecond_value) + return _internal_ts_millisecond_value(); +} +inline void Value::set_ts_millisecond_value(int64_t value) { + _internal_set_ts_millisecond_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.ts_millisecond_value) +} + +// int64 ts_microsecond_value = 18; +inline bool Value::_internal_has_ts_microsecond_value() const { + return value_data_case() == kTsMicrosecondValue; +} +inline bool Value::has_ts_microsecond_value() const { + return _internal_has_ts_microsecond_value(); +} +inline void Value::set_has_ts_microsecond_value() { + _impl_._oneof_case_[0] = kTsMicrosecondValue; +} +inline void Value::clear_ts_microsecond_value() { + if (_internal_has_ts_microsecond_value()) { + _impl_.value_data_.ts_microsecond_value_ = int64_t{0}; + clear_has_value_data(); + } +} +inline int64_t Value::_internal_ts_microsecond_value() const { + if (_internal_has_ts_microsecond_value()) { + return _impl_.value_data_.ts_microsecond_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_ts_microsecond_value(int64_t value) { + if (!_internal_has_ts_microsecond_value()) { + clear_value_data(); + set_has_ts_microsecond_value(); + } + _impl_.value_data_.ts_microsecond_value_ = value; +} +inline int64_t Value::ts_microsecond_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.ts_microsecond_value) + return _internal_ts_microsecond_value(); +} +inline void Value::set_ts_microsecond_value(int64_t value) { + _internal_set_ts_microsecond_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.ts_microsecond_value) +} + +// int64 ts_nanosecond_value = 19; +inline bool Value::_internal_has_ts_nanosecond_value() const { + return value_data_case() == kTsNanosecondValue; +} +inline bool Value::has_ts_nanosecond_value() const { + return _internal_has_ts_nanosecond_value(); +} +inline void Value::set_has_ts_nanosecond_value() { + _impl_._oneof_case_[0] = kTsNanosecondValue; +} +inline void Value::clear_ts_nanosecond_value() { + if (_internal_has_ts_nanosecond_value()) { + _impl_.value_data_.ts_nanosecond_value_ = int64_t{0}; + clear_has_value_data(); + } +} +inline int64_t Value::_internal_ts_nanosecond_value() const { + if (_internal_has_ts_nanosecond_value()) { + return _impl_.value_data_.ts_nanosecond_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_ts_nanosecond_value(int64_t value) { + if (!_internal_has_ts_nanosecond_value()) { + clear_value_data(); + set_has_ts_nanosecond_value(); + } + _impl_.value_data_.ts_nanosecond_value_ = value; +} +inline int64_t Value::ts_nanosecond_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.ts_nanosecond_value) + return _internal_ts_nanosecond_value(); +} +inline void Value::set_ts_nanosecond_value(int64_t value) { + _internal_set_ts_nanosecond_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.ts_nanosecond_value) +} + +// int64 time_second_value = 20; +inline bool Value::_internal_has_time_second_value() const { + return value_data_case() == kTimeSecondValue; +} +inline bool Value::has_time_second_value() const { + return _internal_has_time_second_value(); +} +inline void Value::set_has_time_second_value() { + _impl_._oneof_case_[0] = kTimeSecondValue; +} +inline void Value::clear_time_second_value() { + if (_internal_has_time_second_value()) { + _impl_.value_data_.time_second_value_ = int64_t{0}; + clear_has_value_data(); + } +} +inline int64_t Value::_internal_time_second_value() const { + if (_internal_has_time_second_value()) { + return _impl_.value_data_.time_second_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_time_second_value(int64_t value) { + if (!_internal_has_time_second_value()) { + clear_value_data(); + set_has_time_second_value(); + } + _impl_.value_data_.time_second_value_ = value; +} +inline int64_t Value::time_second_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.time_second_value) + return _internal_time_second_value(); +} +inline void Value::set_time_second_value(int64_t value) { + _internal_set_time_second_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.time_second_value) +} + +// int64 time_millisecond_value = 21; +inline bool Value::_internal_has_time_millisecond_value() const { + return value_data_case() == kTimeMillisecondValue; +} +inline bool Value::has_time_millisecond_value() const { + return _internal_has_time_millisecond_value(); +} +inline void Value::set_has_time_millisecond_value() { + _impl_._oneof_case_[0] = kTimeMillisecondValue; +} +inline void Value::clear_time_millisecond_value() { + if (_internal_has_time_millisecond_value()) { + _impl_.value_data_.time_millisecond_value_ = int64_t{0}; + clear_has_value_data(); + } +} +inline int64_t Value::_internal_time_millisecond_value() const { + if (_internal_has_time_millisecond_value()) { + return _impl_.value_data_.time_millisecond_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_time_millisecond_value(int64_t value) { + if (!_internal_has_time_millisecond_value()) { + clear_value_data(); + set_has_time_millisecond_value(); + } + _impl_.value_data_.time_millisecond_value_ = value; +} +inline int64_t Value::time_millisecond_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.time_millisecond_value) + return _internal_time_millisecond_value(); +} +inline void Value::set_time_millisecond_value(int64_t value) { + _internal_set_time_millisecond_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.time_millisecond_value) +} + +// int64 time_microsecond_value = 22; +inline bool Value::_internal_has_time_microsecond_value() const { + return value_data_case() == kTimeMicrosecondValue; +} +inline bool Value::has_time_microsecond_value() const { + return _internal_has_time_microsecond_value(); +} +inline void Value::set_has_time_microsecond_value() { + _impl_._oneof_case_[0] = kTimeMicrosecondValue; +} +inline void Value::clear_time_microsecond_value() { + if (_internal_has_time_microsecond_value()) { + _impl_.value_data_.time_microsecond_value_ = int64_t{0}; + clear_has_value_data(); + } +} +inline int64_t Value::_internal_time_microsecond_value() const { + if (_internal_has_time_microsecond_value()) { + return _impl_.value_data_.time_microsecond_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_time_microsecond_value(int64_t value) { + if (!_internal_has_time_microsecond_value()) { + clear_value_data(); + set_has_time_microsecond_value(); + } + _impl_.value_data_.time_microsecond_value_ = value; +} +inline int64_t Value::time_microsecond_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.time_microsecond_value) + return _internal_time_microsecond_value(); +} +inline void Value::set_time_microsecond_value(int64_t value) { + _internal_set_time_microsecond_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.time_microsecond_value) +} + +// int64 time_nanosecond_value = 23; +inline bool Value::_internal_has_time_nanosecond_value() const { + return value_data_case() == kTimeNanosecondValue; +} +inline bool Value::has_time_nanosecond_value() const { + return _internal_has_time_nanosecond_value(); +} +inline void Value::set_has_time_nanosecond_value() { + _impl_._oneof_case_[0] = kTimeNanosecondValue; +} +inline void Value::clear_time_nanosecond_value() { + if (_internal_has_time_nanosecond_value()) { + _impl_.value_data_.time_nanosecond_value_ = int64_t{0}; + clear_has_value_data(); + } +} +inline int64_t Value::_internal_time_nanosecond_value() const { + if (_internal_has_time_nanosecond_value()) { + return _impl_.value_data_.time_nanosecond_value_; + } + return int64_t{0}; +} +inline void Value::_internal_set_time_nanosecond_value(int64_t value) { + if (!_internal_has_time_nanosecond_value()) { + clear_value_data(); + set_has_time_nanosecond_value(); + } + _impl_.value_data_.time_nanosecond_value_ = value; +} +inline int64_t Value::time_nanosecond_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.time_nanosecond_value) + return _internal_time_nanosecond_value(); +} +inline void Value::set_time_nanosecond_value(int64_t value) { + _internal_set_time_nanosecond_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.time_nanosecond_value) +} + +inline bool Value::has_value_data() const { + return value_data_case() != VALUE_DATA_NOT_SET; +} +inline void Value::clear_has_value_data() { + _impl_._oneof_case_[0] = VALUE_DATA_NOT_SET; +} +inline Value::ValueDataCase Value::value_data_case() const { + return Value::ValueDataCase(_impl_._oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace greptime + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2frow_2eproto diff --git a/go/greptime/v1/database.pb.go b/go/greptime/v1/database.pb.go index 73a389d..6f452ab 100644 --- a/go/greptime/v1/database.pb.go +++ b/go/greptime/v1/database.pb.go @@ -46,6 +46,8 @@ type GreptimeRequest struct { // *GreptimeRequest_Query // *GreptimeRequest_Ddl // *GreptimeRequest_Delete + // *GreptimeRequest_RowInserts + // *GreptimeRequest_RowDelete Request isGreptimeRequest_Request `protobuf_oneof:"request"` } @@ -123,6 +125,20 @@ func (x *GreptimeRequest) GetDelete() *DeleteRequest { return nil } +func (x *GreptimeRequest) GetRowInserts() *RowInsertRequests { + if x, ok := x.GetRequest().(*GreptimeRequest_RowInserts); ok { + return x.RowInserts + } + return nil +} + +func (x *GreptimeRequest) GetRowDelete() *RowDeleteRequest { + if x, ok := x.GetRequest().(*GreptimeRequest_RowDelete); ok { + return x.RowDelete + } + return nil +} + type isGreptimeRequest_Request interface { isGreptimeRequest_Request() } @@ -143,6 +159,14 @@ type GreptimeRequest_Delete struct { Delete *DeleteRequest `protobuf:"bytes,5,opt,name=delete,proto3,oneof"` } +type GreptimeRequest_RowInserts struct { + RowInserts *RowInsertRequests `protobuf:"bytes,6,opt,name=row_inserts,json=rowInserts,proto3,oneof"` +} + +type GreptimeRequest_RowDelete struct { + RowDelete *RowDeleteRequest `protobuf:"bytes,7,opt,name=row_delete,json=rowDelete,proto3,oneof"` +} + func (*GreptimeRequest_Inserts) isGreptimeRequest_Request() {} func (*GreptimeRequest_Query) isGreptimeRequest_Request() {} @@ -151,6 +175,10 @@ func (*GreptimeRequest_Ddl) isGreptimeRequest_Request() {} func (*GreptimeRequest_Delete) isGreptimeRequest_Request() {} +func (*GreptimeRequest_RowInserts) isGreptimeRequest_Request() {} + +func (*GreptimeRequest_RowDelete) isGreptimeRequest_Request() {} + type GreptimeResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -520,6 +548,185 @@ func (x *DeleteRequest) GetRowCount() uint32 { return 0 } +type RowInsertRequests struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Inserts []*RowInsertRequest `protobuf:"bytes,1,rep,name=inserts,proto3" json:"inserts,omitempty"` +} + +func (x *RowInsertRequests) Reset() { + *x = RowInsertRequests{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_database_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RowInsertRequests) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RowInsertRequests) ProtoMessage() {} + +func (x *RowInsertRequests) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_database_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RowInsertRequests.ProtoReflect.Descriptor instead. +func (*RowInsertRequests) Descriptor() ([]byte, []int) { + return file_greptime_v1_database_proto_rawDescGZIP(), []int{6} +} + +func (x *RowInsertRequests) GetInserts() []*RowInsertRequest { + if x != nil { + return x.Inserts + } + return nil +} + +type RowInsertRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + // Data is represented here. + Rows *Rows `protobuf:"bytes,2,opt,name=rows,proto3" json:"rows,omitempty"` + // The region number of current insert request. + RegionNumber uint32 `protobuf:"varint,3,opt,name=region_number,json=regionNumber,proto3" json:"region_number,omitempty"` +} + +func (x *RowInsertRequest) Reset() { + *x = RowInsertRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_database_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RowInsertRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RowInsertRequest) ProtoMessage() {} + +func (x *RowInsertRequest) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_database_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RowInsertRequest.ProtoReflect.Descriptor instead. +func (*RowInsertRequest) Descriptor() ([]byte, []int) { + return file_greptime_v1_database_proto_rawDescGZIP(), []int{7} +} + +func (x *RowInsertRequest) GetTableName() string { + if x != nil { + return x.TableName + } + return "" +} + +func (x *RowInsertRequest) GetRows() *Rows { + if x != nil { + return x.Rows + } + return nil +} + +func (x *RowInsertRequest) GetRegionNumber() uint32 { + if x != nil { + return x.RegionNumber + } + return 0 +} + +type RowDeleteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The table name to delete from. Catalog name and schema name are in the + // `RequestHeader`. + TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + // The data to delete. + Rows *Rows `protobuf:"bytes,2,opt,name=rows,proto3" json:"rows,omitempty"` + // The region number of current delete request. + RegionNumber uint32 `protobuf:"varint,3,opt,name=region_number,json=regionNumber,proto3" json:"region_number,omitempty"` +} + +func (x *RowDeleteRequest) Reset() { + *x = RowDeleteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_database_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RowDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RowDeleteRequest) ProtoMessage() {} + +func (x *RowDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_database_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RowDeleteRequest.ProtoReflect.Descriptor instead. +func (*RowDeleteRequest) Descriptor() ([]byte, []int) { + return file_greptime_v1_database_proto_rawDescGZIP(), []int{8} +} + +func (x *RowDeleteRequest) GetTableName() string { + if x != nil { + return x.TableName + } + return "" +} + +func (x *RowDeleteRequest) GetRows() *Rows { + if x != nil { + return x.Rows + } + return nil +} + +func (x *RowDeleteRequest) GetRegionNumber() uint32 { + if x != nil { + return x.RegionNumber + } + return 0 +} + var File_greptime_v1_database_proto protoreflect.FileDescriptor var file_greptime_v1_database_proto_rawDesc = []byte{ @@ -528,89 +735,120 @@ var file_greptime_v1_database_proto_rawDesc = []byte{ 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x15, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x64, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9f, 0x02, 0x0a, - 0x0f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x32, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x73, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x12, 0x31, 0x0a, - 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x12, 0x2b, 0x0a, 0x03, 0x64, 0x64, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x64, 0x6c, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x03, 0x64, 0x64, 0x6c, 0x12, 0x34, 0x0a, - 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x06, 0x64, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x95, - 0x01, 0x0a, 0x10, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, - 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66, - 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x66, - 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x99, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x23, 0x0a, 0x0c, 0x6c, - 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6c, 0x61, 0x6e, - 0x12, 0x47, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6d, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x52, 0x61, 0x6e, - 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x6d, 0x52, - 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x22, 0x46, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x0d, 0x49, - 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x63, - 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, - 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, - 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, - 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xa6, 0x01, 0x0a, - 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, - 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x12, 0x34, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x6b, 0x65, - 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x6f, 0x77, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xaa, 0x01, 0x0a, 0x10, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x48, 0x61, - 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x28, 0x01, 0x42, 0x51, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 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, + 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x16, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xa2, 0x03, 0x0a, 0x0f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x07, 0x69, + 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x73, + 0x65, 0x72, 0x74, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, + 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x2b, 0x0a, 0x03, 0x64, 0x64, 0x6c, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x64, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, + 0x03, 0x64, 0x64, 0x6c, 0x12, 0x34, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x48, 0x00, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x72, 0x6f, + 0x77, 0x5f, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, + 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x48, + 0x00, 0x52, 0x0a, 0x72, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x12, 0x3e, 0x0a, + 0x0a, 0x72, 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x48, 0x00, 0x52, 0x09, 0x72, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x09, 0x0a, + 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x95, 0x01, 0x0a, 0x10, 0x47, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x12, 0x40, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, + 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, + 0x52, 0x6f, 0x77, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, + 0x52, 0x6f, 0x77, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x99, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x12, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x23, 0x0a, 0x0c, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, + 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x6c, + 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x47, 0x0a, 0x10, 0x70, 0x72, + 0x6f, 0x6d, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x48, 0x00, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x6d, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x46, 0x0a, 0x0e, + 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x34, + 0x0a, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, + 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, + 0x65, 0x72, 0x74, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x0d, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xa6, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x0b, + 0x6b, 0x65, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, + 0x4c, 0x0a, 0x11, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x22, 0x7d, 0x0a, + 0x10, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x25, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, + 0x73, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x10, + 0x52, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x25, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x73, + 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x32, 0xaa, 0x01, 0x0a, 0x10, + 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, + 0x12, 0x45, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x48, 0x61, 0x6e, 0x64, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x42, 0x51, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x44, 0x61, 0x74, 0x61, + 0x62, 0x61, 0x73, 0x65, 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 ( @@ -625,42 +863,51 @@ func file_greptime_v1_database_proto_rawDescGZIP() []byte { return file_greptime_v1_database_proto_rawDescData } -var file_greptime_v1_database_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_greptime_v1_database_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_greptime_v1_database_proto_goTypes = []interface{}{ - (*GreptimeRequest)(nil), // 0: greptime.v1.GreptimeRequest - (*GreptimeResponse)(nil), // 1: greptime.v1.GreptimeResponse - (*QueryRequest)(nil), // 2: greptime.v1.QueryRequest - (*InsertRequests)(nil), // 3: greptime.v1.InsertRequests - (*InsertRequest)(nil), // 4: greptime.v1.InsertRequest - (*DeleteRequest)(nil), // 5: greptime.v1.DeleteRequest - (*RequestHeader)(nil), // 6: greptime.v1.RequestHeader - (*DdlRequest)(nil), // 7: greptime.v1.DdlRequest - (*ResponseHeader)(nil), // 8: greptime.v1.ResponseHeader - (*AffectedRows)(nil), // 9: greptime.v1.AffectedRows - (*PromRangeQuery)(nil), // 10: greptime.v1.PromRangeQuery - (*Column)(nil), // 11: greptime.v1.Column + (*GreptimeRequest)(nil), // 0: greptime.v1.GreptimeRequest + (*GreptimeResponse)(nil), // 1: greptime.v1.GreptimeResponse + (*QueryRequest)(nil), // 2: greptime.v1.QueryRequest + (*InsertRequests)(nil), // 3: greptime.v1.InsertRequests + (*InsertRequest)(nil), // 4: greptime.v1.InsertRequest + (*DeleteRequest)(nil), // 5: greptime.v1.DeleteRequest + (*RowInsertRequests)(nil), // 6: greptime.v1.RowInsertRequests + (*RowInsertRequest)(nil), // 7: greptime.v1.RowInsertRequest + (*RowDeleteRequest)(nil), // 8: greptime.v1.RowDeleteRequest + (*RequestHeader)(nil), // 9: greptime.v1.RequestHeader + (*DdlRequest)(nil), // 10: greptime.v1.DdlRequest + (*ResponseHeader)(nil), // 11: greptime.v1.ResponseHeader + (*AffectedRows)(nil), // 12: greptime.v1.AffectedRows + (*PromRangeQuery)(nil), // 13: greptime.v1.PromRangeQuery + (*Column)(nil), // 14: greptime.v1.Column + (*Rows)(nil), // 15: greptime.v1.Rows } var file_greptime_v1_database_proto_depIdxs = []int32{ - 6, // 0: greptime.v1.GreptimeRequest.header:type_name -> greptime.v1.RequestHeader + 9, // 0: greptime.v1.GreptimeRequest.header:type_name -> greptime.v1.RequestHeader 3, // 1: greptime.v1.GreptimeRequest.inserts:type_name -> greptime.v1.InsertRequests 2, // 2: greptime.v1.GreptimeRequest.query:type_name -> greptime.v1.QueryRequest - 7, // 3: greptime.v1.GreptimeRequest.ddl:type_name -> greptime.v1.DdlRequest + 10, // 3: greptime.v1.GreptimeRequest.ddl:type_name -> greptime.v1.DdlRequest 5, // 4: greptime.v1.GreptimeRequest.delete:type_name -> greptime.v1.DeleteRequest - 8, // 5: greptime.v1.GreptimeResponse.header:type_name -> greptime.v1.ResponseHeader - 9, // 6: greptime.v1.GreptimeResponse.affected_rows:type_name -> greptime.v1.AffectedRows - 10, // 7: greptime.v1.QueryRequest.prom_range_query:type_name -> greptime.v1.PromRangeQuery - 4, // 8: greptime.v1.InsertRequests.inserts:type_name -> greptime.v1.InsertRequest - 11, // 9: greptime.v1.InsertRequest.columns:type_name -> greptime.v1.Column - 11, // 10: greptime.v1.DeleteRequest.key_columns:type_name -> greptime.v1.Column - 0, // 11: greptime.v1.GreptimeDatabase.Handle:input_type -> greptime.v1.GreptimeRequest - 0, // 12: greptime.v1.GreptimeDatabase.HandleRequests:input_type -> greptime.v1.GreptimeRequest - 1, // 13: greptime.v1.GreptimeDatabase.Handle:output_type -> greptime.v1.GreptimeResponse - 1, // 14: greptime.v1.GreptimeDatabase.HandleRequests:output_type -> greptime.v1.GreptimeResponse - 13, // [13:15] is the sub-list for method output_type - 11, // [11:13] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name + 6, // 5: greptime.v1.GreptimeRequest.row_inserts:type_name -> greptime.v1.RowInsertRequests + 8, // 6: greptime.v1.GreptimeRequest.row_delete:type_name -> greptime.v1.RowDeleteRequest + 11, // 7: greptime.v1.GreptimeResponse.header:type_name -> greptime.v1.ResponseHeader + 12, // 8: greptime.v1.GreptimeResponse.affected_rows:type_name -> greptime.v1.AffectedRows + 13, // 9: greptime.v1.QueryRequest.prom_range_query:type_name -> greptime.v1.PromRangeQuery + 4, // 10: greptime.v1.InsertRequests.inserts:type_name -> greptime.v1.InsertRequest + 14, // 11: greptime.v1.InsertRequest.columns:type_name -> greptime.v1.Column + 14, // 12: greptime.v1.DeleteRequest.key_columns:type_name -> greptime.v1.Column + 7, // 13: greptime.v1.RowInsertRequests.inserts:type_name -> greptime.v1.RowInsertRequest + 15, // 14: greptime.v1.RowInsertRequest.rows:type_name -> greptime.v1.Rows + 15, // 15: greptime.v1.RowDeleteRequest.rows:type_name -> greptime.v1.Rows + 0, // 16: greptime.v1.GreptimeDatabase.Handle:input_type -> greptime.v1.GreptimeRequest + 0, // 17: greptime.v1.GreptimeDatabase.HandleRequests:input_type -> greptime.v1.GreptimeRequest + 1, // 18: greptime.v1.GreptimeDatabase.Handle:output_type -> greptime.v1.GreptimeResponse + 1, // 19: greptime.v1.GreptimeDatabase.HandleRequests:output_type -> greptime.v1.GreptimeResponse + 18, // [18:20] is the sub-list for method output_type + 16, // [16:18] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name } func init() { file_greptime_v1_database_proto_init() } @@ -670,6 +917,7 @@ func file_greptime_v1_database_proto_init() { } file_greptime_v1_ddl_proto_init() file_greptime_v1_column_proto_init() + file_greptime_v1_row_proto_init() file_greptime_v1_prom_proto_init() file_greptime_v1_common_proto_init() if !protoimpl.UnsafeEnabled { @@ -745,12 +993,50 @@ func file_greptime_v1_database_proto_init() { return nil } } + file_greptime_v1_database_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RowInsertRequests); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_database_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RowInsertRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_database_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RowDeleteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_greptime_v1_database_proto_msgTypes[0].OneofWrappers = []interface{}{ (*GreptimeRequest_Inserts)(nil), (*GreptimeRequest_Query)(nil), (*GreptimeRequest_Ddl)(nil), (*GreptimeRequest_Delete)(nil), + (*GreptimeRequest_RowInserts)(nil), + (*GreptimeRequest_RowDelete)(nil), } file_greptime_v1_database_proto_msgTypes[1].OneofWrappers = []interface{}{ (*GreptimeResponse_AffectedRows)(nil), @@ -766,7 +1052,7 @@ func file_greptime_v1_database_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_database_proto_rawDesc, NumEnums: 0, - NumMessages: 6, + NumMessages: 9, NumExtensions: 0, NumServices: 1, }, diff --git a/go/greptime/v1/row.pb.go b/go/greptime/v1/row.pb.go new file mode 100644 index 0000000..11163a7 --- /dev/null +++ b/go/greptime/v1/row.pb.go @@ -0,0 +1,802 @@ +// Copyright 2023 Greptime Team +// +// Licensed 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. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.21.6 +// source: greptime/v1/row.proto + +package v1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Rows struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Schema []*ColumnSchema `protobuf:"bytes,1,rep,name=schema,proto3" json:"schema,omitempty"` + Rows []*Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"` +} + +func (x *Rows) Reset() { + *x = Rows{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_row_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Rows) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Rows) ProtoMessage() {} + +func (x *Rows) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_row_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Rows.ProtoReflect.Descriptor instead. +func (*Rows) Descriptor() ([]byte, []int) { + return file_greptime_v1_row_proto_rawDescGZIP(), []int{0} +} + +func (x *Rows) GetSchema() []*ColumnSchema { + if x != nil { + return x.Schema + } + return nil +} + +func (x *Rows) GetRows() []*Row { + if x != nil { + return x.Rows + } + return nil +} + +type ColumnSchema struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` + Datatype ColumnDataType `protobuf:"varint,2,opt,name=datatype,proto3,enum=greptime.v1.ColumnDataType" json:"datatype,omitempty"` + SemanticType SemanticType `protobuf:"varint,3,opt,name=semantic_type,json=semanticType,proto3,enum=greptime.v1.SemanticType" json:"semantic_type,omitempty"` +} + +func (x *ColumnSchema) Reset() { + *x = ColumnSchema{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_row_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ColumnSchema) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ColumnSchema) ProtoMessage() {} + +func (x *ColumnSchema) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_row_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ColumnSchema.ProtoReflect.Descriptor instead. +func (*ColumnSchema) Descriptor() ([]byte, []int) { + return file_greptime_v1_row_proto_rawDescGZIP(), []int{1} +} + +func (x *ColumnSchema) GetColumnName() string { + if x != nil { + return x.ColumnName + } + return "" +} + +func (x *ColumnSchema) GetDatatype() ColumnDataType { + if x != nil { + return x.Datatype + } + return ColumnDataType_BOOLEAN +} + +func (x *ColumnSchema) GetSemanticType() SemanticType { + if x != nil { + return x.SemanticType + } + return SemanticType_TAG +} + +type Row struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` +} + +func (x *Row) Reset() { + *x = Row{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_row_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Row) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Row) ProtoMessage() {} + +func (x *Row) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_row_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Row.ProtoReflect.Descriptor instead. +func (*Row) Descriptor() ([]byte, []int) { + return file_greptime_v1_row_proto_rawDescGZIP(), []int{2} +} + +func (x *Row) GetValues() []*Value { + if x != nil { + return x.Values + } + return nil +} + +type Value struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to ValueData: + // + // *Value_I8Value + // *Value_I16Value + // *Value_I32Value + // *Value_I64Value + // *Value_U8Value + // *Value_U16Value + // *Value_U32Value + // *Value_U64Value + // *Value_F32Value + // *Value_F64Value + // *Value_BoolValue + // *Value_BinaryValue + // *Value_StringValue + // *Value_DateValue + // *Value_DatetimeValue + // *Value_TsSecondValue + // *Value_TsMillisecondValue + // *Value_TsMicrosecondValue + // *Value_TsNanosecondValue + // *Value_TimeSecondValue + // *Value_TimeMillisecondValue + // *Value_TimeMicrosecondValue + // *Value_TimeNanosecondValue + ValueData isValue_ValueData `protobuf_oneof:"value_data"` +} + +func (x *Value) Reset() { + *x = Value{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_row_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Value) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Value) ProtoMessage() {} + +func (x *Value) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_row_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Value.ProtoReflect.Descriptor instead. +func (*Value) Descriptor() ([]byte, []int) { + return file_greptime_v1_row_proto_rawDescGZIP(), []int{3} +} + +func (m *Value) GetValueData() isValue_ValueData { + if m != nil { + return m.ValueData + } + return nil +} + +func (x *Value) GetI8Value() int32 { + if x, ok := x.GetValueData().(*Value_I8Value); ok { + return x.I8Value + } + return 0 +} + +func (x *Value) GetI16Value() int32 { + if x, ok := x.GetValueData().(*Value_I16Value); ok { + return x.I16Value + } + return 0 +} + +func (x *Value) GetI32Value() int32 { + if x, ok := x.GetValueData().(*Value_I32Value); ok { + return x.I32Value + } + return 0 +} + +func (x *Value) GetI64Value() int64 { + if x, ok := x.GetValueData().(*Value_I64Value); ok { + return x.I64Value + } + return 0 +} + +func (x *Value) GetU8Value() uint32 { + if x, ok := x.GetValueData().(*Value_U8Value); ok { + return x.U8Value + } + return 0 +} + +func (x *Value) GetU16Value() uint32 { + if x, ok := x.GetValueData().(*Value_U16Value); ok { + return x.U16Value + } + return 0 +} + +func (x *Value) GetU32Value() uint32 { + if x, ok := x.GetValueData().(*Value_U32Value); ok { + return x.U32Value + } + return 0 +} + +func (x *Value) GetU64Value() uint64 { + if x, ok := x.GetValueData().(*Value_U64Value); ok { + return x.U64Value + } + return 0 +} + +func (x *Value) GetF32Value() float32 { + if x, ok := x.GetValueData().(*Value_F32Value); ok { + return x.F32Value + } + return 0 +} + +func (x *Value) GetF64Value() float64 { + if x, ok := x.GetValueData().(*Value_F64Value); ok { + return x.F64Value + } + return 0 +} + +func (x *Value) GetBoolValue() bool { + if x, ok := x.GetValueData().(*Value_BoolValue); ok { + return x.BoolValue + } + return false +} + +func (x *Value) GetBinaryValue() []byte { + if x, ok := x.GetValueData().(*Value_BinaryValue); ok { + return x.BinaryValue + } + return nil +} + +func (x *Value) GetStringValue() string { + if x, ok := x.GetValueData().(*Value_StringValue); ok { + return x.StringValue + } + return "" +} + +func (x *Value) GetDateValue() int32 { + if x, ok := x.GetValueData().(*Value_DateValue); ok { + return x.DateValue + } + return 0 +} + +func (x *Value) GetDatetimeValue() int64 { + if x, ok := x.GetValueData().(*Value_DatetimeValue); ok { + return x.DatetimeValue + } + return 0 +} + +func (x *Value) GetTsSecondValue() int64 { + if x, ok := x.GetValueData().(*Value_TsSecondValue); ok { + return x.TsSecondValue + } + return 0 +} + +func (x *Value) GetTsMillisecondValue() int64 { + if x, ok := x.GetValueData().(*Value_TsMillisecondValue); ok { + return x.TsMillisecondValue + } + return 0 +} + +func (x *Value) GetTsMicrosecondValue() int64 { + if x, ok := x.GetValueData().(*Value_TsMicrosecondValue); ok { + return x.TsMicrosecondValue + } + return 0 +} + +func (x *Value) GetTsNanosecondValue() int64 { + if x, ok := x.GetValueData().(*Value_TsNanosecondValue); ok { + return x.TsNanosecondValue + } + return 0 +} + +func (x *Value) GetTimeSecondValue() int64 { + if x, ok := x.GetValueData().(*Value_TimeSecondValue); ok { + return x.TimeSecondValue + } + return 0 +} + +func (x *Value) GetTimeMillisecondValue() int64 { + if x, ok := x.GetValueData().(*Value_TimeMillisecondValue); ok { + return x.TimeMillisecondValue + } + return 0 +} + +func (x *Value) GetTimeMicrosecondValue() int64 { + if x, ok := x.GetValueData().(*Value_TimeMicrosecondValue); ok { + return x.TimeMicrosecondValue + } + return 0 +} + +func (x *Value) GetTimeNanosecondValue() int64 { + if x, ok := x.GetValueData().(*Value_TimeNanosecondValue); ok { + return x.TimeNanosecondValue + } + return 0 +} + +type isValue_ValueData interface { + isValue_ValueData() +} + +type Value_I8Value struct { + I8Value int32 `protobuf:"varint,1,opt,name=i8_value,json=i8Value,proto3,oneof"` +} + +type Value_I16Value struct { + I16Value int32 `protobuf:"varint,2,opt,name=i16_value,json=i16Value,proto3,oneof"` +} + +type Value_I32Value struct { + I32Value int32 `protobuf:"varint,3,opt,name=i32_value,json=i32Value,proto3,oneof"` +} + +type Value_I64Value struct { + I64Value int64 `protobuf:"varint,4,opt,name=i64_value,json=i64Value,proto3,oneof"` +} + +type Value_U8Value struct { + U8Value uint32 `protobuf:"varint,5,opt,name=u8_value,json=u8Value,proto3,oneof"` +} + +type Value_U16Value struct { + U16Value uint32 `protobuf:"varint,6,opt,name=u16_value,json=u16Value,proto3,oneof"` +} + +type Value_U32Value struct { + U32Value uint32 `protobuf:"varint,7,opt,name=u32_value,json=u32Value,proto3,oneof"` +} + +type Value_U64Value struct { + U64Value uint64 `protobuf:"varint,8,opt,name=u64_value,json=u64Value,proto3,oneof"` +} + +type Value_F32Value struct { + F32Value float32 `protobuf:"fixed32,9,opt,name=f32_value,json=f32Value,proto3,oneof"` +} + +type Value_F64Value struct { + F64Value float64 `protobuf:"fixed64,10,opt,name=f64_value,json=f64Value,proto3,oneof"` +} + +type Value_BoolValue struct { + BoolValue bool `protobuf:"varint,11,opt,name=bool_value,json=boolValue,proto3,oneof"` +} + +type Value_BinaryValue struct { + BinaryValue []byte `protobuf:"bytes,12,opt,name=binary_value,json=binaryValue,proto3,oneof"` +} + +type Value_StringValue struct { + StringValue string `protobuf:"bytes,13,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type Value_DateValue struct { + DateValue int32 `protobuf:"varint,14,opt,name=date_value,json=dateValue,proto3,oneof"` +} + +type Value_DatetimeValue struct { + DatetimeValue int64 `protobuf:"varint,15,opt,name=datetime_value,json=datetimeValue,proto3,oneof"` +} + +type Value_TsSecondValue struct { + TsSecondValue int64 `protobuf:"varint,16,opt,name=ts_second_value,json=tsSecondValue,proto3,oneof"` +} + +type Value_TsMillisecondValue struct { + TsMillisecondValue int64 `protobuf:"varint,17,opt,name=ts_millisecond_value,json=tsMillisecondValue,proto3,oneof"` +} + +type Value_TsMicrosecondValue struct { + TsMicrosecondValue int64 `protobuf:"varint,18,opt,name=ts_microsecond_value,json=tsMicrosecondValue,proto3,oneof"` +} + +type Value_TsNanosecondValue struct { + TsNanosecondValue int64 `protobuf:"varint,19,opt,name=ts_nanosecond_value,json=tsNanosecondValue,proto3,oneof"` +} + +type Value_TimeSecondValue struct { + TimeSecondValue int64 `protobuf:"varint,20,opt,name=time_second_value,json=timeSecondValue,proto3,oneof"` +} + +type Value_TimeMillisecondValue struct { + TimeMillisecondValue int64 `protobuf:"varint,21,opt,name=time_millisecond_value,json=timeMillisecondValue,proto3,oneof"` +} + +type Value_TimeMicrosecondValue struct { + TimeMicrosecondValue int64 `protobuf:"varint,22,opt,name=time_microsecond_value,json=timeMicrosecondValue,proto3,oneof"` +} + +type Value_TimeNanosecondValue struct { + TimeNanosecondValue int64 `protobuf:"varint,23,opt,name=time_nanosecond_value,json=timeNanosecondValue,proto3,oneof"` +} + +func (*Value_I8Value) isValue_ValueData() {} + +func (*Value_I16Value) isValue_ValueData() {} + +func (*Value_I32Value) isValue_ValueData() {} + +func (*Value_I64Value) isValue_ValueData() {} + +func (*Value_U8Value) isValue_ValueData() {} + +func (*Value_U16Value) isValue_ValueData() {} + +func (*Value_U32Value) isValue_ValueData() {} + +func (*Value_U64Value) isValue_ValueData() {} + +func (*Value_F32Value) isValue_ValueData() {} + +func (*Value_F64Value) isValue_ValueData() {} + +func (*Value_BoolValue) isValue_ValueData() {} + +func (*Value_BinaryValue) isValue_ValueData() {} + +func (*Value_StringValue) isValue_ValueData() {} + +func (*Value_DateValue) isValue_ValueData() {} + +func (*Value_DatetimeValue) isValue_ValueData() {} + +func (*Value_TsSecondValue) isValue_ValueData() {} + +func (*Value_TsMillisecondValue) isValue_ValueData() {} + +func (*Value_TsMicrosecondValue) isValue_ValueData() {} + +func (*Value_TsNanosecondValue) isValue_ValueData() {} + +func (*Value_TimeSecondValue) isValue_ValueData() {} + +func (*Value_TimeMillisecondValue) isValue_ValueData() {} + +func (*Value_TimeMicrosecondValue) isValue_ValueData() {} + +func (*Value_TimeNanosecondValue) isValue_ValueData() {} + +var File_greptime_v1_row_proto protoreflect.FileDescriptor + +var file_greptime_v1_row_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, + 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5f, + 0x0a, 0x04, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x24, 0x0a, 0x04, 0x72, 0x6f, 0x77, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x22, + 0xa8, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 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, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, + 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 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, 0x22, 0x31, 0x0a, 0x03, 0x52, 0x6f, + 0x77, 0x12, 0x2a, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x94, 0x07, + 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x69, 0x38, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x07, 0x69, 0x38, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x69, 0x31, 0x36, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x69, 0x33, 0x32, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x75, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x07, 0x75, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, + 0x0a, 0x09, 0x75, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0d, 0x48, 0x00, 0x52, 0x08, 0x75, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, + 0x09, 0x75, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, + 0x48, 0x00, 0x52, 0x08, 0x75, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, + 0x75, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x48, + 0x00, 0x52, 0x08, 0x75, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x66, + 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, + 0x52, 0x08, 0x66, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x66, 0x36, + 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, + 0x08, 0x66, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, + 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, + 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x62, 0x69, + 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, + 0x48, 0x00, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, + 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, + 0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28, + 0x0a, 0x0f, 0x74, 0x73, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0d, 0x74, 0x73, 0x53, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x32, 0x0a, 0x14, 0x74, 0x73, 0x5f, 0x6d, + 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x12, 0x74, 0x73, 0x4d, 0x69, 0x6c, 0x6c, + 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x32, 0x0a, 0x14, + 0x74, 0x73, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x12, 0x74, 0x73, + 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x30, 0x0a, 0x13, 0x74, 0x73, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, + 0x11, 0x74, 0x73, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, + 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, + 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, + 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x34, 0x0a, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x03, 0x48, + 0x00, 0x52, 0x13, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, + 0x64, 0x61, 0x74, 0x61, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x52, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 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 ( + file_greptime_v1_row_proto_rawDescOnce sync.Once + file_greptime_v1_row_proto_rawDescData = file_greptime_v1_row_proto_rawDesc +) + +func file_greptime_v1_row_proto_rawDescGZIP() []byte { + file_greptime_v1_row_proto_rawDescOnce.Do(func() { + file_greptime_v1_row_proto_rawDescData = protoimpl.X.CompressGZIP(file_greptime_v1_row_proto_rawDescData) + }) + return file_greptime_v1_row_proto_rawDescData +} + +var file_greptime_v1_row_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_greptime_v1_row_proto_goTypes = []interface{}{ + (*Rows)(nil), // 0: greptime.v1.Rows + (*ColumnSchema)(nil), // 1: greptime.v1.ColumnSchema + (*Row)(nil), // 2: greptime.v1.Row + (*Value)(nil), // 3: greptime.v1.Value + (ColumnDataType)(0), // 4: greptime.v1.ColumnDataType + (SemanticType)(0), // 5: greptime.v1.SemanticType +} +var file_greptime_v1_row_proto_depIdxs = []int32{ + 1, // 0: greptime.v1.Rows.schema:type_name -> greptime.v1.ColumnSchema + 2, // 1: greptime.v1.Rows.rows:type_name -> greptime.v1.Row + 4, // 2: greptime.v1.ColumnSchema.datatype:type_name -> greptime.v1.ColumnDataType + 5, // 3: greptime.v1.ColumnSchema.semantic_type:type_name -> greptime.v1.SemanticType + 3, // 4: greptime.v1.Row.values:type_name -> greptime.v1.Value + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_greptime_v1_row_proto_init() } +func file_greptime_v1_row_proto_init() { + if File_greptime_v1_row_proto != nil { + return + } + file_greptime_v1_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_greptime_v1_row_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Rows); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_row_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ColumnSchema); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_row_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Row); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_row_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_greptime_v1_row_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*Value_I8Value)(nil), + (*Value_I16Value)(nil), + (*Value_I32Value)(nil), + (*Value_I64Value)(nil), + (*Value_U8Value)(nil), + (*Value_U16Value)(nil), + (*Value_U32Value)(nil), + (*Value_U64Value)(nil), + (*Value_F32Value)(nil), + (*Value_F64Value)(nil), + (*Value_BoolValue)(nil), + (*Value_BinaryValue)(nil), + (*Value_StringValue)(nil), + (*Value_DateValue)(nil), + (*Value_DatetimeValue)(nil), + (*Value_TsSecondValue)(nil), + (*Value_TsMillisecondValue)(nil), + (*Value_TsMicrosecondValue)(nil), + (*Value_TsNanosecondValue)(nil), + (*Value_TimeSecondValue)(nil), + (*Value_TimeMillisecondValue)(nil), + (*Value_TimeMicrosecondValue)(nil), + (*Value_TimeNanosecondValue)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_greptime_v1_row_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_greptime_v1_row_proto_goTypes, + DependencyIndexes: file_greptime_v1_row_proto_depIdxs, + MessageInfos: file_greptime_v1_row_proto_msgTypes, + }.Build() + File_greptime_v1_row_proto = out.File + file_greptime_v1_row_proto_rawDesc = nil + file_greptime_v1_row_proto_goTypes = nil + file_greptime_v1_row_proto_depIdxs = nil +} diff --git a/java/src/main/java/io/greptime/v1/Database.java b/java/src/main/java/io/greptime/v1/Database.java index 2ffe758..cca6afd 100644 --- a/java/src/main/java/io/greptime/v1/Database.java +++ b/java/src/main/java/io/greptime/v1/Database.java @@ -93,6 +93,36 @@ public final class Database { */ io.greptime.v1.Database.DeleteRequestOrBuilder getDeleteOrBuilder(); + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + * @return Whether the rowInserts field is set. + */ + boolean hasRowInserts(); + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + * @return The rowInserts. + */ + io.greptime.v1.Database.RowInsertRequests getRowInserts(); + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + */ + io.greptime.v1.Database.RowInsertRequestsOrBuilder getRowInsertsOrBuilder(); + + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + * @return Whether the rowDelete field is set. + */ + boolean hasRowDelete(); + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + * @return The rowDelete. + */ + io.greptime.v1.Database.RowDeleteRequest getRowDelete(); + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + */ + io.greptime.v1.Database.RowDeleteRequestOrBuilder getRowDeleteOrBuilder(); + public io.greptime.v1.Database.GreptimeRequest.RequestCase getRequestCase(); } /** @@ -209,6 +239,34 @@ public final class Database { requestCase_ = 5; break; } + case 50: { + io.greptime.v1.Database.RowInsertRequests.Builder subBuilder = null; + if (requestCase_ == 6) { + subBuilder = ((io.greptime.v1.Database.RowInsertRequests) request_).toBuilder(); + } + request_ = + input.readMessage(io.greptime.v1.Database.RowInsertRequests.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Database.RowInsertRequests) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 6; + break; + } + case 58: { + io.greptime.v1.Database.RowDeleteRequest.Builder subBuilder = null; + if (requestCase_ == 7) { + subBuilder = ((io.greptime.v1.Database.RowDeleteRequest) request_).toBuilder(); + } + request_ = + input.readMessage(io.greptime.v1.Database.RowDeleteRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Database.RowDeleteRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 7; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -252,6 +310,8 @@ public final class Database { QUERY(3), DDL(4), DELETE(5), + ROW_INSERTS(6), + ROW_DELETE(7), REQUEST_NOT_SET(0); private final int value; private RequestCase(int value) { @@ -273,6 +333,8 @@ public final class Database { case 3: return QUERY; case 4: return DDL; case 5: return DELETE; + case 6: return ROW_INSERTS; + case 7: return ROW_DELETE; case 0: return REQUEST_NOT_SET; default: return null; } @@ -438,6 +500,68 @@ public final class Database { return io.greptime.v1.Database.DeleteRequest.getDefaultInstance(); } + public static final int ROW_INSERTS_FIELD_NUMBER = 6; + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + * @return Whether the rowInserts field is set. + */ + @java.lang.Override + public boolean hasRowInserts() { + return requestCase_ == 6; + } + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + * @return The rowInserts. + */ + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequests getRowInserts() { + if (requestCase_ == 6) { + return (io.greptime.v1.Database.RowInsertRequests) request_; + } + return io.greptime.v1.Database.RowInsertRequests.getDefaultInstance(); + } + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + */ + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequestsOrBuilder getRowInsertsOrBuilder() { + if (requestCase_ == 6) { + return (io.greptime.v1.Database.RowInsertRequests) request_; + } + return io.greptime.v1.Database.RowInsertRequests.getDefaultInstance(); + } + + public static final int ROW_DELETE_FIELD_NUMBER = 7; + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + * @return Whether the rowDelete field is set. + */ + @java.lang.Override + public boolean hasRowDelete() { + return requestCase_ == 7; + } + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + * @return The rowDelete. + */ + @java.lang.Override + public io.greptime.v1.Database.RowDeleteRequest getRowDelete() { + if (requestCase_ == 7) { + return (io.greptime.v1.Database.RowDeleteRequest) request_; + } + return io.greptime.v1.Database.RowDeleteRequest.getDefaultInstance(); + } + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + */ + @java.lang.Override + public io.greptime.v1.Database.RowDeleteRequestOrBuilder getRowDeleteOrBuilder() { + if (requestCase_ == 7) { + return (io.greptime.v1.Database.RowDeleteRequest) request_; + } + return io.greptime.v1.Database.RowDeleteRequest.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -467,6 +591,12 @@ public final class Database { if (requestCase_ == 5) { output.writeMessage(5, (io.greptime.v1.Database.DeleteRequest) request_); } + if (requestCase_ == 6) { + output.writeMessage(6, (io.greptime.v1.Database.RowInsertRequests) request_); + } + if (requestCase_ == 7) { + output.writeMessage(7, (io.greptime.v1.Database.RowDeleteRequest) request_); + } unknownFields.writeTo(output); } @@ -496,6 +626,14 @@ public final class Database { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.greptime.v1.Database.DeleteRequest) request_); } + if (requestCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (io.greptime.v1.Database.RowInsertRequests) request_); + } + if (requestCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (io.greptime.v1.Database.RowDeleteRequest) request_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -534,6 +672,14 @@ public final class Database { if (!getDelete() .equals(other.getDelete())) return false; break; + case 6: + if (!getRowInserts() + .equals(other.getRowInserts())) return false; + break; + case 7: + if (!getRowDelete() + .equals(other.getRowDelete())) return false; + break; case 0: default: } @@ -569,6 +715,14 @@ public final class Database { hash = (37 * hash) + DELETE_FIELD_NUMBER; hash = (53 * hash) + getDelete().hashCode(); break; + case 6: + hash = (37 * hash) + ROW_INSERTS_FIELD_NUMBER; + hash = (53 * hash) + getRowInserts().hashCode(); + break; + case 7: + hash = (37 * hash) + ROW_DELETE_FIELD_NUMBER; + hash = (53 * hash) + getRowDelete().hashCode(); + break; case 0: default: } @@ -772,6 +926,20 @@ public final class Database { result.request_ = deleteBuilder_.build(); } } + if (requestCase_ == 6) { + if (rowInsertsBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = rowInsertsBuilder_.build(); + } + } + if (requestCase_ == 7) { + if (rowDeleteBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = rowDeleteBuilder_.build(); + } + } result.requestCase_ = requestCase_; onBuilt(); return result; @@ -841,6 +1009,14 @@ public final class Database { mergeDelete(other.getDelete()); break; } + case ROW_INSERTS: { + mergeRowInserts(other.getRowInserts()); + break; + } + case ROW_DELETE: { + mergeRowDelete(other.getRowDelete()); + break; + } case REQUEST_NOT_SET: { break; } @@ -1575,6 +1751,290 @@ public final class Database { onChanged();; return deleteBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Database.RowInsertRequests, io.greptime.v1.Database.RowInsertRequests.Builder, io.greptime.v1.Database.RowInsertRequestsOrBuilder> rowInsertsBuilder_; + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + * @return Whether the rowInserts field is set. + */ + @java.lang.Override + public boolean hasRowInserts() { + return requestCase_ == 6; + } + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + * @return The rowInserts. + */ + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequests getRowInserts() { + if (rowInsertsBuilder_ == null) { + if (requestCase_ == 6) { + return (io.greptime.v1.Database.RowInsertRequests) request_; + } + return io.greptime.v1.Database.RowInsertRequests.getDefaultInstance(); + } else { + if (requestCase_ == 6) { + return rowInsertsBuilder_.getMessage(); + } + return io.greptime.v1.Database.RowInsertRequests.getDefaultInstance(); + } + } + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + */ + public Builder setRowInserts(io.greptime.v1.Database.RowInsertRequests value) { + if (rowInsertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + rowInsertsBuilder_.setMessage(value); + } + requestCase_ = 6; + return this; + } + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + */ + public Builder setRowInserts( + io.greptime.v1.Database.RowInsertRequests.Builder builderForValue) { + if (rowInsertsBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + rowInsertsBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 6; + return this; + } + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + */ + public Builder mergeRowInserts(io.greptime.v1.Database.RowInsertRequests value) { + if (rowInsertsBuilder_ == null) { + if (requestCase_ == 6 && + request_ != io.greptime.v1.Database.RowInsertRequests.getDefaultInstance()) { + request_ = io.greptime.v1.Database.RowInsertRequests.newBuilder((io.greptime.v1.Database.RowInsertRequests) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 6) { + rowInsertsBuilder_.mergeFrom(value); + } else { + rowInsertsBuilder_.setMessage(value); + } + } + requestCase_ = 6; + return this; + } + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + */ + public Builder clearRowInserts() { + if (rowInsertsBuilder_ == null) { + if (requestCase_ == 6) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 6) { + requestCase_ = 0; + request_ = null; + } + rowInsertsBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + */ + public io.greptime.v1.Database.RowInsertRequests.Builder getRowInsertsBuilder() { + return getRowInsertsFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + */ + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequestsOrBuilder getRowInsertsOrBuilder() { + if ((requestCase_ == 6) && (rowInsertsBuilder_ != null)) { + return rowInsertsBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 6) { + return (io.greptime.v1.Database.RowInsertRequests) request_; + } + return io.greptime.v1.Database.RowInsertRequests.getDefaultInstance(); + } + } + /** + * .greptime.v1.RowInsertRequests row_inserts = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Database.RowInsertRequests, io.greptime.v1.Database.RowInsertRequests.Builder, io.greptime.v1.Database.RowInsertRequestsOrBuilder> + getRowInsertsFieldBuilder() { + if (rowInsertsBuilder_ == null) { + if (!(requestCase_ == 6)) { + request_ = io.greptime.v1.Database.RowInsertRequests.getDefaultInstance(); + } + rowInsertsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Database.RowInsertRequests, io.greptime.v1.Database.RowInsertRequests.Builder, io.greptime.v1.Database.RowInsertRequestsOrBuilder>( + (io.greptime.v1.Database.RowInsertRequests) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 6; + onChanged();; + return rowInsertsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Database.RowDeleteRequest, io.greptime.v1.Database.RowDeleteRequest.Builder, io.greptime.v1.Database.RowDeleteRequestOrBuilder> rowDeleteBuilder_; + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + * @return Whether the rowDelete field is set. + */ + @java.lang.Override + public boolean hasRowDelete() { + return requestCase_ == 7; + } + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + * @return The rowDelete. + */ + @java.lang.Override + public io.greptime.v1.Database.RowDeleteRequest getRowDelete() { + if (rowDeleteBuilder_ == null) { + if (requestCase_ == 7) { + return (io.greptime.v1.Database.RowDeleteRequest) request_; + } + return io.greptime.v1.Database.RowDeleteRequest.getDefaultInstance(); + } else { + if (requestCase_ == 7) { + return rowDeleteBuilder_.getMessage(); + } + return io.greptime.v1.Database.RowDeleteRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + */ + public Builder setRowDelete(io.greptime.v1.Database.RowDeleteRequest value) { + if (rowDeleteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + rowDeleteBuilder_.setMessage(value); + } + requestCase_ = 7; + return this; + } + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + */ + public Builder setRowDelete( + io.greptime.v1.Database.RowDeleteRequest.Builder builderForValue) { + if (rowDeleteBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + rowDeleteBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 7; + return this; + } + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + */ + public Builder mergeRowDelete(io.greptime.v1.Database.RowDeleteRequest value) { + if (rowDeleteBuilder_ == null) { + if (requestCase_ == 7 && + request_ != io.greptime.v1.Database.RowDeleteRequest.getDefaultInstance()) { + request_ = io.greptime.v1.Database.RowDeleteRequest.newBuilder((io.greptime.v1.Database.RowDeleteRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 7) { + rowDeleteBuilder_.mergeFrom(value); + } else { + rowDeleteBuilder_.setMessage(value); + } + } + requestCase_ = 7; + return this; + } + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + */ + public Builder clearRowDelete() { + if (rowDeleteBuilder_ == null) { + if (requestCase_ == 7) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 7) { + requestCase_ = 0; + request_ = null; + } + rowDeleteBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + */ + public io.greptime.v1.Database.RowDeleteRequest.Builder getRowDeleteBuilder() { + return getRowDeleteFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + */ + @java.lang.Override + public io.greptime.v1.Database.RowDeleteRequestOrBuilder getRowDeleteOrBuilder() { + if ((requestCase_ == 7) && (rowDeleteBuilder_ != null)) { + return rowDeleteBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 7) { + return (io.greptime.v1.Database.RowDeleteRequest) request_; + } + return io.greptime.v1.Database.RowDeleteRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.RowDeleteRequest row_delete = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Database.RowDeleteRequest, io.greptime.v1.Database.RowDeleteRequest.Builder, io.greptime.v1.Database.RowDeleteRequestOrBuilder> + getRowDeleteFieldBuilder() { + if (rowDeleteBuilder_ == null) { + if (!(requestCase_ == 7)) { + request_ = io.greptime.v1.Database.RowDeleteRequest.getDefaultInstance(); + } + rowDeleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Database.RowDeleteRequest, io.greptime.v1.Database.RowDeleteRequest.Builder, io.greptime.v1.Database.RowDeleteRequestOrBuilder>( + (io.greptime.v1.Database.RowDeleteRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 7; + onChanged();; + return rowDeleteBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6896,6 +7356,2692 @@ public final class Database { } + public interface RowInsertRequestsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.RowInsertRequests) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + java.util.List + getInsertsList(); + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + io.greptime.v1.Database.RowInsertRequest getInserts(int index); + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + int getInsertsCount(); + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + java.util.List + getInsertsOrBuilderList(); + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + io.greptime.v1.Database.RowInsertRequestOrBuilder getInsertsOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.RowInsertRequests} + */ + public static final class RowInsertRequests extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.RowInsertRequests) + RowInsertRequestsOrBuilder { + private static final long serialVersionUID = 0L; + // Use RowInsertRequests.newBuilder() to construct. + private RowInsertRequests(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RowInsertRequests() { + inserts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RowInsertRequests(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RowInsertRequests( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + inserts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + inserts_.add( + input.readMessage(io.greptime.v1.Database.RowInsertRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + inserts_ = java.util.Collections.unmodifiableList(inserts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowInsertRequests_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowInsertRequests_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Database.RowInsertRequests.class, io.greptime.v1.Database.RowInsertRequests.Builder.class); + } + + public static final int INSERTS_FIELD_NUMBER = 1; + private java.util.List inserts_; + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + @java.lang.Override + public java.util.List getInsertsList() { + return inserts_; + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + @java.lang.Override + public java.util.List + getInsertsOrBuilderList() { + return inserts_; + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + @java.lang.Override + public int getInsertsCount() { + return inserts_.size(); + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequest getInserts(int index) { + return inserts_.get(index); + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequestOrBuilder getInsertsOrBuilder( + int index) { + return inserts_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < inserts_.size(); i++) { + output.writeMessage(1, inserts_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < inserts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, inserts_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Database.RowInsertRequests)) { + return super.equals(obj); + } + io.greptime.v1.Database.RowInsertRequests other = (io.greptime.v1.Database.RowInsertRequests) obj; + + if (!getInsertsList() + .equals(other.getInsertsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInsertsCount() > 0) { + hash = (37 * hash) + INSERTS_FIELD_NUMBER; + hash = (53 * hash) + getInsertsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Database.RowInsertRequests parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Database.RowInsertRequests parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Database.RowInsertRequests parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Database.RowInsertRequests parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Database.RowInsertRequests parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Database.RowInsertRequests parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Database.RowInsertRequests parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Database.RowInsertRequests parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Database.RowInsertRequests parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Database.RowInsertRequests parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Database.RowInsertRequests parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Database.RowInsertRequests parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Database.RowInsertRequests prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.RowInsertRequests} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.RowInsertRequests) + io.greptime.v1.Database.RowInsertRequestsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowInsertRequests_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowInsertRequests_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Database.RowInsertRequests.class, io.greptime.v1.Database.RowInsertRequests.Builder.class); + } + + // Construct using io.greptime.v1.Database.RowInsertRequests.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInsertsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (insertsBuilder_ == null) { + inserts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + insertsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowInsertRequests_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequests getDefaultInstanceForType() { + return io.greptime.v1.Database.RowInsertRequests.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequests build() { + io.greptime.v1.Database.RowInsertRequests result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequests buildPartial() { + io.greptime.v1.Database.RowInsertRequests result = new io.greptime.v1.Database.RowInsertRequests(this); + int from_bitField0_ = bitField0_; + if (insertsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + inserts_ = java.util.Collections.unmodifiableList(inserts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.inserts_ = inserts_; + } else { + result.inserts_ = insertsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Database.RowInsertRequests) { + return mergeFrom((io.greptime.v1.Database.RowInsertRequests)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Database.RowInsertRequests other) { + if (other == io.greptime.v1.Database.RowInsertRequests.getDefaultInstance()) return this; + if (insertsBuilder_ == null) { + if (!other.inserts_.isEmpty()) { + if (inserts_.isEmpty()) { + inserts_ = other.inserts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInsertsIsMutable(); + inserts_.addAll(other.inserts_); + } + onChanged(); + } + } else { + if (!other.inserts_.isEmpty()) { + if (insertsBuilder_.isEmpty()) { + insertsBuilder_.dispose(); + insertsBuilder_ = null; + inserts_ = other.inserts_; + bitField0_ = (bitField0_ & ~0x00000001); + insertsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInsertsFieldBuilder() : null; + } else { + insertsBuilder_.addAllMessages(other.inserts_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Database.RowInsertRequests parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Database.RowInsertRequests) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List inserts_ = + java.util.Collections.emptyList(); + private void ensureInsertsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + inserts_ = new java.util.ArrayList(inserts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Database.RowInsertRequest, io.greptime.v1.Database.RowInsertRequest.Builder, io.greptime.v1.Database.RowInsertRequestOrBuilder> insertsBuilder_; + + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public java.util.List getInsertsList() { + if (insertsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inserts_); + } else { + return insertsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public int getInsertsCount() { + if (insertsBuilder_ == null) { + return inserts_.size(); + } else { + return insertsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public io.greptime.v1.Database.RowInsertRequest getInserts(int index) { + if (insertsBuilder_ == null) { + return inserts_.get(index); + } else { + return insertsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public Builder setInserts( + int index, io.greptime.v1.Database.RowInsertRequest value) { + if (insertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInsertsIsMutable(); + inserts_.set(index, value); + onChanged(); + } else { + insertsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public Builder setInserts( + int index, io.greptime.v1.Database.RowInsertRequest.Builder builderForValue) { + if (insertsBuilder_ == null) { + ensureInsertsIsMutable(); + inserts_.set(index, builderForValue.build()); + onChanged(); + } else { + insertsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public Builder addInserts(io.greptime.v1.Database.RowInsertRequest value) { + if (insertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInsertsIsMutable(); + inserts_.add(value); + onChanged(); + } else { + insertsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public Builder addInserts( + int index, io.greptime.v1.Database.RowInsertRequest value) { + if (insertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInsertsIsMutable(); + inserts_.add(index, value); + onChanged(); + } else { + insertsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public Builder addInserts( + io.greptime.v1.Database.RowInsertRequest.Builder builderForValue) { + if (insertsBuilder_ == null) { + ensureInsertsIsMutable(); + inserts_.add(builderForValue.build()); + onChanged(); + } else { + insertsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public Builder addInserts( + int index, io.greptime.v1.Database.RowInsertRequest.Builder builderForValue) { + if (insertsBuilder_ == null) { + ensureInsertsIsMutable(); + inserts_.add(index, builderForValue.build()); + onChanged(); + } else { + insertsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public Builder addAllInserts( + java.lang.Iterable values) { + if (insertsBuilder_ == null) { + ensureInsertsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inserts_); + onChanged(); + } else { + insertsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public Builder clearInserts() { + if (insertsBuilder_ == null) { + inserts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + insertsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public Builder removeInserts(int index) { + if (insertsBuilder_ == null) { + ensureInsertsIsMutable(); + inserts_.remove(index); + onChanged(); + } else { + insertsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public io.greptime.v1.Database.RowInsertRequest.Builder getInsertsBuilder( + int index) { + return getInsertsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public io.greptime.v1.Database.RowInsertRequestOrBuilder getInsertsOrBuilder( + int index) { + if (insertsBuilder_ == null) { + return inserts_.get(index); } else { + return insertsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public java.util.List + getInsertsOrBuilderList() { + if (insertsBuilder_ != null) { + return insertsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inserts_); + } + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public io.greptime.v1.Database.RowInsertRequest.Builder addInsertsBuilder() { + return getInsertsFieldBuilder().addBuilder( + io.greptime.v1.Database.RowInsertRequest.getDefaultInstance()); + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public io.greptime.v1.Database.RowInsertRequest.Builder addInsertsBuilder( + int index) { + return getInsertsFieldBuilder().addBuilder( + index, io.greptime.v1.Database.RowInsertRequest.getDefaultInstance()); + } + /** + * repeated .greptime.v1.RowInsertRequest inserts = 1; + */ + public java.util.List + getInsertsBuilderList() { + return getInsertsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Database.RowInsertRequest, io.greptime.v1.Database.RowInsertRequest.Builder, io.greptime.v1.Database.RowInsertRequestOrBuilder> + getInsertsFieldBuilder() { + if (insertsBuilder_ == null) { + insertsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Database.RowInsertRequest, io.greptime.v1.Database.RowInsertRequest.Builder, io.greptime.v1.Database.RowInsertRequestOrBuilder>( + inserts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + inserts_ = null; + } + return insertsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.RowInsertRequests) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.RowInsertRequests) + private static final io.greptime.v1.Database.RowInsertRequests DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Database.RowInsertRequests(); + } + + public static io.greptime.v1.Database.RowInsertRequests getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RowInsertRequests parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RowInsertRequests(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequests getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RowInsertRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.RowInsertRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string table_name = 1; + * @return The tableName. + */ + java.lang.String getTableName(); + /** + * string table_name = 1; + * @return The bytes for tableName. + */ + com.google.protobuf.ByteString + getTableNameBytes(); + + /** + *
+     * Data is represented here.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + * @return Whether the rows field is set. + */ + boolean hasRows(); + /** + *
+     * Data is represented here.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + * @return The rows. + */ + io.greptime.v1.RowData.Rows getRows(); + /** + *
+     * Data is represented here.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + */ + io.greptime.v1.RowData.RowsOrBuilder getRowsOrBuilder(); + + /** + *
+     * The region number of current insert request.
+     * 
+ * + * uint32 region_number = 3; + * @return The regionNumber. + */ + int getRegionNumber(); + } + /** + * Protobuf type {@code greptime.v1.RowInsertRequest} + */ + public static final class RowInsertRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.RowInsertRequest) + RowInsertRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RowInsertRequest.newBuilder() to construct. + private RowInsertRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RowInsertRequest() { + tableName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RowInsertRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RowInsertRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + tableName_ = s; + break; + } + case 18: { + io.greptime.v1.RowData.Rows.Builder subBuilder = null; + if (rows_ != null) { + subBuilder = rows_.toBuilder(); + } + rows_ = input.readMessage(io.greptime.v1.RowData.Rows.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rows_); + rows_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + regionNumber_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowInsertRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowInsertRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Database.RowInsertRequest.class, io.greptime.v1.Database.RowInsertRequest.Builder.class); + } + + public static final int TABLE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object tableName_; + /** + * string table_name = 1; + * @return The tableName. + */ + @java.lang.Override + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + 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(); + tableName_ = s; + return s; + } + } + /** + * string table_name = 1; + * @return The bytes for tableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROWS_FIELD_NUMBER = 2; + private io.greptime.v1.RowData.Rows rows_; + /** + *
+     * Data is represented here.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + * @return Whether the rows field is set. + */ + @java.lang.Override + public boolean hasRows() { + return rows_ != null; + } + /** + *
+     * Data is represented here.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + * @return The rows. + */ + @java.lang.Override + public io.greptime.v1.RowData.Rows getRows() { + return rows_ == null ? io.greptime.v1.RowData.Rows.getDefaultInstance() : rows_; + } + /** + *
+     * Data is represented here.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + */ + @java.lang.Override + public io.greptime.v1.RowData.RowsOrBuilder getRowsOrBuilder() { + return getRows(); + } + + public static final int REGION_NUMBER_FIELD_NUMBER = 3; + private int regionNumber_; + /** + *
+     * The region number of current insert request.
+     * 
+ * + * uint32 region_number = 3; + * @return The regionNumber. + */ + @java.lang.Override + public int getRegionNumber() { + return regionNumber_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableName_); + } + if (rows_ != null) { + output.writeMessage(2, getRows()); + } + if (regionNumber_ != 0) { + output.writeUInt32(3, regionNumber_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tableName_); + } + if (rows_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRows()); + } + if (regionNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, regionNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Database.RowInsertRequest)) { + return super.equals(obj); + } + io.greptime.v1.Database.RowInsertRequest other = (io.greptime.v1.Database.RowInsertRequest) obj; + + if (!getTableName() + .equals(other.getTableName())) return false; + if (hasRows() != other.hasRows()) return false; + if (hasRows()) { + if (!getRows() + .equals(other.getRows())) return false; + } + if (getRegionNumber() + != other.getRegionNumber()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTableName().hashCode(); + if (hasRows()) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRows().hashCode(); + } + hash = (37 * hash) + REGION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getRegionNumber(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Database.RowInsertRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Database.RowInsertRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Database.RowInsertRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Database.RowInsertRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Database.RowInsertRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Database.RowInsertRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Database.RowInsertRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Database.RowInsertRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Database.RowInsertRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Database.RowInsertRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Database.RowInsertRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Database.RowInsertRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Database.RowInsertRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.RowInsertRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.RowInsertRequest) + io.greptime.v1.Database.RowInsertRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowInsertRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowInsertRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Database.RowInsertRequest.class, io.greptime.v1.Database.RowInsertRequest.Builder.class); + } + + // Construct using io.greptime.v1.Database.RowInsertRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + tableName_ = ""; + + if (rowsBuilder_ == null) { + rows_ = null; + } else { + rows_ = null; + rowsBuilder_ = null; + } + regionNumber_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowInsertRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequest getDefaultInstanceForType() { + return io.greptime.v1.Database.RowInsertRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequest build() { + io.greptime.v1.Database.RowInsertRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequest buildPartial() { + io.greptime.v1.Database.RowInsertRequest result = new io.greptime.v1.Database.RowInsertRequest(this); + result.tableName_ = tableName_; + if (rowsBuilder_ == null) { + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + result.regionNumber_ = regionNumber_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Database.RowInsertRequest) { + return mergeFrom((io.greptime.v1.Database.RowInsertRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Database.RowInsertRequest other) { + if (other == io.greptime.v1.Database.RowInsertRequest.getDefaultInstance()) return this; + if (!other.getTableName().isEmpty()) { + tableName_ = other.tableName_; + onChanged(); + } + if (other.hasRows()) { + mergeRows(other.getRows()); + } + if (other.getRegionNumber() != 0) { + setRegionNumber(other.getRegionNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Database.RowInsertRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Database.RowInsertRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object tableName_ = ""; + /** + * string table_name = 1; + * @return The tableName. + */ + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string table_name = 1; + * @return The bytes for tableName. + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string table_name = 1; + * @param value The tableName to set. + * @return This builder for chaining. + */ + public Builder setTableName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tableName_ = value; + onChanged(); + return this; + } + /** + * string table_name = 1; + * @return This builder for chaining. + */ + public Builder clearTableName() { + + tableName_ = getDefaultInstance().getTableName(); + onChanged(); + return this; + } + /** + * string table_name = 1; + * @param value The bytes for tableName to set. + * @return This builder for chaining. + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tableName_ = value; + onChanged(); + return this; + } + + private io.greptime.v1.RowData.Rows rows_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.Rows, io.greptime.v1.RowData.Rows.Builder, io.greptime.v1.RowData.RowsOrBuilder> rowsBuilder_; + /** + *
+       * Data is represented here.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + * @return Whether the rows field is set. + */ + public boolean hasRows() { + return rowsBuilder_ != null || rows_ != null; + } + /** + *
+       * Data is represented here.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + * @return The rows. + */ + public io.greptime.v1.RowData.Rows getRows() { + if (rowsBuilder_ == null) { + return rows_ == null ? io.greptime.v1.RowData.Rows.getDefaultInstance() : rows_; + } else { + return rowsBuilder_.getMessage(); + } + } + /** + *
+       * Data is represented here.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public Builder setRows(io.greptime.v1.RowData.Rows value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rows_ = value; + onChanged(); + } else { + rowsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Data is represented here.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public Builder setRows( + io.greptime.v1.RowData.Rows.Builder builderForValue) { + if (rowsBuilder_ == null) { + rows_ = builderForValue.build(); + onChanged(); + } else { + rowsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Data is represented here.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public Builder mergeRows(io.greptime.v1.RowData.Rows value) { + if (rowsBuilder_ == null) { + if (rows_ != null) { + rows_ = + io.greptime.v1.RowData.Rows.newBuilder(rows_).mergeFrom(value).buildPartial(); + } else { + rows_ = value; + } + onChanged(); + } else { + rowsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Data is represented here.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = null; + onChanged(); + } else { + rows_ = null; + rowsBuilder_ = null; + } + + return this; + } + /** + *
+       * Data is represented here.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public io.greptime.v1.RowData.Rows.Builder getRowsBuilder() { + + onChanged(); + return getRowsFieldBuilder().getBuilder(); + } + /** + *
+       * Data is represented here.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public io.greptime.v1.RowData.RowsOrBuilder getRowsOrBuilder() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilder(); + } else { + return rows_ == null ? + io.greptime.v1.RowData.Rows.getDefaultInstance() : rows_; + } + } + /** + *
+       * Data is represented here.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.Rows, io.greptime.v1.RowData.Rows.Builder, io.greptime.v1.RowData.RowsOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.Rows, io.greptime.v1.RowData.Rows.Builder, io.greptime.v1.RowData.RowsOrBuilder>( + getRows(), + getParentForChildren(), + isClean()); + rows_ = null; + } + return rowsBuilder_; + } + + private int regionNumber_ ; + /** + *
+       * The region number of current insert request.
+       * 
+ * + * uint32 region_number = 3; + * @return The regionNumber. + */ + @java.lang.Override + public int getRegionNumber() { + return regionNumber_; + } + /** + *
+       * The region number of current insert request.
+       * 
+ * + * uint32 region_number = 3; + * @param value The regionNumber to set. + * @return This builder for chaining. + */ + public Builder setRegionNumber(int value) { + + regionNumber_ = value; + onChanged(); + return this; + } + /** + *
+       * The region number of current insert request.
+       * 
+ * + * uint32 region_number = 3; + * @return This builder for chaining. + */ + public Builder clearRegionNumber() { + + regionNumber_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.RowInsertRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.RowInsertRequest) + private static final io.greptime.v1.Database.RowInsertRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Database.RowInsertRequest(); + } + + public static io.greptime.v1.Database.RowInsertRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RowInsertRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RowInsertRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Database.RowInsertRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RowDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.RowDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The table name to delete from. Catalog name and schema name are in the
+     * `RequestHeader`.
+     * 
+ * + * string table_name = 1; + * @return The tableName. + */ + java.lang.String getTableName(); + /** + *
+     * The table name to delete from. Catalog name and schema name are in the
+     * `RequestHeader`.
+     * 
+ * + * string table_name = 1; + * @return The bytes for tableName. + */ + com.google.protobuf.ByteString + getTableNameBytes(); + + /** + *
+     * The data to delete.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + * @return Whether the rows field is set. + */ + boolean hasRows(); + /** + *
+     * The data to delete.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + * @return The rows. + */ + io.greptime.v1.RowData.Rows getRows(); + /** + *
+     * The data to delete.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + */ + io.greptime.v1.RowData.RowsOrBuilder getRowsOrBuilder(); + + /** + *
+     * The region number of current delete request.
+     * 
+ * + * uint32 region_number = 3; + * @return The regionNumber. + */ + int getRegionNumber(); + } + /** + * Protobuf type {@code greptime.v1.RowDeleteRequest} + */ + public static final class RowDeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.RowDeleteRequest) + RowDeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RowDeleteRequest.newBuilder() to construct. + private RowDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RowDeleteRequest() { + tableName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RowDeleteRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RowDeleteRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + tableName_ = s; + break; + } + case 18: { + io.greptime.v1.RowData.Rows.Builder subBuilder = null; + if (rows_ != null) { + subBuilder = rows_.toBuilder(); + } + rows_ = input.readMessage(io.greptime.v1.RowData.Rows.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rows_); + rows_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + regionNumber_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Database.RowDeleteRequest.class, io.greptime.v1.Database.RowDeleteRequest.Builder.class); + } + + public static final int TABLE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object tableName_; + /** + *
+     * The table name to delete from. Catalog name and schema name are in the
+     * `RequestHeader`.
+     * 
+ * + * string table_name = 1; + * @return The tableName. + */ + @java.lang.Override + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + 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(); + tableName_ = s; + return s; + } + } + /** + *
+     * The table name to delete from. Catalog name and schema name are in the
+     * `RequestHeader`.
+     * 
+ * + * string table_name = 1; + * @return The bytes for tableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROWS_FIELD_NUMBER = 2; + private io.greptime.v1.RowData.Rows rows_; + /** + *
+     * The data to delete.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + * @return Whether the rows field is set. + */ + @java.lang.Override + public boolean hasRows() { + return rows_ != null; + } + /** + *
+     * The data to delete.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + * @return The rows. + */ + @java.lang.Override + public io.greptime.v1.RowData.Rows getRows() { + return rows_ == null ? io.greptime.v1.RowData.Rows.getDefaultInstance() : rows_; + } + /** + *
+     * The data to delete.
+     * 
+ * + * .greptime.v1.Rows rows = 2; + */ + @java.lang.Override + public io.greptime.v1.RowData.RowsOrBuilder getRowsOrBuilder() { + return getRows(); + } + + public static final int REGION_NUMBER_FIELD_NUMBER = 3; + private int regionNumber_; + /** + *
+     * The region number of current delete request.
+     * 
+ * + * uint32 region_number = 3; + * @return The regionNumber. + */ + @java.lang.Override + public int getRegionNumber() { + return regionNumber_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableName_); + } + if (rows_ != null) { + output.writeMessage(2, getRows()); + } + if (regionNumber_ != 0) { + output.writeUInt32(3, regionNumber_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tableName_); + } + if (rows_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRows()); + } + if (regionNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, regionNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Database.RowDeleteRequest)) { + return super.equals(obj); + } + io.greptime.v1.Database.RowDeleteRequest other = (io.greptime.v1.Database.RowDeleteRequest) obj; + + if (!getTableName() + .equals(other.getTableName())) return false; + if (hasRows() != other.hasRows()) return false; + if (hasRows()) { + if (!getRows() + .equals(other.getRows())) return false; + } + if (getRegionNumber() + != other.getRegionNumber()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTableName().hashCode(); + if (hasRows()) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRows().hashCode(); + } + hash = (37 * hash) + REGION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getRegionNumber(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Database.RowDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Database.RowDeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Database.RowDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Database.RowDeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Database.RowDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Database.RowDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Database.RowDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Database.RowDeleteRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Database.RowDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Database.RowDeleteRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Database.RowDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Database.RowDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Database.RowDeleteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.RowDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.RowDeleteRequest) + io.greptime.v1.Database.RowDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Database.RowDeleteRequest.class, io.greptime.v1.Database.RowDeleteRequest.Builder.class); + } + + // Construct using io.greptime.v1.Database.RowDeleteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + tableName_ = ""; + + if (rowsBuilder_ == null) { + rows_ = null; + } else { + rows_ = null; + rowsBuilder_ = null; + } + regionNumber_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Database.internal_static_greptime_v1_RowDeleteRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Database.RowDeleteRequest getDefaultInstanceForType() { + return io.greptime.v1.Database.RowDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Database.RowDeleteRequest build() { + io.greptime.v1.Database.RowDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Database.RowDeleteRequest buildPartial() { + io.greptime.v1.Database.RowDeleteRequest result = new io.greptime.v1.Database.RowDeleteRequest(this); + result.tableName_ = tableName_; + if (rowsBuilder_ == null) { + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + result.regionNumber_ = regionNumber_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Database.RowDeleteRequest) { + return mergeFrom((io.greptime.v1.Database.RowDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Database.RowDeleteRequest other) { + if (other == io.greptime.v1.Database.RowDeleteRequest.getDefaultInstance()) return this; + if (!other.getTableName().isEmpty()) { + tableName_ = other.tableName_; + onChanged(); + } + if (other.hasRows()) { + mergeRows(other.getRows()); + } + if (other.getRegionNumber() != 0) { + setRegionNumber(other.getRegionNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Database.RowDeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Database.RowDeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object tableName_ = ""; + /** + *
+       * The table name to delete from. Catalog name and schema name are in the
+       * `RequestHeader`.
+       * 
+ * + * string table_name = 1; + * @return The tableName. + */ + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The table name to delete from. Catalog name and schema name are in the
+       * `RequestHeader`.
+       * 
+ * + * string table_name = 1; + * @return The bytes for tableName. + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The table name to delete from. Catalog name and schema name are in the
+       * `RequestHeader`.
+       * 
+ * + * string table_name = 1; + * @param value The tableName to set. + * @return This builder for chaining. + */ + public Builder setTableName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tableName_ = value; + onChanged(); + return this; + } + /** + *
+       * The table name to delete from. Catalog name and schema name are in the
+       * `RequestHeader`.
+       * 
+ * + * string table_name = 1; + * @return This builder for chaining. + */ + public Builder clearTableName() { + + tableName_ = getDefaultInstance().getTableName(); + onChanged(); + return this; + } + /** + *
+       * The table name to delete from. Catalog name and schema name are in the
+       * `RequestHeader`.
+       * 
+ * + * string table_name = 1; + * @param value The bytes for tableName to set. + * @return This builder for chaining. + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tableName_ = value; + onChanged(); + return this; + } + + private io.greptime.v1.RowData.Rows rows_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.Rows, io.greptime.v1.RowData.Rows.Builder, io.greptime.v1.RowData.RowsOrBuilder> rowsBuilder_; + /** + *
+       * The data to delete.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + * @return Whether the rows field is set. + */ + public boolean hasRows() { + return rowsBuilder_ != null || rows_ != null; + } + /** + *
+       * The data to delete.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + * @return The rows. + */ + public io.greptime.v1.RowData.Rows getRows() { + if (rowsBuilder_ == null) { + return rows_ == null ? io.greptime.v1.RowData.Rows.getDefaultInstance() : rows_; + } else { + return rowsBuilder_.getMessage(); + } + } + /** + *
+       * The data to delete.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public Builder setRows(io.greptime.v1.RowData.Rows value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rows_ = value; + onChanged(); + } else { + rowsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The data to delete.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public Builder setRows( + io.greptime.v1.RowData.Rows.Builder builderForValue) { + if (rowsBuilder_ == null) { + rows_ = builderForValue.build(); + onChanged(); + } else { + rowsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The data to delete.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public Builder mergeRows(io.greptime.v1.RowData.Rows value) { + if (rowsBuilder_ == null) { + if (rows_ != null) { + rows_ = + io.greptime.v1.RowData.Rows.newBuilder(rows_).mergeFrom(value).buildPartial(); + } else { + rows_ = value; + } + onChanged(); + } else { + rowsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The data to delete.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = null; + onChanged(); + } else { + rows_ = null; + rowsBuilder_ = null; + } + + return this; + } + /** + *
+       * The data to delete.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public io.greptime.v1.RowData.Rows.Builder getRowsBuilder() { + + onChanged(); + return getRowsFieldBuilder().getBuilder(); + } + /** + *
+       * The data to delete.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + public io.greptime.v1.RowData.RowsOrBuilder getRowsOrBuilder() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilder(); + } else { + return rows_ == null ? + io.greptime.v1.RowData.Rows.getDefaultInstance() : rows_; + } + } + /** + *
+       * The data to delete.
+       * 
+ * + * .greptime.v1.Rows rows = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.Rows, io.greptime.v1.RowData.Rows.Builder, io.greptime.v1.RowData.RowsOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.Rows, io.greptime.v1.RowData.Rows.Builder, io.greptime.v1.RowData.RowsOrBuilder>( + getRows(), + getParentForChildren(), + isClean()); + rows_ = null; + } + return rowsBuilder_; + } + + private int regionNumber_ ; + /** + *
+       * The region number of current delete request.
+       * 
+ * + * uint32 region_number = 3; + * @return The regionNumber. + */ + @java.lang.Override + public int getRegionNumber() { + return regionNumber_; + } + /** + *
+       * The region number of current delete request.
+       * 
+ * + * uint32 region_number = 3; + * @param value The regionNumber to set. + * @return This builder for chaining. + */ + public Builder setRegionNumber(int value) { + + regionNumber_ = value; + onChanged(); + return this; + } + /** + *
+       * The region number of current delete request.
+       * 
+ * + * uint32 region_number = 3; + * @return This builder for chaining. + */ + public Builder clearRegionNumber() { + + regionNumber_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.RowDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.RowDeleteRequest) + private static final io.greptime.v1.Database.RowDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Database.RowDeleteRequest(); + } + + public static io.greptime.v1.Database.RowDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RowDeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RowDeleteRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Database.RowDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_GreptimeRequest_descriptor; private static final @@ -6926,6 +10072,21 @@ public final class Database { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_DeleteRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_RowInsertRequests_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_RowInsertRequests_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_RowInsertRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_RowInsertRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_RowDeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_RowDeleteRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -6937,41 +10098,51 @@ public final class Database { java.lang.String[] descriptorData = { "\n\032greptime/v1/database.proto\022\013greptime.v" + "1\032\025greptime/v1/ddl.proto\032\030greptime/v1/co" + - "lumn.proto\032\026greptime/v1/prom.proto\032\030grep" + - "time/v1/common.proto\"\372\001\n\017GreptimeRequest" + - "\022*\n\006header\030\001 \001(\0132\032.greptime.v1.RequestHe" + - "ader\022.\n\007inserts\030\002 \001(\0132\033.greptime.v1.Inse" + - "rtRequestsH\000\022*\n\005query\030\003 \001(\0132\031.greptime.v" + - "1.QueryRequestH\000\022&\n\003ddl\030\004 \001(\0132\027.greptime" + - ".v1.DdlRequestH\000\022,\n\006delete\030\005 \001(\0132\032.grept" + - "ime.v1.DeleteRequestH\000B\t\n\007request\"\177\n\020Gre" + - "ptimeResponse\022+\n\006header\030\001 \001(\0132\033.greptime" + - ".v1.ResponseHeader\0222\n\raffected_rows\030\002 \001(" + - "\0132\031.greptime.v1.AffectedRowsH\000B\n\n\010respon" + - "se\"w\n\014QueryRequest\022\r\n\003sql\030\001 \001(\tH\000\022\026\n\014log" + - "ical_plan\030\002 \001(\014H\000\0227\n\020prom_range_query\030\003 " + - "\001(\0132\033.greptime.v1.PromRangeQueryH\000B\007\n\005qu" + - "ery\"=\n\016InsertRequests\022+\n\007inserts\030\001 \003(\0132\032" + - ".greptime.v1.InsertRequest\"s\n\rInsertRequ" + - "est\022\022\n\ntable_name\030\001 \001(\t\022$\n\007columns\030\003 \003(\013" + - "2\023.greptime.v1.Column\022\021\n\trow_count\030\004 \001(\r" + - "\022\025\n\rregion_number\030\005 \001(\r\"w\n\rDeleteRequest" + - "\022\022\n\ntable_name\030\001 \001(\t\022\025\n\rregion_number\030\002 " + - "\001(\r\022(\n\013key_columns\030\003 \003(\0132\023.greptime.v1.C" + - "olumn\022\021\n\trow_count\030\004 \001(\r2\252\001\n\020GreptimeDat" + - "abase\022E\n\006Handle\022\034.greptime.v1.GreptimeRe" + - "quest\032\035.greptime.v1.GreptimeResponse\022O\n\016" + - "HandleRequests\022\034.greptime.v1.GreptimeReq" + - "uest\032\035.greptime.v1.GreptimeResponse(\001BQ\n" + - "\016io.greptime.v1B\010DatabaseZ5github.com/Gr" + - "eptimeTeam/greptime-proto/go/greptime/v1" + - "b\006proto3" + "lumn.proto\032\025greptime/v1/row.proto\032\026grept" + + "ime/v1/prom.proto\032\030greptime/v1/common.pr" + + "oto\"\346\002\n\017GreptimeRequest\022*\n\006header\030\001 \001(\0132" + + "\032.greptime.v1.RequestHeader\022.\n\007inserts\030\002" + + " \001(\0132\033.greptime.v1.InsertRequestsH\000\022*\n\005q" + + "uery\030\003 \001(\0132\031.greptime.v1.QueryRequestH\000\022" + + "&\n\003ddl\030\004 \001(\0132\027.greptime.v1.DdlRequestH\000\022" + + ",\n\006delete\030\005 \001(\0132\032.greptime.v1.DeleteRequ" + + "estH\000\0225\n\013row_inserts\030\006 \001(\0132\036.greptime.v1" + + ".RowInsertRequestsH\000\0223\n\nrow_delete\030\007 \001(\013" + + "2\035.greptime.v1.RowDeleteRequestH\000B\t\n\007req" + + "uest\"\177\n\020GreptimeResponse\022+\n\006header\030\001 \001(\013" + + "2\033.greptime.v1.ResponseHeader\0222\n\raffecte" + + "d_rows\030\002 \001(\0132\031.greptime.v1.AffectedRowsH" + + "\000B\n\n\010response\"w\n\014QueryRequest\022\r\n\003sql\030\001 \001" + + "(\tH\000\022\026\n\014logical_plan\030\002 \001(\014H\000\0227\n\020prom_ran" + + "ge_query\030\003 \001(\0132\033.greptime.v1.PromRangeQu" + + "eryH\000B\007\n\005query\"=\n\016InsertRequests\022+\n\007inse" + + "rts\030\001 \003(\0132\032.greptime.v1.InsertRequest\"s\n" + + "\rInsertRequest\022\022\n\ntable_name\030\001 \001(\t\022$\n\007co" + + "lumns\030\003 \003(\0132\023.greptime.v1.Column\022\021\n\trow_" + + "count\030\004 \001(\r\022\025\n\rregion_number\030\005 \001(\r\"w\n\rDe" + + "leteRequest\022\022\n\ntable_name\030\001 \001(\t\022\025\n\rregio" + + "n_number\030\002 \001(\r\022(\n\013key_columns\030\003 \003(\0132\023.gr" + + "eptime.v1.Column\022\021\n\trow_count\030\004 \001(\r\"C\n\021R" + + "owInsertRequests\022.\n\007inserts\030\001 \003(\0132\035.grep" + + "time.v1.RowInsertRequest\"^\n\020RowInsertReq" + + "uest\022\022\n\ntable_name\030\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021" + + ".greptime.v1.Rows\022\025\n\rregion_number\030\003 \001(\r" + + "\"^\n\020RowDeleteRequest\022\022\n\ntable_name\030\001 \001(\t" + + "\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\022\025\n\rreg" + + "ion_number\030\003 \001(\r2\252\001\n\020GreptimeDatabase\022E\n" + + "\006Handle\022\034.greptime.v1.GreptimeRequest\032\035." + + "greptime.v1.GreptimeResponse\022O\n\016HandleRe" + + "quests\022\034.greptime.v1.GreptimeRequest\032\035.g" + + "reptime.v1.GreptimeResponse(\001BQ\n\016io.grep" + + "time.v1B\010DatabaseZ5github.com/GreptimeTe" + + "am/greptime-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { io.greptime.v1.Ddl.getDescriptor(), io.greptime.v1.Columns.getDescriptor(), + io.greptime.v1.RowData.getDescriptor(), io.greptime.v1.Prometheus.getDescriptor(), io.greptime.v1.Common.getDescriptor(), }); @@ -6980,7 +10151,7 @@ public final class Database { internal_static_greptime_v1_GreptimeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_GreptimeRequest_descriptor, - new java.lang.String[] { "Header", "Inserts", "Query", "Ddl", "Delete", "Request", }); + new java.lang.String[] { "Header", "Inserts", "Query", "Ddl", "Delete", "RowInserts", "RowDelete", "Request", }); internal_static_greptime_v1_GreptimeResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_greptime_v1_GreptimeResponse_fieldAccessorTable = new @@ -7011,8 +10182,27 @@ public final class Database { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DeleteRequest_descriptor, new java.lang.String[] { "TableName", "RegionNumber", "KeyColumns", "RowCount", }); + internal_static_greptime_v1_RowInsertRequests_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_greptime_v1_RowInsertRequests_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_RowInsertRequests_descriptor, + new java.lang.String[] { "Inserts", }); + internal_static_greptime_v1_RowInsertRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_greptime_v1_RowInsertRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_RowInsertRequest_descriptor, + new java.lang.String[] { "TableName", "Rows", "RegionNumber", }); + internal_static_greptime_v1_RowDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_greptime_v1_RowDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_RowDeleteRequest_descriptor, + new java.lang.String[] { "TableName", "Rows", "RegionNumber", }); io.greptime.v1.Ddl.getDescriptor(); io.greptime.v1.Columns.getDescriptor(); + io.greptime.v1.RowData.getDescriptor(); io.greptime.v1.Prometheus.getDescriptor(); io.greptime.v1.Common.getDescriptor(); } diff --git a/java/src/main/java/io/greptime/v1/RowData.java b/java/src/main/java/io/greptime/v1/RowData.java new file mode 100644 index 0000000..45c825a --- /dev/null +++ b/java/src/main/java/io/greptime/v1/RowData.java @@ -0,0 +1,5847 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/row.proto + +package io.greptime.v1; + +public final class RowData { + private RowData() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface RowsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.Rows) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + java.util.List + getSchemaList(); + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + io.greptime.v1.RowData.ColumnSchema getSchema(int index); + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + int getSchemaCount(); + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + java.util.List + getSchemaOrBuilderList(); + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + io.greptime.v1.RowData.ColumnSchemaOrBuilder getSchemaOrBuilder( + int index); + + /** + * repeated .greptime.v1.Row rows = 2; + */ + java.util.List + getRowsList(); + /** + * repeated .greptime.v1.Row rows = 2; + */ + io.greptime.v1.RowData.Row getRows(int index); + /** + * repeated .greptime.v1.Row rows = 2; + */ + int getRowsCount(); + /** + * repeated .greptime.v1.Row rows = 2; + */ + java.util.List + getRowsOrBuilderList(); + /** + * repeated .greptime.v1.Row rows = 2; + */ + io.greptime.v1.RowData.RowOrBuilder getRowsOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.Rows} + */ + public static final class Rows extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.Rows) + RowsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Rows.newBuilder() to construct. + private Rows(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Rows() { + schema_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Rows(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Rows( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + schema_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + schema_.add( + input.readMessage(io.greptime.v1.RowData.ColumnSchema.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + rows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + rows_.add( + input.readMessage(io.greptime.v1.RowData.Row.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + schema_ = java.util.Collections.unmodifiableList(schema_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Rows_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Rows_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.Rows.class, io.greptime.v1.RowData.Rows.Builder.class); + } + + public static final int SCHEMA_FIELD_NUMBER = 1; + private java.util.List schema_; + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + @java.lang.Override + public java.util.List getSchemaList() { + return schema_; + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + @java.lang.Override + public java.util.List + getSchemaOrBuilderList() { + return schema_; + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + @java.lang.Override + public int getSchemaCount() { + return schema_.size(); + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + @java.lang.Override + public io.greptime.v1.RowData.ColumnSchema getSchema(int index) { + return schema_.get(index); + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + @java.lang.Override + public io.greptime.v1.RowData.ColumnSchemaOrBuilder getSchemaOrBuilder( + int index) { + return schema_.get(index); + } + + public static final int ROWS_FIELD_NUMBER = 2; + private java.util.List rows_; + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public java.util.List getRowsList() { + return rows_; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public java.util.List + getRowsOrBuilderList() { + return rows_; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public int getRowsCount() { + return rows_.size(); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public io.greptime.v1.RowData.Row getRows(int index) { + return rows_.get(index); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public io.greptime.v1.RowData.RowOrBuilder getRowsOrBuilder( + int index) { + return rows_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < schema_.size(); i++) { + output.writeMessage(1, schema_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(2, rows_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < schema_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, schema_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, rows_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.RowData.Rows)) { + return super.equals(obj); + } + io.greptime.v1.RowData.Rows other = (io.greptime.v1.RowData.Rows) obj; + + if (!getSchemaList() + .equals(other.getSchemaList())) return false; + if (!getRowsList() + .equals(other.getRowsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSchemaCount() > 0) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchemaList().hashCode(); + } + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.RowData.Rows parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.Rows parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.Rows parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.Rows parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.Rows parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.Rows parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.Rows parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.Rows parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.RowData.Rows parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.Rows parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.RowData.Rows parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.Rows parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.RowData.Rows prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.Rows} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.Rows) + io.greptime.v1.RowData.RowsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Rows_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Rows_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.Rows.class, io.greptime.v1.RowData.Rows.Builder.class); + } + + // Construct using io.greptime.v1.RowData.Rows.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSchemaFieldBuilder(); + getRowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (schemaBuilder_ == null) { + schema_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + schemaBuilder_.clear(); + } + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + rowsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Rows_descriptor; + } + + @java.lang.Override + public io.greptime.v1.RowData.Rows getDefaultInstanceForType() { + return io.greptime.v1.RowData.Rows.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.RowData.Rows build() { + io.greptime.v1.RowData.Rows result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.RowData.Rows buildPartial() { + io.greptime.v1.RowData.Rows result = new io.greptime.v1.RowData.Rows(this); + int from_bitField0_ = bitField0_; + if (schemaBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + schema_ = java.util.Collections.unmodifiableList(schema_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.schema_ = schema_; + } else { + result.schema_ = schemaBuilder_.build(); + } + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.RowData.Rows) { + return mergeFrom((io.greptime.v1.RowData.Rows)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.RowData.Rows other) { + if (other == io.greptime.v1.RowData.Rows.getDefaultInstance()) return this; + if (schemaBuilder_ == null) { + if (!other.schema_.isEmpty()) { + if (schema_.isEmpty()) { + schema_ = other.schema_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSchemaIsMutable(); + schema_.addAll(other.schema_); + } + onChanged(); + } + } else { + if (!other.schema_.isEmpty()) { + if (schemaBuilder_.isEmpty()) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + schema_ = other.schema_; + bitField0_ = (bitField0_ & ~0x00000001); + schemaBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSchemaFieldBuilder() : null; + } else { + schemaBuilder_.addAllMessages(other.schema_); + } + } + } + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); + } + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000002); + rowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRowsFieldBuilder() : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.RowData.Rows parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.RowData.Rows) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List schema_ = + java.util.Collections.emptyList(); + private void ensureSchemaIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + schema_ = new java.util.ArrayList(schema_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.ColumnSchema, io.greptime.v1.RowData.ColumnSchema.Builder, io.greptime.v1.RowData.ColumnSchemaOrBuilder> schemaBuilder_; + + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public java.util.List getSchemaList() { + if (schemaBuilder_ == null) { + return java.util.Collections.unmodifiableList(schema_); + } else { + return schemaBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public int getSchemaCount() { + if (schemaBuilder_ == null) { + return schema_.size(); + } else { + return schemaBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public io.greptime.v1.RowData.ColumnSchema getSchema(int index) { + if (schemaBuilder_ == null) { + return schema_.get(index); + } else { + return schemaBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public Builder setSchema( + int index, io.greptime.v1.RowData.ColumnSchema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemaIsMutable(); + schema_.set(index, value); + onChanged(); + } else { + schemaBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public Builder setSchema( + int index, io.greptime.v1.RowData.ColumnSchema.Builder builderForValue) { + if (schemaBuilder_ == null) { + ensureSchemaIsMutable(); + schema_.set(index, builderForValue.build()); + onChanged(); + } else { + schemaBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public Builder addSchema(io.greptime.v1.RowData.ColumnSchema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemaIsMutable(); + schema_.add(value); + onChanged(); + } else { + schemaBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public Builder addSchema( + int index, io.greptime.v1.RowData.ColumnSchema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemaIsMutable(); + schema_.add(index, value); + onChanged(); + } else { + schemaBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public Builder addSchema( + io.greptime.v1.RowData.ColumnSchema.Builder builderForValue) { + if (schemaBuilder_ == null) { + ensureSchemaIsMutable(); + schema_.add(builderForValue.build()); + onChanged(); + } else { + schemaBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public Builder addSchema( + int index, io.greptime.v1.RowData.ColumnSchema.Builder builderForValue) { + if (schemaBuilder_ == null) { + ensureSchemaIsMutable(); + schema_.add(index, builderForValue.build()); + onChanged(); + } else { + schemaBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public Builder addAllSchema( + java.lang.Iterable values) { + if (schemaBuilder_ == null) { + ensureSchemaIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, schema_); + onChanged(); + } else { + schemaBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + schema_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + schemaBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public Builder removeSchema(int index) { + if (schemaBuilder_ == null) { + ensureSchemaIsMutable(); + schema_.remove(index); + onChanged(); + } else { + schemaBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public io.greptime.v1.RowData.ColumnSchema.Builder getSchemaBuilder( + int index) { + return getSchemaFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public io.greptime.v1.RowData.ColumnSchemaOrBuilder getSchemaOrBuilder( + int index) { + if (schemaBuilder_ == null) { + return schema_.get(index); } else { + return schemaBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public java.util.List + getSchemaOrBuilderList() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(schema_); + } + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public io.greptime.v1.RowData.ColumnSchema.Builder addSchemaBuilder() { + return getSchemaFieldBuilder().addBuilder( + io.greptime.v1.RowData.ColumnSchema.getDefaultInstance()); + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public io.greptime.v1.RowData.ColumnSchema.Builder addSchemaBuilder( + int index) { + return getSchemaFieldBuilder().addBuilder( + index, io.greptime.v1.RowData.ColumnSchema.getDefaultInstance()); + } + /** + * repeated .greptime.v1.ColumnSchema schema = 1; + */ + public java.util.List + getSchemaBuilderList() { + return getSchemaFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.ColumnSchema, io.greptime.v1.RowData.ColumnSchema.Builder, io.greptime.v1.RowData.ColumnSchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.ColumnSchema, io.greptime.v1.RowData.ColumnSchema.Builder, io.greptime.v1.RowData.ColumnSchemaOrBuilder>( + schema_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + schema_ = null; + } + return schemaBuilder_; + } + + private java.util.List rows_ = + java.util.Collections.emptyList(); + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rows_ = new java.util.ArrayList(rows_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Row, io.greptime.v1.RowData.Row.Builder, io.greptime.v1.RowData.RowOrBuilder> rowsBuilder_; + + /** + * repeated .greptime.v1.Row rows = 2; + */ + public java.util.List getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder setRows( + int index, io.greptime.v1.RowData.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder setRows( + int index, io.greptime.v1.RowData.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows(io.greptime.v1.RowData.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows( + int index, io.greptime.v1.RowData.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows( + io.greptime.v1.RowData.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows( + int index, io.greptime.v1.RowData.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addAllRows( + java.lang.Iterable values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rowsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row.Builder getRowsBuilder( + int index) { + return getRowsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.RowOrBuilder getRowsOrBuilder( + int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public java.util.List + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row.Builder addRowsBuilder() { + return getRowsFieldBuilder().addBuilder( + io.greptime.v1.RowData.Row.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row.Builder addRowsBuilder( + int index) { + return getRowsFieldBuilder().addBuilder( + index, io.greptime.v1.RowData.Row.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public java.util.List + getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Row, io.greptime.v1.RowData.Row.Builder, io.greptime.v1.RowData.RowOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Row, io.greptime.v1.RowData.Row.Builder, io.greptime.v1.RowData.RowOrBuilder>( + rows_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + rows_ = null; + } + return rowsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.Rows) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.Rows) + private static final io.greptime.v1.RowData.Rows DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.RowData.Rows(); + } + + public static io.greptime.v1.RowData.Rows getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rows parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Rows(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.RowData.Rows getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ColumnSchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ColumnSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * string column_name = 1; + * @return The columnName. + */ + java.lang.String getColumnName(); + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + com.google.protobuf.ByteString + getColumnNameBytes(); + + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The enum numeric value on the wire for datatype. + */ + int getDatatypeValue(); + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The datatype. + */ + io.greptime.v1.Common.ColumnDataType getDatatype(); + + /** + * .greptime.v1.SemanticType semantic_type = 3; + * @return The enum numeric value on the wire for semanticType. + */ + int getSemanticTypeValue(); + /** + * .greptime.v1.SemanticType semantic_type = 3; + * @return The semanticType. + */ + io.greptime.v1.Common.SemanticType getSemanticType(); + } + /** + * Protobuf type {@code greptime.v1.ColumnSchema} + */ + public static final class ColumnSchema extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.ColumnSchema) + ColumnSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnSchema.newBuilder() to construct. + private ColumnSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ColumnSchema() { + columnName_ = ""; + datatype_ = 0; + semanticType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ColumnSchema(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ColumnSchema( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + columnName_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + datatype_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); + + semanticType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_ColumnSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_ColumnSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.ColumnSchema.class, io.greptime.v1.RowData.ColumnSchema.Builder.class); + } + + public static final int COLUMN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object columnName_; + /** + * string column_name = 1; + * @return The columnName. + */ + @java.lang.Override + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + 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(); + columnName_ = s; + return s; + } + } + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATATYPE_FIELD_NUMBER = 2; + private int datatype_; + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The enum numeric value on the wire for datatype. + */ + @java.lang.Override public int getDatatypeValue() { + return datatype_; + } + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The datatype. + */ + @java.lang.Override public io.greptime.v1.Common.ColumnDataType getDatatype() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; + } + + public static final int SEMANTIC_TYPE_FIELD_NUMBER = 3; + private int semanticType_; + /** + * .greptime.v1.SemanticType semantic_type = 3; + * @return The enum numeric value on the wire for semanticType. + */ + @java.lang.Override public int getSemanticTypeValue() { + return semanticType_; + } + /** + * .greptime.v1.SemanticType semantic_type = 3; + * @return The semanticType. + */ + @java.lang.Override public io.greptime.v1.Common.SemanticType getSemanticType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.SemanticType result = io.greptime.v1.Common.SemanticType.valueOf(semanticType_); + return result == null ? io.greptime.v1.Common.SemanticType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); + } + if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { + output.writeEnum(2, datatype_); + } + if (semanticType_ != io.greptime.v1.Common.SemanticType.TAG.getNumber()) { + output.writeEnum(3, semanticType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); + } + if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, datatype_); + } + if (semanticType_ != io.greptime.v1.Common.SemanticType.TAG.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, semanticType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.RowData.ColumnSchema)) { + return super.equals(obj); + } + io.greptime.v1.RowData.ColumnSchema other = (io.greptime.v1.RowData.ColumnSchema) obj; + + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (datatype_ != other.datatype_) return false; + if (semanticType_ != other.semanticType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getColumnName().hashCode(); + hash = (37 * hash) + DATATYPE_FIELD_NUMBER; + hash = (53 * hash) + datatype_; + hash = (37 * hash) + SEMANTIC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + semanticType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.RowData.ColumnSchema parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.ColumnSchema parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.ColumnSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.ColumnSchema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.ColumnSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.ColumnSchema parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.ColumnSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.ColumnSchema parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.RowData.ColumnSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.ColumnSchema parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.RowData.ColumnSchema parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.ColumnSchema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.RowData.ColumnSchema prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.ColumnSchema} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.ColumnSchema) + io.greptime.v1.RowData.ColumnSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_ColumnSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_ColumnSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.ColumnSchema.class, io.greptime.v1.RowData.ColumnSchema.Builder.class); + } + + // Construct using io.greptime.v1.RowData.ColumnSchema.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + columnName_ = ""; + + datatype_ = 0; + + semanticType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.RowData.internal_static_greptime_v1_ColumnSchema_descriptor; + } + + @java.lang.Override + public io.greptime.v1.RowData.ColumnSchema getDefaultInstanceForType() { + return io.greptime.v1.RowData.ColumnSchema.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.RowData.ColumnSchema build() { + io.greptime.v1.RowData.ColumnSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.RowData.ColumnSchema buildPartial() { + io.greptime.v1.RowData.ColumnSchema result = new io.greptime.v1.RowData.ColumnSchema(this); + result.columnName_ = columnName_; + result.datatype_ = datatype_; + result.semanticType_ = semanticType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.RowData.ColumnSchema) { + return mergeFrom((io.greptime.v1.RowData.ColumnSchema)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.RowData.ColumnSchema other) { + if (other == io.greptime.v1.RowData.ColumnSchema.getDefaultInstance()) return this; + if (!other.getColumnName().isEmpty()) { + columnName_ = other.columnName_; + onChanged(); + } + if (other.datatype_ != 0) { + setDatatypeValue(other.getDatatypeValue()); + } + if (other.semanticType_ != 0) { + setSemanticTypeValue(other.getSemanticTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.RowData.ColumnSchema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.RowData.ColumnSchema) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object columnName_ = ""; + /** + * string column_name = 1; + * @return The columnName. + */ + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string column_name = 1; + * @param value The columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnName_ = value; + onChanged(); + return this; + } + /** + * string column_name = 1; + * @return This builder for chaining. + */ + public Builder clearColumnName() { + + columnName_ = getDefaultInstance().getColumnName(); + onChanged(); + return this; + } + /** + * string column_name = 1; + * @param value The bytes for columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + columnName_ = value; + onChanged(); + return this; + } + + private int datatype_ = 0; + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The enum numeric value on the wire for datatype. + */ + @java.lang.Override public int getDatatypeValue() { + return datatype_; + } + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @param value The enum numeric value on the wire for datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatypeValue(int value) { + + datatype_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The datatype. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataType getDatatype() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; + } + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @param value The datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatype(io.greptime.v1.Common.ColumnDataType value) { + if (value == null) { + throw new NullPointerException(); + } + + datatype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return This builder for chaining. + */ + public Builder clearDatatype() { + + datatype_ = 0; + onChanged(); + return this; + } + + private int semanticType_ = 0; + /** + * .greptime.v1.SemanticType semantic_type = 3; + * @return The enum numeric value on the wire for semanticType. + */ + @java.lang.Override public int getSemanticTypeValue() { + return semanticType_; + } + /** + * .greptime.v1.SemanticType semantic_type = 3; + * @param value The enum numeric value on the wire for semanticType to set. + * @return This builder for chaining. + */ + public Builder setSemanticTypeValue(int value) { + + semanticType_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.SemanticType semantic_type = 3; + * @return The semanticType. + */ + @java.lang.Override + public io.greptime.v1.Common.SemanticType getSemanticType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.SemanticType result = io.greptime.v1.Common.SemanticType.valueOf(semanticType_); + return result == null ? io.greptime.v1.Common.SemanticType.UNRECOGNIZED : result; + } + /** + * .greptime.v1.SemanticType semantic_type = 3; + * @param value The semanticType to set. + * @return This builder for chaining. + */ + public Builder setSemanticType(io.greptime.v1.Common.SemanticType value) { + if (value == null) { + throw new NullPointerException(); + } + + semanticType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.SemanticType semantic_type = 3; + * @return This builder for chaining. + */ + public Builder clearSemanticType() { + + semanticType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.ColumnSchema) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.ColumnSchema) + private static final io.greptime.v1.RowData.ColumnSchema DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.RowData.ColumnSchema(); + } + + public static io.greptime.v1.RowData.ColumnSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColumnSchema(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.RowData.ColumnSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RowOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.Row) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .greptime.v1.Value values = 1; + */ + java.util.List + getValuesList(); + /** + * repeated .greptime.v1.Value values = 1; + */ + io.greptime.v1.RowData.Value getValues(int index); + /** + * repeated .greptime.v1.Value values = 1; + */ + int getValuesCount(); + /** + * repeated .greptime.v1.Value values = 1; + */ + java.util.List + getValuesOrBuilderList(); + /** + * repeated .greptime.v1.Value values = 1; + */ + io.greptime.v1.RowData.ValueOrBuilder getValuesOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.Row} + */ + public static final class Row extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.Row) + RowOrBuilder { + private static final long serialVersionUID = 0L; + // Use Row.newBuilder() to construct. + private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Row() { + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Row(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Row( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add( + input.readMessage(io.greptime.v1.RowData.Value.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Row_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Row_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.Row.class, io.greptime.v1.RowData.Row.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private java.util.List values_; + /** + * repeated .greptime.v1.Value values = 1; + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * repeated .greptime.v1.Value values = 1; + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + * repeated .greptime.v1.Value values = 1; + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + /** + * repeated .greptime.v1.Value values = 1; + */ + @java.lang.Override + public io.greptime.v1.RowData.Value getValues(int index) { + return values_.get(index); + } + /** + * repeated .greptime.v1.Value values = 1; + */ + @java.lang.Override + public io.greptime.v1.RowData.ValueOrBuilder getValuesOrBuilder( + int index) { + return values_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + output.writeMessage(1, values_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.RowData.Row)) { + return super.equals(obj); + } + io.greptime.v1.RowData.Row other = (io.greptime.v1.RowData.Row) obj; + + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.RowData.Row parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.Row parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.Row parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.Row parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.Row parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.Row parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.Row parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.Row parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.RowData.Row parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.Row parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.RowData.Row parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.Row parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.RowData.Row prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.Row} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.Row) + io.greptime.v1.RowData.RowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Row_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Row_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.Row.class, io.greptime.v1.RowData.Row.Builder.class); + } + + // Construct using io.greptime.v1.RowData.Row.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getValuesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + valuesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Row_descriptor; + } + + @java.lang.Override + public io.greptime.v1.RowData.Row getDefaultInstanceForType() { + return io.greptime.v1.RowData.Row.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.RowData.Row build() { + io.greptime.v1.RowData.Row result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.RowData.Row buildPartial() { + io.greptime.v1.RowData.Row result = new io.greptime.v1.RowData.Row(this); + int from_bitField0_ = bitField0_; + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.RowData.Row) { + return mergeFrom((io.greptime.v1.RowData.Row)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.RowData.Row other) { + if (other == io.greptime.v1.RowData.Row.getDefaultInstance()) return this; + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.RowData.Row parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.RowData.Row) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List values_ = + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Value, io.greptime.v1.RowData.Value.Builder, io.greptime.v1.RowData.ValueOrBuilder> valuesBuilder_; + + /** + * repeated .greptime.v1.Value values = 1; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public io.greptime.v1.RowData.Value getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public Builder setValues( + int index, io.greptime.v1.RowData.Value value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public Builder setValues( + int index, io.greptime.v1.RowData.Value.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public Builder addValues(io.greptime.v1.RowData.Value value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public Builder addValues( + int index, io.greptime.v1.RowData.Value value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public Builder addValues( + io.greptime.v1.RowData.Value.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public Builder addValues( + int index, io.greptime.v1.RowData.Value.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public io.greptime.v1.RowData.Value.Builder getValuesBuilder( + int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public io.greptime.v1.RowData.ValueOrBuilder getValuesOrBuilder( + int index) { + if (valuesBuilder_ == null) { + return values_.get(index); } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public io.greptime.v1.RowData.Value.Builder addValuesBuilder() { + return getValuesFieldBuilder().addBuilder( + io.greptime.v1.RowData.Value.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public io.greptime.v1.RowData.Value.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, io.greptime.v1.RowData.Value.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Value values = 1; + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Value, io.greptime.v1.RowData.Value.Builder, io.greptime.v1.RowData.ValueOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Value, io.greptime.v1.RowData.Value.Builder, io.greptime.v1.RowData.ValueOrBuilder>( + values_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + values_ = null; + } + return valuesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.Row) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.Row) + private static final io.greptime.v1.RowData.Row DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.RowData.Row(); + } + + public static io.greptime.v1.RowData.Row getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Row parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Row(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.RowData.Row getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.Value) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 i8_value = 1; + * @return Whether the i8Value field is set. + */ + boolean hasI8Value(); + /** + * int32 i8_value = 1; + * @return The i8Value. + */ + int getI8Value(); + + /** + * int32 i16_value = 2; + * @return Whether the i16Value field is set. + */ + boolean hasI16Value(); + /** + * int32 i16_value = 2; + * @return The i16Value. + */ + int getI16Value(); + + /** + * int32 i32_value = 3; + * @return Whether the i32Value field is set. + */ + boolean hasI32Value(); + /** + * int32 i32_value = 3; + * @return The i32Value. + */ + int getI32Value(); + + /** + * int64 i64_value = 4; + * @return Whether the i64Value field is set. + */ + boolean hasI64Value(); + /** + * int64 i64_value = 4; + * @return The i64Value. + */ + long getI64Value(); + + /** + * uint32 u8_value = 5; + * @return Whether the u8Value field is set. + */ + boolean hasU8Value(); + /** + * uint32 u8_value = 5; + * @return The u8Value. + */ + int getU8Value(); + + /** + * uint32 u16_value = 6; + * @return Whether the u16Value field is set. + */ + boolean hasU16Value(); + /** + * uint32 u16_value = 6; + * @return The u16Value. + */ + int getU16Value(); + + /** + * uint32 u32_value = 7; + * @return Whether the u32Value field is set. + */ + boolean hasU32Value(); + /** + * uint32 u32_value = 7; + * @return The u32Value. + */ + int getU32Value(); + + /** + * uint64 u64_value = 8; + * @return Whether the u64Value field is set. + */ + boolean hasU64Value(); + /** + * uint64 u64_value = 8; + * @return The u64Value. + */ + long getU64Value(); + + /** + * float f32_value = 9; + * @return Whether the f32Value field is set. + */ + boolean hasF32Value(); + /** + * float f32_value = 9; + * @return The f32Value. + */ + float getF32Value(); + + /** + * double f64_value = 10; + * @return Whether the f64Value field is set. + */ + boolean hasF64Value(); + /** + * double f64_value = 10; + * @return The f64Value. + */ + double getF64Value(); + + /** + * bool bool_value = 11; + * @return Whether the boolValue field is set. + */ + boolean hasBoolValue(); + /** + * bool bool_value = 11; + * @return The boolValue. + */ + boolean getBoolValue(); + + /** + * bytes binary_value = 12; + * @return Whether the binaryValue field is set. + */ + boolean hasBinaryValue(); + /** + * bytes binary_value = 12; + * @return The binaryValue. + */ + com.google.protobuf.ByteString getBinaryValue(); + + /** + * string string_value = 13; + * @return Whether the stringValue field is set. + */ + boolean hasStringValue(); + /** + * string string_value = 13; + * @return The stringValue. + */ + java.lang.String getStringValue(); + /** + * string string_value = 13; + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString + getStringValueBytes(); + + /** + * int32 date_value = 14; + * @return Whether the dateValue field is set. + */ + boolean hasDateValue(); + /** + * int32 date_value = 14; + * @return The dateValue. + */ + int getDateValue(); + + /** + * int64 datetime_value = 15; + * @return Whether the datetimeValue field is set. + */ + boolean hasDatetimeValue(); + /** + * int64 datetime_value = 15; + * @return The datetimeValue. + */ + long getDatetimeValue(); + + /** + * int64 ts_second_value = 16; + * @return Whether the tsSecondValue field is set. + */ + boolean hasTsSecondValue(); + /** + * int64 ts_second_value = 16; + * @return The tsSecondValue. + */ + long getTsSecondValue(); + + /** + * int64 ts_millisecond_value = 17; + * @return Whether the tsMillisecondValue field is set. + */ + boolean hasTsMillisecondValue(); + /** + * int64 ts_millisecond_value = 17; + * @return The tsMillisecondValue. + */ + long getTsMillisecondValue(); + + /** + * int64 ts_microsecond_value = 18; + * @return Whether the tsMicrosecondValue field is set. + */ + boolean hasTsMicrosecondValue(); + /** + * int64 ts_microsecond_value = 18; + * @return The tsMicrosecondValue. + */ + long getTsMicrosecondValue(); + + /** + * int64 ts_nanosecond_value = 19; + * @return Whether the tsNanosecondValue field is set. + */ + boolean hasTsNanosecondValue(); + /** + * int64 ts_nanosecond_value = 19; + * @return The tsNanosecondValue. + */ + long getTsNanosecondValue(); + + /** + * int64 time_second_value = 20; + * @return Whether the timeSecondValue field is set. + */ + boolean hasTimeSecondValue(); + /** + * int64 time_second_value = 20; + * @return The timeSecondValue. + */ + long getTimeSecondValue(); + + /** + * int64 time_millisecond_value = 21; + * @return Whether the timeMillisecondValue field is set. + */ + boolean hasTimeMillisecondValue(); + /** + * int64 time_millisecond_value = 21; + * @return The timeMillisecondValue. + */ + long getTimeMillisecondValue(); + + /** + * int64 time_microsecond_value = 22; + * @return Whether the timeMicrosecondValue field is set. + */ + boolean hasTimeMicrosecondValue(); + /** + * int64 time_microsecond_value = 22; + * @return The timeMicrosecondValue. + */ + long getTimeMicrosecondValue(); + + /** + * int64 time_nanosecond_value = 23; + * @return Whether the timeNanosecondValue field is set. + */ + boolean hasTimeNanosecondValue(); + /** + * int64 time_nanosecond_value = 23; + * @return The timeNanosecondValue. + */ + long getTimeNanosecondValue(); + + public io.greptime.v1.RowData.Value.ValueDataCase getValueDataCase(); + } + /** + * Protobuf type {@code greptime.v1.Value} + */ + public static final class Value extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.Value) + ValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use Value.newBuilder() to construct. + private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Value() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Value(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Value( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + valueData_ = input.readInt32(); + valueDataCase_ = 1; + break; + } + case 16: { + valueData_ = input.readInt32(); + valueDataCase_ = 2; + break; + } + case 24: { + valueData_ = input.readInt32(); + valueDataCase_ = 3; + break; + } + case 32: { + valueData_ = input.readInt64(); + valueDataCase_ = 4; + break; + } + case 40: { + valueData_ = input.readUInt32(); + valueDataCase_ = 5; + break; + } + case 48: { + valueData_ = input.readUInt32(); + valueDataCase_ = 6; + break; + } + case 56: { + valueData_ = input.readUInt32(); + valueDataCase_ = 7; + break; + } + case 64: { + valueData_ = input.readUInt64(); + valueDataCase_ = 8; + break; + } + case 77: { + valueData_ = input.readFloat(); + valueDataCase_ = 9; + break; + } + case 81: { + valueData_ = input.readDouble(); + valueDataCase_ = 10; + break; + } + case 88: { + valueData_ = input.readBool(); + valueDataCase_ = 11; + break; + } + case 98: { + valueData_ = input.readBytes(); + valueDataCase_ = 12; + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + valueDataCase_ = 13; + valueData_ = s; + break; + } + case 112: { + valueData_ = input.readInt32(); + valueDataCase_ = 14; + break; + } + case 120: { + valueData_ = input.readInt64(); + valueDataCase_ = 15; + break; + } + case 128: { + valueData_ = input.readInt64(); + valueDataCase_ = 16; + break; + } + case 136: { + valueData_ = input.readInt64(); + valueDataCase_ = 17; + break; + } + case 144: { + valueData_ = input.readInt64(); + valueDataCase_ = 18; + break; + } + case 152: { + valueData_ = input.readInt64(); + valueDataCase_ = 19; + break; + } + case 160: { + valueData_ = input.readInt64(); + valueDataCase_ = 20; + break; + } + case 168: { + valueData_ = input.readInt64(); + valueDataCase_ = 21; + break; + } + case 176: { + valueData_ = input.readInt64(); + valueDataCase_ = 22; + break; + } + case 184: { + valueData_ = input.readInt64(); + valueDataCase_ = 23; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Value_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Value_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.Value.class, io.greptime.v1.RowData.Value.Builder.class); + } + + private int valueDataCase_ = 0; + private java.lang.Object valueData_; + public enum ValueDataCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + I8_VALUE(1), + I16_VALUE(2), + I32_VALUE(3), + I64_VALUE(4), + U8_VALUE(5), + U16_VALUE(6), + U32_VALUE(7), + U64_VALUE(8), + F32_VALUE(9), + F64_VALUE(10), + BOOL_VALUE(11), + BINARY_VALUE(12), + STRING_VALUE(13), + DATE_VALUE(14), + DATETIME_VALUE(15), + TS_SECOND_VALUE(16), + TS_MILLISECOND_VALUE(17), + TS_MICROSECOND_VALUE(18), + TS_NANOSECOND_VALUE(19), + TIME_SECOND_VALUE(20), + TIME_MILLISECOND_VALUE(21), + TIME_MICROSECOND_VALUE(22), + TIME_NANOSECOND_VALUE(23), + VALUEDATA_NOT_SET(0); + private final int value; + private ValueDataCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueDataCase valueOf(int value) { + return forNumber(value); + } + + public static ValueDataCase forNumber(int value) { + switch (value) { + case 1: return I8_VALUE; + case 2: return I16_VALUE; + case 3: return I32_VALUE; + case 4: return I64_VALUE; + case 5: return U8_VALUE; + case 6: return U16_VALUE; + case 7: return U32_VALUE; + case 8: return U64_VALUE; + case 9: return F32_VALUE; + case 10: return F64_VALUE; + case 11: return BOOL_VALUE; + case 12: return BINARY_VALUE; + case 13: return STRING_VALUE; + case 14: return DATE_VALUE; + case 15: return DATETIME_VALUE; + case 16: return TS_SECOND_VALUE; + case 17: return TS_MILLISECOND_VALUE; + case 18: return TS_MICROSECOND_VALUE; + case 19: return TS_NANOSECOND_VALUE; + case 20: return TIME_SECOND_VALUE; + case 21: return TIME_MILLISECOND_VALUE; + case 22: return TIME_MICROSECOND_VALUE; + case 23: return TIME_NANOSECOND_VALUE; + case 0: return VALUEDATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueDataCase + getValueDataCase() { + return ValueDataCase.forNumber( + valueDataCase_); + } + + public static final int I8_VALUE_FIELD_NUMBER = 1; + /** + * int32 i8_value = 1; + * @return Whether the i8Value field is set. + */ + @java.lang.Override + public boolean hasI8Value() { + return valueDataCase_ == 1; + } + /** + * int32 i8_value = 1; + * @return The i8Value. + */ + @java.lang.Override + public int getI8Value() { + if (valueDataCase_ == 1) { + return (java.lang.Integer) valueData_; + } + return 0; + } + + public static final int I16_VALUE_FIELD_NUMBER = 2; + /** + * int32 i16_value = 2; + * @return Whether the i16Value field is set. + */ + @java.lang.Override + public boolean hasI16Value() { + return valueDataCase_ == 2; + } + /** + * int32 i16_value = 2; + * @return The i16Value. + */ + @java.lang.Override + public int getI16Value() { + if (valueDataCase_ == 2) { + return (java.lang.Integer) valueData_; + } + return 0; + } + + public static final int I32_VALUE_FIELD_NUMBER = 3; + /** + * int32 i32_value = 3; + * @return Whether the i32Value field is set. + */ + @java.lang.Override + public boolean hasI32Value() { + return valueDataCase_ == 3; + } + /** + * int32 i32_value = 3; + * @return The i32Value. + */ + @java.lang.Override + public int getI32Value() { + if (valueDataCase_ == 3) { + return (java.lang.Integer) valueData_; + } + return 0; + } + + public static final int I64_VALUE_FIELD_NUMBER = 4; + /** + * int64 i64_value = 4; + * @return Whether the i64Value field is set. + */ + @java.lang.Override + public boolean hasI64Value() { + return valueDataCase_ == 4; + } + /** + * int64 i64_value = 4; + * @return The i64Value. + */ + @java.lang.Override + public long getI64Value() { + if (valueDataCase_ == 4) { + return (java.lang.Long) valueData_; + } + return 0L; + } + + public static final int U8_VALUE_FIELD_NUMBER = 5; + /** + * uint32 u8_value = 5; + * @return Whether the u8Value field is set. + */ + @java.lang.Override + public boolean hasU8Value() { + return valueDataCase_ == 5; + } + /** + * uint32 u8_value = 5; + * @return The u8Value. + */ + @java.lang.Override + public int getU8Value() { + if (valueDataCase_ == 5) { + return (java.lang.Integer) valueData_; + } + return 0; + } + + public static final int U16_VALUE_FIELD_NUMBER = 6; + /** + * uint32 u16_value = 6; + * @return Whether the u16Value field is set. + */ + @java.lang.Override + public boolean hasU16Value() { + return valueDataCase_ == 6; + } + /** + * uint32 u16_value = 6; + * @return The u16Value. + */ + @java.lang.Override + public int getU16Value() { + if (valueDataCase_ == 6) { + return (java.lang.Integer) valueData_; + } + return 0; + } + + public static final int U32_VALUE_FIELD_NUMBER = 7; + /** + * uint32 u32_value = 7; + * @return Whether the u32Value field is set. + */ + @java.lang.Override + public boolean hasU32Value() { + return valueDataCase_ == 7; + } + /** + * uint32 u32_value = 7; + * @return The u32Value. + */ + @java.lang.Override + public int getU32Value() { + if (valueDataCase_ == 7) { + return (java.lang.Integer) valueData_; + } + return 0; + } + + public static final int U64_VALUE_FIELD_NUMBER = 8; + /** + * uint64 u64_value = 8; + * @return Whether the u64Value field is set. + */ + @java.lang.Override + public boolean hasU64Value() { + return valueDataCase_ == 8; + } + /** + * uint64 u64_value = 8; + * @return The u64Value. + */ + @java.lang.Override + public long getU64Value() { + if (valueDataCase_ == 8) { + return (java.lang.Long) valueData_; + } + return 0L; + } + + public static final int F32_VALUE_FIELD_NUMBER = 9; + /** + * float f32_value = 9; + * @return Whether the f32Value field is set. + */ + @java.lang.Override + public boolean hasF32Value() { + return valueDataCase_ == 9; + } + /** + * float f32_value = 9; + * @return The f32Value. + */ + @java.lang.Override + public float getF32Value() { + if (valueDataCase_ == 9) { + return (java.lang.Float) valueData_; + } + return 0F; + } + + public static final int F64_VALUE_FIELD_NUMBER = 10; + /** + * double f64_value = 10; + * @return Whether the f64Value field is set. + */ + @java.lang.Override + public boolean hasF64Value() { + return valueDataCase_ == 10; + } + /** + * double f64_value = 10; + * @return The f64Value. + */ + @java.lang.Override + public double getF64Value() { + if (valueDataCase_ == 10) { + return (java.lang.Double) valueData_; + } + return 0D; + } + + public static final int BOOL_VALUE_FIELD_NUMBER = 11; + /** + * bool bool_value = 11; + * @return Whether the boolValue field is set. + */ + @java.lang.Override + public boolean hasBoolValue() { + return valueDataCase_ == 11; + } + /** + * bool bool_value = 11; + * @return The boolValue. + */ + @java.lang.Override + public boolean getBoolValue() { + if (valueDataCase_ == 11) { + return (java.lang.Boolean) valueData_; + } + return false; + } + + public static final int BINARY_VALUE_FIELD_NUMBER = 12; + /** + * bytes binary_value = 12; + * @return Whether the binaryValue field is set. + */ + @java.lang.Override + public boolean hasBinaryValue() { + return valueDataCase_ == 12; + } + /** + * bytes binary_value = 12; + * @return The binaryValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBinaryValue() { + if (valueDataCase_ == 12) { + return (com.google.protobuf.ByteString) valueData_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 13; + /** + * string string_value = 13; + * @return Whether the stringValue field is set. + */ + public boolean hasStringValue() { + return valueDataCase_ == 13; + } + /** + * string string_value = 13; + * @return The stringValue. + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueDataCase_ == 13) { + ref = valueData_; + } + 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(); + if (valueDataCase_ == 13) { + valueData_ = s; + } + return s; + } + } + /** + * string string_value = 13; + * @return The bytes for stringValue. + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueDataCase_ == 13) { + ref = valueData_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueDataCase_ == 13) { + valueData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATE_VALUE_FIELD_NUMBER = 14; + /** + * int32 date_value = 14; + * @return Whether the dateValue field is set. + */ + @java.lang.Override + public boolean hasDateValue() { + return valueDataCase_ == 14; + } + /** + * int32 date_value = 14; + * @return The dateValue. + */ + @java.lang.Override + public int getDateValue() { + if (valueDataCase_ == 14) { + return (java.lang.Integer) valueData_; + } + return 0; + } + + public static final int DATETIME_VALUE_FIELD_NUMBER = 15; + /** + * int64 datetime_value = 15; + * @return Whether the datetimeValue field is set. + */ + @java.lang.Override + public boolean hasDatetimeValue() { + return valueDataCase_ == 15; + } + /** + * int64 datetime_value = 15; + * @return The datetimeValue. + */ + @java.lang.Override + public long getDatetimeValue() { + if (valueDataCase_ == 15) { + return (java.lang.Long) valueData_; + } + return 0L; + } + + public static final int TS_SECOND_VALUE_FIELD_NUMBER = 16; + /** + * int64 ts_second_value = 16; + * @return Whether the tsSecondValue field is set. + */ + @java.lang.Override + public boolean hasTsSecondValue() { + return valueDataCase_ == 16; + } + /** + * int64 ts_second_value = 16; + * @return The tsSecondValue. + */ + @java.lang.Override + public long getTsSecondValue() { + if (valueDataCase_ == 16) { + return (java.lang.Long) valueData_; + } + return 0L; + } + + public static final int TS_MILLISECOND_VALUE_FIELD_NUMBER = 17; + /** + * int64 ts_millisecond_value = 17; + * @return Whether the tsMillisecondValue field is set. + */ + @java.lang.Override + public boolean hasTsMillisecondValue() { + return valueDataCase_ == 17; + } + /** + * int64 ts_millisecond_value = 17; + * @return The tsMillisecondValue. + */ + @java.lang.Override + public long getTsMillisecondValue() { + if (valueDataCase_ == 17) { + return (java.lang.Long) valueData_; + } + return 0L; + } + + public static final int TS_MICROSECOND_VALUE_FIELD_NUMBER = 18; + /** + * int64 ts_microsecond_value = 18; + * @return Whether the tsMicrosecondValue field is set. + */ + @java.lang.Override + public boolean hasTsMicrosecondValue() { + return valueDataCase_ == 18; + } + /** + * int64 ts_microsecond_value = 18; + * @return The tsMicrosecondValue. + */ + @java.lang.Override + public long getTsMicrosecondValue() { + if (valueDataCase_ == 18) { + return (java.lang.Long) valueData_; + } + return 0L; + } + + public static final int TS_NANOSECOND_VALUE_FIELD_NUMBER = 19; + /** + * int64 ts_nanosecond_value = 19; + * @return Whether the tsNanosecondValue field is set. + */ + @java.lang.Override + public boolean hasTsNanosecondValue() { + return valueDataCase_ == 19; + } + /** + * int64 ts_nanosecond_value = 19; + * @return The tsNanosecondValue. + */ + @java.lang.Override + public long getTsNanosecondValue() { + if (valueDataCase_ == 19) { + return (java.lang.Long) valueData_; + } + return 0L; + } + + public static final int TIME_SECOND_VALUE_FIELD_NUMBER = 20; + /** + * int64 time_second_value = 20; + * @return Whether the timeSecondValue field is set. + */ + @java.lang.Override + public boolean hasTimeSecondValue() { + return valueDataCase_ == 20; + } + /** + * int64 time_second_value = 20; + * @return The timeSecondValue. + */ + @java.lang.Override + public long getTimeSecondValue() { + if (valueDataCase_ == 20) { + return (java.lang.Long) valueData_; + } + return 0L; + } + + public static final int TIME_MILLISECOND_VALUE_FIELD_NUMBER = 21; + /** + * int64 time_millisecond_value = 21; + * @return Whether the timeMillisecondValue field is set. + */ + @java.lang.Override + public boolean hasTimeMillisecondValue() { + return valueDataCase_ == 21; + } + /** + * int64 time_millisecond_value = 21; + * @return The timeMillisecondValue. + */ + @java.lang.Override + public long getTimeMillisecondValue() { + if (valueDataCase_ == 21) { + return (java.lang.Long) valueData_; + } + return 0L; + } + + public static final int TIME_MICROSECOND_VALUE_FIELD_NUMBER = 22; + /** + * int64 time_microsecond_value = 22; + * @return Whether the timeMicrosecondValue field is set. + */ + @java.lang.Override + public boolean hasTimeMicrosecondValue() { + return valueDataCase_ == 22; + } + /** + * int64 time_microsecond_value = 22; + * @return The timeMicrosecondValue. + */ + @java.lang.Override + public long getTimeMicrosecondValue() { + if (valueDataCase_ == 22) { + return (java.lang.Long) valueData_; + } + return 0L; + } + + public static final int TIME_NANOSECOND_VALUE_FIELD_NUMBER = 23; + /** + * int64 time_nanosecond_value = 23; + * @return Whether the timeNanosecondValue field is set. + */ + @java.lang.Override + public boolean hasTimeNanosecondValue() { + return valueDataCase_ == 23; + } + /** + * int64 time_nanosecond_value = 23; + * @return The timeNanosecondValue. + */ + @java.lang.Override + public long getTimeNanosecondValue() { + if (valueDataCase_ == 23) { + return (java.lang.Long) valueData_; + } + return 0L; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueDataCase_ == 1) { + output.writeInt32( + 1, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 2) { + output.writeInt32( + 2, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 3) { + output.writeInt32( + 3, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 4) { + output.writeInt64( + 4, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 5) { + output.writeUInt32( + 5, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 6) { + output.writeUInt32( + 6, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 7) { + output.writeUInt32( + 7, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 8) { + output.writeUInt64( + 8, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 9) { + output.writeFloat( + 9, (float)((java.lang.Float) valueData_)); + } + if (valueDataCase_ == 10) { + output.writeDouble( + 10, (double)((java.lang.Double) valueData_)); + } + if (valueDataCase_ == 11) { + output.writeBool( + 11, (boolean)((java.lang.Boolean) valueData_)); + } + if (valueDataCase_ == 12) { + output.writeBytes( + 12, (com.google.protobuf.ByteString) valueData_); + } + if (valueDataCase_ == 13) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, valueData_); + } + if (valueDataCase_ == 14) { + output.writeInt32( + 14, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 15) { + output.writeInt64( + 15, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 16) { + output.writeInt64( + 16, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 17) { + output.writeInt64( + 17, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 18) { + output.writeInt64( + 18, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 19) { + output.writeInt64( + 19, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 20) { + output.writeInt64( + 20, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 21) { + output.writeInt64( + 21, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 22) { + output.writeInt64( + 22, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 23) { + output.writeInt64( + 23, (long)((java.lang.Long) valueData_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueDataCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 1, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 2, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 3, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 4, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size( + 5, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size( + 6, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size( + 7, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size( + 8, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 9, (float)((java.lang.Float) valueData_)); + } + if (valueDataCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 10, (double)((java.lang.Double) valueData_)); + } + if (valueDataCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 11, (boolean)((java.lang.Boolean) valueData_)); + } + if (valueDataCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 12, (com.google.protobuf.ByteString) valueData_); + } + if (valueDataCase_ == 13) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, valueData_); + } + if (valueDataCase_ == 14) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 14, (int)((java.lang.Integer) valueData_)); + } + if (valueDataCase_ == 15) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 15, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 16) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 16, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 17) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 17, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 18) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 18, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 19) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 19, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 20) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 20, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 21) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 21, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 22) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 22, (long)((java.lang.Long) valueData_)); + } + if (valueDataCase_ == 23) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 23, (long)((java.lang.Long) valueData_)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.RowData.Value)) { + return super.equals(obj); + } + io.greptime.v1.RowData.Value other = (io.greptime.v1.RowData.Value) obj; + + if (!getValueDataCase().equals(other.getValueDataCase())) return false; + switch (valueDataCase_) { + case 1: + if (getI8Value() + != other.getI8Value()) return false; + break; + case 2: + if (getI16Value() + != other.getI16Value()) return false; + break; + case 3: + if (getI32Value() + != other.getI32Value()) return false; + break; + case 4: + if (getI64Value() + != other.getI64Value()) return false; + break; + case 5: + if (getU8Value() + != other.getU8Value()) return false; + break; + case 6: + if (getU16Value() + != other.getU16Value()) return false; + break; + case 7: + if (getU32Value() + != other.getU32Value()) return false; + break; + case 8: + if (getU64Value() + != other.getU64Value()) return false; + break; + case 9: + if (java.lang.Float.floatToIntBits(getF32Value()) + != java.lang.Float.floatToIntBits( + other.getF32Value())) return false; + break; + case 10: + if (java.lang.Double.doubleToLongBits(getF64Value()) + != java.lang.Double.doubleToLongBits( + other.getF64Value())) return false; + break; + case 11: + if (getBoolValue() + != other.getBoolValue()) return false; + break; + case 12: + if (!getBinaryValue() + .equals(other.getBinaryValue())) return false; + break; + case 13: + if (!getStringValue() + .equals(other.getStringValue())) return false; + break; + case 14: + if (getDateValue() + != other.getDateValue()) return false; + break; + case 15: + if (getDatetimeValue() + != other.getDatetimeValue()) return false; + break; + case 16: + if (getTsSecondValue() + != other.getTsSecondValue()) return false; + break; + case 17: + if (getTsMillisecondValue() + != other.getTsMillisecondValue()) return false; + break; + case 18: + if (getTsMicrosecondValue() + != other.getTsMicrosecondValue()) return false; + break; + case 19: + if (getTsNanosecondValue() + != other.getTsNanosecondValue()) return false; + break; + case 20: + if (getTimeSecondValue() + != other.getTimeSecondValue()) return false; + break; + case 21: + if (getTimeMillisecondValue() + != other.getTimeMillisecondValue()) return false; + break; + case 22: + if (getTimeMicrosecondValue() + != other.getTimeMicrosecondValue()) return false; + break; + case 23: + if (getTimeNanosecondValue() + != other.getTimeNanosecondValue()) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueDataCase_) { + case 1: + hash = (37 * hash) + I8_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getI8Value(); + break; + case 2: + hash = (37 * hash) + I16_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getI16Value(); + break; + case 3: + hash = (37 * hash) + I32_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getI32Value(); + break; + case 4: + hash = (37 * hash) + I64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getI64Value()); + break; + case 5: + hash = (37 * hash) + U8_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getU8Value(); + break; + case 6: + hash = (37 * hash) + U16_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getU16Value(); + break; + case 7: + hash = (37 * hash) + U32_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getU32Value(); + break; + case 8: + hash = (37 * hash) + U64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getU64Value()); + break; + case 9: + hash = (37 * hash) + F32_VALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getF32Value()); + break; + case 10: + hash = (37 * hash) + F64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getF64Value())); + break; + case 11: + hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBoolValue()); + break; + case 12: + hash = (37 * hash) + BINARY_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getBinaryValue().hashCode(); + break; + case 13: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 14: + hash = (37 * hash) + DATE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDateValue(); + break; + case 15: + hash = (37 * hash) + DATETIME_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDatetimeValue()); + break; + case 16: + hash = (37 * hash) + TS_SECOND_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTsSecondValue()); + break; + case 17: + hash = (37 * hash) + TS_MILLISECOND_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTsMillisecondValue()); + break; + case 18: + hash = (37 * hash) + TS_MICROSECOND_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTsMicrosecondValue()); + break; + case 19: + hash = (37 * hash) + TS_NANOSECOND_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTsNanosecondValue()); + break; + case 20: + hash = (37 * hash) + TIME_SECOND_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimeSecondValue()); + break; + case 21: + hash = (37 * hash) + TIME_MILLISECOND_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimeMillisecondValue()); + break; + case 22: + hash = (37 * hash) + TIME_MICROSECOND_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimeMicrosecondValue()); + break; + case 23: + hash = (37 * hash) + TIME_NANOSECOND_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimeNanosecondValue()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.RowData.Value parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.Value parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.Value parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.Value parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.Value parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.Value parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.Value parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.Value parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.RowData.Value parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.Value parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.RowData.Value parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.Value parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.RowData.Value prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.Value} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.Value) + io.greptime.v1.RowData.ValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Value_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Value_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.Value.class, io.greptime.v1.RowData.Value.Builder.class); + } + + // Construct using io.greptime.v1.RowData.Value.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + valueDataCase_ = 0; + valueData_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.RowData.internal_static_greptime_v1_Value_descriptor; + } + + @java.lang.Override + public io.greptime.v1.RowData.Value getDefaultInstanceForType() { + return io.greptime.v1.RowData.Value.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.RowData.Value build() { + io.greptime.v1.RowData.Value result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.RowData.Value buildPartial() { + io.greptime.v1.RowData.Value result = new io.greptime.v1.RowData.Value(this); + if (valueDataCase_ == 1) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 2) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 3) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 4) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 5) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 6) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 7) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 8) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 9) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 10) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 11) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 12) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 13) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 14) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 15) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 16) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 17) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 18) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 19) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 20) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 21) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 22) { + result.valueData_ = valueData_; + } + if (valueDataCase_ == 23) { + result.valueData_ = valueData_; + } + result.valueDataCase_ = valueDataCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.RowData.Value) { + return mergeFrom((io.greptime.v1.RowData.Value)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.RowData.Value other) { + if (other == io.greptime.v1.RowData.Value.getDefaultInstance()) return this; + switch (other.getValueDataCase()) { + case I8_VALUE: { + setI8Value(other.getI8Value()); + break; + } + case I16_VALUE: { + setI16Value(other.getI16Value()); + break; + } + case I32_VALUE: { + setI32Value(other.getI32Value()); + break; + } + case I64_VALUE: { + setI64Value(other.getI64Value()); + break; + } + case U8_VALUE: { + setU8Value(other.getU8Value()); + break; + } + case U16_VALUE: { + setU16Value(other.getU16Value()); + break; + } + case U32_VALUE: { + setU32Value(other.getU32Value()); + break; + } + case U64_VALUE: { + setU64Value(other.getU64Value()); + break; + } + case F32_VALUE: { + setF32Value(other.getF32Value()); + break; + } + case F64_VALUE: { + setF64Value(other.getF64Value()); + break; + } + case BOOL_VALUE: { + setBoolValue(other.getBoolValue()); + break; + } + case BINARY_VALUE: { + setBinaryValue(other.getBinaryValue()); + break; + } + case STRING_VALUE: { + valueDataCase_ = 13; + valueData_ = other.valueData_; + onChanged(); + break; + } + case DATE_VALUE: { + setDateValue(other.getDateValue()); + break; + } + case DATETIME_VALUE: { + setDatetimeValue(other.getDatetimeValue()); + break; + } + case TS_SECOND_VALUE: { + setTsSecondValue(other.getTsSecondValue()); + break; + } + case TS_MILLISECOND_VALUE: { + setTsMillisecondValue(other.getTsMillisecondValue()); + break; + } + case TS_MICROSECOND_VALUE: { + setTsMicrosecondValue(other.getTsMicrosecondValue()); + break; + } + case TS_NANOSECOND_VALUE: { + setTsNanosecondValue(other.getTsNanosecondValue()); + break; + } + case TIME_SECOND_VALUE: { + setTimeSecondValue(other.getTimeSecondValue()); + break; + } + case TIME_MILLISECOND_VALUE: { + setTimeMillisecondValue(other.getTimeMillisecondValue()); + break; + } + case TIME_MICROSECOND_VALUE: { + setTimeMicrosecondValue(other.getTimeMicrosecondValue()); + break; + } + case TIME_NANOSECOND_VALUE: { + setTimeNanosecondValue(other.getTimeNanosecondValue()); + break; + } + case VALUEDATA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.RowData.Value parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.RowData.Value) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueDataCase_ = 0; + private java.lang.Object valueData_; + public ValueDataCase + getValueDataCase() { + return ValueDataCase.forNumber( + valueDataCase_); + } + + public Builder clearValueData() { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + return this; + } + + + /** + * int32 i8_value = 1; + * @return Whether the i8Value field is set. + */ + public boolean hasI8Value() { + return valueDataCase_ == 1; + } + /** + * int32 i8_value = 1; + * @return The i8Value. + */ + public int getI8Value() { + if (valueDataCase_ == 1) { + return (java.lang.Integer) valueData_; + } + return 0; + } + /** + * int32 i8_value = 1; + * @param value The i8Value to set. + * @return This builder for chaining. + */ + public Builder setI8Value(int value) { + valueDataCase_ = 1; + valueData_ = value; + onChanged(); + return this; + } + /** + * int32 i8_value = 1; + * @return This builder for chaining. + */ + public Builder clearI8Value() { + if (valueDataCase_ == 1) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int32 i16_value = 2; + * @return Whether the i16Value field is set. + */ + public boolean hasI16Value() { + return valueDataCase_ == 2; + } + /** + * int32 i16_value = 2; + * @return The i16Value. + */ + public int getI16Value() { + if (valueDataCase_ == 2) { + return (java.lang.Integer) valueData_; + } + return 0; + } + /** + * int32 i16_value = 2; + * @param value The i16Value to set. + * @return This builder for chaining. + */ + public Builder setI16Value(int value) { + valueDataCase_ = 2; + valueData_ = value; + onChanged(); + return this; + } + /** + * int32 i16_value = 2; + * @return This builder for chaining. + */ + public Builder clearI16Value() { + if (valueDataCase_ == 2) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int32 i32_value = 3; + * @return Whether the i32Value field is set. + */ + public boolean hasI32Value() { + return valueDataCase_ == 3; + } + /** + * int32 i32_value = 3; + * @return The i32Value. + */ + public int getI32Value() { + if (valueDataCase_ == 3) { + return (java.lang.Integer) valueData_; + } + return 0; + } + /** + * int32 i32_value = 3; + * @param value The i32Value to set. + * @return This builder for chaining. + */ + public Builder setI32Value(int value) { + valueDataCase_ = 3; + valueData_ = value; + onChanged(); + return this; + } + /** + * int32 i32_value = 3; + * @return This builder for chaining. + */ + public Builder clearI32Value() { + if (valueDataCase_ == 3) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int64 i64_value = 4; + * @return Whether the i64Value field is set. + */ + public boolean hasI64Value() { + return valueDataCase_ == 4; + } + /** + * int64 i64_value = 4; + * @return The i64Value. + */ + public long getI64Value() { + if (valueDataCase_ == 4) { + return (java.lang.Long) valueData_; + } + return 0L; + } + /** + * int64 i64_value = 4; + * @param value The i64Value to set. + * @return This builder for chaining. + */ + public Builder setI64Value(long value) { + valueDataCase_ = 4; + valueData_ = value; + onChanged(); + return this; + } + /** + * int64 i64_value = 4; + * @return This builder for chaining. + */ + public Builder clearI64Value() { + if (valueDataCase_ == 4) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * uint32 u8_value = 5; + * @return Whether the u8Value field is set. + */ + public boolean hasU8Value() { + return valueDataCase_ == 5; + } + /** + * uint32 u8_value = 5; + * @return The u8Value. + */ + public int getU8Value() { + if (valueDataCase_ == 5) { + return (java.lang.Integer) valueData_; + } + return 0; + } + /** + * uint32 u8_value = 5; + * @param value The u8Value to set. + * @return This builder for chaining. + */ + public Builder setU8Value(int value) { + valueDataCase_ = 5; + valueData_ = value; + onChanged(); + return this; + } + /** + * uint32 u8_value = 5; + * @return This builder for chaining. + */ + public Builder clearU8Value() { + if (valueDataCase_ == 5) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * uint32 u16_value = 6; + * @return Whether the u16Value field is set. + */ + public boolean hasU16Value() { + return valueDataCase_ == 6; + } + /** + * uint32 u16_value = 6; + * @return The u16Value. + */ + public int getU16Value() { + if (valueDataCase_ == 6) { + return (java.lang.Integer) valueData_; + } + return 0; + } + /** + * uint32 u16_value = 6; + * @param value The u16Value to set. + * @return This builder for chaining. + */ + public Builder setU16Value(int value) { + valueDataCase_ = 6; + valueData_ = value; + onChanged(); + return this; + } + /** + * uint32 u16_value = 6; + * @return This builder for chaining. + */ + public Builder clearU16Value() { + if (valueDataCase_ == 6) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * uint32 u32_value = 7; + * @return Whether the u32Value field is set. + */ + public boolean hasU32Value() { + return valueDataCase_ == 7; + } + /** + * uint32 u32_value = 7; + * @return The u32Value. + */ + public int getU32Value() { + if (valueDataCase_ == 7) { + return (java.lang.Integer) valueData_; + } + return 0; + } + /** + * uint32 u32_value = 7; + * @param value The u32Value to set. + * @return This builder for chaining. + */ + public Builder setU32Value(int value) { + valueDataCase_ = 7; + valueData_ = value; + onChanged(); + return this; + } + /** + * uint32 u32_value = 7; + * @return This builder for chaining. + */ + public Builder clearU32Value() { + if (valueDataCase_ == 7) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * uint64 u64_value = 8; + * @return Whether the u64Value field is set. + */ + public boolean hasU64Value() { + return valueDataCase_ == 8; + } + /** + * uint64 u64_value = 8; + * @return The u64Value. + */ + public long getU64Value() { + if (valueDataCase_ == 8) { + return (java.lang.Long) valueData_; + } + return 0L; + } + /** + * uint64 u64_value = 8; + * @param value The u64Value to set. + * @return This builder for chaining. + */ + public Builder setU64Value(long value) { + valueDataCase_ = 8; + valueData_ = value; + onChanged(); + return this; + } + /** + * uint64 u64_value = 8; + * @return This builder for chaining. + */ + public Builder clearU64Value() { + if (valueDataCase_ == 8) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * float f32_value = 9; + * @return Whether the f32Value field is set. + */ + public boolean hasF32Value() { + return valueDataCase_ == 9; + } + /** + * float f32_value = 9; + * @return The f32Value. + */ + public float getF32Value() { + if (valueDataCase_ == 9) { + return (java.lang.Float) valueData_; + } + return 0F; + } + /** + * float f32_value = 9; + * @param value The f32Value to set. + * @return This builder for chaining. + */ + public Builder setF32Value(float value) { + valueDataCase_ = 9; + valueData_ = value; + onChanged(); + return this; + } + /** + * float f32_value = 9; + * @return This builder for chaining. + */ + public Builder clearF32Value() { + if (valueDataCase_ == 9) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * double f64_value = 10; + * @return Whether the f64Value field is set. + */ + public boolean hasF64Value() { + return valueDataCase_ == 10; + } + /** + * double f64_value = 10; + * @return The f64Value. + */ + public double getF64Value() { + if (valueDataCase_ == 10) { + return (java.lang.Double) valueData_; + } + return 0D; + } + /** + * double f64_value = 10; + * @param value The f64Value to set. + * @return This builder for chaining. + */ + public Builder setF64Value(double value) { + valueDataCase_ = 10; + valueData_ = value; + onChanged(); + return this; + } + /** + * double f64_value = 10; + * @return This builder for chaining. + */ + public Builder clearF64Value() { + if (valueDataCase_ == 10) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * bool bool_value = 11; + * @return Whether the boolValue field is set. + */ + public boolean hasBoolValue() { + return valueDataCase_ == 11; + } + /** + * bool bool_value = 11; + * @return The boolValue. + */ + public boolean getBoolValue() { + if (valueDataCase_ == 11) { + return (java.lang.Boolean) valueData_; + } + return false; + } + /** + * bool bool_value = 11; + * @param value The boolValue to set. + * @return This builder for chaining. + */ + public Builder setBoolValue(boolean value) { + valueDataCase_ = 11; + valueData_ = value; + onChanged(); + return this; + } + /** + * bool bool_value = 11; + * @return This builder for chaining. + */ + public Builder clearBoolValue() { + if (valueDataCase_ == 11) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * bytes binary_value = 12; + * @return Whether the binaryValue field is set. + */ + public boolean hasBinaryValue() { + return valueDataCase_ == 12; + } + /** + * bytes binary_value = 12; + * @return The binaryValue. + */ + public com.google.protobuf.ByteString getBinaryValue() { + if (valueDataCase_ == 12) { + return (com.google.protobuf.ByteString) valueData_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + * bytes binary_value = 12; + * @param value The binaryValue to set. + * @return This builder for chaining. + */ + public Builder setBinaryValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + valueDataCase_ = 12; + valueData_ = value; + onChanged(); + return this; + } + /** + * bytes binary_value = 12; + * @return This builder for chaining. + */ + public Builder clearBinaryValue() { + if (valueDataCase_ == 12) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * string string_value = 13; + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return valueDataCase_ == 13; + } + /** + * string string_value = 13; + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueDataCase_ == 13) { + ref = valueData_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueDataCase_ == 13) { + valueData_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string string_value = 13; + * @return The bytes for stringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueDataCase_ == 13) { + ref = valueData_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueDataCase_ == 13) { + valueData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string string_value = 13; + * @param value The stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueDataCase_ = 13; + valueData_ = value; + onChanged(); + return this; + } + /** + * string string_value = 13; + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (valueDataCase_ == 13) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + /** + * string string_value = 13; + * @param value The bytes for stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueDataCase_ = 13; + valueData_ = value; + onChanged(); + return this; + } + + /** + * int32 date_value = 14; + * @return Whether the dateValue field is set. + */ + public boolean hasDateValue() { + return valueDataCase_ == 14; + } + /** + * int32 date_value = 14; + * @return The dateValue. + */ + public int getDateValue() { + if (valueDataCase_ == 14) { + return (java.lang.Integer) valueData_; + } + return 0; + } + /** + * int32 date_value = 14; + * @param value The dateValue to set. + * @return This builder for chaining. + */ + public Builder setDateValue(int value) { + valueDataCase_ = 14; + valueData_ = value; + onChanged(); + return this; + } + /** + * int32 date_value = 14; + * @return This builder for chaining. + */ + public Builder clearDateValue() { + if (valueDataCase_ == 14) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int64 datetime_value = 15; + * @return Whether the datetimeValue field is set. + */ + public boolean hasDatetimeValue() { + return valueDataCase_ == 15; + } + /** + * int64 datetime_value = 15; + * @return The datetimeValue. + */ + public long getDatetimeValue() { + if (valueDataCase_ == 15) { + return (java.lang.Long) valueData_; + } + return 0L; + } + /** + * int64 datetime_value = 15; + * @param value The datetimeValue to set. + * @return This builder for chaining. + */ + public Builder setDatetimeValue(long value) { + valueDataCase_ = 15; + valueData_ = value; + onChanged(); + return this; + } + /** + * int64 datetime_value = 15; + * @return This builder for chaining. + */ + public Builder clearDatetimeValue() { + if (valueDataCase_ == 15) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int64 ts_second_value = 16; + * @return Whether the tsSecondValue field is set. + */ + public boolean hasTsSecondValue() { + return valueDataCase_ == 16; + } + /** + * int64 ts_second_value = 16; + * @return The tsSecondValue. + */ + public long getTsSecondValue() { + if (valueDataCase_ == 16) { + return (java.lang.Long) valueData_; + } + return 0L; + } + /** + * int64 ts_second_value = 16; + * @param value The tsSecondValue to set. + * @return This builder for chaining. + */ + public Builder setTsSecondValue(long value) { + valueDataCase_ = 16; + valueData_ = value; + onChanged(); + return this; + } + /** + * int64 ts_second_value = 16; + * @return This builder for chaining. + */ + public Builder clearTsSecondValue() { + if (valueDataCase_ == 16) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int64 ts_millisecond_value = 17; + * @return Whether the tsMillisecondValue field is set. + */ + public boolean hasTsMillisecondValue() { + return valueDataCase_ == 17; + } + /** + * int64 ts_millisecond_value = 17; + * @return The tsMillisecondValue. + */ + public long getTsMillisecondValue() { + if (valueDataCase_ == 17) { + return (java.lang.Long) valueData_; + } + return 0L; + } + /** + * int64 ts_millisecond_value = 17; + * @param value The tsMillisecondValue to set. + * @return This builder for chaining. + */ + public Builder setTsMillisecondValue(long value) { + valueDataCase_ = 17; + valueData_ = value; + onChanged(); + return this; + } + /** + * int64 ts_millisecond_value = 17; + * @return This builder for chaining. + */ + public Builder clearTsMillisecondValue() { + if (valueDataCase_ == 17) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int64 ts_microsecond_value = 18; + * @return Whether the tsMicrosecondValue field is set. + */ + public boolean hasTsMicrosecondValue() { + return valueDataCase_ == 18; + } + /** + * int64 ts_microsecond_value = 18; + * @return The tsMicrosecondValue. + */ + public long getTsMicrosecondValue() { + if (valueDataCase_ == 18) { + return (java.lang.Long) valueData_; + } + return 0L; + } + /** + * int64 ts_microsecond_value = 18; + * @param value The tsMicrosecondValue to set. + * @return This builder for chaining. + */ + public Builder setTsMicrosecondValue(long value) { + valueDataCase_ = 18; + valueData_ = value; + onChanged(); + return this; + } + /** + * int64 ts_microsecond_value = 18; + * @return This builder for chaining. + */ + public Builder clearTsMicrosecondValue() { + if (valueDataCase_ == 18) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int64 ts_nanosecond_value = 19; + * @return Whether the tsNanosecondValue field is set. + */ + public boolean hasTsNanosecondValue() { + return valueDataCase_ == 19; + } + /** + * int64 ts_nanosecond_value = 19; + * @return The tsNanosecondValue. + */ + public long getTsNanosecondValue() { + if (valueDataCase_ == 19) { + return (java.lang.Long) valueData_; + } + return 0L; + } + /** + * int64 ts_nanosecond_value = 19; + * @param value The tsNanosecondValue to set. + * @return This builder for chaining. + */ + public Builder setTsNanosecondValue(long value) { + valueDataCase_ = 19; + valueData_ = value; + onChanged(); + return this; + } + /** + * int64 ts_nanosecond_value = 19; + * @return This builder for chaining. + */ + public Builder clearTsNanosecondValue() { + if (valueDataCase_ == 19) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int64 time_second_value = 20; + * @return Whether the timeSecondValue field is set. + */ + public boolean hasTimeSecondValue() { + return valueDataCase_ == 20; + } + /** + * int64 time_second_value = 20; + * @return The timeSecondValue. + */ + public long getTimeSecondValue() { + if (valueDataCase_ == 20) { + return (java.lang.Long) valueData_; + } + return 0L; + } + /** + * int64 time_second_value = 20; + * @param value The timeSecondValue to set. + * @return This builder for chaining. + */ + public Builder setTimeSecondValue(long value) { + valueDataCase_ = 20; + valueData_ = value; + onChanged(); + return this; + } + /** + * int64 time_second_value = 20; + * @return This builder for chaining. + */ + public Builder clearTimeSecondValue() { + if (valueDataCase_ == 20) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int64 time_millisecond_value = 21; + * @return Whether the timeMillisecondValue field is set. + */ + public boolean hasTimeMillisecondValue() { + return valueDataCase_ == 21; + } + /** + * int64 time_millisecond_value = 21; + * @return The timeMillisecondValue. + */ + public long getTimeMillisecondValue() { + if (valueDataCase_ == 21) { + return (java.lang.Long) valueData_; + } + return 0L; + } + /** + * int64 time_millisecond_value = 21; + * @param value The timeMillisecondValue to set. + * @return This builder for chaining. + */ + public Builder setTimeMillisecondValue(long value) { + valueDataCase_ = 21; + valueData_ = value; + onChanged(); + return this; + } + /** + * int64 time_millisecond_value = 21; + * @return This builder for chaining. + */ + public Builder clearTimeMillisecondValue() { + if (valueDataCase_ == 21) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int64 time_microsecond_value = 22; + * @return Whether the timeMicrosecondValue field is set. + */ + public boolean hasTimeMicrosecondValue() { + return valueDataCase_ == 22; + } + /** + * int64 time_microsecond_value = 22; + * @return The timeMicrosecondValue. + */ + public long getTimeMicrosecondValue() { + if (valueDataCase_ == 22) { + return (java.lang.Long) valueData_; + } + return 0L; + } + /** + * int64 time_microsecond_value = 22; + * @param value The timeMicrosecondValue to set. + * @return This builder for chaining. + */ + public Builder setTimeMicrosecondValue(long value) { + valueDataCase_ = 22; + valueData_ = value; + onChanged(); + return this; + } + /** + * int64 time_microsecond_value = 22; + * @return This builder for chaining. + */ + public Builder clearTimeMicrosecondValue() { + if (valueDataCase_ == 22) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + + /** + * int64 time_nanosecond_value = 23; + * @return Whether the timeNanosecondValue field is set. + */ + public boolean hasTimeNanosecondValue() { + return valueDataCase_ == 23; + } + /** + * int64 time_nanosecond_value = 23; + * @return The timeNanosecondValue. + */ + public long getTimeNanosecondValue() { + if (valueDataCase_ == 23) { + return (java.lang.Long) valueData_; + } + return 0L; + } + /** + * int64 time_nanosecond_value = 23; + * @param value The timeNanosecondValue to set. + * @return This builder for chaining. + */ + public Builder setTimeNanosecondValue(long value) { + valueDataCase_ = 23; + valueData_ = value; + onChanged(); + return this; + } + /** + * int64 time_nanosecond_value = 23; + * @return This builder for chaining. + */ + public Builder clearTimeNanosecondValue() { + if (valueDataCase_ == 23) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.Value) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.Value) + private static final io.greptime.v1.RowData.Value DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.RowData.Value(); + } + + public static io.greptime.v1.RowData.Value getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Value parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Value(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.RowData.Value getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_Rows_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_Rows_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_ColumnSchema_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ColumnSchema_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_Row_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_Row_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_Value_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_Value_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\025greptime/v1/row.proto\022\013greptime.v1\032\030gr" + + "eptime/v1/common.proto\"Q\n\004Rows\022)\n\006schema" + + "\030\001 \003(\0132\031.greptime.v1.ColumnSchema\022\036\n\004row" + + "s\030\002 \003(\0132\020.greptime.v1.Row\"\204\001\n\014ColumnSche" + + "ma\022\023\n\013column_name\030\001 \001(\t\022-\n\010datatype\030\002 \001(" + + "\0162\033.greptime.v1.ColumnDataType\0220\n\rsemant" + + "ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType" + + "\")\n\003Row\022\"\n\006values\030\001 \003(\0132\022.greptime.v1.Va" + + "lue\"\327\004\n\005Value\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16" + + "_value\030\002 \001(\005H\000\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti" + + "64_value\030\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\t" + + "u16_value\030\006 \001(\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023" + + "\n\tu64_value\030\010 \001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000" + + "\022\023\n\tf64_value\030\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(" + + "\010H\000\022\026\n\014binary_value\030\014 \001(\014H\000\022\026\n\014string_va" + + "lue\030\r \001(\tH\000\022\024\n\ndate_value\030\016 \001(\005H\000\022\030\n\016dat" + + "etime_value\030\017 \001(\003H\000\022\031\n\017ts_second_value\030\020" + + " \001(\003H\000\022\036\n\024ts_millisecond_value\030\021 \001(\003H\000\022\036" + + "\n\024ts_microsecond_value\030\022 \001(\003H\000\022\035\n\023ts_nan" + + "osecond_value\030\023 \001(\003H\000\022\033\n\021time_second_val" + + "ue\030\024 \001(\003H\000\022 \n\026time_millisecond_value\030\025 \001" + + "(\003H\000\022 \n\026time_microsecond_value\030\026 \001(\003H\000\022\037" + + "\n\025time_nanosecond_value\030\027 \001(\003H\000B\014\n\nvalue" + + "_dataBP\n\016io.greptime.v1B\007RowDataZ5github" + + ".com/GreptimeTeam/greptime-proto/go/grep" + + "time/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.greptime.v1.Common.getDescriptor(), + }); + internal_static_greptime_v1_Rows_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_greptime_v1_Rows_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_Rows_descriptor, + new java.lang.String[] { "Schema", "Rows", }); + internal_static_greptime_v1_ColumnSchema_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_greptime_v1_ColumnSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ColumnSchema_descriptor, + new java.lang.String[] { "ColumnName", "Datatype", "SemanticType", }); + internal_static_greptime_v1_Row_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_greptime_v1_Row_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_Row_descriptor, + new java.lang.String[] { "Values", }); + internal_static_greptime_v1_Value_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_greptime_v1_Value_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_Value_descriptor, + new java.lang.String[] { "I8Value", "I16Value", "I32Value", "I64Value", "U8Value", "U16Value", "U32Value", "U64Value", "F32Value", "F64Value", "BoolValue", "BinaryValue", "StringValue", "DateValue", "DatetimeValue", "TsSecondValue", "TsMillisecondValue", "TsMicrosecondValue", "TsNanosecondValue", "TimeSecondValue", "TimeMillisecondValue", "TimeMicrosecondValue", "TimeNanosecondValue", "ValueData", }); + io.greptime.v1.Common.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto/greptime/v1/database.proto b/proto/greptime/v1/database.proto index 059dd02..0820b68 100644 --- a/proto/greptime/v1/database.proto +++ b/proto/greptime/v1/database.proto @@ -22,6 +22,7 @@ option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1"; import "greptime/v1/ddl.proto"; import "greptime/v1/column.proto"; +import "greptime/v1/row.proto"; import "greptime/v1/prom.proto"; import "greptime/v1/common.proto"; @@ -38,6 +39,8 @@ message GreptimeRequest { QueryRequest query = 3; DdlRequest ddl = 4; DeleteRequest delete = 5; + RowInsertRequests row_inserts = 6; + RowDeleteRequest row_delete = 7; } } @@ -87,3 +90,29 @@ message DeleteRequest { // The row count of all columns above. uint32 row_count = 4; } + +message RowInsertRequests { + repeated RowInsertRequest inserts = 1; +} + +message RowInsertRequest { + string table_name = 1; + + // Data is represented here. + Rows rows = 2; + + // The region number of current insert request. + uint32 region_number = 3; +} + +message RowDeleteRequest { + // The table name to delete from. Catalog name and schema name are in the + // `RequestHeader`. + string table_name = 1; + + // The data to delete. + Rows rows = 2; + + // The region number of current delete request. + uint32 region_number = 3; +} diff --git a/proto/greptime/v1/row.proto b/proto/greptime/v1/row.proto new file mode 100644 index 0000000..24fca94 --- /dev/null +++ b/proto/greptime/v1/row.proto @@ -0,0 +1,70 @@ +// Copyright 2023 Greptime Team +// +// Licensed 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. + +syntax = "proto3"; + +package greptime.v1; + +option java_package = "io.greptime.v1"; +option java_outer_classname = "RowData"; +option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1"; + +import "greptime/v1/common.proto"; + +message Rows { + repeated ColumnSchema schema = 1; + repeated Row rows = 2; +} + +message ColumnSchema { + string column_name = 1; + ColumnDataType datatype = 2; + SemanticType semantic_type = 3; +} + +message Row { + repeated Value values = 1; +} + +message Value { + oneof value_data { + int32 i8_value = 1; + int32 i16_value = 2; + int32 i32_value = 3; + int64 i64_value = 4; + + uint32 u8_value = 5; + uint32 u16_value = 6; + uint32 u32_value = 7; + uint64 u64_value = 8; + + float f32_value = 9; + double f64_value = 10; + + bool bool_value = 11; + bytes binary_value = 12; + string string_value = 13; + + int32 date_value = 14; + int64 datetime_value = 15; + int64 ts_second_value = 16; + int64 ts_millisecond_value = 17; + int64 ts_microsecond_value = 18; + int64 ts_nanosecond_value = 19; + int64 time_second_value = 20; + int64 time_millisecond_value = 21; + int64 time_microsecond_value = 22; + int64 time_nanosecond_value = 23; + } +}