Reference documentation and code samples for the Google Cloud Service Usage V1 Client class CheckIfServiceHasUsage.
Enum to determine if service usage should be checked when disabling a
service.
Protobuf type google.api.serviceusage.v1.DisableServiceRequest.CheckIfServiceHasUsage
Namespace
Google \ Cloud \ ServiceUsage \ V1 \ DisableServiceRequest
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED
Value: 0
When unset, the default behavior is used, which is SKIP.
Generated from protobuf enum CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED = 0;
SKIP
Value: 1
If set, skip checking service usage when disabling a service.
Generated from protobuf enum SKIP = 1;
CHECK
Value: 2
If set, service usage is checked when disabling the service. If a
service, or its dependents, has usage in the last 30 days, the request
returns a FAILED_PRECONDITION error.
[[["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 CheckIfServiceHasUsage (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-service-usage/latest/V1.DisableServiceRequest.CheckIfServiceHasUsage)\n- [2.0.3](/php/docs/reference/cloud-service-usage/2.0.3/V1.DisableServiceRequest.CheckIfServiceHasUsage)\n- [1.3.4](/php/docs/reference/cloud-service-usage/1.3.4/V1.DisableServiceRequest.CheckIfServiceHasUsage)\n- [1.2.3](/php/docs/reference/cloud-service-usage/1.2.3/V1.DisableServiceRequest.CheckIfServiceHasUsage)\n- [1.1.1](/php/docs/reference/cloud-service-usage/1.1.1/V1.DisableServiceRequest.CheckIfServiceHasUsage)\n- [1.0.5](/php/docs/reference/cloud-service-usage/1.0.5/V1.DisableServiceRequest.CheckIfServiceHasUsage) \nReference documentation and code samples for the Google Cloud Service Usage V1 Client class CheckIfServiceHasUsage.\n\nEnum to determine if service usage should be checked when disabling a\nservice.\n\nProtobuf type `google.api.serviceusage.v1.DisableServiceRequest.CheckIfServiceHasUsage`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceUsage \\\\ V1 \\\\ DisableServiceRequest\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED\n\n Value: 0\n\nWhen unset, the default behavior is used, which is SKIP.\n\nGenerated from protobuf enum `CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED = 0;`\n\n### SKIP\n\n Value: 1\n\nIf set, skip checking service usage when disabling a service.\n\nGenerated from protobuf enum `SKIP = 1;`\n\n### CHECK\n\n Value: 2\n\nIf set, service usage is checked when disabling the service. If a\nservice, or its dependents, has usage in the last 30 days, the request\nreturns a FAILED_PRECONDITION error.\n\nGenerated from protobuf enum `CHECK = 2;`"]]