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 = "CommentProto"; 28option java_package = "com.google.cloud.support.v2"; 29option php_namespace = "Google\\Cloud\\Support\\V2"; 30option ruby_package = "Google::Cloud::Support::V2"; 31 32// A comment associated with a support case. 33message Comment { 34 option (google.api.resource) = { 35 type: "cloudsupport.googleapis.com/Comment" 36 pattern: "organizations/{organization}/cases/{case}/comments/{comment}" 37 pattern: "projects/{project}/cases/{case}/comments/{comment}" 38 }; 39 40 // Output only. The resource name for the comment. 41 string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; 42 43 // Output only. The time when this comment was created. 44 google.protobuf.Timestamp create_time = 2 45 [(google.api.field_behavior) = OUTPUT_ONLY]; 46 47 // Output only. The user or Google Support agent created this comment. 48 Actor creator = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; 49 50 // The full comment body. Maximum of 12800 characters. This can contain rich 51 // text syntax. 52 string body = 4; 53 54 // Output only. DEPRECATED. An automatically generated plain text version of 55 // body with all rich text syntax stripped. 56 string plain_text_body = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; 57} 58