Google Cloud Network Connectivity V1 Client - Class ServiceClass (2.2.0)

Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class ServiceClass.

The ServiceClass resource.

Generated from protobuf message google.cloud.networkconnectivity.v1.ServiceClass

Namespace

Google \ Cloud \ NetworkConnectivity \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Immutable. The name of a ServiceClass resource. Format: projects/{project}/locations/{location}/serviceClasses/{service_class} See: https://google.aip.dev/122#fields-representing-resource-names

↳ service_class string

Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies.

↳ create_time Google\Protobuf\Timestamp

Output only. Time when the ServiceClass was created.

↳ update_time Google\Protobuf\Timestamp

Output only. Time when the ServiceClass was updated.

↳ labels array|Google\Protobuf\Internal\MapField

User-defined labels.

↳ description string

A description of this resource.

↳ etag string

Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

getName

Immutable. The name of a ServiceClass resource.

Format: projects/{project}/locations/{location}/serviceClasses/{service_class} See: https://google.aip.dev/122#fields-representing-resource-names

Returns
Type Description
string

setName

Immutable. The name of a ServiceClass resource.

Format: projects/{project}/locations/{location}/serviceClasses/{service_class} See: https://google.aip.dev/122#fields-representing-resource-names

Parameter
Name Description
var string
Returns
Type Description
$this

getServiceClass

Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies.

Returns
Type Description
string

setServiceClass

Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. Time when the ServiceClass was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time when the ServiceClass was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. Time when the ServiceClass was updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Time when the ServiceClass was updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getLabels

User-defined labels.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

User-defined labels.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getDescription

A description of this resource.

Returns
Type Description
string

setDescription

A description of this resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getEtag

Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

Returns
Type Description
string

hasEtag

clearEtag

setEtag

Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

Parameter
Name Description
var string
Returns
Type Description
$this