The service configuration of the available service. Some fields may be filtered out of the configuration in responses to theListServicesmethod. These fields are present only in responses to theGetServicemethod.
↳ state
int
Whether or not the service has been enabled for use by the consumer.
getName
The resource name of the consumer and service.
A valid name would be:
projects/123/services/serviceusage.googleapis.com
Returns
Type
Description
string
setName
The resource name of the consumer and service.
A valid name would be:
projects/123/services/serviceusage.googleapis.com
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getParent
The resource name of the consumer.
A valid name would be:
projects/123
Returns
Type
Description
string
setParent
The resource name of the consumer.
A valid name would be:
projects/123
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getConfig
The service configuration of the available service.
Some fields may be filtered out of the configuration in responses to
theListServicesmethod. These fields are present only in responses to
theGetServicemethod.
The service configuration of the available service.
Some fields may be filtered out of the configuration in responses to
theListServicesmethod. These fields are present only in responses to
theGetServicemethod.
[[["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 Service (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-service-usage/latest/V1.Service)\n- [2.0.3](/php/docs/reference/cloud-service-usage/2.0.3/V1.Service)\n- [1.3.4](/php/docs/reference/cloud-service-usage/1.3.4/V1.Service)\n- [1.2.3](/php/docs/reference/cloud-service-usage/1.2.3/V1.Service)\n- [1.1.1](/php/docs/reference/cloud-service-usage/1.1.1/V1.Service)\n- [1.0.5](/php/docs/reference/cloud-service-usage/1.0.5/V1.Service) \nReference documentation and code samples for the Google Cloud Service Usage V1 Client class Service.\n\nA service that is available for use by the consumer.\n\nGenerated from protobuf message `google.api.serviceusage.v1.Service`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceUsage \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe resource name of the consumer and service.\n\nA valid name would be:\n\n- projects/123/services/serviceusage.googleapis.com\n\n### setName\n\nThe resource name of the consumer and service.\n\nA valid name would be:\n\n- projects/123/services/serviceusage.googleapis.com\n\n### getParent\n\nThe resource name of the consumer.\n\nA valid name would be:\n\n- projects/123\n\n### setParent\n\nThe resource name of the consumer.\n\nA valid name would be:\n\n- projects/123\n\n### getConfig\n\nThe service configuration of the available service.\n\nSome fields may be filtered out of the configuration in responses to\nthe `ListServices` method. These fields are present only in responses to\nthe `GetService` method.\n\n### hasConfig\n\n### clearConfig\n\n### setConfig\n\nThe service configuration of the available service.\n\nSome fields may be filtered out of the configuration in responses to\nthe `ListServices` method. These fields are present only in responses to\nthe `GetService` method.\n\n### getState\n\nWhether or not the service has been enabled for use by the consumer.\n\n### setState\n\nWhether or not the service has been enabled for use by the consumer."]]