Package com.google.cloud.compute.v1
Class InstancesSetServiceAccountRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstancesSetServiceAccountRequest.Builder>
com.google.cloud.compute.v1.InstancesSetServiceAccountRequest.Builder
- All Implemented Interfaces:
InstancesSetServiceAccountRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstancesSetServiceAccountRequest
public static final class InstancesSetServiceAccountRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InstancesSetServiceAccountRequest.Builder>
implements InstancesSetServiceAccountRequestOrBuilder
Protobuf type
google.cloud.compute.v1.InstancesSetServiceAccountRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllScopes(Iterable<String> values) The list of scopes to be made available for this service account.The list of scopes to be made available for this service account.addScopesBytes(com.google.protobuf.ByteString value) The list of scopes to be made available for this service account.build()clear()Email address of the service account.The list of scopes to be made available for this service account.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEmail()Email address of the service account.com.google.protobuf.ByteStringEmail address of the service account.getScopes(int index) The list of scopes to be made available for this service account.com.google.protobuf.ByteStringgetScopesBytes(int index) The list of scopes to be made available for this service account.intThe list of scopes to be made available for this service account.com.google.protobuf.ProtocolStringListThe list of scopes to be made available for this service account.booleanhasEmail()Email address of the service account.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Email address of the service account.setEmailBytes(com.google.protobuf.ByteString value) Email address of the service account.The list of scopes to be made available for this service account.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InstancesSetServiceAccountRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InstancesSetServiceAccountRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<InstancesSetServiceAccountRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstancesSetServiceAccountRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstancesSetServiceAccountRequest.Builder>
-
mergeFrom
public InstancesSetServiceAccountRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstancesSetServiceAccountRequest.Builder>- Throws:
IOException
-
hasEmail
public boolean hasEmail()Email address of the service account.
optional string email = 96619420;- Specified by:
hasEmailin interfaceInstancesSetServiceAccountRequestOrBuilder- Returns:
- Whether the email field is set.
-
getEmail
Email address of the service account.
optional string email = 96619420;- Specified by:
getEmailin interfaceInstancesSetServiceAccountRequestOrBuilder- Returns:
- The email.
-
getEmailBytes
public com.google.protobuf.ByteString getEmailBytes()Email address of the service account.
optional string email = 96619420;- Specified by:
getEmailBytesin interfaceInstancesSetServiceAccountRequestOrBuilder- Returns:
- The bytes for email.
-
setEmail
Email address of the service account.
optional string email = 96619420;- Parameters:
value- The email to set.- Returns:
- This builder for chaining.
-
clearEmail
Email address of the service account.
optional string email = 96619420;- Returns:
- This builder for chaining.
-
setEmailBytes
public InstancesSetServiceAccountRequest.Builder setEmailBytes(com.google.protobuf.ByteString value) Email address of the service account.
optional string email = 96619420;- Parameters:
value- The bytes for email to set.- Returns:
- This builder for chaining.
-
getScopesList
public com.google.protobuf.ProtocolStringList getScopesList()The list of scopes to be made available for this service account.
repeated string scopes = 165973151;- Specified by:
getScopesListin interfaceInstancesSetServiceAccountRequestOrBuilder- Returns:
- A list containing the scopes.
-
getScopesCount
public int getScopesCount()The list of scopes to be made available for this service account.
repeated string scopes = 165973151;- Specified by:
getScopesCountin interfaceInstancesSetServiceAccountRequestOrBuilder- Returns:
- The count of scopes.
-
getScopes
The list of scopes to be made available for this service account.
repeated string scopes = 165973151;- Specified by:
getScopesin interfaceInstancesSetServiceAccountRequestOrBuilder- 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) The list of scopes to be made available for this service account.
repeated string scopes = 165973151;- Specified by:
getScopesBytesin interfaceInstancesSetServiceAccountRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the scopes at the given index.
-
setScopes
The list of scopes to be made available for this service account.
repeated string scopes = 165973151;- Parameters:
index- The index to set the value at.value- The scopes to set.- Returns:
- This builder for chaining.
-
addScopes
The list of scopes to be made available for this service account.
repeated string scopes = 165973151;- Parameters:
value- The scopes to add.- Returns:
- This builder for chaining.
-
addAllScopes
The list of scopes to be made available for this service account.
repeated string scopes = 165973151;- Parameters:
values- The scopes to add.- Returns:
- This builder for chaining.
-
clearScopes
The list of scopes to be made available for this service account.
repeated string scopes = 165973151;- Returns:
- This builder for chaining.
-
addScopesBytes
public InstancesSetServiceAccountRequest.Builder addScopesBytes(com.google.protobuf.ByteString value) The list of scopes to be made available for this service account.
repeated string scopes = 165973151;- Parameters:
value- The bytes of the scopes to add.- Returns:
- This builder for chaining.
-