Google Cloud Billing V1 Client - Class Service (2.0.1)

Reference documentation and code samples for the Google Cloud Billing V1 Client class Service.

Encapsulates a single service in Google Cloud Platform.

Generated from protobuf message google.cloud.billing.v1.Service

Namespace

Google \ Cloud \ Billing \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The resource name for the service. Example: "services/6F81-5844-456A"

↳ service_id string

The identifier for the service. Example: "6F81-5844-456A"

↳ display_name string

A human readable display name for this service.

↳ business_entity_name string

The business under which the service is offered. Ex. "businessEntities/GCP", "businessEntities/Maps"

getName

The resource name for the service.

Example: "services/6F81-5844-456A"

Returns
Type Description
string

setName

The resource name for the service.

Example: "services/6F81-5844-456A"

Parameter
Name Description
var string
Returns
Type Description
$this

getServiceId

The identifier for the service.

Example: "6F81-5844-456A"

Returns
Type Description
string

setServiceId

The identifier for the service.

Example: "6F81-5844-456A"

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

A human readable display name for this service.

Returns
Type Description
string

setDisplayName

A human readable display name for this service.

Parameter
Name Description
var string
Returns
Type Description
$this

getBusinessEntityName

The business under which the service is offered.

Ex. "businessEntities/GCP", "businessEntities/Maps"

Returns
Type Description
string

setBusinessEntityName

The business under which the service is offered.

Ex. "businessEntities/GCP", "businessEntities/Maps"

Parameter
Name Description
var string
Returns
Type Description
$this