|
@@ -83,14 +83,15 @@ type Message struct {
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- TicketId string `protobuf:"bytes,1,opt,name=ticket_id,proto3" json:"ticket_id,omitempty"`
|
|
|
- Provider MessageProvider `protobuf:"varint,2,opt,name=provider,proto3,enum=ticket.MessageProvider" json:"provider,omitempty"`
|
|
|
- Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
|
|
|
- Date int64 `protobuf:"varint,4,opt,name=date,proto3" json:"date,omitempty"`
|
|
|
- Raw string `protobuf:"bytes,5,opt,name=raw,proto3" json:"raw,omitempty"`
|
|
|
- Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
- Flags []byte `protobuf:"bytes,7,opt,name=flags,proto3" json:"flags,omitempty"`
|
|
|
- Headers []*Message_Header `protobuf:"bytes,10,rep,name=headers,proto3" json:"headers,omitempty"`
|
|
|
+ TicketId string `protobuf:"bytes,1,opt,name=ticket_id,proto3" json:"ticket_id,omitempty"`
|
|
|
+ Provider MessageProvider `protobuf:"varint,2,opt,name=provider,proto3,enum=ticket.MessageProvider" json:"provider,omitempty"`
|
|
|
+ Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
|
|
|
+ Date int64 `protobuf:"varint,4,opt,name=date,proto3" json:"date,omitempty"`
|
|
|
+ Raw string `protobuf:"bytes,5,opt,name=raw,proto3" json:"raw,omitempty"`
|
|
|
+ Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
+ Flags []byte `protobuf:"bytes,7,opt,name=flags,proto3" json:"flags,omitempty"`
|
|
|
+ Headers []*Message_Header `protobuf:"bytes,10,rep,name=headers,proto3" json:"headers,omitempty"`
|
|
|
+ Attachments []*Message_Attachment `protobuf:"bytes,11,rep,name=attachments,proto3" json:"attachments,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (x *Message) Reset() {
|
|
@@ -181,6 +182,13 @@ func (x *Message) GetHeaders() []*Message_Header {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+func (x *Message) GetAttachments() []*Message_Attachment {
|
|
|
+ if x != nil {
|
|
|
+ return x.Attachments
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
type Ticket struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
@@ -291,11 +299,185 @@ func (x *Message_Header) GetValue() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
+type Message_Attachment struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
+ Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
|
|
|
+ ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
|
|
+ ContentEncoding string `protobuf:"bytes,4,opt,name=content_encoding,json=contentEncoding,proto3" json:"content_encoding,omitempty"`
|
|
|
+ Upload *Message_Attachment_Upload `protobuf:"bytes,5,opt,name=upload,proto3" json:"upload,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment) Reset() {
|
|
|
+ *x = Message_Attachment{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_ticket_proto_msgTypes[3]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*Message_Attachment) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *Message_Attachment) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_ticket_proto_msgTypes[3]
|
|
|
+ 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 Message_Attachment.ProtoReflect.Descriptor instead.
|
|
|
+func (*Message_Attachment) Descriptor() ([]byte, []int) {
|
|
|
+ return file_ticket_proto_rawDescGZIP(), []int{0, 1}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment) GetId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Id
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment) GetFilename() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Filename
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment) GetContentType() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ContentType
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment) GetContentEncoding() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ContentEncoding
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment) GetUpload() *Message_Attachment_Upload {
|
|
|
+ if x != nil {
|
|
|
+ return x.Upload
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type Message_Attachment_Upload struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
|
|
+ Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
+ Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"`
|
|
|
+ Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
+ LastModified int64 `protobuf:"varint,5,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
|
|
|
+ Location string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
|
|
|
+ Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment_Upload) Reset() {
|
|
|
+ *x = Message_Attachment_Upload{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_ticket_proto_msgTypes[4]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment_Upload) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*Message_Attachment_Upload) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *Message_Attachment_Upload) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_ticket_proto_msgTypes[4]
|
|
|
+ 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 Message_Attachment_Upload.ProtoReflect.Descriptor instead.
|
|
|
+func (*Message_Attachment_Upload) Descriptor() ([]byte, []int) {
|
|
|
+ return file_ticket_proto_rawDescGZIP(), []int{0, 1, 0}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment_Upload) GetBucket() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Bucket
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment_Upload) GetKey() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Key
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment_Upload) GetEtag() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Etag
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment_Upload) GetSize() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Size
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment_Upload) GetLastModified() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.LastModified
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment_Upload) GetLocation() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Location
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Message_Attachment_Upload) GetVersion() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Version
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
var File_ticket_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_ticket_proto_rawDesc = []byte{
|
|
|
0x0a, 0x0c, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
|
|
|
- 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x22, 0xa0, 0x02, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
|
|
+ 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x22, 0xda, 0x05, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
|
|
0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18,
|
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64,
|
|
|
0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
|
|
@@ -310,28 +492,56 @@ var file_ticket_proto_rawDesc = []byte{
|
|
|
0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
|
|
|
0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e,
|
|
|
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07,
|
|
|
- 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x30, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65,
|
|
|
- 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
|
|
- 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
|
- 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x41, 0x0a, 0x06, 0x54, 0x69, 0x63,
|
|
|
- 0x6b, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
- 0x02, 0x69, 0x64, 0x12, 0x27, 0x0a, 0x06, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x18, 0x0a, 0x20,
|
|
|
- 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73,
|
|
|
- 0x73, 0x61, 0x67, 0x65, 0x52, 0x06, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x2a, 0xa6, 0x01, 0x0a,
|
|
|
- 0x0f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
|
|
|
- 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
|
|
- 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14,
|
|
|
- 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76,
|
|
|
- 0x69, 0x64, 0x65, 0x72, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x65,
|
|
|
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x02, 0x12,
|
|
|
- 0x16, 0x0a, 0x12, 0x47, 0x70, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f,
|
|
|
- 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x70, 0x69, 0x4d, 0x65,
|
|
|
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x04, 0x12,
|
|
|
- 0x14, 0x0a, 0x10, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
|
|
|
- 0x64, 0x65, 0x72, 0x10, 0x05, 0x42, 0x2a, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x73, 0x68,
|
|
|
- 0x6f, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x63, 0x72, 0x6d, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74,
|
|
|
- 0x42, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x08, 0x2e, 0x2f, 0x74, 0x69, 0x63, 0x6b, 0x65,
|
|
|
- 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x3c, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63,
|
|
|
+ 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74,
|
|
|
+ 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x74,
|
|
|
+ 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68,
|
|
|
+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x30, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
|
|
|
+ 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
|
|
|
+ 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
+ 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0xf9, 0x02, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x61,
|
|
|
+ 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61,
|
|
|
+ 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61,
|
|
|
+ 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79,
|
|
|
+ 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
|
|
|
+ 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
|
|
|
+ 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67,
|
|
|
+ 0x12, 0x39, 0x0a, 0x06, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
|
|
|
+ 0x32, 0x21, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
|
+ 0x65, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x70, 0x6c,
|
|
|
+ 0x6f, 0x61, 0x64, 0x52, 0x06, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x1a, 0xb5, 0x01, 0x0a, 0x06,
|
|
|
+ 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74,
|
|
|
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x10,
|
|
|
+ 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
|
|
+ 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
|
|
+ 0x65, 0x74, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01,
|
|
|
+ 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74,
|
|
|
+ 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
+ 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x1a, 0x0a,
|
|
|
+ 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72,
|
|
|
+ 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73,
|
|
|
+ 0x69, 0x6f, 0x6e, 0x22, 0x41, 0x0a, 0x06, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x0e, 0x0a,
|
|
|
+ 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x27, 0x0a,
|
|
|
+ 0x06, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
|
|
|
+ 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x06,
|
|
|
+ 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x2a, 0xa6, 0x01, 0x0a, 0x0f, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
|
|
+ 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x6e,
|
|
|
+ 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76,
|
|
|
+ 0x69, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4d,
|
|
|
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x01,
|
|
|
+ 0x12, 0x17, 0x0a, 0x13, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50,
|
|
|
+ 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x47, 0x70, 0x74,
|
|
|
+ 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10,
|
|
|
+ 0x03, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x70, 0x69, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50,
|
|
|
+ 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x46, 0x75, 0x6e,
|
|
|
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x05, 0x42,
|
|
|
+ 0x2a, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x65, 0x72, 0x2e,
|
|
|
+ 0x63, 0x72, 0x6d, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x05, 0x70, 0x72, 0x6f, 0x74,
|
|
|
+ 0x6f, 0x5a, 0x08, 0x2e, 0x2f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
|
|
+ 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -347,22 +557,26 @@ func file_ticket_proto_rawDescGZIP() []byte {
|
|
|
}
|
|
|
|
|
|
var file_ticket_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
|
-var file_ticket_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
|
+var file_ticket_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
|
var file_ticket_proto_goTypes = []interface{}{
|
|
|
- (MessageProvider)(0), // 0: ticket.MessageProvider
|
|
|
- (*Message)(nil), // 1: ticket.Message
|
|
|
- (*Ticket)(nil), // 2: ticket.Ticket
|
|
|
- (*Message_Header)(nil), // 3: ticket.Message.Header
|
|
|
+ (MessageProvider)(0), // 0: ticket.MessageProvider
|
|
|
+ (*Message)(nil), // 1: ticket.Message
|
|
|
+ (*Ticket)(nil), // 2: ticket.Ticket
|
|
|
+ (*Message_Header)(nil), // 3: ticket.Message.Header
|
|
|
+ (*Message_Attachment)(nil), // 4: ticket.Message.Attachment
|
|
|
+ (*Message_Attachment_Upload)(nil), // 5: ticket.Message.Attachment.Upload
|
|
|
}
|
|
|
var file_ticket_proto_depIdxs = []int32{
|
|
|
0, // 0: ticket.Message.provider:type_name -> ticket.MessageProvider
|
|
|
3, // 1: ticket.Message.headers:type_name -> ticket.Message.Header
|
|
|
- 1, // 2: ticket.Ticket.thread:type_name -> ticket.Message
|
|
|
- 3, // [3:3] is the sub-list for method output_type
|
|
|
- 3, // [3:3] is the sub-list for method input_type
|
|
|
- 3, // [3:3] is the sub-list for extension type_name
|
|
|
- 3, // [3:3] is the sub-list for extension extendee
|
|
|
- 0, // [0:3] is the sub-list for field type_name
|
|
|
+ 4, // 2: ticket.Message.attachments:type_name -> ticket.Message.Attachment
|
|
|
+ 1, // 3: ticket.Ticket.thread:type_name -> ticket.Message
|
|
|
+ 5, // 4: ticket.Message.Attachment.upload:type_name -> ticket.Message.Attachment.Upload
|
|
|
+ 5, // [5:5] is the sub-list for method output_type
|
|
|
+ 5, // [5:5] is the sub-list for method input_type
|
|
|
+ 5, // [5:5] is the sub-list for extension type_name
|
|
|
+ 5, // [5:5] is the sub-list for extension extendee
|
|
|
+ 0, // [0:5] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_ticket_proto_init() }
|
|
@@ -407,6 +621,30 @@ func file_ticket_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_ticket_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*Message_Attachment); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_ticket_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*Message_Attachment_Upload); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
@@ -414,7 +652,7 @@ func file_ticket_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_ticket_proto_rawDesc,
|
|
|
NumEnums: 1,
|
|
|
- NumMessages: 3,
|
|
|
+ NumMessages: 5,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 0,
|
|
|
},
|