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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getType
The type of the consumer which should have been defined in Google Resource Manager.
Returns | |
---|---|
Type | Description |
int |
setType
The type of the consumer which should have been defined in Google Resource Manager.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |