Google Cloud Service Control V1 Client - Class ConsumerInfo (1.2.1)

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

ConsumerInfo provides information about the consumer.

Generated from protobuf message google.api.servicecontrol.v1.CheckResponse.ConsumerInfo

Namespace

Google \ Cloud \ ServiceControl \ V1 \ CheckResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ project_number int|string

The Google cloud project number, e.g. 1234567890. A value of 0 indicates no project number is found. NOTE: This field is deprecated after we support flexible consumer id. New code should not depend on this field anymore.

↳ type int

The type of the consumer which should have been defined in Google Resource Manager.

↳ consumer_number int|string

The consumer identity number, can be Google cloud project number, folder number or organization number e.g. 1234567890. A value of 0 indicates no consumer number is found.

getProjectNumber

The Google cloud project number, e.g. 1234567890. A value of 0 indicates no project number is found.

NOTE: This field is deprecated after we support flexible consumer id. New code should not depend on this field anymore.

Returns
TypeDescription
int|string

setProjectNumber

The Google cloud project number, e.g. 1234567890. A value of 0 indicates no project number is found.

NOTE: This field is deprecated after we support flexible consumer id. New code should not depend on this field anymore.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getType

The type of the consumer which should have been defined in Google Resource Manager.

Returns
TypeDescription
int

setType

The type of the consumer which should have been defined in Google Resource Manager.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getConsumerNumber

The consumer identity number, can be Google cloud project number, folder number or organization number e.g. 1234567890. A value of 0 indicates no consumer number is found.

Returns
TypeDescription
int|string

setConsumerNumber

The consumer identity number, can be Google cloud project number, folder number or organization number e.g. 1234567890. A value of 0 indicates no consumer number is found.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this