// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc (unknown) // source: profile.proto package vyletdatabase import ( _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type Profile struct { state protoimpl.MessageState `protogen:"open.v1"` Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` DisplayName *string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3,oneof" json:"display_name,omitempty"` Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` Pronouns *string `protobuf:"bytes,4,opt,name=pronouns,proto3,oneof" json:"pronouns,omitempty"` Avatar *string `protobuf:"bytes,5,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` IndexedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=indexed_at,json=indexedAt,proto3" json:"indexed_at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Profile) Reset() { *x = Profile{} mi := &file_profile_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Profile) String() string { return protoimpl.X.MessageStringOf(x) } func (*Profile) ProtoMessage() {} func (x *Profile) ProtoReflect() protoreflect.Message { mi := &file_profile_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Profile.ProtoReflect.Descriptor instead. func (*Profile) Descriptor() ([]byte, []int) { return file_profile_proto_rawDescGZIP(), []int{0} } func (x *Profile) GetDid() string { if x != nil { return x.Did } return "" } func (x *Profile) GetDisplayName() string { if x != nil && x.DisplayName != nil { return *x.DisplayName } return "" } func (x *Profile) GetDescription() string { if x != nil && x.Description != nil { return *x.Description } return "" } func (x *Profile) GetPronouns() string { if x != nil && x.Pronouns != nil { return *x.Pronouns } return "" } func (x *Profile) GetAvatar() string { if x != nil && x.Avatar != nil { return *x.Avatar } return "" } func (x *Profile) GetCreatedAt() *timestamppb.Timestamp { if x != nil { return x.CreatedAt } return nil } func (x *Profile) GetIndexedAt() *timestamppb.Timestamp { if x != nil { return x.IndexedAt } return nil } type CreateProfileRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateProfileRequest) Reset() { *x = CreateProfileRequest{} mi := &file_profile_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateProfileRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateProfileRequest) ProtoMessage() {} func (x *CreateProfileRequest) ProtoReflect() protoreflect.Message { mi := &file_profile_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CreateProfileRequest.ProtoReflect.Descriptor instead. func (*CreateProfileRequest) Descriptor() ([]byte, []int) { return file_profile_proto_rawDescGZIP(), []int{1} } func (x *CreateProfileRequest) GetProfile() *Profile { if x != nil { return x.Profile } return nil } type CreateProfileResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Error *string `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateProfileResponse) Reset() { *x = CreateProfileResponse{} mi := &file_profile_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateProfileResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateProfileResponse) ProtoMessage() {} func (x *CreateProfileResponse) ProtoReflect() protoreflect.Message { mi := &file_profile_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CreateProfileResponse.ProtoReflect.Descriptor instead. func (*CreateProfileResponse) Descriptor() ([]byte, []int) { return file_profile_proto_rawDescGZIP(), []int{2} } func (x *CreateProfileResponse) GetError() string { if x != nil && x.Error != nil { return *x.Error } return "" } type DeleteProfileRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DeleteProfileRequest) Reset() { *x = DeleteProfileRequest{} mi := &file_profile_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DeleteProfileRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteProfileRequest) ProtoMessage() {} func (x *DeleteProfileRequest) ProtoReflect() protoreflect.Message { mi := &file_profile_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DeleteProfileRequest.ProtoReflect.Descriptor instead. func (*DeleteProfileRequest) Descriptor() ([]byte, []int) { return file_profile_proto_rawDescGZIP(), []int{3} } func (x *DeleteProfileRequest) GetDid() string { if x != nil { return x.Did } return "" } type DeleteProfileResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Error *string `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DeleteProfileResponse) Reset() { *x = DeleteProfileResponse{} mi := &file_profile_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DeleteProfileResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteProfileResponse) ProtoMessage() {} func (x *DeleteProfileResponse) ProtoReflect() protoreflect.Message { mi := &file_profile_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DeleteProfileResponse.ProtoReflect.Descriptor instead. func (*DeleteProfileResponse) Descriptor() ([]byte, []int) { return file_profile_proto_rawDescGZIP(), []int{4} } func (x *DeleteProfileResponse) GetError() string { if x != nil && x.Error != nil { return *x.Error } return "" } type GetProfileRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetProfileRequest) Reset() { *x = GetProfileRequest{} mi := &file_profile_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetProfileRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetProfileRequest) ProtoMessage() {} func (x *GetProfileRequest) ProtoReflect() protoreflect.Message { mi := &file_profile_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead. func (*GetProfileRequest) Descriptor() ([]byte, []int) { return file_profile_proto_rawDescGZIP(), []int{5} } func (x *GetProfileRequest) GetDid() string { if x != nil { return x.Did } return "" } type GetProfileResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Error *string `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` Profile *Profile `protobuf:"bytes,2,opt,name=profile,proto3,oneof" json:"profile,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetProfileResponse) Reset() { *x = GetProfileResponse{} mi := &file_profile_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetProfileResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetProfileResponse) ProtoMessage() {} func (x *GetProfileResponse) ProtoReflect() protoreflect.Message { mi := &file_profile_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead. func (*GetProfileResponse) Descriptor() ([]byte, []int) { return file_profile_proto_rawDescGZIP(), []int{6} } func (x *GetProfileResponse) GetError() string { if x != nil && x.Error != nil { return *x.Error } return "" } func (x *GetProfileResponse) GetProfile() *Profile { if x != nil { return x.Profile } return nil } type GetProfilesRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Dids []string `protobuf:"bytes,1,rep,name=dids,proto3" json:"dids,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetProfilesRequest) Reset() { *x = GetProfilesRequest{} mi := &file_profile_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetProfilesRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetProfilesRequest) ProtoMessage() {} func (x *GetProfilesRequest) ProtoReflect() protoreflect.Message { mi := &file_profile_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetProfilesRequest.ProtoReflect.Descriptor instead. func (*GetProfilesRequest) Descriptor() ([]byte, []int) { return file_profile_proto_rawDescGZIP(), []int{7} } func (x *GetProfilesRequest) GetDids() []string { if x != nil { return x.Dids } return nil } type GetProfilesResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Error *string `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` Profiles map[string]*Profile `protobuf:"bytes,2,rep,name=profiles,proto3" json:"profiles,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetProfilesResponse) Reset() { *x = GetProfilesResponse{} mi := &file_profile_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetProfilesResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetProfilesResponse) ProtoMessage() {} func (x *GetProfilesResponse) ProtoReflect() protoreflect.Message { mi := &file_profile_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetProfilesResponse.ProtoReflect.Descriptor instead. func (*GetProfilesResponse) Descriptor() ([]byte, []int) { return file_profile_proto_rawDescGZIP(), []int{8} } func (x *GetProfilesResponse) GetError() string { if x != nil && x.Error != nil { return *x.Error } return "" } func (x *GetProfilesResponse) GetProfiles() map[string]*Profile { if x != nil { return x.Profiles } return nil } var File_profile_proto protoreflect.FileDescriptor const file_profile_proto_rawDesc = "" + "\n" + "\rprofile.proto\x12\rvyletdatabase\x1a\x1bbuf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdf\x02\n" + "\aProfile\x12\x18\n" + "\x03did\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x03did\x12&\n" + "\fdisplay_name\x18\x02 \x01(\tH\x00R\vdisplayName\x88\x01\x01\x12%\n" + "\vdescription\x18\x03 \x01(\tH\x01R\vdescription\x88\x01\x01\x12\x1f\n" + "\bpronouns\x18\x04 \x01(\tH\x02R\bpronouns\x88\x01\x01\x12\x1b\n" + "\x06avatar\x18\x05 \x01(\tH\x03R\x06avatar\x88\x01\x01\x129\n" + "\n" + "created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + "\n" + "indexed_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tindexedAtB\x0f\n" + "\r_display_nameB\x0e\n" + "\f_descriptionB\v\n" + "\t_pronounsB\t\n" + "\a_avatar\"H\n" + "\x14CreateProfileRequest\x120\n" + "\aprofile\x18\x01 \x01(\v2\x16.vyletdatabase.ProfileR\aprofile\"<\n" + "\x15CreateProfileResponse\x12\x19\n" + "\x05error\x18\x01 \x01(\tH\x00R\x05error\x88\x01\x01B\b\n" + "\x06_error\"0\n" + "\x14DeleteProfileRequest\x12\x18\n" + "\x03did\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x03did\"<\n" + "\x15DeleteProfileResponse\x12\x19\n" + "\x05error\x18\x01 \x01(\tH\x00R\x05error\x88\x01\x01B\b\n" + "\x06_error\"-\n" + "\x11GetProfileRequest\x12\x18\n" + "\x03did\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x03did\"|\n" + "\x12GetProfileResponse\x12\x19\n" + "\x05error\x18\x01 \x01(\tH\x00R\x05error\x88\x01\x01\x125\n" + "\aprofile\x18\x02 \x01(\v2\x16.vyletdatabase.ProfileH\x01R\aprofile\x88\x01\x01B\b\n" + "\x06_errorB\n" + "\n" + "\b_profile\"0\n" + "\x12GetProfilesRequest\x12\x1a\n" + "\x04dids\x18\x01 \x03(\tB\x06\xbaH\x03\xc8\x01\x01R\x04dids\"\xdd\x01\n" + "\x13GetProfilesResponse\x12\x19\n" + "\x05error\x18\x01 \x01(\tH\x00R\x05error\x88\x01\x01\x12L\n" + "\bprofiles\x18\x02 \x03(\v20.vyletdatabase.GetProfilesResponse.ProfilesEntryR\bprofiles\x1aS\n" + "\rProfilesEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12,\n" + "\x05value\x18\x02 \x01(\v2\x16.vyletdatabase.ProfileR\x05value:\x028\x01B\b\n" + "\x06_error2\xcd\x03\n" + "\x0eProfileService\x12Z\n" + "\rCreateProfile\x12#.vyletdatabase.CreateProfileRequest\x1a$.vyletdatabase.CreateProfileResponse\x12Z\n" + "\rUpdateProfile\x12#.vyletdatabase.CreateProfileRequest\x1a$.vyletdatabase.CreateProfileResponse\x12Z\n" + "\rDeleteProfile\x12#.vyletdatabase.DeleteProfileRequest\x1a$.vyletdatabase.DeleteProfileResponse\x12Q\n" + "\n" + "GetProfile\x12 .vyletdatabase.GetProfileRequest\x1a!.vyletdatabase.GetProfileResponse\x12T\n" + "\vGetProfiles\x12!.vyletdatabase.GetProfilesRequest\x1a\".vyletdatabase.GetProfilesResponseB\x87\x01\n" + "\x11com.vyletdatabaseB\fProfileProtoP\x01Z\x10./;vyletdatabase\xa2\x02\x03VXX\xaa\x02\rVyletdatabase\xca\x02\rVyletdatabase\xe2\x02\x19Vyletdatabase\\GPBMetadata\xea\x02\rVyletdatabaseb\x06proto3" var ( file_profile_proto_rawDescOnce sync.Once file_profile_proto_rawDescData []byte ) func file_profile_proto_rawDescGZIP() []byte { file_profile_proto_rawDescOnce.Do(func() { file_profile_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_profile_proto_rawDesc), len(file_profile_proto_rawDesc))) }) return file_profile_proto_rawDescData } var file_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_profile_proto_goTypes = []any{ (*Profile)(nil), // 0: vyletdatabase.Profile (*CreateProfileRequest)(nil), // 1: vyletdatabase.CreateProfileRequest (*CreateProfileResponse)(nil), // 2: vyletdatabase.CreateProfileResponse (*DeleteProfileRequest)(nil), // 3: vyletdatabase.DeleteProfileRequest (*DeleteProfileResponse)(nil), // 4: vyletdatabase.DeleteProfileResponse (*GetProfileRequest)(nil), // 5: vyletdatabase.GetProfileRequest (*GetProfileResponse)(nil), // 6: vyletdatabase.GetProfileResponse (*GetProfilesRequest)(nil), // 7: vyletdatabase.GetProfilesRequest (*GetProfilesResponse)(nil), // 8: vyletdatabase.GetProfilesResponse nil, // 9: vyletdatabase.GetProfilesResponse.ProfilesEntry (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp } var file_profile_proto_depIdxs = []int32{ 10, // 0: vyletdatabase.Profile.created_at:type_name -> google.protobuf.Timestamp 10, // 1: vyletdatabase.Profile.indexed_at:type_name -> google.protobuf.Timestamp 0, // 2: vyletdatabase.CreateProfileRequest.profile:type_name -> vyletdatabase.Profile 0, // 3: vyletdatabase.GetProfileResponse.profile:type_name -> vyletdatabase.Profile 9, // 4: vyletdatabase.GetProfilesResponse.profiles:type_name -> vyletdatabase.GetProfilesResponse.ProfilesEntry 0, // 5: vyletdatabase.GetProfilesResponse.ProfilesEntry.value:type_name -> vyletdatabase.Profile 1, // 6: vyletdatabase.ProfileService.CreateProfile:input_type -> vyletdatabase.CreateProfileRequest 1, // 7: vyletdatabase.ProfileService.UpdateProfile:input_type -> vyletdatabase.CreateProfileRequest 3, // 8: vyletdatabase.ProfileService.DeleteProfile:input_type -> vyletdatabase.DeleteProfileRequest 5, // 9: vyletdatabase.ProfileService.GetProfile:input_type -> vyletdatabase.GetProfileRequest 7, // 10: vyletdatabase.ProfileService.GetProfiles:input_type -> vyletdatabase.GetProfilesRequest 2, // 11: vyletdatabase.ProfileService.CreateProfile:output_type -> vyletdatabase.CreateProfileResponse 2, // 12: vyletdatabase.ProfileService.UpdateProfile:output_type -> vyletdatabase.CreateProfileResponse 4, // 13: vyletdatabase.ProfileService.DeleteProfile:output_type -> vyletdatabase.DeleteProfileResponse 6, // 14: vyletdatabase.ProfileService.GetProfile:output_type -> vyletdatabase.GetProfileResponse 8, // 15: vyletdatabase.ProfileService.GetProfiles:output_type -> vyletdatabase.GetProfilesResponse 11, // [11:16] is the sub-list for method output_type 6, // [6:11] 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 } func init() { file_profile_proto_init() } func file_profile_proto_init() { if File_profile_proto != nil { return } file_profile_proto_msgTypes[0].OneofWrappers = []any{} file_profile_proto_msgTypes[2].OneofWrappers = []any{} file_profile_proto_msgTypes[4].OneofWrappers = []any{} file_profile_proto_msgTypes[6].OneofWrappers = []any{} file_profile_proto_msgTypes[8].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_profile_proto_rawDesc), len(file_profile_proto_rawDesc)), NumEnums: 0, NumMessages: 10, NumExtensions: 0, NumServices: 1, }, GoTypes: file_profile_proto_goTypes, DependencyIndexes: file_profile_proto_depIdxs, MessageInfos: file_profile_proto_msgTypes, }.Build() File_profile_proto = out.File file_profile_proto_goTypes = nil file_profile_proto_depIdxs = nil }