Class CheckResponse.ConsumerInfo (1.14.0)

publicstaticfinalclass CheckResponse.ConsumerInfoextendsGeneratedMessageV3implementsCheckResponse.ConsumerInfoOrBuilder

ConsumerInfo provides information about the consumer.

Protobuf type google.api.servicecontrol.v1.CheckResponse.ConsumerInfo

Inherited Members

Static Fields

CONSUMER_NUMBER_FIELD_NUMBER

publicstaticfinalintCONSUMER_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

PROJECT_NUMBER_FIELD_NUMBER

publicstaticfinalintPROJECT_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

publicstaticfinalintTYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticCheckResponse.ConsumerInfogetDefaultInstance()
Returns
Type Description
CheckResponse.ConsumerInfo

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticCheckResponse.ConsumerInfo.BuildernewBuilder()
Returns
Type Description
CheckResponse.ConsumerInfo.Builder

newBuilder(CheckResponse.ConsumerInfo prototype)

publicstaticCheckResponse.ConsumerInfo.BuildernewBuilder(CheckResponse.ConsumerInfoprototype)
Parameter
Name Description
prototype CheckResponse.ConsumerInfo
Returns
Type Description
CheckResponse.ConsumerInfo.Builder

parseDelimitedFrom(InputStream input)

publicstaticCheckResponse.ConsumerInfoparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCheckResponse.ConsumerInfoparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticCheckResponse.ConsumerInfoparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticCheckResponse.ConsumerInfoparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticCheckResponse.ConsumerInfoparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticCheckResponse.ConsumerInfoparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticCheckResponse.ConsumerInfoparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCheckResponse.ConsumerInfoparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticCheckResponse.ConsumerInfoparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCheckResponse.ConsumerInfoparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticCheckResponse.ConsumerInfoparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticCheckResponse.ConsumerInfoparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckResponse.ConsumerInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<CheckResponse.ConsumerInfo>parser()
Returns
Type Description
Parser<ConsumerInfo>

Methods

equals(Object obj)

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

getConsumerNumber()

publiclonggetConsumerNumber()

The consumer identity number, can be Google cloud project number, folder number or organization number e.g. 1234567890. A value of 0 indicates no consumer number is found.

int64 consumer_number = 3;

Returns
Type Description
long

The consumerNumber.

getDefaultInstanceForType()

publicCheckResponse.ConsumerInfogetDefaultInstanceForType()
Returns
Type Description
CheckResponse.ConsumerInfo

getParserForType()

publicParser<CheckResponse.ConsumerInfo>getParserForType()
Returns
Type Description
Parser<ConsumerInfo>
Overrides

getProjectNumber()

publiclonggetProjectNumber()

The Google cloud project number, e.g. 1234567890. A value of 0 indicates no project number is found. NOTE: This field is deprecated after we support flexible consumer id. New code should not depend on this field anymore.

int64 project_number = 1;

Returns
Type Description
long

The projectNumber.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getType()

publicCheckResponse.ConsumerInfo.ConsumerTypegetType()

The type of the consumer which should have been defined in Google Resource Manager.

.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;

Returns
Type Description
CheckResponse.ConsumerInfo.ConsumerType

The type.

getTypeValue()

publicintgetTypeValue()

The type of the consumer which should have been defined in Google Resource Manager.

.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;

Returns
Type Description
int

The enum numeric value on the wire for type.

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicCheckResponse.ConsumerInfo.BuildernewBuilderForType()
Returns
Type Description
CheckResponse.ConsumerInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedCheckResponse.ConsumerInfo.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CheckResponse.ConsumerInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicCheckResponse.ConsumerInfo.BuildertoBuilder()
Returns
Type Description
CheckResponse.ConsumerInfo.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.