Reference documentation and code samples for the Google Cloud Support V2 Client class Actor.
An Actor represents an entity that performed an action. For example, an actor
could be a user who posted a comment on a support case, a user who
uploaded an attachment, or a service account that created a support case.
Generated from protobuf messagegoogle.cloud.support.v2.Actor
Namespace
Google \ Cloud \ Support \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ display_name
string
The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
↳ email
string
The email address of the actor. If not provided, it is inferred from the credentials supplied during case creation. When a name is provided, an email must also be provided. If the user is a Google Support agent, this is obfuscated. This field is deprecated. Useusernameinstead.
↳ google_support
bool
Output only. Whether the actor is a Google support actor.
↳ username
string
Output only. The username of the actor. It may look like an email or other format provided by the identity provider. If not provided, it is inferred from the credentials supplied. When a name is provided, a username must also be provided. If the user is a Google Support agent, this will not be set.
getDisplayName
The name to display for the actor. If not provided, it is inferred from
credentials supplied during case creation. When an email is provided, a
display name must also be provided. This will be obfuscated if the user
is a Google Support agent.
Returns
Type
Description
string
setDisplayName
The name to display for the actor. If not provided, it is inferred from
credentials supplied during case creation. When an email is provided, a
display name must also be provided. This will be obfuscated if the user
is a Google Support agent.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getEmail
The email address of the actor. If not provided, it is inferred from the
credentials supplied during case creation. When a name is provided, an
email must also be provided. If the user is a Google Support agent, this is
obfuscated.
This field is deprecated. Useusernameinstead.
Returns
Type
Description
string
setEmail
The email address of the actor. If not provided, it is inferred from the
credentials supplied during case creation. When a name is provided, an
email must also be provided. If the user is a Google Support agent, this is
obfuscated.
This field is deprecated. Useusernameinstead.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getGoogleSupport
Output only. Whether the actor is a Google support actor.
Returns
Type
Description
bool
setGoogleSupport
Output only. Whether the actor is a Google support actor.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getUsername
Output only. The username of the actor. It may look like an email or other
format provided by the identity provider. If not provided, it is inferred
from the credentials supplied. When a name is provided, a username must
also be provided. If the user is a Google Support agent, this will not be
set.
Returns
Type
Description
string
setUsername
Output only. The username of the actor. It may look like an email or other
format provided by the identity provider. If not provided, it is inferred
from the credentials supplied. When a name is provided, a username must
also be provided. If the user is a Google Support agent, this will not be
set.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Support V2 Client - Class Actor (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-support/latest/V2.Actor)\n- [1.2.0](/php/docs/reference/cloud-support/1.2.0/V2.Actor)\n- [1.1.0](/php/docs/reference/cloud-support/1.1.0/V2.Actor)\n- [1.0.3](/php/docs/reference/cloud-support/1.0.3/V2.Actor)\n- [0.2.5](/php/docs/reference/cloud-support/0.2.5/V2.Actor)\n- [0.1.2](/php/docs/reference/cloud-support/0.1.2/V2.Actor) \nReference documentation and code samples for the Google Cloud Support V2 Client class Actor.\n\nAn Actor represents an entity that performed an action. For example, an actor\ncould be a user who posted a comment on a support case, a user who\nuploaded an attachment, or a service account that created a support case.\n\nGenerated from protobuf message `google.cloud.support.v2.Actor`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Support \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getDisplayName\n\nThe name to display for the actor. If not provided, it is inferred from\ncredentials supplied during case creation. When an email is provided, a\ndisplay name must also be provided. This will be obfuscated if the user\nis a Google Support agent.\n\n### setDisplayName\n\nThe name to display for the actor. If not provided, it is inferred from\ncredentials supplied during case creation. When an email is provided, a\ndisplay name must also be provided. This will be obfuscated if the user\nis a Google Support agent.\n\n### getEmail\n\nThe email address of the actor. If not provided, it is inferred from the\ncredentials supplied during case creation. When a name is provided, an\nemail must also be provided. If the user is a Google Support agent, this is\nobfuscated.\n\nThis field is deprecated. Use `username` instead.\n\n### setEmail\n\nThe email address of the actor. If not provided, it is inferred from the\ncredentials supplied during case creation. When a name is provided, an\nemail must also be provided. If the user is a Google Support agent, this is\nobfuscated.\n\nThis field is deprecated. Use `username` instead.\n\n### getGoogleSupport\n\nOutput only. Whether the actor is a Google support actor.\n\n### setGoogleSupport\n\nOutput only. Whether the actor is a Google support actor.\n\n### getUsername\n\nOutput only. The username of the actor. It may look like an email or other\nformat provided by the identity provider. If not provided, it is inferred\nfrom the credentials supplied. When a name is provided, a username must\nalso be provided. If the user is a Google Support agent, this will not be\nset.\n\n### setUsername\n\nOutput only. The username of the actor. It may look like an email or other\nformat provided by the identity provider. If not provided, it is inferred\nfrom the credentials supplied. When a name is provided, a username must\nalso be provided. If the user is a Google Support agent, this will not be\nset."]]