A list of usage rules that apply to individual API methods.NOTE:All service configuration rules follow "last one wins" order.
↳ producer_notification_channel
string
The full resource name of a channel used for sending notifications to the service producer. Google Service Management currently only supportsGoogle Cloud Pub/Subas a notification channel. To use Google Cloud Pub/Sub as the channel, this must be the name of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format documented inhttps://cloud.google.com/pubsub/docs/overview.
getRequirements
Requirements that must be satisfied before a consumer project can use the
service. Each requirement is of the form <service.name>/
For Google APIs, a Terms of Service requirement must be included here.
Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
Other Google APIs should include
"serviceusage.googleapis.com/tos/universal". Additional ToS can be
included based on the business needs.
Requirements that must be satisfied before a consumer project can use the
service. Each requirement is of the form <service.name>/
For Google APIs, a Terms of Service requirement must be included here.
Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
Other Google APIs should include
"serviceusage.googleapis.com/tos/universal". Additional ToS can be
included based on the business needs.
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getRules
A list of usage rules that apply to individual API methods.
NOTE:All service configuration rules follow "last one wins" order.
The full resource name of a channel used for sending notifications to the
service producer.
Google Service Management currently only supportsGoogle Cloud Pub/Subas a notification
channel. To use Google Cloud Pub/Sub as the channel, this must be the name
of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
documented inhttps://cloud.google.com/pubsub/docs/overview.
Returns
Type
Description
string
setProducerNotificationChannel
The full resource name of a channel used for sending notifications to the
service producer.
Google Service Management currently only supportsGoogle Cloud Pub/Subas a notification
channel. To use Google Cloud Pub/Sub as the channel, this must be the name
of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
documented inhttps://cloud.google.com/pubsub/docs/overview.
[[["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 API Common Protos Client - Class Usage (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Api.Usage)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Api.Usage)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Api.Usage)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Api.Usage)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Api.Usage)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Api.Usage) \nReference documentation and code samples for the Google API Common Protos Client class Usage.\n\nConfiguration controlling usage of a service.\n\nGenerated from protobuf message `google.api.Usage`\n\nNamespace\n---------\n\nGoogle \\\\ Api\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRequirements\n\nRequirements that must be satisfied before a consumer project can use the\nservice. Each requirement is of the form \\\u003cservice.name\\\u003e/\n\n\nFor Google APIs, a Terms of Service requirement must be included here.\nGoogle Cloud APIs must include \"serviceusage.googleapis.com/tos/cloud\".\nOther Google APIs should include\n\"serviceusage.googleapis.com/tos/universal\". Additional ToS can be\nincluded based on the business needs.\n\n### setRequirements\n\nRequirements that must be satisfied before a consumer project can use the\nservice. Each requirement is of the form \\\u003cservice.name\\\u003e/\n\n\nFor Google APIs, a Terms of Service requirement must be included here.\nGoogle Cloud APIs must include \"serviceusage.googleapis.com/tos/cloud\".\nOther Google APIs should include\n\"serviceusage.googleapis.com/tos/universal\". Additional ToS can be\nincluded based on the business needs.\n\n### getRules\n\nA list of usage rules that apply to individual API methods.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.\n\n### setRules\n\nA list of usage rules that apply to individual API methods.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.\n\n### getProducerNotificationChannel\n\nThe full resource name of a channel used for sending notifications to the\nservice producer.\n\nGoogle Service Management currently only supports\n[Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification\nchannel. To use Google Cloud Pub/Sub as the channel, this must be the name\nof a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format\ndocumented in \u003chttps://cloud.google.com/pubsub/docs/overview\u003e.\n\n### setProducerNotificationChannel\n\nThe full resource name of a channel used for sending notifications to the\nservice producer.\n\nGoogle Service Management currently only supports\n[Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification\nchannel. To use Google Cloud Pub/Sub as the channel, this must be the name\nof a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format\ndocumented in \u003chttps://cloud.google.com/pubsub/docs/overview\u003e."]]