Package com.google.cloud.batch.v1
Class ServiceAccount.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
- com.google.cloud.batch.v1.ServiceAccount.Builder
-
- All Implemented Interfaces:
ServiceAccountOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ServiceAccount
public static final class ServiceAccount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder> implements ServiceAccountOrBuilder
Carries information about a Google Cloud service account.
Protobuf typegoogle.cloud.batch.v1.ServiceAccount
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceAccount.Builder
addAllScopes(Iterable<String> values)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.ServiceAccount.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ServiceAccount.Builder
addScopes(String value)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.ServiceAccount.Builder
addScopesBytes(com.google.protobuf.ByteString value)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.ServiceAccount
build()
ServiceAccount
buildPartial()
ServiceAccount.Builder
clear()
ServiceAccount.Builder
clearEmail()
Email address of the service account.ServiceAccount.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ServiceAccount.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ServiceAccount.Builder
clearScopes()
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.ServiceAccount.Builder
clone()
ServiceAccount
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getEmail()
Email address of the service account.com.google.protobuf.ByteString
getEmailBytes()
Email address of the service account.String
getScopes(int index)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.com.google.protobuf.ByteString
getScopesBytes(int index)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.int
getScopesCount()
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.com.google.protobuf.ProtocolStringList
getScopesList()
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ServiceAccount.Builder
mergeFrom(ServiceAccount other)
ServiceAccount.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ServiceAccount.Builder
mergeFrom(com.google.protobuf.Message other)
ServiceAccount.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ServiceAccount.Builder
setEmail(String value)
Email address of the service account.ServiceAccount.Builder
setEmailBytes(com.google.protobuf.ByteString value)
Email address of the service account.ServiceAccount.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ServiceAccount.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ServiceAccount.Builder
setScopes(int index, String value)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.ServiceAccount.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
clear
public ServiceAccount.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
getDefaultInstanceForType
public ServiceAccount getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServiceAccount build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServiceAccount buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServiceAccount.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
setField
public ServiceAccount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
clearField
public ServiceAccount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
clearOneof
public ServiceAccount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
setRepeatedField
public ServiceAccount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
addRepeatedField
public ServiceAccount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
mergeFrom
public ServiceAccount.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServiceAccount.Builder>
-
mergeFrom
public ServiceAccount.Builder mergeFrom(ServiceAccount other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
mergeFrom
public ServiceAccount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServiceAccount.Builder>
- Throws:
IOException
-
getEmail
public String 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;
- Specified by:
getEmail
in interfaceServiceAccountOrBuilder
- Returns:
- The email.
-
getEmailBytes
public com.google.protobuf.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;
- Specified by:
getEmailBytes
in interfaceServiceAccountOrBuilder
- Returns:
- The bytes for email.
-
setEmail
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;
- Parameters:
value
- The email to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setEmailBytes
public ServiceAccount.Builder setEmailBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for email to set.- Returns:
- This builder for chaining.
-
getScopesList
public com.google.protobuf.ProtocolStringList getScopesList()
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
repeated string scopes = 2;
- Specified by:
getScopesList
in interfaceServiceAccountOrBuilder
- Returns:
- A list containing the scopes.
-
getScopesCount
public int getScopesCount()
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
repeated string scopes = 2;
- Specified by:
getScopesCount
in interfaceServiceAccountOrBuilder
- Returns:
- The count of scopes.
-
getScopes
public String getScopes(int index)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
repeated string scopes = 2;
- Specified by:
getScopes
in interfaceServiceAccountOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The scopes at the given index.
-
getScopesBytes
public com.google.protobuf.ByteString getScopesBytes(int index)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
repeated string scopes = 2;
- Specified by:
getScopesBytes
in interfaceServiceAccountOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the scopes at the given index.
-
setScopes
public ServiceAccount.Builder setScopes(int index, String value)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
repeated string scopes = 2;
- Parameters:
index
- The index to set the value at.value
- The scopes to set.- Returns:
- This builder for chaining.
-
addScopes
public ServiceAccount.Builder addScopes(String value)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
repeated string scopes = 2;
- Parameters:
value
- The scopes to add.- Returns:
- This builder for chaining.
-
addAllScopes
public ServiceAccount.Builder addAllScopes(Iterable<String> values)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
repeated string scopes = 2;
- Parameters:
values
- The scopes to add.- Returns:
- This builder for chaining.
-
clearScopes
public ServiceAccount.Builder clearScopes()
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
repeated string scopes = 2;
- Returns:
- This builder for chaining.
-
addScopesBytes
public ServiceAccount.Builder addScopesBytes(com.google.protobuf.ByteString value)
List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
repeated string scopes = 2;
- Parameters:
value
- The bytes of the scopes to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ServiceAccount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
mergeUnknownFields
public final ServiceAccount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccount.Builder>
-
-