Class ServiceAccount.Builder (2.44.1)

public static final class ServiceAccount.Builder extends GeneratedMessageV3.Builder<ServiceAccount.Builder> implements ServiceAccountOrBuilder

A service account, owned by Cloud Storage, which may be used when taking action on behalf of a given project, for example to publish Pub/Sub notifications or to retrieve security keys.

Protobuf type google.storage.v2.ServiceAccount

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceAccount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceAccount.Builder
Overrides

build()

public ServiceAccount build()
Returns
Type Description
ServiceAccount

buildPartial()

public ServiceAccount buildPartial()
Returns
Type Description
ServiceAccount

clear()

public ServiceAccount.Builder clear()
Returns
Type Description
ServiceAccount.Builder
Overrides

clearEmailAddress()

public ServiceAccount.Builder clearEmailAddress()

The ID of the notification.

string email_address = 1;

Returns
Type Description
ServiceAccount.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceAccount.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServiceAccount.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceAccount.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServiceAccount.Builder
Overrides

clone()

public ServiceAccount.Builder clone()
Returns
Type Description
ServiceAccount.Builder
Overrides

getDefaultInstanceForType()

public ServiceAccount getDefaultInstanceForType()
Returns
Type Description
ServiceAccount

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEmailAddress()

public String getEmailAddress()

The ID of the notification.

string email_address = 1;

Returns
Type Description
String

The emailAddress.

getEmailAddressBytes()

public ByteString getEmailAddressBytes()

The ID of the notification.

string email_address = 1;

Returns
Type Description
ByteString

The bytes for emailAddress.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceAccount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceAccount.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ServiceAccount.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ServiceAccount.Builder
Overrides

mergeFrom(ServiceAccount other)

public ServiceAccount.Builder mergeFrom(ServiceAccount other)
Parameter
Name Description
other ServiceAccount
Returns
Type Description
ServiceAccount.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceAccount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceAccount.Builder
Overrides

setEmailAddress(String value)

public ServiceAccount.Builder setEmailAddress(String value)

The ID of the notification.

string email_address = 1;

Parameter
Name Description
value String

The emailAddress to set.

Returns
Type Description
ServiceAccount.Builder

This builder for chaining.

setEmailAddressBytes(ByteString value)

public ServiceAccount.Builder setEmailAddressBytes(ByteString value)

The ID of the notification.

string email_address = 1;

Parameter
Name Description
value ByteString

The bytes for emailAddress to set.

Returns
Type Description
ServiceAccount.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceAccount.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceAccount.Builder
Overrides

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

public ServiceAccount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServiceAccount.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceAccount.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceAccount.Builder
Overrides