Google Cloud Support V2 Client - Class PBCase (0.1.2)

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

A support case.

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

Namespace

Google \ Cloud \ Support \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name for the case.

↳ display_name string

The short summary of the issue reported in this case.

↳ description string

A broad description of the issue.

↳ classification Google\Cloud\Support\V2\CaseClassification

The issue classification applicable to this case.

↳ time_zone string

The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.

↳ subscriber_email_addresses array

The email addresses to receive updates on this case.

↳ state int

Output only. The current status of the support case.

↳ create_time Google\Protobuf\Timestamp

Output only. The time this case was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The time this case was last updated.

↳ creator Google\Cloud\Support\V2\Actor

The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.

↳ contact_email string

A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.

↳ escalated bool

Whether the case is currently escalated.

↳ test_case bool

Whether this case was created for internal API testing and should not be acted on by the support team.

↳ language_code string

The language the user has requested to receive support in. This should be a BCP 47 language code (e.g., "en", "zh-CN", "zh-TW", "ja", "ko"). If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours

↳ priority int

The priority of this case.

getName

The resource name for the case.

Returns
TypeDescription
string

setName

The resource name for the case.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

The short summary of the issue reported in this case.

Returns
TypeDescription
string

setDisplayName

The short summary of the issue reported in this case.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

A broad description of the issue.

Returns
TypeDescription
string

setDescription

A broad description of the issue.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getClassification

The issue classification applicable to this case.

Returns
TypeDescription
Google\Cloud\Support\V2\CaseClassification|null

hasClassification

clearClassification

setClassification

The issue classification applicable to this case.

Parameter
NameDescription
var Google\Cloud\Support\V2\CaseClassification
Returns
TypeDescription
$this

getTimeZone

The timezone of the user who created the support case.

It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.

Returns
TypeDescription
string

setTimeZone

The timezone of the user who created the support case.

It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubscriberEmailAddresses

The email addresses to receive updates on this case.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSubscriberEmailAddresses

The email addresses to receive updates on this case.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getState

Output only. The current status of the support case.

Returns
TypeDescription
int

setState

Output only. The current status of the support case.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCreateTime

Output only. The time this case was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time this case was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The time this case was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time this case was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getCreator

The user who created the case.

Note: The name and email will be obfuscated if the case was created by Google Support.

Returns
TypeDescription
Google\Cloud\Support\V2\Actor|null

hasCreator

clearCreator

setCreator

The user who created the case.

Note: The name and email will be obfuscated if the case was created by Google Support.

Parameter
NameDescription
var Google\Cloud\Support\V2\Actor
Returns
TypeDescription
$this

getContactEmail

A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.

Returns
TypeDescription
string

setContactEmail

A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEscalated

Whether the case is currently escalated.

Returns
TypeDescription
bool

setEscalated

Whether the case is currently escalated.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getTestCase

Whether this case was created for internal API testing and should not be acted on by the support team.

Returns
TypeDescription
bool

setTestCase

Whether this case was created for internal API testing and should not be acted on by the support team.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getLanguageCode

The language the user has requested to receive support in. This should be a BCP 47 language code (e.g., "en", "zh-CN", "zh-TW", "ja", "ko").

If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours

Returns
TypeDescription
string

setLanguageCode

The language the user has requested to receive support in. This should be a BCP 47 language code (e.g., "en", "zh-CN", "zh-TW", "ja", "ko").

If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPriority

The priority of this case.

Returns
TypeDescription
int

setPriority

The priority of this case.

Parameter
NameDescription
var int
Returns
TypeDescription
$this