Class ServiceAccount.Builder (2.22.3)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceAccount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceAccount.Builder
Overrides

build()

public ServiceAccount build()
Returns
TypeDescription
ServiceAccount

buildPartial()

public ServiceAccount buildPartial()
Returns
TypeDescription
ServiceAccount

clear()

public ServiceAccount.Builder clear()
Returns
TypeDescription
ServiceAccount.Builder
Overrides

clearEmailAddress()

public ServiceAccount.Builder clearEmailAddress()

The ID of the notification.

string email_address = 1;

Returns
TypeDescription
ServiceAccount.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceAccount.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ServiceAccount.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceAccount.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ServiceAccount.Builder
Overrides

clone()

public ServiceAccount.Builder clone()
Returns
TypeDescription
ServiceAccount.Builder
Overrides

getDefaultInstanceForType()

public ServiceAccount getDefaultInstanceForType()
Returns
TypeDescription
ServiceAccount

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEmailAddress()

public String getEmailAddress()

The ID of the notification.

string email_address = 1;

Returns
TypeDescription
String

The emailAddress.

getEmailAddressBytes()

public ByteString getEmailAddressBytes()

The ID of the notification.

string email_address = 1;

Returns
TypeDescription
ByteString

The bytes for emailAddress.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceAccount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceAccount.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ServiceAccount.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ServiceAccount.Builder
Overrides

mergeFrom(ServiceAccount other)

public ServiceAccount.Builder mergeFrom(ServiceAccount other)
Parameter
NameDescription
otherServiceAccount
Returns
TypeDescription
ServiceAccount.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceAccount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceAccount.Builder
Overrides

setEmailAddress(String value)

public ServiceAccount.Builder setEmailAddress(String value)

The ID of the notification.

string email_address = 1;

Parameter
NameDescription
valueString

The emailAddress to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for emailAddress to set.

Returns
TypeDescription
ServiceAccount.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceAccount.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceAccount.Builder
Overrides

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

public ServiceAccount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServiceAccount.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceAccount.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceAccount.Builder
Overrides