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"; 20 21option csharp_namespace = "Google.Cloud.Support.V2"; 22option go_package = "cloud.google.com/go/support/apiv2/supportpb;supportpb"; 23option java_multiple_files = true; 24option java_outer_classname = "ActorProto"; 25option java_package = "com.google.cloud.support.v2"; 26option php_namespace = "Google\\Cloud\\Support\\V2"; 27option ruby_package = "Google::Cloud::Support::V2"; 28 29// An object containing information about the effective user and 30// authenticated principal responsible for an action. 31message Actor { 32 // The name to display for the actor. If not provided, it is inferred from 33 // credentials supplied during case creation. When an email is provided, a 34 // display name must also be provided. This will be obfuscated if the user 35 // is a Google Support agent. 36 string display_name = 1; 37 38 // The email address of the actor. If not provided, it is inferred from 39 // credentials supplied during case creation. If the authenticated principal 40 // does not have an email address, one must be provided. When a name is 41 // provided, an email must also be provided. This will be obfuscated if the 42 // user is a Google Support agent. 43 string email = 2; 44 45 // Output only. Whether the actor is a Google support actor. 46 bool google_support = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; 47} 48