this repo has no description
at main 539 lines 17 kB view raw
1// Code generated by protoc-gen-go. DO NOT EDIT. 2// versions: 3// protoc-gen-go v1.36.6 4// protoc (unknown) 5// source: like.proto 6 7package vyletdatabase 8 9import ( 10 _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 14 reflect "reflect" 15 sync "sync" 16 unsafe "unsafe" 17) 18 19const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24) 25 26type Like struct { 27 state protoimpl.MessageState `protogen:"open.v1"` 28 Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` 29 Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"` 30 SubjectUri string `protobuf:"bytes,3,opt,name=subject_uri,json=subjectUri,proto3" json:"subject_uri,omitempty"` 31 SubjectCid string `protobuf:"bytes,4,opt,name=subject_cid,json=subjectCid,proto3" json:"subject_cid,omitempty"` 32 AuthorDid string `protobuf:"bytes,5,opt,name=author_did,json=authorDid,proto3" json:"author_did,omitempty"` 33 CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` 34 IndexedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=indexed_at,json=indexedAt,proto3" json:"indexed_at,omitempty"` 35 unknownFields protoimpl.UnknownFields 36 sizeCache protoimpl.SizeCache 37} 38 39func (x *Like) Reset() { 40 *x = Like{} 41 mi := &file_like_proto_msgTypes[0] 42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 43 ms.StoreMessageInfo(mi) 44} 45 46func (x *Like) String() string { 47 return protoimpl.X.MessageStringOf(x) 48} 49 50func (*Like) ProtoMessage() {} 51 52func (x *Like) ProtoReflect() protoreflect.Message { 53 mi := &file_like_proto_msgTypes[0] 54 if x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62} 63 64// Deprecated: Use Like.ProtoReflect.Descriptor instead. 65func (*Like) Descriptor() ([]byte, []int) { 66 return file_like_proto_rawDescGZIP(), []int{0} 67} 68 69func (x *Like) GetUri() string { 70 if x != nil { 71 return x.Uri 72 } 73 return "" 74} 75 76func (x *Like) GetCid() string { 77 if x != nil { 78 return x.Cid 79 } 80 return "" 81} 82 83func (x *Like) GetSubjectUri() string { 84 if x != nil { 85 return x.SubjectUri 86 } 87 return "" 88} 89 90func (x *Like) GetSubjectCid() string { 91 if x != nil { 92 return x.SubjectCid 93 } 94 return "" 95} 96 97func (x *Like) GetAuthorDid() string { 98 if x != nil { 99 return x.AuthorDid 100 } 101 return "" 102} 103 104func (x *Like) GetCreatedAt() *timestamppb.Timestamp { 105 if x != nil { 106 return x.CreatedAt 107 } 108 return nil 109} 110 111func (x *Like) GetIndexedAt() *timestamppb.Timestamp { 112 if x != nil { 113 return x.IndexedAt 114 } 115 return nil 116} 117 118type CreateLikeRequest struct { 119 state protoimpl.MessageState `protogen:"open.v1"` 120 Like *Like `protobuf:"bytes,1,opt,name=like,proto3" json:"like,omitempty"` 121 unknownFields protoimpl.UnknownFields 122 sizeCache protoimpl.SizeCache 123} 124 125func (x *CreateLikeRequest) Reset() { 126 *x = CreateLikeRequest{} 127 mi := &file_like_proto_msgTypes[1] 128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 129 ms.StoreMessageInfo(mi) 130} 131 132func (x *CreateLikeRequest) String() string { 133 return protoimpl.X.MessageStringOf(x) 134} 135 136func (*CreateLikeRequest) ProtoMessage() {} 137 138func (x *CreateLikeRequest) ProtoReflect() protoreflect.Message { 139 mi := &file_like_proto_msgTypes[1] 140 if x != nil { 141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 142 if ms.LoadMessageInfo() == nil { 143 ms.StoreMessageInfo(mi) 144 } 145 return ms 146 } 147 return mi.MessageOf(x) 148} 149 150// Deprecated: Use CreateLikeRequest.ProtoReflect.Descriptor instead. 151func (*CreateLikeRequest) Descriptor() ([]byte, []int) { 152 return file_like_proto_rawDescGZIP(), []int{1} 153} 154 155func (x *CreateLikeRequest) GetLike() *Like { 156 if x != nil { 157 return x.Like 158 } 159 return nil 160} 161 162type CreateLikeResponse struct { 163 state protoimpl.MessageState `protogen:"open.v1"` 164 Error *string `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` 165 unknownFields protoimpl.UnknownFields 166 sizeCache protoimpl.SizeCache 167} 168 169func (x *CreateLikeResponse) Reset() { 170 *x = CreateLikeResponse{} 171 mi := &file_like_proto_msgTypes[2] 172 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 173 ms.StoreMessageInfo(mi) 174} 175 176func (x *CreateLikeResponse) String() string { 177 return protoimpl.X.MessageStringOf(x) 178} 179 180func (*CreateLikeResponse) ProtoMessage() {} 181 182func (x *CreateLikeResponse) ProtoReflect() protoreflect.Message { 183 mi := &file_like_proto_msgTypes[2] 184 if x != nil { 185 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 186 if ms.LoadMessageInfo() == nil { 187 ms.StoreMessageInfo(mi) 188 } 189 return ms 190 } 191 return mi.MessageOf(x) 192} 193 194// Deprecated: Use CreateLikeResponse.ProtoReflect.Descriptor instead. 195func (*CreateLikeResponse) Descriptor() ([]byte, []int) { 196 return file_like_proto_rawDescGZIP(), []int{2} 197} 198 199func (x *CreateLikeResponse) GetError() string { 200 if x != nil && x.Error != nil { 201 return *x.Error 202 } 203 return "" 204} 205 206type DeleteLikeRequest struct { 207 state protoimpl.MessageState `protogen:"open.v1"` 208 Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` 209 unknownFields protoimpl.UnknownFields 210 sizeCache protoimpl.SizeCache 211} 212 213func (x *DeleteLikeRequest) Reset() { 214 *x = DeleteLikeRequest{} 215 mi := &file_like_proto_msgTypes[3] 216 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 217 ms.StoreMessageInfo(mi) 218} 219 220func (x *DeleteLikeRequest) String() string { 221 return protoimpl.X.MessageStringOf(x) 222} 223 224func (*DeleteLikeRequest) ProtoMessage() {} 225 226func (x *DeleteLikeRequest) ProtoReflect() protoreflect.Message { 227 mi := &file_like_proto_msgTypes[3] 228 if x != nil { 229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 230 if ms.LoadMessageInfo() == nil { 231 ms.StoreMessageInfo(mi) 232 } 233 return ms 234 } 235 return mi.MessageOf(x) 236} 237 238// Deprecated: Use DeleteLikeRequest.ProtoReflect.Descriptor instead. 239func (*DeleteLikeRequest) Descriptor() ([]byte, []int) { 240 return file_like_proto_rawDescGZIP(), []int{3} 241} 242 243func (x *DeleteLikeRequest) GetUri() string { 244 if x != nil { 245 return x.Uri 246 } 247 return "" 248} 249 250type DeleteLikeResponse struct { 251 state protoimpl.MessageState `protogen:"open.v1"` 252 Error *string `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` 253 unknownFields protoimpl.UnknownFields 254 sizeCache protoimpl.SizeCache 255} 256 257func (x *DeleteLikeResponse) Reset() { 258 *x = DeleteLikeResponse{} 259 mi := &file_like_proto_msgTypes[4] 260 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 261 ms.StoreMessageInfo(mi) 262} 263 264func (x *DeleteLikeResponse) String() string { 265 return protoimpl.X.MessageStringOf(x) 266} 267 268func (*DeleteLikeResponse) ProtoMessage() {} 269 270func (x *DeleteLikeResponse) ProtoReflect() protoreflect.Message { 271 mi := &file_like_proto_msgTypes[4] 272 if x != nil { 273 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 274 if ms.LoadMessageInfo() == nil { 275 ms.StoreMessageInfo(mi) 276 } 277 return ms 278 } 279 return mi.MessageOf(x) 280} 281 282// Deprecated: Use DeleteLikeResponse.ProtoReflect.Descriptor instead. 283func (*DeleteLikeResponse) Descriptor() ([]byte, []int) { 284 return file_like_proto_rawDescGZIP(), []int{4} 285} 286 287func (x *DeleteLikeResponse) GetError() string { 288 if x != nil && x.Error != nil { 289 return *x.Error 290 } 291 return "" 292} 293 294type GetLikesBySubjectRequest struct { 295 state protoimpl.MessageState `protogen:"open.v1"` 296 SubjectUri string `protobuf:"bytes,1,opt,name=subject_uri,json=subjectUri,proto3" json:"subject_uri,omitempty"` 297 Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` 298 Cursor *string `protobuf:"bytes,3,opt,name=cursor,proto3,oneof" json:"cursor,omitempty"` 299 unknownFields protoimpl.UnknownFields 300 sizeCache protoimpl.SizeCache 301} 302 303func (x *GetLikesBySubjectRequest) Reset() { 304 *x = GetLikesBySubjectRequest{} 305 mi := &file_like_proto_msgTypes[5] 306 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 307 ms.StoreMessageInfo(mi) 308} 309 310func (x *GetLikesBySubjectRequest) String() string { 311 return protoimpl.X.MessageStringOf(x) 312} 313 314func (*GetLikesBySubjectRequest) ProtoMessage() {} 315 316func (x *GetLikesBySubjectRequest) ProtoReflect() protoreflect.Message { 317 mi := &file_like_proto_msgTypes[5] 318 if x != nil { 319 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 320 if ms.LoadMessageInfo() == nil { 321 ms.StoreMessageInfo(mi) 322 } 323 return ms 324 } 325 return mi.MessageOf(x) 326} 327 328// Deprecated: Use GetLikesBySubjectRequest.ProtoReflect.Descriptor instead. 329func (*GetLikesBySubjectRequest) Descriptor() ([]byte, []int) { 330 return file_like_proto_rawDescGZIP(), []int{5} 331} 332 333func (x *GetLikesBySubjectRequest) GetSubjectUri() string { 334 if x != nil { 335 return x.SubjectUri 336 } 337 return "" 338} 339 340func (x *GetLikesBySubjectRequest) GetLimit() int64 { 341 if x != nil { 342 return x.Limit 343 } 344 return 0 345} 346 347func (x *GetLikesBySubjectRequest) GetCursor() string { 348 if x != nil && x.Cursor != nil { 349 return *x.Cursor 350 } 351 return "" 352} 353 354type GetLikesBySubjectResponse struct { 355 state protoimpl.MessageState `protogen:"open.v1"` 356 Error *string `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` 357 Likes []*Like `protobuf:"bytes,2,rep,name=likes,proto3" json:"likes,omitempty"` 358 Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` 359 Cursor *string `protobuf:"bytes,4,opt,name=cursor,proto3,oneof" json:"cursor,omitempty"` 360 unknownFields protoimpl.UnknownFields 361 sizeCache protoimpl.SizeCache 362} 363 364func (x *GetLikesBySubjectResponse) Reset() { 365 *x = GetLikesBySubjectResponse{} 366 mi := &file_like_proto_msgTypes[6] 367 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 368 ms.StoreMessageInfo(mi) 369} 370 371func (x *GetLikesBySubjectResponse) String() string { 372 return protoimpl.X.MessageStringOf(x) 373} 374 375func (*GetLikesBySubjectResponse) ProtoMessage() {} 376 377func (x *GetLikesBySubjectResponse) ProtoReflect() protoreflect.Message { 378 mi := &file_like_proto_msgTypes[6] 379 if x != nil { 380 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 381 if ms.LoadMessageInfo() == nil { 382 ms.StoreMessageInfo(mi) 383 } 384 return ms 385 } 386 return mi.MessageOf(x) 387} 388 389// Deprecated: Use GetLikesBySubjectResponse.ProtoReflect.Descriptor instead. 390func (*GetLikesBySubjectResponse) Descriptor() ([]byte, []int) { 391 return file_like_proto_rawDescGZIP(), []int{6} 392} 393 394func (x *GetLikesBySubjectResponse) GetError() string { 395 if x != nil && x.Error != nil { 396 return *x.Error 397 } 398 return "" 399} 400 401func (x *GetLikesBySubjectResponse) GetLikes() []*Like { 402 if x != nil { 403 return x.Likes 404 } 405 return nil 406} 407 408func (x *GetLikesBySubjectResponse) GetLimit() int64 { 409 if x != nil { 410 return x.Limit 411 } 412 return 0 413} 414 415func (x *GetLikesBySubjectResponse) GetCursor() string { 416 if x != nil && x.Cursor != nil { 417 return *x.Cursor 418 } 419 return "" 420} 421 422var File_like_proto protoreflect.FileDescriptor 423 424const file_like_proto_rawDesc = "" + 425 "\n" + 426 "\n" + 427 "like.proto\x12\rvyletdatabase\x1a\x1bbuf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa1\x02\n" + 428 "\x04Like\x12\x18\n" + 429 "\x03uri\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x03uri\x12\x18\n" + 430 "\x03cid\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x03cid\x12'\n" + 431 "\vsubject_uri\x18\x03 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\n" + 432 "subjectUri\x12'\n" + 433 "\vsubject_cid\x18\x04 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\n" + 434 "subjectCid\x12\x1d\n" + 435 "\n" + 436 "author_did\x18\x05 \x01(\tR\tauthorDid\x129\n" + 437 "\n" + 438 "created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + 439 "\n" + 440 "indexed_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tindexedAt\"<\n" + 441 "\x11CreateLikeRequest\x12'\n" + 442 "\x04like\x18\x01 \x01(\v2\x13.vyletdatabase.LikeR\x04like\"9\n" + 443 "\x12CreateLikeResponse\x12\x19\n" + 444 "\x05error\x18\x01 \x01(\tH\x00R\x05error\x88\x01\x01B\b\n" + 445 "\x06_error\"-\n" + 446 "\x11DeleteLikeRequest\x12\x18\n" + 447 "\x03uri\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x03uri\"9\n" + 448 "\x12DeleteLikeResponse\x12\x19\n" + 449 "\x05error\x18\x01 \x01(\tH\x00R\x05error\x88\x01\x01B\b\n" + 450 "\x06_error\"\x81\x01\n" + 451 "\x18GetLikesBySubjectRequest\x12'\n" + 452 "\vsubject_uri\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\n" + 453 "subjectUri\x12\x14\n" + 454 "\x05limit\x18\x02 \x01(\x03R\x05limit\x12\x1b\n" + 455 "\x06cursor\x18\x03 \x01(\tH\x00R\x06cursor\x88\x01\x01B\t\n" + 456 "\a_cursor\"\xa9\x01\n" + 457 "\x19GetLikesBySubjectResponse\x12\x19\n" + 458 "\x05error\x18\x01 \x01(\tH\x00R\x05error\x88\x01\x01\x12)\n" + 459 "\x05likes\x18\x02 \x03(\v2\x13.vyletdatabase.LikeR\x05likes\x12\x14\n" + 460 "\x05limit\x18\x03 \x01(\x03R\x05limit\x12\x1b\n" + 461 "\x06cursor\x18\x04 \x01(\tH\x01R\x06cursor\x88\x01\x01B\b\n" + 462 "\x06_errorB\t\n" + 463 "\a_cursor2\x9b\x02\n" + 464 "\vLikeService\x12Q\n" + 465 "\n" + 466 "CreateLike\x12 .vyletdatabase.CreateLikeRequest\x1a!.vyletdatabase.CreateLikeResponse\x12Q\n" + 467 "\n" + 468 "DeleteLike\x12 .vyletdatabase.DeleteLikeRequest\x1a!.vyletdatabase.DeleteLikeResponse\x12f\n" + 469 "\x11GetLikesBySubject\x12'.vyletdatabase.GetLikesBySubjectRequest\x1a(.vyletdatabase.GetLikesBySubjectResponseB\x84\x01\n" + 470 "\x11com.vyletdatabaseB\tLikeProtoP\x01Z\x10./;vyletdatabase\xa2\x02\x03VXX\xaa\x02\rVyletdatabase\xca\x02\rVyletdatabase\xe2\x02\x19Vyletdatabase\\GPBMetadata\xea\x02\rVyletdatabaseb\x06proto3" 471 472var ( 473 file_like_proto_rawDescOnce sync.Once 474 file_like_proto_rawDescData []byte 475) 476 477func file_like_proto_rawDescGZIP() []byte { 478 file_like_proto_rawDescOnce.Do(func() { 479 file_like_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_like_proto_rawDesc), len(file_like_proto_rawDesc))) 480 }) 481 return file_like_proto_rawDescData 482} 483 484var file_like_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 485var file_like_proto_goTypes = []any{ 486 (*Like)(nil), // 0: vyletdatabase.Like 487 (*CreateLikeRequest)(nil), // 1: vyletdatabase.CreateLikeRequest 488 (*CreateLikeResponse)(nil), // 2: vyletdatabase.CreateLikeResponse 489 (*DeleteLikeRequest)(nil), // 3: vyletdatabase.DeleteLikeRequest 490 (*DeleteLikeResponse)(nil), // 4: vyletdatabase.DeleteLikeResponse 491 (*GetLikesBySubjectRequest)(nil), // 5: vyletdatabase.GetLikesBySubjectRequest 492 (*GetLikesBySubjectResponse)(nil), // 6: vyletdatabase.GetLikesBySubjectResponse 493 (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp 494} 495var file_like_proto_depIdxs = []int32{ 496 7, // 0: vyletdatabase.Like.created_at:type_name -> google.protobuf.Timestamp 497 7, // 1: vyletdatabase.Like.indexed_at:type_name -> google.protobuf.Timestamp 498 0, // 2: vyletdatabase.CreateLikeRequest.like:type_name -> vyletdatabase.Like 499 0, // 3: vyletdatabase.GetLikesBySubjectResponse.likes:type_name -> vyletdatabase.Like 500 1, // 4: vyletdatabase.LikeService.CreateLike:input_type -> vyletdatabase.CreateLikeRequest 501 3, // 5: vyletdatabase.LikeService.DeleteLike:input_type -> vyletdatabase.DeleteLikeRequest 502 5, // 6: vyletdatabase.LikeService.GetLikesBySubject:input_type -> vyletdatabase.GetLikesBySubjectRequest 503 2, // 7: vyletdatabase.LikeService.CreateLike:output_type -> vyletdatabase.CreateLikeResponse 504 4, // 8: vyletdatabase.LikeService.DeleteLike:output_type -> vyletdatabase.DeleteLikeResponse 505 6, // 9: vyletdatabase.LikeService.GetLikesBySubject:output_type -> vyletdatabase.GetLikesBySubjectResponse 506 7, // [7:10] is the sub-list for method output_type 507 4, // [4:7] is the sub-list for method input_type 508 4, // [4:4] is the sub-list for extension type_name 509 4, // [4:4] is the sub-list for extension extendee 510 0, // [0:4] is the sub-list for field type_name 511} 512 513func init() { file_like_proto_init() } 514func file_like_proto_init() { 515 if File_like_proto != nil { 516 return 517 } 518 file_like_proto_msgTypes[2].OneofWrappers = []any{} 519 file_like_proto_msgTypes[4].OneofWrappers = []any{} 520 file_like_proto_msgTypes[5].OneofWrappers = []any{} 521 file_like_proto_msgTypes[6].OneofWrappers = []any{} 522 type x struct{} 523 out := protoimpl.TypeBuilder{ 524 File: protoimpl.DescBuilder{ 525 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 526 RawDescriptor: unsafe.Slice(unsafe.StringData(file_like_proto_rawDesc), len(file_like_proto_rawDesc)), 527 NumEnums: 0, 528 NumMessages: 7, 529 NumExtensions: 0, 530 NumServices: 1, 531 }, 532 GoTypes: file_like_proto_goTypes, 533 DependencyIndexes: file_like_proto_depIdxs, 534 MessageInfos: file_like_proto_msgTypes, 535 }.Build() 536 File_like_proto = out.File 537 file_like_proto_goTypes = nil 538 file_like_proto_depIdxs = nil 539}