Debian Codegraph @

support/apiv2beta/supportpb/feed_item.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/support/v2beta/feed_item.proto
20
21 package supportpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // A feed item associated with a support case.
40 type FeedItem struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45 // The object corresponding to the event.
46 //
47 // Types that are assignable to EventObject:
48 //
49 // *FeedItem_Comment
50 // *FeedItem_Attachment
51 // *FeedItem_EmailMessage
52 // *FeedItem_DeletedAttachment
53 EventObject isFeedItem_EventObject `protobuf_oneof:"event_object"`
54 // Output only. Time corresponding to the event of this item.
55 EventTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
56 }
57
58 func (x *FeedItem) Reset() {
59 *x = FeedItem{}
60 mi := &file_google_cloud_support_v2beta_feed_item_proto_msgTypes[0]
61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62 ms.StoreMessageInfo(mi)
63 }
64
65 func (x *FeedItem) String() string {
66 return protoimpl.X.MessageStringOf(x)
67 }
68
69 func (*FeedItem) ProtoMessage() {}
70
71 func (x *FeedItem) ProtoReflect() protoreflect.Message {
72 mi := &file_google_cloud_support_v2beta_feed_item_proto_msgTypes[0]
73 if x != nil {
74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
75 if ms.LoadMessageInfo() == nil {
76 ms.StoreMessageInfo(mi)
77 }
78 return ms
79 }
80 return mi.MessageOf(x)
81 }
82
83 // Deprecated: Use FeedItem.ProtoReflect.Descriptor instead.
84 func (*FeedItem) Descriptor() ([]byte, []int) {
85 return file_google_cloud_support_v2beta_feed_item_proto_rawDescGZIP(), []int{0}
86 }
87
88 func (m *FeedItem) GetEventObject() isFeedItem_EventObject {
89 if m != nil {
90 return m.EventObject
91 }
92 return nil
93 }
94
95 func (x *FeedItem) GetComment() *Comment {
96 if x, ok := x.GetEventObject().(*FeedItem_Comment); ok {
97 return x.Comment
98 }
99 return nil
100 }
101
102 func (x *FeedItem) GetAttachment() *Attachment {
103 if x, ok := x.GetEventObject().(*FeedItem_Attachment); ok {
104 return x.Attachment
105 }
106 return nil
107 }
108
109 func (x *FeedItem) GetEmailMessage() *EmailMessage {
110 if x, ok := x.GetEventObject().(*FeedItem_EmailMessage); ok {
111 return x.EmailMessage
112 }
113 return nil
114 }
115
116 func (x *FeedItem) GetDeletedAttachment() *Attachment {
117 if x, ok := x.GetEventObject().(*FeedItem_DeletedAttachment); ok {
118 return x.DeletedAttachment
119 }
120 return nil
121 }
122
123 func (x *FeedItem) GetEventTime() *timestamppb.Timestamp {
124 if x != nil {
125 return x.EventTime
126 }
127 return nil
128 }
129
130 type isFeedItem_EventObject interface {
131 isFeedItem_EventObject()
132 }
133
134 type FeedItem_Comment struct {
135 // Output only. A comment added to the case.
136 Comment *Comment `protobuf:"bytes,100,opt,name=comment,proto3,oneof"`
137 }
138
139 type FeedItem_Attachment struct {
140 // Output only. An attachment attached to the case.
141 Attachment *Attachment `protobuf:"bytes,101,opt,name=attachment,proto3,oneof"`
142 }
143
144 type FeedItem_EmailMessage struct {
145 // Output only. An email message received in reply to the case.
146 EmailMessage *EmailMessage `protobuf:"bytes,102,opt,name=email_message,json=emailMessage,proto3,oneof"`
147 }
148
149 type FeedItem_DeletedAttachment struct {
150 // Output only. A deleted attachment that used to be associated with the
151 // support case.
152 DeletedAttachment *Attachment `protobuf:"bytes,103,opt,name=deleted_attachment,json=deletedAttachment,proto3,oneof"`
153 }
154
155 func (*FeedItem_Comment) isFeedItem_EventObject() {}
156
157 func (*FeedItem_Attachment) isFeedItem_EventObject() {}
158
159 func (*FeedItem_EmailMessage) isFeedItem_EventObject() {}
160
161 func (*FeedItem_DeletedAttachment) isFeedItem_EventObject() {}
162
163 var File_google_cloud_support_v2beta_feed_item_proto protoreflect.FileDescriptor
164
165 var file_google_cloud_support_v2beta_feed_item_proto_rawDesc = []byte{
166 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
167 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x66, 0x65,
168 0x65, 0x64, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67,
169 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70,
170 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
171 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68,
172 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x6f, 0x6f,
173 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72,
174 0x74, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d,
175 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
176 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f,
177 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70,
178 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f,
179 0x75, 0x64, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74,
180 0x61, 0x2f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
181 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
182 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
183 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa7, 0x03, 0x0a, 0x08, 0x46, 0x65, 0x65, 0x64, 0x49,
184 0x74, 0x65, 0x6d, 0x12, 0x45, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x64,
185 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
186 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65,
187 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48,
188 0x00, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4e, 0x0a, 0x0a, 0x61, 0x74,
189 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27,
190 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75,
191 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x74, 0x74,
192 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 0x0a,
193 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x55, 0x0a, 0x0d, 0x65, 0x6d,
194 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x66, 0x20, 0x01, 0x28,
195 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
196 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e,
197 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41,
198 0x03, 0x48, 0x00, 0x52, 0x0c, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
199 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x74,
200 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e,
201 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70,
202 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x74, 0x74, 0x61,
203 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 0x11, 0x64,
204 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74,
205 0x12, 0x3e, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01,
206 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
207 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
208 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65,
209 0x42, 0x0e, 0x0a, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
210 0x42, 0xca, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
211 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32,
212 0x62, 0x65, 0x74, 0x61, 0x42, 0x0d, 0x46, 0x65, 0x65, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x50, 0x72,
213 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f,
214 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f,
215 0x72, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x73, 0x75, 0x70,
216 0x70, 0x6f, 0x72, 0x74, 0x70, 0x62, 0x3b, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x70, 0x62,
217 0xaa, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
218 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02,
219 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x75,
220 0x70, 0x70, 0x6f, 0x72, 0x74, 0x5c, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x47,
221 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x75,
222 0x70, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70,
223 0x72, 0x6f, 0x74, 0x6f, 0x33,
224 }
225
226 var (
227 file_google_cloud_support_v2beta_feed_item_proto_rawDescOnce sync.Once
228 file_google_cloud_support_v2beta_feed_item_proto_rawDescData = file_google_cloud_support_v2beta_feed_item_proto_rawDesc
229 )
230
231 func file_google_cloud_support_v2beta_feed_item_proto_rawDescGZIP() []byte {
232 file_google_cloud_support_v2beta_feed_item_proto_rawDescOnce.Do(func() {
233 file_google_cloud_support_v2beta_feed_item_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_support_v2beta_feed_item_proto_rawDescData)
234 })
235 return file_google_cloud_support_v2beta_feed_item_proto_rawDescData
236 }
237
238 var file_google_cloud_support_v2beta_feed_item_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
239 var file_google_cloud_support_v2beta_feed_item_proto_goTypes = []any{
240 (*FeedItem)(nil), // 0: google.cloud.support.v2beta.FeedItem
241 (*Comment)(nil), // 1: google.cloud.support.v2beta.Comment
242 (*Attachment)(nil), // 2: google.cloud.support.v2beta.Attachment
243 (*EmailMessage)(nil), // 3: google.cloud.support.v2beta.EmailMessage
244 (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
245 }
246 var file_google_cloud_support_v2beta_feed_item_proto_depIdxs = []int32{
247 1, // 0: google.cloud.support.v2beta.FeedItem.comment:type_name -> google.cloud.support.v2beta.Comment
248 2, // 1: google.cloud.support.v2beta.FeedItem.attachment:type_name -> google.cloud.support.v2beta.Attachment
249 3, // 2: google.cloud.support.v2beta.FeedItem.email_message:type_name -> google.cloud.support.v2beta.EmailMessage
250 2, // 3: google.cloud.support.v2beta.FeedItem.deleted_attachment:type_name -> google.cloud.support.v2beta.Attachment
251 4, // 4: google.cloud.support.v2beta.FeedItem.event_time:type_name -> google.protobuf.Timestamp
252 5, // [5:5] is the sub-list for method output_type
253 5, // [5:5] is the sub-list for method input_type
254 5, // [5:5] is the sub-list for extension type_name
255 5, // [5:5] is the sub-list for extension extendee
256 0, // [0:5] is the sub-list for field type_name
257 }
258
259 func init() { file_google_cloud_support_v2beta_feed_item_proto_init() }
260 func file_google_cloud_support_v2beta_feed_item_proto_init() {
261 if File_google_cloud_support_v2beta_feed_item_proto != nil {
262 return
263 }
264 file_google_cloud_support_v2beta_attachment_proto_init()
265 file_google_cloud_support_v2beta_comment_proto_init()
266 file_google_cloud_support_v2beta_email_message_proto_init()
267 file_google_cloud_support_v2beta_feed_item_proto_msgTypes[0].OneofWrappers = []any{
268 (*FeedItem_Comment)(nil),
269 (*FeedItem_Attachment)(nil),
270 (*FeedItem_EmailMessage)(nil),
271 (*FeedItem_DeletedAttachment)(nil),
272 }
273 type x struct{}
274 out := protoimpl.TypeBuilder{
275 File: protoimpl.DescBuilder{
276 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
277 RawDescriptor: file_google_cloud_support_v2beta_feed_item_proto_rawDesc,
278 NumEnums: 0,
279 NumMessages: 1,
280 NumExtensions: 0,
281 NumServices: 0,
282 },
283 GoTypes: file_google_cloud_support_v2beta_feed_item_proto_goTypes,
284 DependencyIndexes: file_google_cloud_support_v2beta_feed_item_proto_depIdxs,
285 MessageInfos: file_google_cloud_support_v2beta_feed_item_proto_msgTypes,
286 }.Build()
287 File_google_cloud_support_v2beta_feed_item_proto = out.File
288 file_google_cloud_support_v2beta_feed_item_proto_rawDesc = nil
289 file_google_cloud_support_v2beta_feed_item_proto_goTypes = nil
290 file_google_cloud_support_v2beta_feed_item_proto_depIdxs = nil
291 }