Debian Codegraph @

support/apiv2beta/supportpb/attachment.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/attachment.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 // An Attachment contains metadata about a file that was uploaded to a
40 // case - it is NOT a file itself. That being said, the name of an Attachment
41 // object can be used to download its accompanying file through the
42 // `media.download` endpoint.
43 //
44 // While attachments can be uploaded in the console at the
45 // same time as a comment, they're associated on a "case" level, not a
46 // "comment" level.
47 type Attachment struct {
48 state protoimpl.MessageState
49 sizeCache protoimpl.SizeCache
50 unknownFields protoimpl.UnknownFields
51
52 // Output only. Identifier. The resource name of the attachment.
53 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
54 // Output only. The time at which the attachment was created.
55 CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
56 // Output only. The user who uploaded the attachment. Note, the name and email
57 // will be obfuscated if the attachment was uploaded by Google support.
58 Creator *Actor `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
59 // The filename of the attachment (e.g. `"graph.jpg"`).
60 Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
61 // Output only. The MIME type of the attachment (e.g. text/plain).
62 MimeType string `protobuf:"bytes,5,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
63 // Output only. The size of the attachment in bytes.
64 SizeBytes int64 `protobuf:"varint,6,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
65 }
66
67 func (x *Attachment) Reset() {
68 *x = Attachment{}
69 mi := &file_google_cloud_support_v2beta_attachment_proto_msgTypes[0]
70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
71 ms.StoreMessageInfo(mi)
72 }
73
74 func (x *Attachment) String() string {
75 return protoimpl.X.MessageStringOf(x)
76 }
77
78 func (*Attachment) ProtoMessage() {}
79
80 func (x *Attachment) ProtoReflect() protoreflect.Message {
81 mi := &file_google_cloud_support_v2beta_attachment_proto_msgTypes[0]
82 if x != nil {
83 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
84 if ms.LoadMessageInfo() == nil {
85 ms.StoreMessageInfo(mi)
86 }
87 return ms
88 }
89 return mi.MessageOf(x)
90 }
91
92 // Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
93 func (*Attachment) Descriptor() ([]byte, []int) {
94 return file_google_cloud_support_v2beta_attachment_proto_rawDescGZIP(), []int{0}
95 }
96
97 func (x *Attachment) GetName() string {
98 if x != nil {
99 return x.Name
100 }
101 return ""
102 }
103
104 func (x *Attachment) GetCreateTime() *timestamppb.Timestamp {
105 if x != nil {
106 return x.CreateTime
107 }
108 return nil
109 }
110
111 func (x *Attachment) GetCreator() *Actor {
112 if x != nil {
113 return x.Creator
114 }
115 return nil
116 }
117
118 func (x *Attachment) GetFilename() string {
119 if x != nil {
120 return x.Filename
121 }
122 return ""
123 }
124
125 func (x *Attachment) GetMimeType() string {
126 if x != nil {
127 return x.MimeType
128 }
129 return ""
130 }
131
132 func (x *Attachment) GetSizeBytes() int64 {
133 if x != nil {
134 return x.SizeBytes
135 }
136 return 0
137 }
138
139 var File_google_cloud_support_v2beta_attachment_proto protoreflect.FileDescriptor
140
141 var file_google_cloud_support_v2beta_attachment_proto_rawDesc = []byte{
142 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
143 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x61, 0x74,
144 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b,
145 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70,
146 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
147 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65,
148 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f,
149 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
150 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
151 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32,
152 0x62, 0x65, 0x74, 0x61, 0x2f, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
153 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
154 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
155 0x6f, 0x22, 0xc2, 0x03, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74,
156 0x12, 0x1a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06,
157 0xe0, 0x41, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b,
158 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
159 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
160 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0,
161 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x41,
162 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
163 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
164 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x63,
165 0x74, 0x6f, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,
166 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20,
167 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a,
168 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
169 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
170 0x22, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20,
171 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x79,
172 0x74, 0x65, 0x73, 0x3a, 0xb0, 0x01, 0xea, 0x41, 0xac, 0x01, 0x0a, 0x26, 0x63, 0x6c, 0x6f, 0x75,
173 0x64, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
174 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65,
175 0x6e, 0x74, 0x12, 0x45, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
176 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d,
177 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x61, 0x74,
178 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x61, 0x63,
179 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65,
180 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x63, 0x61,
181 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x61, 0x74, 0x74, 0x61, 0x63,
182 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65,
183 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x42, 0xcc, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
184 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70,
185 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x42, 0x0f, 0x41, 0x74, 0x74, 0x61,
186 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x63,
187 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
188 0x67, 0x6f, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32,
189 0x62, 0x65, 0x74, 0x61, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x70, 0x62, 0x3b, 0x73,
190 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x70, 0x62, 0xaa, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
191 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e,
192 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
193 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x5c, 0x56, 0x32,
194 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43,
195 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x3a, 0x56,
196 0x32, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
197 }
198
199 var (
200 file_google_cloud_support_v2beta_attachment_proto_rawDescOnce sync.Once
201 file_google_cloud_support_v2beta_attachment_proto_rawDescData = file_google_cloud_support_v2beta_attachment_proto_rawDesc
202 )
203
204 func file_google_cloud_support_v2beta_attachment_proto_rawDescGZIP() []byte {
205 file_google_cloud_support_v2beta_attachment_proto_rawDescOnce.Do(func() {
206 file_google_cloud_support_v2beta_attachment_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_support_v2beta_attachment_proto_rawDescData)
207 })
208 return file_google_cloud_support_v2beta_attachment_proto_rawDescData
209 }
210
211 var file_google_cloud_support_v2beta_attachment_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
212 var file_google_cloud_support_v2beta_attachment_proto_goTypes = []any{
213 (*Attachment)(nil), // 0: google.cloud.support.v2beta.Attachment
214 (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
215 (*Actor)(nil), // 2: google.cloud.support.v2beta.Actor
216 }
217 var file_google_cloud_support_v2beta_attachment_proto_depIdxs = []int32{
218 1, // 0: google.cloud.support.v2beta.Attachment.create_time:type_name -> google.protobuf.Timestamp
219 2, // 1: google.cloud.support.v2beta.Attachment.creator:type_name -> google.cloud.support.v2beta.Actor
220 2, // [2:2] is the sub-list for method output_type
221 2, // [2:2] is the sub-list for method input_type
222 2, // [2:2] is the sub-list for extension type_name
223 2, // [2:2] is the sub-list for extension extendee
224 0, // [0:2] is the sub-list for field type_name
225 }
226
227 func init() { file_google_cloud_support_v2beta_attachment_proto_init() }
228 func file_google_cloud_support_v2beta_attachment_proto_init() {
229 if File_google_cloud_support_v2beta_attachment_proto != nil {
230 return
231 }
232 file_google_cloud_support_v2beta_actor_proto_init()
233 type x struct{}
234 out := protoimpl.TypeBuilder{
235 File: protoimpl.DescBuilder{
236 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
237 RawDescriptor: file_google_cloud_support_v2beta_attachment_proto_rawDesc,
238 NumEnums: 0,
239 NumMessages: 1,
240 NumExtensions: 0,
241 NumServices: 0,
242 },
243 GoTypes: file_google_cloud_support_v2beta_attachment_proto_goTypes,
244 DependencyIndexes: file_google_cloud_support_v2beta_attachment_proto_depIdxs,
245 MessageInfos: file_google_cloud_support_v2beta_attachment_proto_msgTypes,
246 }.Build()
247 File_google_cloud_support_v2beta_attachment_proto = out.File
248 file_google_cloud_support_v2beta_attachment_proto_rawDesc = nil
249 file_google_cloud_support_v2beta_attachment_proto_goTypes = nil
250 file_google_cloud_support_v2beta_attachment_proto_depIdxs = nil
251 }