Class 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.GeneratedMessageV3.Builder<PrivatePool.Builder>
    implements PrivatePoolOrBuilder
     Execution using a private Cloud Build pool.
     
    Protobuf type google.cloud.deploy.v1.PrivatePool
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public PrivatePool.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<PrivatePool.Builder>
      • setField

        public PrivatePool.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<PrivatePool.Builder>
      • clearField

        public PrivatePool.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PrivatePool.Builder>
      • clearOneof

        public PrivatePool.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PrivatePool.Builder>
      • setRepeatedField

        public PrivatePool.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PrivatePool.Builder>
      • addRepeatedField

        public PrivatePool.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PrivatePool.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final PrivatePool.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PrivatePool.Builder>
      • mergeUnknownFields

        public final PrivatePool.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PrivatePool.Builder>