2025-01-24 00:58:39 +08:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.35.1
|
|
|
|
// protoc v5.28.3
|
|
|
|
// source: attachment.proto
|
|
|
|
|
|
|
|
package proto
|
|
|
|
|
|
|
|
import (
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
|
|
|
|
|
|
|
type AttachmentInfo struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Rid string `protobuf:"bytes,2,opt,name=rid,proto3" json:"rid,omitempty"`
|
|
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
Size string `protobuf:"bytes,5,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
|
Hash string `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
|
|
Mime string `protobuf:"bytes,7,opt,name=mime,proto3" json:"mime,omitempty"`
|
|
|
|
IsIndexable bool `protobuf:"varint,8,opt,name=is_indexable,json=isIndexable,proto3" json:"is_indexable,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AttachmentInfo) Reset() {
|
|
|
|
*x = AttachmentInfo{}
|
|
|
|
mi := &file_attachment_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AttachmentInfo) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*AttachmentInfo) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *AttachmentInfo) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_attachment_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 AttachmentInfo.ProtoReflect.Descriptor instead.
|
|
|
|
func (*AttachmentInfo) Descriptor() ([]byte, []int) {
|
|
|
|
return file_attachment_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AttachmentInfo) GetId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AttachmentInfo) GetRid() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Rid
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AttachmentInfo) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AttachmentInfo) GetType() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Type
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AttachmentInfo) GetSize() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Size
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AttachmentInfo) GetHash() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Hash
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AttachmentInfo) GetMime() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Mime
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AttachmentInfo) GetIsIndexable() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.IsIndexable
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetAttachmentRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2025-01-24 17:21:28 +08:00
|
|
|
Id *uint64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
|
|
|
|
Rid *string `protobuf:"bytes,2,opt,name=rid,proto3,oneof" json:"rid,omitempty"`
|
|
|
|
UserId *uint64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
|
2025-01-24 00:58:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetAttachmentRequest) Reset() {
|
|
|
|
*x = GetAttachmentRequest{}
|
|
|
|
mi := &file_attachment_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetAttachmentRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*GetAttachmentRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GetAttachmentRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_attachment_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 GetAttachmentRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GetAttachmentRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_attachment_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetAttachmentRequest) GetId() uint64 {
|
|
|
|
if x != nil && x.Id != nil {
|
|
|
|
return *x.Id
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetAttachmentRequest) GetRid() string {
|
|
|
|
if x != nil && x.Rid != nil {
|
|
|
|
return *x.Rid
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2025-01-24 17:21:28 +08:00
|
|
|
func (x *GetAttachmentRequest) GetUserId() uint64 {
|
|
|
|
if x != nil && x.UserId != nil {
|
|
|
|
return *x.UserId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2025-01-24 00:58:39 +08:00
|
|
|
type GetAttachmentResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Attachment *AttachmentInfo `protobuf:"bytes,1,opt,name=attachment,proto3,oneof" json:"attachment,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetAttachmentResponse) Reset() {
|
|
|
|
*x = GetAttachmentResponse{}
|
|
|
|
mi := &file_attachment_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetAttachmentResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*GetAttachmentResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GetAttachmentResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_attachment_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 GetAttachmentResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GetAttachmentResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_attachment_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetAttachmentResponse) GetAttachment() *AttachmentInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.Attachment
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListAttachmentRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2025-01-24 17:21:28 +08:00
|
|
|
Id []uint64 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Rid []string `protobuf:"bytes,2,rep,name=rid,proto3" json:"rid,omitempty"`
|
|
|
|
UserId *uint64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
|
2025-01-24 00:58:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListAttachmentRequest) Reset() {
|
|
|
|
*x = ListAttachmentRequest{}
|
|
|
|
mi := &file_attachment_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListAttachmentRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ListAttachmentRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListAttachmentRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_attachment_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 ListAttachmentRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListAttachmentRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_attachment_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListAttachmentRequest) GetId() []uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListAttachmentRequest) GetRid() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Rid
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2025-01-24 17:21:28 +08:00
|
|
|
func (x *ListAttachmentRequest) GetUserId() uint64 {
|
|
|
|
if x != nil && x.UserId != nil {
|
|
|
|
return *x.UserId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2025-01-24 00:58:39 +08:00
|
|
|
type ListAttachmentResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Attachments []*AttachmentInfo `protobuf:"bytes,1,rep,name=attachments,proto3" json:"attachments,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListAttachmentResponse) Reset() {
|
|
|
|
*x = ListAttachmentResponse{}
|
|
|
|
mi := &file_attachment_proto_msgTypes[4]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListAttachmentResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ListAttachmentResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListAttachmentResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_attachment_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 ListAttachmentResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListAttachmentResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_attachment_proto_rawDescGZIP(), []int{4}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListAttachmentResponse) GetAttachments() []*AttachmentInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.Attachments
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateVisibilityRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Id []uint64 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Rid []string `protobuf:"bytes,2,rep,name=rid,proto3" json:"rid,omitempty"`
|
|
|
|
IsIndexable bool `protobuf:"varint,3,opt,name=is_indexable,json=isIndexable,proto3" json:"is_indexable,omitempty"`
|
2025-01-24 17:21:28 +08:00
|
|
|
UserId *uint64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
|
2025-01-24 00:58:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateVisibilityRequest) Reset() {
|
|
|
|
*x = UpdateVisibilityRequest{}
|
|
|
|
mi := &file_attachment_proto_msgTypes[5]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateVisibilityRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UpdateVisibilityRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UpdateVisibilityRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_attachment_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 UpdateVisibilityRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdateVisibilityRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_attachment_proto_rawDescGZIP(), []int{5}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateVisibilityRequest) GetId() []uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateVisibilityRequest) GetRid() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Rid
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateVisibilityRequest) GetIsIndexable() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.IsIndexable
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2025-01-24 17:21:28 +08:00
|
|
|
func (x *UpdateVisibilityRequest) GetUserId() uint64 {
|
|
|
|
if x != nil && x.UserId != nil {
|
|
|
|
return *x.UserId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2025-01-24 00:58:39 +08:00
|
|
|
type UpdateVisibilityResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateVisibilityResponse) Reset() {
|
|
|
|
*x = UpdateVisibilityResponse{}
|
|
|
|
mi := &file_attachment_proto_msgTypes[6]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateVisibilityResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UpdateVisibilityResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UpdateVisibilityResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_attachment_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 UpdateVisibilityResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdateVisibilityResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_attachment_proto_rawDescGZIP(), []int{6}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateVisibilityResponse) GetCount() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Count
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteAttachmentRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2025-01-24 17:21:28 +08:00
|
|
|
Id []uint64 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Rid []string `protobuf:"bytes,2,rep,name=rid,proto3" json:"rid,omitempty"`
|
|
|
|
UserId *uint64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
|
2025-01-24 00:58:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteAttachmentRequest) Reset() {
|
|
|
|
*x = DeleteAttachmentRequest{}
|
|
|
|
mi := &file_attachment_proto_msgTypes[7]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteAttachmentRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*DeleteAttachmentRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *DeleteAttachmentRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_attachment_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 DeleteAttachmentRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeleteAttachmentRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_attachment_proto_rawDescGZIP(), []int{7}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteAttachmentRequest) GetId() []uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteAttachmentRequest) GetRid() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Rid
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2025-01-24 17:21:28 +08:00
|
|
|
func (x *DeleteAttachmentRequest) GetUserId() uint64 {
|
|
|
|
if x != nil && x.UserId != nil {
|
|
|
|
return *x.UserId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2025-01-24 00:58:39 +08:00
|
|
|
type DeleteAttachmentResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteAttachmentResponse) Reset() {
|
|
|
|
*x = DeleteAttachmentResponse{}
|
|
|
|
mi := &file_attachment_proto_msgTypes[8]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteAttachmentResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*DeleteAttachmentResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *DeleteAttachmentResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_attachment_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 DeleteAttachmentResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeleteAttachmentResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_attachment_proto_rawDescGZIP(), []int{8}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteAttachmentResponse) GetCount() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Count
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
var File_attachment_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_attachment_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x10, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
|
0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x01, 0x0a, 0x0e, 0x41, 0x74,
|
|
|
|
0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02,
|
|
|
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03,
|
|
|
|
0x72, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x69, 0x64, 0x12, 0x12,
|
|
|
|
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
|
|
|
|
0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61,
|
|
|
|
0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x12,
|
|
|
|
0x0a, 0x04, 0x6d, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x69,
|
|
|
|
0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x61, 0x62,
|
|
|
|
0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x49, 0x6e, 0x64, 0x65,
|
2025-01-24 17:21:28 +08:00
|
|
|
0x78, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x7b, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61,
|
2025-01-24 00:58:39 +08:00
|
|
|
0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x13, 0x0a,
|
|
|
|
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88,
|
|
|
|
0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x72, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48,
|
2025-01-24 17:21:28 +08:00
|
|
|
0x01, 0x52, 0x03, 0x72, 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65,
|
|
|
|
0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x06, 0x75, 0x73,
|
|
|
|
0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x42, 0x06,
|
|
|
|
0x0a, 0x04, 0x5f, 0x72, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f,
|
|
|
|
0x69, 0x64, 0x22, 0x62, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d,
|
|
|
|
0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x61,
|
|
|
|
0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
|
|
0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65,
|
|
|
|
0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68,
|
|
|
|
0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, 0x74, 0x74, 0x61,
|
|
|
|
0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x63, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74,
|
|
|
|
0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
|
|
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12,
|
|
|
|
0x10, 0x0a, 0x03, 0x72, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x72, 0x69,
|
|
|
|
0x64, 0x12, 0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
|
|
|
|
0x28, 0x04, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42,
|
|
|
|
0x0a, 0x0a, 0x08, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x51, 0x0a, 0x16, 0x4c,
|
|
|
|
0x69, 0x73, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d,
|
|
|
|
0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
|
0x74, 0x6f, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66,
|
|
|
|
0x6f, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x88,
|
|
|
|
0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c,
|
|
|
|
0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
|
|
|
0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x69,
|
|
|
|
0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x72, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c,
|
|
|
|
0x69, 0x73, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01,
|
|
|
|
0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x61, 0x62, 0x6c, 0x65, 0x12,
|
|
|
|
0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04,
|
|
|
|
0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a,
|
|
|
|
0x08, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x30, 0x0a, 0x18, 0x55, 0x70, 0x64,
|
2025-01-24 00:58:39 +08:00
|
|
|
0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73,
|
2025-01-24 17:21:28 +08:00
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x65, 0x0a, 0x17, 0x44,
|
|
|
|
0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x03,
|
|
|
|
0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x69, 0x64, 0x18, 0x02, 0x20,
|
|
|
|
0x03, 0x28, 0x09, 0x52, 0x03, 0x72, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72,
|
|
|
|
0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65,
|
|
|
|
0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f,
|
|
|
|
0x69, 0x64, 0x22, 0x30, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x61,
|
|
|
|
0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14,
|
|
|
|
0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63,
|
|
|
|
0x6f, 0x75, 0x6e, 0x74, 0x32, 0xe0, 0x02, 0x0a, 0x11, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d,
|
|
|
|
0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x47, 0x65,
|
|
|
|
0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x70, 0x72,
|
|
|
|
0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e,
|
|
|
|
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74,
|
|
|
|
0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
|
0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e,
|
|
|
|
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52,
|
|
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x10, 0x55, 0x70, 0x64,
|
|
|
|
0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1e, 0x2e,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x69,
|
|
|
|
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x69,
|
|
|
|
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
|
|
|
|
0x12, 0x55, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68,
|
|
|
|
0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c,
|
|
|
|
0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c,
|
|
|
|
0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x3b, 0x70, 0x72, 0x6f,
|
|
|
|
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2025-01-24 00:58:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_attachment_proto_rawDescOnce sync.Once
|
|
|
|
file_attachment_proto_rawDescData = file_attachment_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_attachment_proto_rawDescGZIP() []byte {
|
|
|
|
file_attachment_proto_rawDescOnce.Do(func() {
|
|
|
|
file_attachment_proto_rawDescData = protoimpl.X.CompressGZIP(file_attachment_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_attachment_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
|
|
|
var file_attachment_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
|
|
var file_attachment_proto_goTypes = []any{
|
|
|
|
(*AttachmentInfo)(nil), // 0: proto.AttachmentInfo
|
|
|
|
(*GetAttachmentRequest)(nil), // 1: proto.GetAttachmentRequest
|
|
|
|
(*GetAttachmentResponse)(nil), // 2: proto.GetAttachmentResponse
|
|
|
|
(*ListAttachmentRequest)(nil), // 3: proto.ListAttachmentRequest
|
|
|
|
(*ListAttachmentResponse)(nil), // 4: proto.ListAttachmentResponse
|
|
|
|
(*UpdateVisibilityRequest)(nil), // 5: proto.UpdateVisibilityRequest
|
|
|
|
(*UpdateVisibilityResponse)(nil), // 6: proto.UpdateVisibilityResponse
|
|
|
|
(*DeleteAttachmentRequest)(nil), // 7: proto.DeleteAttachmentRequest
|
|
|
|
(*DeleteAttachmentResponse)(nil), // 8: proto.DeleteAttachmentResponse
|
|
|
|
}
|
|
|
|
var file_attachment_proto_depIdxs = []int32{
|
|
|
|
0, // 0: proto.GetAttachmentResponse.attachment:type_name -> proto.AttachmentInfo
|
|
|
|
0, // 1: proto.ListAttachmentResponse.attachments:type_name -> proto.AttachmentInfo
|
|
|
|
1, // 2: proto.AttachmentService.GetAttachment:input_type -> proto.GetAttachmentRequest
|
|
|
|
3, // 3: proto.AttachmentService.ListAttachment:input_type -> proto.ListAttachmentRequest
|
|
|
|
5, // 4: proto.AttachmentService.UpdateVisibility:input_type -> proto.UpdateVisibilityRequest
|
|
|
|
7, // 5: proto.AttachmentService.DeleteAttachment:input_type -> proto.DeleteAttachmentRequest
|
|
|
|
2, // 6: proto.AttachmentService.GetAttachment:output_type -> proto.GetAttachmentResponse
|
|
|
|
4, // 7: proto.AttachmentService.ListAttachment:output_type -> proto.ListAttachmentResponse
|
|
|
|
6, // 8: proto.AttachmentService.UpdateVisibility:output_type -> proto.UpdateVisibilityResponse
|
|
|
|
8, // 9: proto.AttachmentService.DeleteAttachment:output_type -> proto.DeleteAttachmentResponse
|
|
|
|
6, // [6:10] is the sub-list for method output_type
|
|
|
|
2, // [2:6] is the sub-list for method input_type
|
|
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
|
|
0, // [0:2] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_attachment_proto_init() }
|
|
|
|
func file_attachment_proto_init() {
|
|
|
|
if File_attachment_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
file_attachment_proto_msgTypes[1].OneofWrappers = []any{}
|
|
|
|
file_attachment_proto_msgTypes[2].OneofWrappers = []any{}
|
2025-01-24 17:21:28 +08:00
|
|
|
file_attachment_proto_msgTypes[3].OneofWrappers = []any{}
|
|
|
|
file_attachment_proto_msgTypes[5].OneofWrappers = []any{}
|
|
|
|
file_attachment_proto_msgTypes[7].OneofWrappers = []any{}
|
2025-01-24 00:58:39 +08:00
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_attachment_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
|
|
|
NumMessages: 9,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_attachment_proto_goTypes,
|
|
|
|
DependencyIndexes: file_attachment_proto_depIdxs,
|
|
|
|
MessageInfos: file_attachment_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_attachment_proto = out.File
|
|
|
|
file_attachment_proto_rawDesc = nil
|
|
|
|
file_attachment_proto_goTypes = nil
|
|
|
|
file_attachment_proto_depIdxs = nil
|
|
|
|
}
|