diff --git a/c++/greptime/v1/meta/procedure.pb.cc b/c++/greptime/v1/meta/procedure.pb.cc index 4749653c..b7d5d6d4 100644 --- a/c++/greptime/v1/meta/procedure.pb.cc +++ b/c++/greptime/v1/meta/procedure.pb.cc @@ -29,8 +29,8 @@ PROTOBUF_CONSTEXPR ProcedureMeta::ProcedureMeta( , /*decltype(_impl_.type_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.error_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.id_)*/nullptr - , /*decltype(_impl_.start_time_ms_)*/uint64_t{0u} - , /*decltype(_impl_.end_time_ms_)*/uint64_t{0u} + , /*decltype(_impl_.start_time_ms_)*/int64_t{0} + , /*decltype(_impl_.end_time_ms_)*/int64_t{0} , /*decltype(_impl_.status_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} struct ProcedureMetaDefaultTypeInternal { @@ -176,7 +176,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[] "\022)\n\002id\030\001 \001(\0132\035.greptime.v1.meta.Procedur" "eId\022\021\n\ttype_name\030\002 \001(\t\0221\n\006status\030\003 \001(\0162!" ".greptime.v1.meta.ProcedureStatus\022\025\n\rsta" - "rt_time_ms\030\004 \001(\004\022\023\n\013end_time_ms\030\005 \001(\004\022\021\n" + "rt_time_ms\030\004 \001(\003\022\023\n\013end_time_ms\030\005 \001(\003\022\021\n" "\tlock_keys\030\006 \003(\t\022\r\n\005error\030\007 \001(\t\"t\n\025Query" "ProcedureRequest\022/\n\006header\030\001 \001(\0132\037.grept" "ime.v1.meta.RequestHeader\022*\n\003pid\030\002 \001(\0132\035" @@ -318,8 +318,8 @@ inline void ProcedureMeta::SharedCtor( , decltype(_impl_.type_name_){} , decltype(_impl_.error_){} , decltype(_impl_.id_){nullptr} - , decltype(_impl_.start_time_ms_){uint64_t{0u}} - , decltype(_impl_.end_time_ms_){uint64_t{0u}} + , decltype(_impl_.start_time_ms_){int64_t{0}} + , decltype(_impl_.end_time_ms_){int64_t{0}} , decltype(_impl_.status_){0} , /*decltype(_impl_._cached_size_)*/{} }; @@ -406,7 +406,7 @@ const char* ProcedureMeta::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // uint64 start_time_ms = 4; + // int64 start_time_ms = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { _impl_.start_time_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); @@ -414,7 +414,7 @@ const char* ProcedureMeta::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // uint64 end_time_ms = 5; + // int64 end_time_ms = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { _impl_.end_time_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); @@ -500,16 +500,16 @@ uint8_t* ProcedureMeta::_InternalSerialize( 3, this->_internal_status(), target); } - // uint64 start_time_ms = 4; + // int64 start_time_ms = 4; if (this->_internal_start_time_ms() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_start_time_ms(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(4, this->_internal_start_time_ms(), target); } - // uint64 end_time_ms = 5; + // int64 end_time_ms = 5; if (this->_internal_end_time_ms() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_end_time_ms(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_end_time_ms(), target); } // repeated string lock_keys = 6; @@ -577,14 +577,14 @@ size_t ProcedureMeta::ByteSizeLong() const { *_impl_.id_); } - // uint64 start_time_ms = 4; + // int64 start_time_ms = 4; if (this->_internal_start_time_ms() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start_time_ms()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_start_time_ms()); } - // uint64 end_time_ms = 5; + // int64 end_time_ms = 5; if (this->_internal_end_time_ms() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_end_time_ms()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_end_time_ms()); } // .greptime.v1.meta.ProcedureStatus status = 3; diff --git a/c++/greptime/v1/meta/procedure.pb.h b/c++/greptime/v1/meta/procedure.pb.h index ebfb7e89..a093633d 100644 --- a/c++/greptime/v1/meta/procedure.pb.h +++ b/c++/greptime/v1/meta/procedure.pb.h @@ -310,22 +310,22 @@ class ProcedureMeta final : ::greptime::v1::meta::ProcedureId* id); ::greptime::v1::meta::ProcedureId* unsafe_arena_release_id(); - // uint64 start_time_ms = 4; + // int64 start_time_ms = 4; void clear_start_time_ms(); - uint64_t start_time_ms() const; - void set_start_time_ms(uint64_t value); + int64_t start_time_ms() const; + void set_start_time_ms(int64_t value); private: - uint64_t _internal_start_time_ms() const; - void _internal_set_start_time_ms(uint64_t value); + int64_t _internal_start_time_ms() const; + void _internal_set_start_time_ms(int64_t value); public: - // uint64 end_time_ms = 5; + // int64 end_time_ms = 5; void clear_end_time_ms(); - uint64_t end_time_ms() const; - void set_end_time_ms(uint64_t value); + int64_t end_time_ms() const; + void set_end_time_ms(int64_t value); private: - uint64_t _internal_end_time_ms() const; - void _internal_set_end_time_ms(uint64_t value); + int64_t _internal_end_time_ms() const; + void _internal_set_end_time_ms(int64_t value); public: // .greptime.v1.meta.ProcedureStatus status = 3; @@ -349,8 +349,8 @@ class ProcedureMeta final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_; ::greptime::v1::meta::ProcedureId* id_; - uint64_t start_time_ms_; - uint64_t end_time_ms_; + int64_t start_time_ms_; + int64_t end_time_ms_; int status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -1218,42 +1218,42 @@ inline void ProcedureMeta::set_status(::greptime::v1::meta::ProcedureStatus valu // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.status) } -// uint64 start_time_ms = 4; +// int64 start_time_ms = 4; inline void ProcedureMeta::clear_start_time_ms() { - _impl_.start_time_ms_ = uint64_t{0u}; + _impl_.start_time_ms_ = int64_t{0}; } -inline uint64_t ProcedureMeta::_internal_start_time_ms() const { +inline int64_t ProcedureMeta::_internal_start_time_ms() const { return _impl_.start_time_ms_; } -inline uint64_t ProcedureMeta::start_time_ms() const { +inline int64_t ProcedureMeta::start_time_ms() const { // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.start_time_ms) return _internal_start_time_ms(); } -inline void ProcedureMeta::_internal_set_start_time_ms(uint64_t value) { +inline void ProcedureMeta::_internal_set_start_time_ms(int64_t value) { _impl_.start_time_ms_ = value; } -inline void ProcedureMeta::set_start_time_ms(uint64_t value) { +inline void ProcedureMeta::set_start_time_ms(int64_t value) { _internal_set_start_time_ms(value); // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.start_time_ms) } -// uint64 end_time_ms = 5; +// int64 end_time_ms = 5; inline void ProcedureMeta::clear_end_time_ms() { - _impl_.end_time_ms_ = uint64_t{0u}; + _impl_.end_time_ms_ = int64_t{0}; } -inline uint64_t ProcedureMeta::_internal_end_time_ms() const { +inline int64_t ProcedureMeta::_internal_end_time_ms() const { return _impl_.end_time_ms_; } -inline uint64_t ProcedureMeta::end_time_ms() const { +inline int64_t ProcedureMeta::end_time_ms() const { // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.end_time_ms) return _internal_end_time_ms(); } -inline void ProcedureMeta::_internal_set_end_time_ms(uint64_t value) { +inline void ProcedureMeta::_internal_set_end_time_ms(int64_t value) { _impl_.end_time_ms_ = value; } -inline void ProcedureMeta::set_end_time_ms(uint64_t value) { +inline void ProcedureMeta::set_end_time_ms(int64_t value) { _internal_set_end_time_ms(value); // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.end_time_ms) } diff --git a/go/greptime/v1/meta/procedure.pb.go b/go/greptime/v1/meta/procedure.pb.go index 672688a1..7abfa48f 100644 --- a/go/greptime/v1/meta/procedure.pb.go +++ b/go/greptime/v1/meta/procedure.pb.go @@ -90,8 +90,8 @@ type ProcedureMeta struct { Id *ProcedureId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` TypeName string `protobuf:"bytes,2,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` Status ProcedureStatus `protobuf:"varint,3,opt,name=status,proto3,enum=greptime.v1.meta.ProcedureStatus" json:"status,omitempty"` - StartTimeMs uint64 `protobuf:"varint,4,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"` - EndTimeMs uint64 `protobuf:"varint,5,opt,name=end_time_ms,json=endTimeMs,proto3" json:"end_time_ms,omitempty"` + StartTimeMs int64 `protobuf:"varint,4,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"` + EndTimeMs int64 `protobuf:"varint,5,opt,name=end_time_ms,json=endTimeMs,proto3" json:"end_time_ms,omitempty"` LockKeys []string `protobuf:"bytes,6,rep,name=lock_keys,json=lockKeys,proto3" json:"lock_keys,omitempty"` Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"` } @@ -149,14 +149,14 @@ func (x *ProcedureMeta) GetStatus() ProcedureStatus { return ProcedureStatus_Running } -func (x *ProcedureMeta) GetStartTimeMs() uint64 { +func (x *ProcedureMeta) GetStartTimeMs() int64 { if x != nil { return x.StartTimeMs } return 0 } -func (x *ProcedureMeta) GetEndTimeMs() uint64 { +func (x *ProcedureMeta) GetEndTimeMs() int64 { if x != nil { return x.EndTimeMs } @@ -419,9 +419,9 @@ var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x65, - 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, + 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, diff --git a/java/src/main/java/greptime/v1/meta/Procedure.java b/java/src/main/java/greptime/v1/meta/Procedure.java index ea34668e..ac1ae83a 100644 --- a/java/src/main/java/greptime/v1/meta/Procedure.java +++ b/java/src/main/java/greptime/v1/meta/Procedure.java @@ -201,13 +201,13 @@ public interface ProcedureMetaOrBuilder extends greptime.v1.meta.Procedure.ProcedureStatus getStatus(); /** - * uint64 start_time_ms = 4; + * int64 start_time_ms = 4; * @return The startTimeMs. */ long getStartTimeMs(); /** - * uint64 end_time_ms = 5; + * int64 end_time_ms = 5; * @return The endTimeMs. */ long getEndTimeMs(); @@ -326,12 +326,12 @@ private ProcedureMeta( } case 32: { - startTimeMs_ = input.readUInt64(); + startTimeMs_ = input.readInt64(); break; } case 40: { - endTimeMs_ = input.readUInt64(); + endTimeMs_ = input.readInt64(); break; } case 50: { @@ -472,7 +472,7 @@ public java.lang.String getTypeName() { public static final int START_TIME_MS_FIELD_NUMBER = 4; private long startTimeMs_; /** - * uint64 start_time_ms = 4; + * int64 start_time_ms = 4; * @return The startTimeMs. */ @java.lang.Override @@ -483,7 +483,7 @@ public long getStartTimeMs() { public static final int END_TIME_MS_FIELD_NUMBER = 5; private long endTimeMs_; /** - * uint64 end_time_ms = 5; + * int64 end_time_ms = 5; * @return The endTimeMs. */ @java.lang.Override @@ -588,10 +588,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeEnum(3, status_); } if (startTimeMs_ != 0L) { - output.writeUInt64(4, startTimeMs_); + output.writeInt64(4, startTimeMs_); } if (endTimeMs_ != 0L) { - output.writeUInt64(5, endTimeMs_); + output.writeInt64(5, endTimeMs_); } for (int i = 0; i < lockKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, lockKeys_.getRaw(i)); @@ -621,11 +621,11 @@ public int getSerializedSize() { } if (startTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, startTimeMs_); + .computeInt64Size(4, startTimeMs_); } if (endTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, endTimeMs_); + .computeInt64Size(5, endTimeMs_); } { int dataSize = 0; @@ -1252,7 +1252,7 @@ public Builder clearStatus() { private long startTimeMs_ ; /** - * uint64 start_time_ms = 4; + * int64 start_time_ms = 4; * @return The startTimeMs. */ @java.lang.Override @@ -1260,7 +1260,7 @@ public long getStartTimeMs() { return startTimeMs_; } /** - * uint64 start_time_ms = 4; + * int64 start_time_ms = 4; * @param value The startTimeMs to set. * @return This builder for chaining. */ @@ -1271,7 +1271,7 @@ public Builder setStartTimeMs(long value) { return this; } /** - * uint64 start_time_ms = 4; + * int64 start_time_ms = 4; * @return This builder for chaining. */ public Builder clearStartTimeMs() { @@ -1283,7 +1283,7 @@ public Builder clearStartTimeMs() { private long endTimeMs_ ; /** - * uint64 end_time_ms = 5; + * int64 end_time_ms = 5; * @return The endTimeMs. */ @java.lang.Override @@ -1291,7 +1291,7 @@ public long getEndTimeMs() { return endTimeMs_; } /** - * uint64 end_time_ms = 5; + * int64 end_time_ms = 5; * @param value The endTimeMs to set. * @return This builder for chaining. */ @@ -1302,7 +1302,7 @@ public Builder setEndTimeMs(long value) { return this; } /** - * uint64 end_time_ms = 5; + * int64 end_time_ms = 5; * @return This builder for chaining. */ public Builder clearEndTimeMs() { @@ -4918,7 +4918,7 @@ public greptime.v1.meta.Procedure.ProcedureDetailResponse getDefaultInstanceForT "\022)\n\002id\030\001 \001(\0132\035.greptime.v1.meta.Procedur" + "eId\022\021\n\ttype_name\030\002 \001(\t\0221\n\006status\030\003 \001(\0162!" + ".greptime.v1.meta.ProcedureStatus\022\025\n\rsta" + - "rt_time_ms\030\004 \001(\004\022\023\n\013end_time_ms\030\005 \001(\004\022\021\n" + + "rt_time_ms\030\004 \001(\003\022\023\n\013end_time_ms\030\005 \001(\003\022\021\n" + "\tlock_keys\030\006 \003(\t\022\r\n\005error\030\007 \001(\t\"t\n\025Query" + "ProcedureRequest\022/\n\006header\030\001 \001(\0132\037.grept" + "ime.v1.meta.RequestHeader\022*\n\003pid\030\002 \001(\0132\035" + diff --git a/proto/greptime/v1/meta/procedure.proto b/proto/greptime/v1/meta/procedure.proto index 4f62da55..7b53d88f 100644 --- a/proto/greptime/v1/meta/procedure.proto +++ b/proto/greptime/v1/meta/procedure.proto @@ -25,8 +25,8 @@ message ProcedureMeta { ProcedureId id = 1; string type_name = 2; ProcedureStatus status = 3; - uint64 start_time_ms = 4; - uint64 end_time_ms = 5; + int64 start_time_ms = 4; + int64 end_time_ms = 5; repeated string lock_keys = 6; string error = 7; }