Class PrivatePool.Builder

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

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

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

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

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

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

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

      public PrivatePool.Builder mergeFrom(PrivatePool other)
    • isInitialized

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

      public PrivatePool.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<PrivatePool.Builder>
      Throws:
      IOException
    • getWorkerPool

      public String getWorkerPool()
       Required. Resource name of the Cloud Build worker pool to use. The format
       is `projects/{project}/locations/{location}/workerPools/{pool}`.
       
      string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getWorkerPool in interface PrivatePoolOrBuilder
      Returns:
      The workerPool.
    • getWorkerPoolBytes

      public com.google.protobuf.ByteString getWorkerPoolBytes()
       Required. Resource name of the Cloud Build worker pool to use. The format
       is `projects/{project}/locations/{location}/workerPools/{pool}`.
       
      string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getWorkerPoolBytes in interface PrivatePoolOrBuilder
      Returns:
      The bytes for workerPool.
    • setWorkerPool

      public PrivatePool.Builder setWorkerPool(String value)
       Required. Resource name of the Cloud Build worker pool to use. The format
       is `projects/{project}/locations/{location}/workerPools/{pool}`.
       
      string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The workerPool to set.
      Returns:
      This builder for chaining.
    • clearWorkerPool

      public PrivatePool.Builder clearWorkerPool()
       Required. Resource name of the Cloud Build worker pool to use. The format
       is `projects/{project}/locations/{location}/workerPools/{pool}`.
       
      string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setWorkerPoolBytes

      public PrivatePool.Builder setWorkerPoolBytes(com.google.protobuf.ByteString value)
       Required. Resource name of the Cloud Build worker pool to use. The format
       is `projects/{project}/locations/{location}/workerPools/{pool}`.
       
      string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for workerPool to set.
      Returns:
      This builder for chaining.
    • 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccount in interface PrivatePoolOrBuilder
      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 = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccountBytes in interface PrivatePoolOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

      public PrivatePool.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 = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The serviceAccount to set.
      Returns:
      This builder for chaining.
    • clearServiceAccount

      public PrivatePool.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 = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setServiceAccountBytes

      public PrivatePool.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 = 2 [(.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArtifactStorage in interface PrivatePoolOrBuilder
      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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArtifactStorageBytes in interface PrivatePoolOrBuilder
      Returns:
      The bytes for artifactStorage.
    • setArtifactStorage

      public PrivatePool.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The artifactStorage to set.
      Returns:
      This builder for chaining.
    • clearArtifactStorage

      public PrivatePool.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setArtifactStorageBytes

      public PrivatePool.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for artifactStorage to set.
      Returns:
      This builder for chaining.