Class ServiceAccount.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ServiceAccount.Builder>
com.google.cloud.tpu.v2.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.GeneratedMessage.Builder<ServiceAccount.Builder> implements ServiceAccountOrBuilder
 A service account.
 
Protobuf type google.cloud.tpu.v2.ServiceAccount
  • Method Summary

    Modifier and Type
    Method
    Description
    The list of scopes to be made available for this service account.
    The list of scopes to be made available for this service account.
    addScopeBytes(com.google.protobuf.ByteString value)
    The list of scopes to be made available for this service account.
     
     
     
    Email address of the service account.
    The list of scopes to be made available for this service account.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Email address of the service account.
    com.google.protobuf.ByteString
    Email address of the service account.
    getScope(int index)
    The list of scopes to be made available for this service account.
    com.google.protobuf.ByteString
    getScopeBytes(int index)
    The list of scopes to be made available for this service account.
    int
    The list of scopes to be made available for this service account.
    com.google.protobuf.ProtocolStringList
    The list of scopes to be made available for this service account.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(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.
    setScope(int index, String value)
    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, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ServiceAccount.Builder>
    • clear

      public ServiceAccount.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<ServiceAccount.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<ServiceAccount.Builder>
    • getDefaultInstanceForType

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

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

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

      public ServiceAccount.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<ServiceAccount.Builder>
    • mergeFrom

      public ServiceAccount.Builder mergeFrom(ServiceAccount other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ServiceAccount.Builder>
    • mergeFrom

      public ServiceAccount.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<ServiceAccount.Builder>
      Throws:
      IOException
    • getEmail

      public String getEmail()
       Email address of the service account. If empty, default Compute service
       account will be used.
       
      string email = 1;
      Specified by:
      getEmail in interface ServiceAccountOrBuilder
      Returns:
      The email.
    • getEmailBytes

      public com.google.protobuf.ByteString getEmailBytes()
       Email address of the service account. If empty, default Compute service
       account will be used.
       
      string email = 1;
      Specified by:
      getEmailBytes in interface ServiceAccountOrBuilder
      Returns:
      The bytes for email.
    • setEmail

      public ServiceAccount.Builder setEmail(String value)
       Email address of the service account. If empty, default Compute service
       account will be used.
       
      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 empty, default Compute service
       account will be used.
       
      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 empty, default Compute service
       account will be used.
       
      string email = 1;
      Parameters:
      value - The bytes for email to set.
      Returns:
      This builder for chaining.
    • getScopeList

      public com.google.protobuf.ProtocolStringList getScopeList()
       The list of scopes to be made available for this service account. If empty,
       access to all Cloud APIs will be allowed.
       
      repeated string scope = 2;
      Specified by:
      getScopeList in interface ServiceAccountOrBuilder
      Returns:
      A list containing the scope.
    • getScopeCount

      public int getScopeCount()
       The list of scopes to be made available for this service account. If empty,
       access to all Cloud APIs will be allowed.
       
      repeated string scope = 2;
      Specified by:
      getScopeCount in interface ServiceAccountOrBuilder
      Returns:
      The count of scope.
    • getScope

      public String getScope(int index)
       The list of scopes to be made available for this service account. If empty,
       access to all Cloud APIs will be allowed.
       
      repeated string scope = 2;
      Specified by:
      getScope in interface ServiceAccountOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The scope at the given index.
    • getScopeBytes

      public com.google.protobuf.ByteString getScopeBytes(int index)
       The list of scopes to be made available for this service account. If empty,
       access to all Cloud APIs will be allowed.
       
      repeated string scope = 2;
      Specified by:
      getScopeBytes in interface ServiceAccountOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the scope at the given index.
    • setScope

      public ServiceAccount.Builder setScope(int index, String value)
       The list of scopes to be made available for this service account. If empty,
       access to all Cloud APIs will be allowed.
       
      repeated string scope = 2;
      Parameters:
      index - The index to set the value at.
      value - The scope to set.
      Returns:
      This builder for chaining.
    • addScope

      public ServiceAccount.Builder addScope(String value)
       The list of scopes to be made available for this service account. If empty,
       access to all Cloud APIs will be allowed.
       
      repeated string scope = 2;
      Parameters:
      value - The scope to add.
      Returns:
      This builder for chaining.
    • addAllScope

      public ServiceAccount.Builder addAllScope(Iterable<String> values)
       The list of scopes to be made available for this service account. If empty,
       access to all Cloud APIs will be allowed.
       
      repeated string scope = 2;
      Parameters:
      values - The scope to add.
      Returns:
      This builder for chaining.
    • clearScope

      public ServiceAccount.Builder clearScope()
       The list of scopes to be made available for this service account. If empty,
       access to all Cloud APIs will be allowed.
       
      repeated string scope = 2;
      Returns:
      This builder for chaining.
    • addScopeBytes

      public ServiceAccount.Builder addScopeBytes(com.google.protobuf.ByteString value)
       The list of scopes to be made available for this service account. If empty,
       access to all Cloud APIs will be allowed.
       
      repeated string scope = 2;
      Parameters:
      value - The bytes of the scope to add.
      Returns:
      This builder for chaining.