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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InstancesSetServiceAccountRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<InstancesSetServiceAccountRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<InstancesSetServiceAccountRequest.Builder>
    • getDefaultInstanceForType

      public InstancesSetServiceAccountRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public InstancesSetServiceAccountRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public InstancesSetServiceAccountRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstancesSetServiceAccountRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstancesSetServiceAccountRequest.Builder>
      Throws:
      IOException
    • hasEmail

      public boolean hasEmail()
       Email address of the service account.
       
      optional string email = 96619420;
      Specified by:
      hasEmail in interface InstancesSetServiceAccountRequestOrBuilder
      Returns:
      Whether the email field is set.
    • getEmail

      public String getEmail()
       Email address of the service account.
       
      optional string email = 96619420;
      Specified by:
      getEmail in interface InstancesSetServiceAccountRequestOrBuilder
      Returns:
      The email.
    • getEmailBytes

      public com.google.protobuf.ByteString getEmailBytes()
       Email address of the service account.
       
      optional string email = 96619420;
      Specified by:
      getEmailBytes in interface InstancesSetServiceAccountRequestOrBuilder
      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:
      getScopesList in interface InstancesSetServiceAccountRequestOrBuilder
      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:
      getScopesCount in interface InstancesSetServiceAccountRequestOrBuilder
      Returns:
      The count of scopes.
    • getScopes

      public String getScopes(int index)
       The list of scopes to be made available for this service account.
       
      repeated string scopes = 165973151;
      Specified by:
      getScopes in interface InstancesSetServiceAccountRequestOrBuilder
      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:
      getScopesBytes in interface InstancesSetServiceAccountRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the scopes at the given index.
    • setScopes

      public InstancesSetServiceAccountRequest.Builder setScopes(int index, String value)
       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.