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
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Service Control V1 Client - Class ConsumerInfo (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-service-control/latest/V1.CheckResponse.ConsumerInfo)\n- [2.0.3](/php/docs/reference/cloud-service-control/2.0.3/V1.CheckResponse.ConsumerInfo)\n- [1.4.4](/php/docs/reference/cloud-service-control/1.4.4/V1.CheckResponse.ConsumerInfo)\n- [1.3.0](/php/docs/reference/cloud-service-control/1.3.0/V1.CheckResponse.ConsumerInfo)\n- [1.2.1](/php/docs/reference/cloud-service-control/1.2.1/V1.CheckResponse.ConsumerInfo)\n- [1.1.1](/php/docs/reference/cloud-service-control/1.1.1/V1.CheckResponse.ConsumerInfo)\n- [1.0.6](/php/docs/reference/cloud-service-control/1.0.6/V1.CheckResponse.ConsumerInfo) \nReference documentation and code samples for the Google Cloud Service Control V1 Client class ConsumerInfo.\n\n`ConsumerInfo` provides information about the consumer.\n\nGenerated from protobuf message `google.api.servicecontrol.v1.CheckResponse.ConsumerInfo`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceControl \\\\ V1 \\\\ CheckResponse\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getProjectNumber\n\nThe Google cloud project number, e.g. 1234567890. A value of 0 indicates\nno project number is found.\n\nNOTE: This field is deprecated after we support flexible consumer\nid. New code should not depend on this field anymore.\n\n### setProjectNumber\n\nThe Google cloud project number, e.g. 1234567890. A value of 0 indicates\nno project number is found.\n\nNOTE: This field is deprecated after we support flexible consumer\nid. New code should not depend on this field anymore.\n\n### getType\n\nThe type of the consumer which should have been defined in\n[Google Resource Manager](https://cloud.google.com/resource-manager/).\n\n### setType\n\nThe type of the consumer which should have been defined in\n[Google Resource Manager](https://cloud.google.com/resource-manager/).\n\n### getConsumerNumber\n\nThe consumer identity number, can be Google cloud project number, folder\nnumber or organization number e.g. 1234567890. A value of 0 indicates no\nconsumer number is found.\n\n### setConsumerNumber\n\nThe consumer identity number, can be Google cloud project number, folder\nnumber or organization number e.g. 1234567890. A value of 0 indicates no\nconsumer number is found."]]