xref: /aosp_15_r20/external/googleapis/google/cloud/support/v2/attachment.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.cloud.support.v2;
18
19import "google/api/field_behavior.proto";
20import "google/api/resource.proto";
21import "google/cloud/support/v2/actor.proto";
22import "google/protobuf/timestamp.proto";
23
24option csharp_namespace = "Google.Cloud.Support.V2";
25option go_package = "cloud.google.com/go/support/apiv2/supportpb;supportpb";
26option java_multiple_files = true;
27option java_outer_classname = "AttachmentProto";
28option java_package = "com.google.cloud.support.v2";
29option php_namespace = "Google\\Cloud\\Support\\V2";
30option ruby_package = "Google::Cloud::Support::V2";
31
32// Represents a file attached to a support case.
33message Attachment {
34  option (google.api.resource) = {
35    type: "cloudsupport.googleapis.com/Attachment"
36    pattern: "organizations/{organization}/cases/{case}/attachments/{attachment_id}"
37    pattern: "projects/{project}/cases/{case}/attachments/{attachment_id}"
38  };
39
40  // Output only. The resource name of the attachment.
41  string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
42
43  // Output only. The time at which the attachment was created.
44  google.protobuf.Timestamp create_time = 2
45      [(google.api.field_behavior) = OUTPUT_ONLY];
46
47  // Output only. The user who uploaded the attachment. Note, the name and email
48  // will be obfuscated if the attachment was uploaded by Google support.
49  Actor creator = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
50
51  // The filename of the attachment (e.g. `"graph.jpg"`).
52  string filename = 4;
53
54  // Output only. The MIME type of the attachment (e.g. text/plain).
55  string mime_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
56
57  // Output only. The size of the attachment in bytes.
58  int64 size_bytes = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
59}
60