public static final class ServiceAccount.Builder extends GeneratedMessageV3.Builder<ServiceAccount.Builder> implements ServiceAccountOrBuilder
Carries information about a Google Cloud service account.
Protobuf type google.cloud.batch.v1.ServiceAccount
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServiceAccount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ServiceAccount build()
Returns
buildPartial()
public ServiceAccount buildPartial()
Returns
clear()
public ServiceAccount.Builder clear()
Returns
Overrides
clearEmail()
public ServiceAccount.Builder clearEmail()
Email address of the service account. If not specified, the default
Compute Engine service account for the project will be used. If instance
template is being used, the service account has to be specified in the
instance template and it has to match the email field here.
string email = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public ServiceAccount.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ServiceAccount.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ServiceAccount.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ServiceAccount getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEmail()
Email address of the service account. If not specified, the default
Compute Engine service account for the project will be used. If instance
template is being used, the service account has to be specified in the
instance template and it has to match the email field here.
string email = 1;
Returns
Type |
Description |
String |
The email.
|
getEmailBytes()
public ByteString getEmailBytes()
Email address of the service account. If not specified, the default
Compute Engine service account for the project will be used. If instance
template is being used, the service account has to be specified in the
instance template and it has to match the email field here.
string email = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ServiceAccount other)
public ServiceAccount.Builder mergeFrom(ServiceAccount other)
Parameter
Returns
public ServiceAccount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ServiceAccount.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServiceAccount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setEmail(String value)
public ServiceAccount.Builder setEmail(String value)
Email address of the service account. If not specified, the default
Compute Engine service account for the project will be used. If instance
template is being used, the service account has to be specified in the
instance template and it has to match the email field here.
string email = 1;
Parameter
Name |
Description |
value |
String
The email to set.
|
Returns
setEmailBytes(ByteString value)
public ServiceAccount.Builder setEmailBytes(ByteString value)
Email address of the service account. If not specified, the default
Compute Engine service account for the project will be used. If instance
template is being used, the service account has to be specified in the
instance template and it has to match the email field here.
string email = 1;
Parameter
Name |
Description |
value |
ByteString
The bytes for email to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ServiceAccount.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServiceAccount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ServiceAccount.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides