Reference documentation and code samples for the Google Cloud Service Usage V1 Client class GetServiceRequest.
Request message for theGetServicemethod.
Generated from protobuf messagegoogle.api.serviceusage.v1.GetServiceRequest
Namespace
Google \ Cloud \ ServiceUsage \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Name of the consumer and service to get theConsumerStatefor. An example name would be:projects/123/services/serviceusage.googleapis.comwhere123is the project number.
getName
Name of the consumer and service to get theConsumerStatefor.
An example name would be:projects/123/services/serviceusage.googleapis.comwhere123is the
project number.
Returns
Type
Description
string
setName
Name of the consumer and service to get theConsumerStatefor.
An example name would be:projects/123/services/serviceusage.googleapis.comwhere123is the
project number.
[[["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 Usage V1 Client - Class GetServiceRequest (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-service-usage/latest/V1.GetServiceRequest)\n- [2.0.3](/php/docs/reference/cloud-service-usage/2.0.3/V1.GetServiceRequest)\n- [1.3.4](/php/docs/reference/cloud-service-usage/1.3.4/V1.GetServiceRequest)\n- [1.2.3](/php/docs/reference/cloud-service-usage/1.2.3/V1.GetServiceRequest)\n- [1.1.1](/php/docs/reference/cloud-service-usage/1.1.1/V1.GetServiceRequest)\n- [1.0.5](/php/docs/reference/cloud-service-usage/1.0.5/V1.GetServiceRequest) \nReference documentation and code samples for the Google Cloud Service Usage V1 Client class GetServiceRequest.\n\nRequest message for the `GetService` method.\n\nGenerated from protobuf message `google.api.serviceusage.v1.GetServiceRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceUsage \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nName of the consumer and service to get the `ConsumerState` for.\n\nAn example name would be:\n`projects/123/services/serviceusage.googleapis.com` where `123` is the\nproject number.\n\n### setName\n\nName of the consumer and service to get the `ConsumerState` for.\n\nAn example name would be:\n`projects/123/services/serviceusage.googleapis.com` where `123` is the\nproject number."]]