Class DisableServiceRequest (2.37.0)

publicfinalclass DisableServiceRequestextendsGeneratedMessageV3implementsDisableServiceRequestOrBuilder

Request message for the DisableService method.

Protobuf type google.api.serviceusage.v1.DisableServiceRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

CHECK_IF_SERVICE_HAS_USAGE_FIELD_NUMBER

publicstaticfinalintCHECK_IF_SERVICE_HAS_USAGE_FIELD_NUMBER
Field Value
Type Description
int

DISABLE_DEPENDENT_SERVICES_FIELD_NUMBER

publicstaticfinalintDISABLE_DEPENDENT_SERVICES_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticDisableServiceRequestgetDefaultInstance()
Returns
Type Description
DisableServiceRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticDisableServiceRequest.BuildernewBuilder()
Returns
Type Description
DisableServiceRequest.Builder

newBuilder(DisableServiceRequest prototype)

publicstaticDisableServiceRequest.BuildernewBuilder(DisableServiceRequestprototype)
Parameter
Name Description
prototype DisableServiceRequest
Returns
Type Description
DisableServiceRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticDisableServiceRequestparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDisableServiceRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticDisableServiceRequestparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticDisableServiceRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticDisableServiceRequestparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticDisableServiceRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticDisableServiceRequestparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDisableServiceRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticDisableServiceRequestparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDisableServiceRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticDisableServiceRequestparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticDisableServiceRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DisableServiceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<DisableServiceRequest>parser()
Returns
Type Description
Parser<DisableServiceRequest>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCheckIfServiceHasUsage()

publicDisableServiceRequest.CheckIfServiceHasUsagegetCheckIfServiceHasUsage()

Defines the behavior for checking service usage when disabling a service.

.google.api.serviceusage.v1.DisableServiceRequest.CheckIfServiceHasUsage check_if_service_has_usage = 3;

Returns
Type Description
DisableServiceRequest.CheckIfServiceHasUsage

The checkIfServiceHasUsage.

getCheckIfServiceHasUsageValue()

publicintgetCheckIfServiceHasUsageValue()

Defines the behavior for checking service usage when disabling a service.

.google.api.serviceusage.v1.DisableServiceRequest.CheckIfServiceHasUsage check_if_service_has_usage = 3;

Returns
Type Description
int

The enum numeric value on the wire for checkIfServiceHasUsage.

getDefaultInstanceForType()

publicDisableServiceRequestgetDefaultInstanceForType()
Returns
Type Description
DisableServiceRequest

getDisableDependentServices()

publicbooleangetDisableDependentServices()

Indicates if services that are enabled and which depend on this service should also be disabled. If not set, an error will be generated if any enabled services depend on the service to be disabled. When set, the service, and any enabled services that depend on it, will be disabled together.

bool disable_dependent_services = 2;

Returns
Type Description
boolean

The disableDependentServices.

getName()

publicStringgetName()

Name of the consumer and service to disable the service on.

The enable and disable methods currently only support projects.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Name of the consumer and service to disable the service on.

The enable and disable methods currently only support projects.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

publicParser<DisableServiceRequest>getParserForType()
Returns
Type Description
Parser<DisableServiceRequest>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicDisableServiceRequest.BuildernewBuilderForType()
Returns
Type Description
DisableServiceRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedDisableServiceRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DisableServiceRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicDisableServiceRequest.BuildertoBuilder()
Returns
Type Description
DisableServiceRequest.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.