Reference documentation and code samples for the Google Cloud Service Usage V1 Client class BatchGetServicesRequest.
Request message for the BatchGetServices method.
Generated from protobuf message google.api.serviceusage.v1.BatchGetServicesRequest
Namespace
Google \ Cloud \ ServiceUsage \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Parent to retrieve services from. If this is set, the parent of all of the services specified in names must match this field. An example name would be: projects/123 where 123 is the project number. The BatchGetServices method currently only supports projects.
↳ names
array
Names of the services to retrieve. An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.
getParent
Parent to retrieve services from.
If this is set, the parent of all of the services specified in names must
match this field. An example name would be: projects/123 where 123 is
the project number. The BatchGetServices method currently only supports
projects.
Returns
Type
Description
string
setParent
Parent to retrieve services from.
If this is set, the parent of all of the services specified in names must
match this field. An example name would be: projects/123 where 123 is
the project number. The BatchGetServices method currently only supports
projects.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getNames
Names of the services to retrieve.
An example name would be:
projects/123/services/serviceusage.googleapis.com where 123 is the
project number.
A single request can get a maximum of 30 services at a time.
An example name would be:
projects/123/services/serviceusage.googleapis.com where 123 is the
project number.
A single request can get a maximum of 30 services at a time.
[[["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-08-28 UTC."],[],[],null,["# Google Cloud Service Usage V1 Client - Class BatchGetServicesRequest (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-service-usage/latest/V1.BatchGetServicesRequest)\n- [2.0.3](/php/docs/reference/cloud-service-usage/2.0.3/V1.BatchGetServicesRequest)\n- [1.3.4](/php/docs/reference/cloud-service-usage/1.3.4/V1.BatchGetServicesRequest)\n- [1.2.3](/php/docs/reference/cloud-service-usage/1.2.3/V1.BatchGetServicesRequest)\n- [1.1.1](/php/docs/reference/cloud-service-usage/1.1.1/V1.BatchGetServicesRequest)\n- [1.0.5](/php/docs/reference/cloud-service-usage/1.0.5/V1.BatchGetServicesRequest) \nReference documentation and code samples for the Google Cloud Service Usage V1 Client class BatchGetServicesRequest.\n\nRequest message for the `BatchGetServices` method.\n\nGenerated from protobuf message `google.api.serviceusage.v1.BatchGetServicesRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceUsage \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nParent to retrieve services from.\n\nIf this is set, the parent of all of the services specified in `names` must\nmatch this field. An example name would be: `projects/123` where `123` is\nthe project number. The `BatchGetServices` method currently only supports\nprojects.\n\n### setParent\n\nParent to retrieve services from.\n\nIf this is set, the parent of all of the services specified in `names` must\nmatch this field. An example name would be: `projects/123` where `123` is\nthe project number. The `BatchGetServices` method currently only supports\nprojects.\n\n### getNames\n\nNames of the services to retrieve.\n\nAn example name would be:\n`projects/123/services/serviceusage.googleapis.com` where `123` is the\nproject number.\nA single request can get a maximum of 30 services at a time.\n\n### setNames\n\nNames of the services to retrieve.\n\nAn example name would be:\n`projects/123/services/serviceusage.googleapis.com` where `123` is the\nproject number.\nA single request can get a maximum of 30 services at a time."]]