From 5335b6dc66ff9013b8f600ac3cb2c76073fda7cb Mon Sep 17 00:00:00 2001 From: Yevgeny Pats Date: Fri, 30 Jun 2023 12:47:40 +0300 Subject: [PATCH] feat: Expose Read via gRPC (#47) Regen https://github.com/cloudquery/plugin-pb/pull/11 --- pb/plugin/v3/plugin.pb.go | 547 ++++++++++++++++++++++----------- pb/plugin/v3/plugin_grpc.pb.go | 69 ++++- 2 files changed, 434 insertions(+), 182 deletions(-) diff --git a/pb/plugin/v3/plugin.pb.go b/pb/plugin/v3/plugin.pb.go index a7bd849..9e0e536 100644 --- a/pb/plugin/v3/plugin.pb.go +++ b/pb/plugin/v3/plugin.pb.go @@ -211,6 +211,44 @@ func (*Sync) Descriptor() ([]byte, []int) { return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{4} } +type Read struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Read) Reset() { + *x = Read{} + if protoimpl.UnsafeEnabled { + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Read) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Read) ProtoMessage() {} + +func (x *Read) ProtoReflect() protoreflect.Message { + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[5] + 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 Read.ProtoReflect.Descriptor instead. +func (*Read) Descriptor() ([]byte, []int) { + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{5} +} + type Write struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -220,7 +258,7 @@ type Write struct { func (x *Write) Reset() { *x = Write{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[5] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -233,7 +271,7 @@ func (x *Write) String() string { func (*Write) ProtoMessage() {} func (x *Write) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[5] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -246,7 +284,7 @@ func (x *Write) ProtoReflect() protoreflect.Message { // Deprecated: Use Write.ProtoReflect.Descriptor instead. func (*Write) Descriptor() ([]byte, []int) { - return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{5} + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{6} } type Close struct { @@ -258,7 +296,7 @@ type Close struct { func (x *Close) Reset() { *x = Close{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[6] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -271,7 +309,7 @@ func (x *Close) String() string { func (*Close) ProtoMessage() {} func (x *Close) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[6] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -284,7 +322,7 @@ func (x *Close) ProtoReflect() protoreflect.Message { // Deprecated: Use Close.ProtoReflect.Descriptor instead. func (*Close) Descriptor() ([]byte, []int) { - return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{6} + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{7} } type GetName_Request struct { @@ -296,7 +334,7 @@ type GetName_Request struct { func (x *GetName_Request) Reset() { *x = GetName_Request{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[7] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -309,7 +347,7 @@ func (x *GetName_Request) String() string { func (*GetName_Request) ProtoMessage() {} func (x *GetName_Request) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[7] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -336,7 +374,7 @@ type GetName_Response struct { func (x *GetName_Response) Reset() { *x = GetName_Response{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[8] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -349,7 +387,7 @@ func (x *GetName_Response) String() string { func (*GetName_Response) ProtoMessage() {} func (x *GetName_Response) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[8] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -381,7 +419,7 @@ type GetVersion_Request struct { func (x *GetVersion_Request) Reset() { *x = GetVersion_Request{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[9] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -394,7 +432,7 @@ func (x *GetVersion_Request) String() string { func (*GetVersion_Request) ProtoMessage() {} func (x *GetVersion_Request) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[9] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -421,7 +459,7 @@ type GetVersion_Response struct { func (x *GetVersion_Response) Reset() { *x = GetVersion_Response{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[10] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -434,7 +472,7 @@ func (x *GetVersion_Response) String() string { func (*GetVersion_Response) ProtoMessage() {} func (x *GetVersion_Response) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[10] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -469,7 +507,7 @@ type Init_Request struct { func (x *Init_Request) Reset() { *x = Init_Request{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[11] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -482,7 +520,7 @@ func (x *Init_Request) String() string { func (*Init_Request) ProtoMessage() {} func (x *Init_Request) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[11] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -514,7 +552,7 @@ type Init_Response struct { func (x *Init_Response) Reset() { *x = Init_Response{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[12] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -527,7 +565,7 @@ func (x *Init_Response) String() string { func (*Init_Response) ProtoMessage() {} func (x *Init_Response) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[12] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -555,7 +593,7 @@ type GetTables_Request struct { func (x *GetTables_Request) Reset() { *x = GetTables_Request{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[13] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -568,7 +606,7 @@ func (x *GetTables_Request) String() string { func (*GetTables_Request) ProtoMessage() {} func (x *GetTables_Request) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[13] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -610,7 +648,7 @@ type GetTables_Response struct { func (x *GetTables_Response) Reset() { *x = GetTables_Response{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[14] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -623,7 +661,7 @@ func (x *GetTables_Response) String() string { func (*GetTables_Response) ProtoMessage() {} func (x *GetTables_Response) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[14] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -658,7 +696,7 @@ type Sync_MessageInsert struct { func (x *Sync_MessageInsert) Reset() { *x = Sync_MessageInsert{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[15] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -671,7 +709,7 @@ func (x *Sync_MessageInsert) String() string { func (*Sync_MessageInsert) ProtoMessage() {} func (x *Sync_MessageInsert) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[15] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -706,7 +744,7 @@ type Sync_MessageMigrateTable struct { func (x *Sync_MessageMigrateTable) Reset() { *x = Sync_MessageMigrateTable{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[16] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -719,7 +757,7 @@ func (x *Sync_MessageMigrateTable) String() string { func (*Sync_MessageMigrateTable) ProtoMessage() {} func (x *Sync_MessageMigrateTable) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[16] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -756,7 +794,7 @@ type Sync_Request struct { func (x *Sync_Request) Reset() { *x = Sync_Request{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[17] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -769,7 +807,7 @@ func (x *Sync_Request) String() string { func (*Sync_Request) ProtoMessage() {} func (x *Sync_Request) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[17] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -828,7 +866,7 @@ type Sync_Response struct { func (x *Sync_Response) Reset() { *x = Sync_Response{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[18] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -841,7 +879,7 @@ func (x *Sync_Response) String() string { func (*Sync_Response) ProtoMessage() {} func (x *Sync_Response) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[18] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -894,6 +932,102 @@ func (*Sync_Response_MigrateTable) isSync_Response_Message() {} func (*Sync_Response_Insert) isSync_Response_Message() {} +type Read_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // marshalled arrow.Schema + Table []byte `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"` +} + +func (x *Read_Request) Reset() { + *x = Read_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Read_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Read_Request) ProtoMessage() {} + +func (x *Read_Request) ProtoReflect() protoreflect.Message { + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[20] + 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 Read_Request.ProtoReflect.Descriptor instead. +func (*Read_Request) Descriptor() ([]byte, []int) { + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{5, 0} +} + +func (x *Read_Request) GetTable() []byte { + if x != nil { + return x.Table + } + return nil +} + +type Read_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // marshalled arrow.Record + Record []byte `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"` +} + +func (x *Read_Response) Reset() { + *x = Read_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Read_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Read_Response) ProtoMessage() {} + +func (x *Read_Response) ProtoReflect() protoreflect.Message { + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[21] + 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 Read_Response.ProtoReflect.Descriptor instead. +func (*Read_Response) Descriptor() ([]byte, []int) { + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{5, 1} +} + +func (x *Read_Response) GetRecord() []byte { + if x != nil { + return x.Record + } + return nil +} + type Write_MessageMigrateTable struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -907,7 +1041,7 @@ type Write_MessageMigrateTable struct { func (x *Write_MessageMigrateTable) Reset() { *x = Write_MessageMigrateTable{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[19] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -920,7 +1054,7 @@ func (x *Write_MessageMigrateTable) String() string { func (*Write_MessageMigrateTable) ProtoMessage() {} func (x *Write_MessageMigrateTable) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[19] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -933,7 +1067,7 @@ func (x *Write_MessageMigrateTable) ProtoReflect() protoreflect.Message { // Deprecated: Use Write_MessageMigrateTable.ProtoReflect.Descriptor instead. func (*Write_MessageMigrateTable) Descriptor() ([]byte, []int) { - return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{5, 0} + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{6, 0} } func (x *Write_MessageMigrateTable) GetTable() []byte { @@ -962,7 +1096,7 @@ type Write_MessageInsert struct { func (x *Write_MessageInsert) Reset() { *x = Write_MessageInsert{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[20] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -975,7 +1109,7 @@ func (x *Write_MessageInsert) String() string { func (*Write_MessageInsert) ProtoMessage() {} func (x *Write_MessageInsert) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[20] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -988,7 +1122,7 @@ func (x *Write_MessageInsert) ProtoReflect() protoreflect.Message { // Deprecated: Use Write_MessageInsert.ProtoReflect.Descriptor instead. func (*Write_MessageInsert) Descriptor() ([]byte, []int) { - return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{5, 1} + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{6, 1} } func (x *Write_MessageInsert) GetRecord() []byte { @@ -1015,7 +1149,7 @@ type Write_MessageDeleteStale struct { func (x *Write_MessageDeleteStale) Reset() { *x = Write_MessageDeleteStale{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[21] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1028,7 +1162,7 @@ func (x *Write_MessageDeleteStale) String() string { func (*Write_MessageDeleteStale) ProtoMessage() {} func (x *Write_MessageDeleteStale) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[21] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1041,7 +1175,7 @@ func (x *Write_MessageDeleteStale) ProtoReflect() protoreflect.Message { // Deprecated: Use Write_MessageDeleteStale.ProtoReflect.Descriptor instead. func (*Write_MessageDeleteStale) Descriptor() ([]byte, []int) { - return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{5, 2} + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{6, 2} } // Deprecated: Do not use. @@ -1089,7 +1223,7 @@ type Write_Request struct { func (x *Write_Request) Reset() { *x = Write_Request{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[22] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1102,7 +1236,7 @@ func (x *Write_Request) String() string { func (*Write_Request) ProtoMessage() {} func (x *Write_Request) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[22] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1115,7 +1249,7 @@ func (x *Write_Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Write_Request.ProtoReflect.Descriptor instead. func (*Write_Request) Descriptor() ([]byte, []int) { - return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{5, 3} + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{6, 3} } func (m *Write_Request) GetMessage() isWrite_Request_Message { @@ -1177,7 +1311,7 @@ type Write_Response struct { func (x *Write_Response) Reset() { *x = Write_Response{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[23] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1190,7 +1324,7 @@ func (x *Write_Response) String() string { func (*Write_Response) ProtoMessage() {} func (x *Write_Response) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[23] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1203,7 +1337,7 @@ func (x *Write_Response) ProtoReflect() protoreflect.Message { // Deprecated: Use Write_Response.ProtoReflect.Descriptor instead. func (*Write_Response) Descriptor() ([]byte, []int) { - return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{5, 4} + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{6, 4} } type Close_Request struct { @@ -1215,7 +1349,7 @@ type Close_Request struct { func (x *Close_Request) Reset() { *x = Close_Request{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[24] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1228,7 +1362,7 @@ func (x *Close_Request) String() string { func (*Close_Request) ProtoMessage() {} func (x *Close_Request) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[24] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1241,7 +1375,7 @@ func (x *Close_Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Close_Request.ProtoReflect.Descriptor instead. func (*Close_Request) Descriptor() ([]byte, []int) { - return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{6, 0} + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{7, 0} } type Close_Response struct { @@ -1253,7 +1387,7 @@ type Close_Response struct { func (x *Close_Response) Reset() { *x = Close_Response{} if protoimpl.UnsafeEnabled { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[25] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1266,7 +1400,7 @@ func (x *Close_Response) String() string { func (*Close_Response) ProtoMessage() {} func (x *Close_Response) ProtoReflect() protoreflect.Message { - mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[25] + mi := &file_plugin_pb_plugin_v3_plugin_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1279,7 +1413,7 @@ func (x *Close_Response) ProtoReflect() protoreflect.Message { // Deprecated: Use Close_Response.ProtoReflect.Descriptor instead. func (*Close_Response) Descriptor() ([]byte, []int) { - return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{6, 1} + return file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP(), []int{7, 1} } var File_plugin_pb_plugin_v3_plugin_proto protoreflect.FileDescriptor @@ -1336,72 +1470,82 @@ var file_plugin_pb_plugin_v3_plugin_proto_rawDesc = []byte{ 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x48, 0x00, 0x52, 0x06, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x22, 0xb6, 0x04, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x1a, 0x50, 0x0a, 0x13, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x1a, 0x27, 0x0a, - 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x12, 0x16, - 0x0a, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, - 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0xa7, 0x01, 0x0a, 0x12, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x12, 0x18, 0x0a, - 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, - 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x73, 0x79, 0x6e, 0x63, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x73, 0x79, 0x6e, 0x63, 0x54, 0x69, 0x6d, - 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x1a, 0xfb, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x0d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, - 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x57, 0x72, 0x69, 0x74, - 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x48, - 0x00, 0x52, 0x06, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x64, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, - 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x06, 0x64, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x0a, - 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x0a, 0x05, 0x43, 0x6c, - 0x6f, 0x73, 0x65, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, - 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xf3, 0x04, 0x0a, 0x06, 0x50, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x58, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x25, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, - 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x61, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e, + 0x65, 0x22, 0x4b, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x1a, 0x1f, 0x0a, 0x07, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x22, 0x0a, 0x08, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0xb6, + 0x04, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x1a, 0x50, 0x0a, 0x13, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, + 0x5f, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x1a, 0x27, 0x0a, 0x0d, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x1a, 0xa7, 0x01, 0x0a, 0x12, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x05, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x73, 0x79, 0x6e, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0xfb, 0x01, + 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x0d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2f, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x12, 0x43, 0x0a, 0x06, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x48, 0x00, 0x52, 0x06, + 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x57, 0x72, + 0x69, 0x74, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x0a, 0x0a, 0x08, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x0a, 0x05, 0x43, 0x6c, 0x6f, 0x73, 0x65, + 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x0a, 0x08, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc6, 0x05, 0x0a, 0x06, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x12, 0x58, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, - 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x04, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x22, 0x2e, 0x63, 0x6c, 0x6f, + 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x4e, + 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0a, + 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, - 0x33, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, - 0x12, 0x27, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, - 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x04, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x22, 0x2e, 0x63, 0x6c, + 0x33, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x4f, 0x0a, 0x04, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x22, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x49, + 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, - 0x76, 0x33, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x76, 0x33, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x5e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x27, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x65, + 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x51, 0x0a, 0x04, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x22, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, + 0x53, 0x79, 0x6e, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x30, 0x01, 0x12, 0x51, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x22, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, + 0x76, 0x33, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x54, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, @@ -1432,59 +1576,64 @@ func file_plugin_pb_plugin_v3_plugin_proto_rawDescGZIP() []byte { return file_plugin_pb_plugin_v3_plugin_proto_rawDescData } -var file_plugin_pb_plugin_v3_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 26) +var file_plugin_pb_plugin_v3_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 29) var file_plugin_pb_plugin_v3_plugin_proto_goTypes = []interface{}{ (*GetName)(nil), // 0: cloudquery.plugin.v3.GetName (*GetVersion)(nil), // 1: cloudquery.plugin.v3.GetVersion (*Init)(nil), // 2: cloudquery.plugin.v3.Init (*GetTables)(nil), // 3: cloudquery.plugin.v3.GetTables (*Sync)(nil), // 4: cloudquery.plugin.v3.Sync - (*Write)(nil), // 5: cloudquery.plugin.v3.Write - (*Close)(nil), // 6: cloudquery.plugin.v3.Close - (*GetName_Request)(nil), // 7: cloudquery.plugin.v3.GetName.Request - (*GetName_Response)(nil), // 8: cloudquery.plugin.v3.GetName.Response - (*GetVersion_Request)(nil), // 9: cloudquery.plugin.v3.GetVersion.Request - (*GetVersion_Response)(nil), // 10: cloudquery.plugin.v3.GetVersion.Response - (*Init_Request)(nil), // 11: cloudquery.plugin.v3.Init.Request - (*Init_Response)(nil), // 12: cloudquery.plugin.v3.Init.Response - (*GetTables_Request)(nil), // 13: cloudquery.plugin.v3.GetTables.Request - (*GetTables_Response)(nil), // 14: cloudquery.plugin.v3.GetTables.Response - (*Sync_MessageInsert)(nil), // 15: cloudquery.plugin.v3.Sync.MessageInsert - (*Sync_MessageMigrateTable)(nil), // 16: cloudquery.plugin.v3.Sync.MessageMigrateTable - (*Sync_Request)(nil), // 17: cloudquery.plugin.v3.Sync.Request - (*Sync_Response)(nil), // 18: cloudquery.plugin.v3.Sync.Response - (*Write_MessageMigrateTable)(nil), // 19: cloudquery.plugin.v3.Write.MessageMigrateTable - (*Write_MessageInsert)(nil), // 20: cloudquery.plugin.v3.Write.MessageInsert - (*Write_MessageDeleteStale)(nil), // 21: cloudquery.plugin.v3.Write.MessageDeleteStale - (*Write_Request)(nil), // 22: cloudquery.plugin.v3.Write.Request - (*Write_Response)(nil), // 23: cloudquery.plugin.v3.Write.Response - (*Close_Request)(nil), // 24: cloudquery.plugin.v3.Close.Request - (*Close_Response)(nil), // 25: cloudquery.plugin.v3.Close.Response - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*Read)(nil), // 5: cloudquery.plugin.v3.Read + (*Write)(nil), // 6: cloudquery.plugin.v3.Write + (*Close)(nil), // 7: cloudquery.plugin.v3.Close + (*GetName_Request)(nil), // 8: cloudquery.plugin.v3.GetName.Request + (*GetName_Response)(nil), // 9: cloudquery.plugin.v3.GetName.Response + (*GetVersion_Request)(nil), // 10: cloudquery.plugin.v3.GetVersion.Request + (*GetVersion_Response)(nil), // 11: cloudquery.plugin.v3.GetVersion.Response + (*Init_Request)(nil), // 12: cloudquery.plugin.v3.Init.Request + (*Init_Response)(nil), // 13: cloudquery.plugin.v3.Init.Response + (*GetTables_Request)(nil), // 14: cloudquery.plugin.v3.GetTables.Request + (*GetTables_Response)(nil), // 15: cloudquery.plugin.v3.GetTables.Response + (*Sync_MessageInsert)(nil), // 16: cloudquery.plugin.v3.Sync.MessageInsert + (*Sync_MessageMigrateTable)(nil), // 17: cloudquery.plugin.v3.Sync.MessageMigrateTable + (*Sync_Request)(nil), // 18: cloudquery.plugin.v3.Sync.Request + (*Sync_Response)(nil), // 19: cloudquery.plugin.v3.Sync.Response + (*Read_Request)(nil), // 20: cloudquery.plugin.v3.Read.Request + (*Read_Response)(nil), // 21: cloudquery.plugin.v3.Read.Response + (*Write_MessageMigrateTable)(nil), // 22: cloudquery.plugin.v3.Write.MessageMigrateTable + (*Write_MessageInsert)(nil), // 23: cloudquery.plugin.v3.Write.MessageInsert + (*Write_MessageDeleteStale)(nil), // 24: cloudquery.plugin.v3.Write.MessageDeleteStale + (*Write_Request)(nil), // 25: cloudquery.plugin.v3.Write.Request + (*Write_Response)(nil), // 26: cloudquery.plugin.v3.Write.Response + (*Close_Request)(nil), // 27: cloudquery.plugin.v3.Close.Request + (*Close_Response)(nil), // 28: cloudquery.plugin.v3.Close.Response + (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp } var file_plugin_pb_plugin_v3_plugin_proto_depIdxs = []int32{ - 16, // 0: cloudquery.plugin.v3.Sync.Response.migrate_table:type_name -> cloudquery.plugin.v3.Sync.MessageMigrateTable - 15, // 1: cloudquery.plugin.v3.Sync.Response.insert:type_name -> cloudquery.plugin.v3.Sync.MessageInsert - 26, // 2: cloudquery.plugin.v3.Write.MessageDeleteStale.sync_time:type_name -> google.protobuf.Timestamp - 19, // 3: cloudquery.plugin.v3.Write.Request.migrate_table:type_name -> cloudquery.plugin.v3.Write.MessageMigrateTable - 20, // 4: cloudquery.plugin.v3.Write.Request.insert:type_name -> cloudquery.plugin.v3.Write.MessageInsert - 21, // 5: cloudquery.plugin.v3.Write.Request.delete:type_name -> cloudquery.plugin.v3.Write.MessageDeleteStale - 7, // 6: cloudquery.plugin.v3.Plugin.GetName:input_type -> cloudquery.plugin.v3.GetName.Request - 9, // 7: cloudquery.plugin.v3.Plugin.GetVersion:input_type -> cloudquery.plugin.v3.GetVersion.Request - 11, // 8: cloudquery.plugin.v3.Plugin.Init:input_type -> cloudquery.plugin.v3.Init.Request - 13, // 9: cloudquery.plugin.v3.Plugin.GetTables:input_type -> cloudquery.plugin.v3.GetTables.Request - 17, // 10: cloudquery.plugin.v3.Plugin.Sync:input_type -> cloudquery.plugin.v3.Sync.Request - 22, // 11: cloudquery.plugin.v3.Plugin.Write:input_type -> cloudquery.plugin.v3.Write.Request - 24, // 12: cloudquery.plugin.v3.Plugin.Close:input_type -> cloudquery.plugin.v3.Close.Request - 8, // 13: cloudquery.plugin.v3.Plugin.GetName:output_type -> cloudquery.plugin.v3.GetName.Response - 10, // 14: cloudquery.plugin.v3.Plugin.GetVersion:output_type -> cloudquery.plugin.v3.GetVersion.Response - 12, // 15: cloudquery.plugin.v3.Plugin.Init:output_type -> cloudquery.plugin.v3.Init.Response - 14, // 16: cloudquery.plugin.v3.Plugin.GetTables:output_type -> cloudquery.plugin.v3.GetTables.Response - 18, // 17: cloudquery.plugin.v3.Plugin.Sync:output_type -> cloudquery.plugin.v3.Sync.Response - 23, // 18: cloudquery.plugin.v3.Plugin.Write:output_type -> cloudquery.plugin.v3.Write.Response - 25, // 19: cloudquery.plugin.v3.Plugin.Close:output_type -> cloudquery.plugin.v3.Close.Response - 13, // [13:20] is the sub-list for method output_type - 6, // [6:13] is the sub-list for method input_type + 17, // 0: cloudquery.plugin.v3.Sync.Response.migrate_table:type_name -> cloudquery.plugin.v3.Sync.MessageMigrateTable + 16, // 1: cloudquery.plugin.v3.Sync.Response.insert:type_name -> cloudquery.plugin.v3.Sync.MessageInsert + 29, // 2: cloudquery.plugin.v3.Write.MessageDeleteStale.sync_time:type_name -> google.protobuf.Timestamp + 22, // 3: cloudquery.plugin.v3.Write.Request.migrate_table:type_name -> cloudquery.plugin.v3.Write.MessageMigrateTable + 23, // 4: cloudquery.plugin.v3.Write.Request.insert:type_name -> cloudquery.plugin.v3.Write.MessageInsert + 24, // 5: cloudquery.plugin.v3.Write.Request.delete:type_name -> cloudquery.plugin.v3.Write.MessageDeleteStale + 8, // 6: cloudquery.plugin.v3.Plugin.GetName:input_type -> cloudquery.plugin.v3.GetName.Request + 10, // 7: cloudquery.plugin.v3.Plugin.GetVersion:input_type -> cloudquery.plugin.v3.GetVersion.Request + 12, // 8: cloudquery.plugin.v3.Plugin.Init:input_type -> cloudquery.plugin.v3.Init.Request + 14, // 9: cloudquery.plugin.v3.Plugin.GetTables:input_type -> cloudquery.plugin.v3.GetTables.Request + 18, // 10: cloudquery.plugin.v3.Plugin.Sync:input_type -> cloudquery.plugin.v3.Sync.Request + 20, // 11: cloudquery.plugin.v3.Plugin.Read:input_type -> cloudquery.plugin.v3.Read.Request + 25, // 12: cloudquery.plugin.v3.Plugin.Write:input_type -> cloudquery.plugin.v3.Write.Request + 27, // 13: cloudquery.plugin.v3.Plugin.Close:input_type -> cloudquery.plugin.v3.Close.Request + 9, // 14: cloudquery.plugin.v3.Plugin.GetName:output_type -> cloudquery.plugin.v3.GetName.Response + 11, // 15: cloudquery.plugin.v3.Plugin.GetVersion:output_type -> cloudquery.plugin.v3.GetVersion.Response + 13, // 16: cloudquery.plugin.v3.Plugin.Init:output_type -> cloudquery.plugin.v3.Init.Response + 15, // 17: cloudquery.plugin.v3.Plugin.GetTables:output_type -> cloudquery.plugin.v3.GetTables.Response + 19, // 18: cloudquery.plugin.v3.Plugin.Sync:output_type -> cloudquery.plugin.v3.Sync.Response + 21, // 19: cloudquery.plugin.v3.Plugin.Read:output_type -> cloudquery.plugin.v3.Read.Response + 26, // 20: cloudquery.plugin.v3.Plugin.Write:output_type -> cloudquery.plugin.v3.Write.Response + 28, // 21: cloudquery.plugin.v3.Plugin.Close:output_type -> cloudquery.plugin.v3.Close.Response + 14, // [14:22] is the sub-list for method output_type + 6, // [6:14] is the sub-list for method input_type 6, // [6:6] is the sub-list for extension type_name 6, // [6:6] is the sub-list for extension extendee 0, // [0:6] is the sub-list for field type_name @@ -1557,7 +1706,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Write); i { + switch v := v.(*Read); i { case 0: return &v.state case 1: @@ -1569,7 +1718,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Close); i { + switch v := v.(*Write); i { case 0: return &v.state case 1: @@ -1581,7 +1730,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetName_Request); i { + switch v := v.(*Close); i { case 0: return &v.state case 1: @@ -1593,7 +1742,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetName_Response); i { + switch v := v.(*GetName_Request); i { case 0: return &v.state case 1: @@ -1605,7 +1754,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVersion_Request); i { + switch v := v.(*GetName_Response); i { case 0: return &v.state case 1: @@ -1617,7 +1766,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVersion_Response); i { + switch v := v.(*GetVersion_Request); i { case 0: return &v.state case 1: @@ -1629,7 +1778,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Init_Request); i { + switch v := v.(*GetVersion_Response); i { case 0: return &v.state case 1: @@ -1641,7 +1790,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Init_Response); i { + switch v := v.(*Init_Request); i { case 0: return &v.state case 1: @@ -1653,7 +1802,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTables_Request); i { + switch v := v.(*Init_Response); i { case 0: return &v.state case 1: @@ -1665,7 +1814,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTables_Response); i { + switch v := v.(*GetTables_Request); i { case 0: return &v.state case 1: @@ -1677,7 +1826,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Sync_MessageInsert); i { + switch v := v.(*GetTables_Response); i { case 0: return &v.state case 1: @@ -1689,7 +1838,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Sync_MessageMigrateTable); i { + switch v := v.(*Sync_MessageInsert); i { case 0: return &v.state case 1: @@ -1701,7 +1850,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Sync_Request); i { + switch v := v.(*Sync_MessageMigrateTable); i { case 0: return &v.state case 1: @@ -1713,7 +1862,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Sync_Response); i { + switch v := v.(*Sync_Request); i { case 0: return &v.state case 1: @@ -1725,7 +1874,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Write_MessageMigrateTable); i { + switch v := v.(*Sync_Response); i { case 0: return &v.state case 1: @@ -1737,7 +1886,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Write_MessageInsert); i { + switch v := v.(*Read_Request); i { case 0: return &v.state case 1: @@ -1749,7 +1898,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Write_MessageDeleteStale); i { + switch v := v.(*Read_Response); i { case 0: return &v.state case 1: @@ -1761,7 +1910,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Write_Request); i { + switch v := v.(*Write_MessageMigrateTable); i { case 0: return &v.state case 1: @@ -1773,7 +1922,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Write_Response); i { + switch v := v.(*Write_MessageInsert); i { case 0: return &v.state case 1: @@ -1785,7 +1934,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Close_Request); i { + switch v := v.(*Write_MessageDeleteStale); i { case 0: return &v.state case 1: @@ -1797,6 +1946,42 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } file_plugin_pb_plugin_v3_plugin_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Write_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_plugin_pb_plugin_v3_plugin_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Write_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_plugin_pb_plugin_v3_plugin_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Close_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_plugin_pb_plugin_v3_plugin_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Close_Response); i { case 0: return &v.state @@ -1809,11 +1994,11 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { } } } - file_plugin_pb_plugin_v3_plugin_proto_msgTypes[18].OneofWrappers = []interface{}{ + file_plugin_pb_plugin_v3_plugin_proto_msgTypes[19].OneofWrappers = []interface{}{ (*Sync_Response_MigrateTable)(nil), (*Sync_Response_Insert)(nil), } - file_plugin_pb_plugin_v3_plugin_proto_msgTypes[22].OneofWrappers = []interface{}{ + file_plugin_pb_plugin_v3_plugin_proto_msgTypes[25].OneofWrappers = []interface{}{ (*Write_Request_MigrateTable)(nil), (*Write_Request_Insert)(nil), (*Write_Request_Delete)(nil), @@ -1824,7 +2009,7 @@ func file_plugin_pb_plugin_v3_plugin_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_plugin_pb_plugin_v3_plugin_proto_rawDesc, NumEnums: 0, - NumMessages: 26, + NumMessages: 29, NumExtensions: 0, NumServices: 1, }, diff --git a/pb/plugin/v3/plugin_grpc.pb.go b/pb/plugin/v3/plugin_grpc.pb.go index 9fb841c..99bd402 100644 --- a/pb/plugin/v3/plugin_grpc.pb.go +++ b/pb/plugin/v3/plugin_grpc.pb.go @@ -32,6 +32,9 @@ type PluginClient interface { GetTables(ctx context.Context, in *GetTables_Request, opts ...grpc.CallOption) (*GetTables_Response, error) // Start a sync on the source plugin. It streams messages as output. Sync(ctx context.Context, in *Sync_Request, opts ...grpc.CallOption) (Plugin_SyncClient, error) + // Start a Read on the source plugin for a given table and schema. It streams messages as output. + // The plugin assume that that schema was used to also write the data beforehand + Read(ctx context.Context, in *Read_Request, opts ...grpc.CallOption) (Plugin_ReadClient, error) // Write resources. Write is the mirror of Sync, expecting a stream of messages as input. Write(ctx context.Context, opts ...grpc.CallOption) (Plugin_WriteClient, error) // Send signal to flush and close open connections @@ -114,8 +117,40 @@ func (x *pluginSyncClient) Recv() (*Sync_Response, error) { return m, nil } +func (c *pluginClient) Read(ctx context.Context, in *Read_Request, opts ...grpc.CallOption) (Plugin_ReadClient, error) { + stream, err := c.cc.NewStream(ctx, &Plugin_ServiceDesc.Streams[1], "/cloudquery.plugin.v3.Plugin/Read", opts...) + if err != nil { + return nil, err + } + x := &pluginReadClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Plugin_ReadClient interface { + Recv() (*Read_Response, error) + grpc.ClientStream +} + +type pluginReadClient struct { + grpc.ClientStream +} + +func (x *pluginReadClient) Recv() (*Read_Response, error) { + m := new(Read_Response) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func (c *pluginClient) Write(ctx context.Context, opts ...grpc.CallOption) (Plugin_WriteClient, error) { - stream, err := c.cc.NewStream(ctx, &Plugin_ServiceDesc.Streams[1], "/cloudquery.plugin.v3.Plugin/Write", opts...) + stream, err := c.cc.NewStream(ctx, &Plugin_ServiceDesc.Streams[2], "/cloudquery.plugin.v3.Plugin/Write", opts...) if err != nil { return nil, err } @@ -171,6 +206,9 @@ type PluginServer interface { GetTables(context.Context, *GetTables_Request) (*GetTables_Response, error) // Start a sync on the source plugin. It streams messages as output. Sync(*Sync_Request, Plugin_SyncServer) error + // Start a Read on the source plugin for a given table and schema. It streams messages as output. + // The plugin assume that that schema was used to also write the data beforehand + Read(*Read_Request, Plugin_ReadServer) error // Write resources. Write is the mirror of Sync, expecting a stream of messages as input. Write(Plugin_WriteServer) error // Send signal to flush and close open connections @@ -197,6 +235,9 @@ func (UnimplementedPluginServer) GetTables(context.Context, *GetTables_Request) func (UnimplementedPluginServer) Sync(*Sync_Request, Plugin_SyncServer) error { return status.Errorf(codes.Unimplemented, "method Sync not implemented") } +func (UnimplementedPluginServer) Read(*Read_Request, Plugin_ReadServer) error { + return status.Errorf(codes.Unimplemented, "method Read not implemented") +} func (UnimplementedPluginServer) Write(Plugin_WriteServer) error { return status.Errorf(codes.Unimplemented, "method Write not implemented") } @@ -309,6 +350,27 @@ func (x *pluginSyncServer) Send(m *Sync_Response) error { return x.ServerStream.SendMsg(m) } +func _Plugin_Read_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(Read_Request) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(PluginServer).Read(m, &pluginReadServer{stream}) +} + +type Plugin_ReadServer interface { + Send(*Read_Response) error + grpc.ServerStream +} + +type pluginReadServer struct { + grpc.ServerStream +} + +func (x *pluginReadServer) Send(m *Read_Response) error { + return x.ServerStream.SendMsg(m) +} + func _Plugin_Write_Handler(srv interface{}, stream grpc.ServerStream) error { return srv.(PluginServer).Write(&pluginWriteServer{stream}) } @@ -387,6 +449,11 @@ var Plugin_ServiceDesc = grpc.ServiceDesc{ Handler: _Plugin_Sync_Handler, ServerStreams: true, }, + { + StreamName: "Read", + Handler: _Plugin_Read_Handler, + ServerStreams: true, + }, { StreamName: "Write", Handler: _Plugin_Write_Handler,