Class DefaultPool.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DefaultPool.Builder>
com.google.cloud.deploy.v1.DefaultPool.Builder
All Implemented Interfaces:
DefaultPoolOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DefaultPool

public static final class DefaultPool.Builder extends com.google.protobuf.GeneratedMessage.Builder<DefaultPool.Builder> implements DefaultPoolOrBuilder
 Execution using the default Cloud Build pool.
 
Protobuf type google.cloud.deploy.v1.DefaultPool
  • 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<DefaultPool.Builder>
    • clear

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

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

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

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

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

      public DefaultPool.Builder mergeFrom(DefaultPool other)
    • isInitialized

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

      public DefaultPool.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<DefaultPool.Builder>
      Throws:
      IOException
    • getServiceAccount

      public String getServiceAccount()
       Optional. Google service account to use for execution. If unspecified,
       the project execution service account
       (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
       
      string service_account = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccount in interface DefaultPoolOrBuilder
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      public com.google.protobuf.ByteString getServiceAccountBytes()
       Optional. Google service account to use for execution. If unspecified,
       the project execution service account
       (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
       
      string service_account = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccountBytes in interface DefaultPoolOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

      public DefaultPool.Builder setServiceAccount(String value)
       Optional. Google service account to use for execution. If unspecified,
       the project execution service account
       (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
       
      string service_account = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The serviceAccount to set.
      Returns:
      This builder for chaining.
    • clearServiceAccount

      public DefaultPool.Builder clearServiceAccount()
       Optional. Google service account to use for execution. If unspecified,
       the project execution service account
       (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
       
      string service_account = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setServiceAccountBytes

      public DefaultPool.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
       Optional. Google service account to use for execution. If unspecified,
       the project execution service account
       (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
       
      string service_account = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for serviceAccount to set.
      Returns:
      This builder for chaining.
    • getArtifactStorage

      public String getArtifactStorage()
       Optional. Cloud Storage location where execution outputs should be stored.
       This can either be a bucket ("gs://my-bucket") or a path within a bucket
       ("gs://my-bucket/my-dir").
       If unspecified, a default bucket located in the same region will be used.
       
      string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArtifactStorage in interface DefaultPoolOrBuilder
      Returns:
      The artifactStorage.
    • getArtifactStorageBytes

      public com.google.protobuf.ByteString getArtifactStorageBytes()
       Optional. Cloud Storage location where execution outputs should be stored.
       This can either be a bucket ("gs://my-bucket") or a path within a bucket
       ("gs://my-bucket/my-dir").
       If unspecified, a default bucket located in the same region will be used.
       
      string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArtifactStorageBytes in interface DefaultPoolOrBuilder
      Returns:
      The bytes for artifactStorage.
    • setArtifactStorage

      public DefaultPool.Builder setArtifactStorage(String value)
       Optional. Cloud Storage location where execution outputs should be stored.
       This can either be a bucket ("gs://my-bucket") or a path within a bucket
       ("gs://my-bucket/my-dir").
       If unspecified, a default bucket located in the same region will be used.
       
      string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The artifactStorage to set.
      Returns:
      This builder for chaining.
    • clearArtifactStorage

      public DefaultPool.Builder clearArtifactStorage()
       Optional. Cloud Storage location where execution outputs should be stored.
       This can either be a bucket ("gs://my-bucket") or a path within a bucket
       ("gs://my-bucket/my-dir").
       If unspecified, a default bucket located in the same region will be used.
       
      string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setArtifactStorageBytes

      public DefaultPool.Builder setArtifactStorageBytes(com.google.protobuf.ByteString value)
       Optional. Cloud Storage location where execution outputs should be stored.
       This can either be a bucket ("gs://my-bucket") or a path within a bucket
       ("gs://my-bucket/my-dir").
       If unspecified, a default bucket located in the same region will be used.
       
      string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for artifactStorage to set.
      Returns:
      This builder for chaining.