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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ServiceAccount.BuilderImplements
ServiceAccountOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServiceAccount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
ServiceAccount.Builder |
build()
public ServiceAccount build()
Type | Description |
ServiceAccount |
buildPartial()
public ServiceAccount buildPartial()
Type | Description |
ServiceAccount |
clear()
public ServiceAccount.Builder clear()
Type | Description |
ServiceAccount.Builder |
clearEmailAddress()
public ServiceAccount.Builder clearEmailAddress()
The ID of the notification.
string email_address = 1;
Type | Description |
ServiceAccount.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ServiceAccount.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
ServiceAccount.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ServiceAccount.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
ServiceAccount.Builder |
clone()
public ServiceAccount.Builder clone()
Type | Description |
ServiceAccount.Builder |
getDefaultInstanceForType()
public ServiceAccount getDefaultInstanceForType()
Type | Description |
ServiceAccount |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEmailAddress()
public String getEmailAddress()
The ID of the notification.
string email_address = 1;
Type | Description |
String |
The emailAddress. |
getEmailAddressBytes()
public ByteString getEmailAddressBytes()
The ID of the notification.
string email_address = 1;
Type | Description |
ByteString |
The bytes for emailAddress. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ServiceAccount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
ServiceAccount.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ServiceAccount.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
ServiceAccount.Builder |
mergeFrom(ServiceAccount other)
public ServiceAccount.Builder mergeFrom(ServiceAccount other)
Name | Description |
other |
ServiceAccount |
Type | Description |
ServiceAccount.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServiceAccount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
ServiceAccount.Builder |
setEmailAddress(String value)
public ServiceAccount.Builder setEmailAddress(String value)
The ID of the notification.
string email_address = 1;
Name | Description |
value |
String The emailAddress to set. |
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;
Name | Description |
value |
ByteString The bytes for emailAddress to set. |
Type | Description |
ServiceAccount.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ServiceAccount.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
ServiceAccount.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServiceAccount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
ServiceAccount.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ServiceAccount.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
ServiceAccount.Builder |