Class DefaultServiceAccount.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DefaultServiceAccount.Builder>
com.google.cloudbuild.v1.DefaultServiceAccount.Builder
All Implemented Interfaces:
DefaultServiceAccountOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DefaultServiceAccount

public static final class DefaultServiceAccount.Builder extends com.google.protobuf.GeneratedMessage.Builder<DefaultServiceAccount.Builder> implements DefaultServiceAccountOrBuilder
 The default service account used for `Builds`.
 
Protobuf type google.devtools.cloudbuild.v1.DefaultServiceAccount
  • 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<DefaultServiceAccount.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<DefaultServiceAccount.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<DefaultServiceAccount.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DefaultServiceAccount.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<DefaultServiceAccount.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Format:
       `projects/{project}/locations/{location}/defaultServiceAccount`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface DefaultServiceAccountOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Format:
       `projects/{project}/locations/{location}/defaultServiceAccount`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface DefaultServiceAccountOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DefaultServiceAccount.Builder setName(String value)
       Identifier. Format:
       `projects/{project}/locations/{location}/defaultServiceAccount`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DefaultServiceAccount.Builder clearName()
       Identifier. Format:
       `projects/{project}/locations/{location}/defaultServiceAccount`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public DefaultServiceAccount.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Format:
       `projects/{project}/locations/{location}/defaultServiceAccount`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getServiceAccountEmail

      public String getServiceAccountEmail()
       Output only. The email address of the service account identity that will be
       used for a build by default.
      
       This is returned in the format
       `projects/{project}/serviceAccounts/{service_account}` where
       `{service_account}` could be the legacy Cloud Build SA, in the format
       [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
       format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
      
       If no service account will be used by default, this will be empty.
       
      string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getServiceAccountEmail in interface DefaultServiceAccountOrBuilder
      Returns:
      The serviceAccountEmail.
    • getServiceAccountEmailBytes

      public com.google.protobuf.ByteString getServiceAccountEmailBytes()
       Output only. The email address of the service account identity that will be
       used for a build by default.
      
       This is returned in the format
       `projects/{project}/serviceAccounts/{service_account}` where
       `{service_account}` could be the legacy Cloud Build SA, in the format
       [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
       format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
      
       If no service account will be used by default, this will be empty.
       
      string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getServiceAccountEmailBytes in interface DefaultServiceAccountOrBuilder
      Returns:
      The bytes for serviceAccountEmail.
    • setServiceAccountEmail

      public DefaultServiceAccount.Builder setServiceAccountEmail(String value)
       Output only. The email address of the service account identity that will be
       used for a build by default.
      
       This is returned in the format
       `projects/{project}/serviceAccounts/{service_account}` where
       `{service_account}` could be the legacy Cloud Build SA, in the format
       [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
       format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
      
       If no service account will be used by default, this will be empty.
       
      string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The serviceAccountEmail to set.
      Returns:
      This builder for chaining.
    • clearServiceAccountEmail

      public DefaultServiceAccount.Builder clearServiceAccountEmail()
       Output only. The email address of the service account identity that will be
       used for a build by default.
      
       This is returned in the format
       `projects/{project}/serviceAccounts/{service_account}` where
       `{service_account}` could be the legacy Cloud Build SA, in the format
       [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
       format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
      
       If no service account will be used by default, this will be empty.
       
      string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setServiceAccountEmailBytes

      public DefaultServiceAccount.Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
       Output only. The email address of the service account identity that will be
       used for a build by default.
      
       This is returned in the format
       `projects/{project}/serviceAccounts/{service_account}` where
       `{service_account}` could be the legacy Cloud Build SA, in the format
       [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
       format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
      
       If no service account will be used by default, this will be empty.
       
      string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for serviceAccountEmail to set.
      Returns:
      This builder for chaining.