Class ServiceIdentity.Builder (2.31.0)

publicstaticfinalclass ServiceIdentity.BuilderextendsGeneratedMessageV3.Builder<ServiceIdentity.Builder>implementsServiceIdentityOrBuilder

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.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicServiceIdentity.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceIdentity.Builder
Overrides

build()

publicServiceIdentitybuild()
Returns
Type Description
ServiceIdentity

buildPartial()

publicServiceIdentitybuildPartial()
Returns
Type Description
ServiceIdentity

clear()

publicServiceIdentity.Builderclear()
Returns
Type Description
ServiceIdentity.Builder
Overrides

clearEmail()

publicServiceIdentity.BuilderclearEmail()

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

string email = 1;

Returns
Type Description
ServiceIdentity.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicServiceIdentity.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServiceIdentity.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicServiceIdentity.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServiceIdentity.Builder
Overrides

clearUniqueId()

publicServiceIdentity.BuilderclearUniqueId()

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
ServiceIdentity.Builder

This builder for chaining.

clone()

publicServiceIdentity.Builderclone()
Returns
Type Description
ServiceIdentity.Builder
Overrides

getDefaultInstanceForType()

publicServiceIdentitygetDefaultInstanceForType()
Returns
Type Description
ServiceIdentity

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceIdentity other)

publicServiceIdentity.BuildermergeFrom(ServiceIdentityother)
Parameter
Name Description
other ServiceIdentity
Returns
Type Description
ServiceIdentity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicServiceIdentity.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceIdentity.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicServiceIdentity.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ServiceIdentity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalServiceIdentity.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceIdentity.Builder
Overrides

setEmail(String value)

publicServiceIdentity.BuildersetEmail(Stringvalue)

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

string email = 1;

Parameter
Name Description
value String

The email to set.

Returns
Type Description
ServiceIdentity.Builder

This builder for chaining.

setEmailBytes(ByteString value)

publicServiceIdentity.BuildersetEmailBytes(ByteStringvalue)

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

string email = 1;

Parameter
Name Description
value ByteString

The bytes for email to set.

Returns
Type Description
ServiceIdentity.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicServiceIdentity.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceIdentity.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicServiceIdentity.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServiceIdentity.Builder
Overrides

setUniqueId(String value)

publicServiceIdentity.BuildersetUniqueId(Stringvalue)

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

string unique_id = 2;

Parameter
Name Description
value String

The uniqueId to set.

Returns
Type Description
ServiceIdentity.Builder

This builder for chaining.

setUniqueIdBytes(ByteString value)

publicServiceIdentity.BuildersetUniqueIdBytes(ByteStringvalue)

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

string unique_id = 2;

Parameter
Name Description
value ByteString

The bytes for uniqueId to set.

Returns
Type Description
ServiceIdentity.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalServiceIdentity.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceIdentity.Builder
Overrides

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.