Class ServiceIdentity (2.48.0)

publicfinalclass ServiceIdentityextendsGeneratedMessageV3implementsServiceIdentityOrBuilder

Service identity for a service. This is the identity that service producer should use to access consumer resources.

Protobuf type google.api.serviceusage.v1beta1.ServiceIdentity

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

EMAIL_FIELD_NUMBER

publicstaticfinalintEMAIL_FIELD_NUMBER
Field Value
Type Description
int

UNIQUE_ID_FIELD_NUMBER

publicstaticfinalintUNIQUE_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticServiceIdentitygetDefaultInstance()
Returns
Type Description
ServiceIdentity

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticServiceIdentity.BuildernewBuilder()
Returns
Type Description
ServiceIdentity.Builder

newBuilder(ServiceIdentity prototype)

publicstaticServiceIdentity.BuildernewBuilder(ServiceIdentityprototype)
Parameter
Name Description
prototype ServiceIdentity
Returns
Type Description
ServiceIdentity.Builder

parseDelimitedFrom(InputStream input)

publicstaticServiceIdentityparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ServiceIdentity
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticServiceIdentityparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
ServiceIdentity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticServiceIdentityparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
ServiceIdentity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticServiceIdentityparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ServiceIdentity
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticServiceIdentityparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ServiceIdentity
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticServiceIdentityparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ServiceIdentity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

publicServiceIdentitygetDefaultInstanceForType()
Returns
Type Description
ServiceIdentity

getEmail()

publicStringgetEmail()

The email address of the service account that a service producer would use to access consumer resources.

string email = 1;

Returns
Type Description
String

The email.

getEmailBytes()

publicByteStringgetEmailBytes()

The email address of the service account that a service producer would use to access consumer resources.

string email = 1;

Returns
Type Description
ByteString

The bytes for email.

getParserForType()

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUniqueId()

publicStringgetUniqueId()

The unique and stable id of the service account. https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount

string unique_id = 2;

Returns
Type Description
String

The uniqueId.

getUniqueIdBytes()

publicByteStringgetUniqueIdBytes()

The unique and stable id of the service account. https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount

string unique_id = 2;

Returns
Type Description
ByteString

The bytes for uniqueId.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicServiceIdentity.BuildernewBuilderForType()
Returns
Type Description
ServiceIdentity.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedServiceIdentity.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ServiceIdentity.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicServiceIdentity.BuildertoBuilder()
Returns
Type Description
ServiceIdentity.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.