Class Service (2.2.8)

publicfinalclass ServiceextendsGeneratedMessageV3implementsServiceOrBuilder

A service that is available for use by the consumer.

Protobuf type google.api.serviceusage.v1.Service

Implements

ServiceOrBuilder

Inherited Members

Static Fields

CONFIG_FIELD_NUMBER

publicstaticfinalintCONFIG_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

publicstaticfinalintPARENT_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

publicstaticfinalintSTATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticServicegetDefaultInstance()
Returns
Type Description

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

newBuilder()

publicstaticService.BuildernewBuilder()
Returns
Type Description

newBuilder(Service prototype)

publicstaticService.BuildernewBuilder(Serviceprototype)
Parameter
Name Description
prototype Service
Returns
Type Description

parseDelimitedFrom(InputStream input)

publicstaticServiceparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Exceptions
Type Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticServiceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(byte[] data)

publicstaticServiceparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Exceptions
Type Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticServiceparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticServiceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(CodedInputStream input)

publicstaticServiceparseFrom(CodedInputStreaminput)
Parameter
Name Description
Returns
Type Description
Exceptions
Type Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticServiceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(InputStream input)

publicstaticServiceparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Exceptions
Type Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticServiceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteBuffer data)

publicstaticServiceparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticServiceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parser()

publicstaticParser<Service>parser()
Returns
Type Description

Methods

equals(Object obj)

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

getConfig()

publicServiceConfiggetConfig()

The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the ListServices method. These fields are present only in responses to the GetService method.

.google.api.serviceusage.v1.ServiceConfig config = 2;

Returns
Type Description
ServiceConfig

The config.

getConfigOrBuilder()

publicServiceConfigOrBuildergetConfigOrBuilder()

The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the ListServices method. These fields are present only in responses to the GetService method.

.google.api.serviceusage.v1.ServiceConfig config = 2;

Returns
Type Description

getDefaultInstanceForType()

publicServicegetDefaultInstanceForType()
Returns
Type Description

getName()

publicStringgetName()

The resource name of the consumer and service. A valid name would be:

  • projects/123/services/serviceusage.googleapis.com

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

The resource name of the consumer and service. A valid name would be:

  • projects/123/services/serviceusage.googleapis.com

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParent()

publicStringgetParent()

The resource name of the consumer. A valid name would be:

  • projects/123

string parent = 5;

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

The resource name of the consumer. A valid name would be:

  • projects/123

string parent = 5;

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

publicParser<Service>getParserForType()
Returns
Type Description
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getState()

publicStategetState()

Whether or not the service has been enabled for use by the consumer.

.google.api.serviceusage.v1.State state = 4;

Returns
Type Description
State

The state.

getStateValue()

publicintgetStateValue()

Whether or not the service has been enabled for use by the consumer.

.google.api.serviceusage.v1.State state = 4;

Returns
Type Description
int

The enum numeric value on the wire for state.

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
Overrides

hasConfig()

publicbooleanhasConfig()

The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the ListServices method. These fields are present only in responses to the GetService method.

.google.api.serviceusage.v1.ServiceConfig config = 2;

Returns
Type Description
boolean

Whether the config field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

newBuilderForType()

publicService.BuildernewBuilderForType()
Returns
Type Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedService.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicService.BuildertoBuilder()
Returns
Type Description

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
Overrides Exceptions
Type Description

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.