Google Cloud Support V2 Client - Class Actor (0.1.2)

Reference documentation and code samples for the Google Cloud Support V2 Client class Actor.

An object containing information about the effective user and authenticated principal responsible for an action.

Generated from protobuf message google.cloud.support.v2.Actor

Namespace

Google \ Cloud \ Support \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
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 credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.

↳ google_support bool

Output only. Whether the actor is a Google support actor.

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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getEmail

The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.

Returns
TypeDescription
string

setEmail

The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGoogleSupport

Output only. Whether the actor is a Google support actor.

Returns
TypeDescription
bool

setGoogleSupport

Output only. Whether the actor is a Google support actor.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this