Class PrivatePool.Builder (1.31.0)

public static final class PrivatePool.Builder extends GeneratedMessageV3.Builder<PrivatePool.Builder> implements PrivatePoolOrBuilder

Execution using a private Cloud Build pool.

Protobuf type google.cloud.deploy.v1.PrivatePool

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrivatePool.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PrivatePool.Builder
Overrides

build()

public PrivatePool build()
Returns
TypeDescription
PrivatePool

buildPartial()

public PrivatePool buildPartial()
Returns
TypeDescription
PrivatePool

clear()

public PrivatePool.Builder clear()
Returns
TypeDescription
PrivatePool.Builder
Overrides

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
TypeDescription
PrivatePool.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PrivatePool.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PrivatePool.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivatePool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PrivatePool.Builder
Overrides

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
TypeDescription
PrivatePool.Builder

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
TypeDescription
PrivatePool.Builder

This builder for chaining.

clone()

public PrivatePool.Builder clone()
Returns
TypeDescription
PrivatePool.Builder
Overrides

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];

Returns
TypeDescription
String

The artifactStorage.

getArtifactStorageBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for artifactStorage.

getDefaultInstanceForType()

public PrivatePool getDefaultInstanceForType()
Returns
TypeDescription
PrivatePool

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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];

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

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) = { ... }

Returns
TypeDescription
String

The workerPool.

getWorkerPoolBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for workerPool.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PrivatePool other)

public PrivatePool.Builder mergeFrom(PrivatePool other)
Parameter
NameDescription
otherPrivatePool
Returns
TypeDescription
PrivatePool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrivatePool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivatePool.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PrivatePool.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PrivatePool.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivatePool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PrivatePool.Builder
Overrides

setArtifactStorage(String value)

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];

Parameter
NameDescription
valueString

The artifactStorage to set.

Returns
TypeDescription
PrivatePool.Builder

This builder for chaining.

setArtifactStorageBytes(ByteString value)

public PrivatePool.Builder setArtifactStorageBytes(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];

Parameter
NameDescription
valueByteString

The bytes for artifactStorage to set.

Returns
TypeDescription
PrivatePool.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PrivatePool.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PrivatePool.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PrivatePool.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PrivatePool.Builder
Overrides

setServiceAccount(String value)

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];

Parameter
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
PrivatePool.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public PrivatePool.Builder setServiceAccountBytes(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];

Parameter
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
PrivatePool.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivatePool.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PrivatePool.Builder
Overrides

setWorkerPool(String value)

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) = { ... }

Parameter
NameDescription
valueString

The workerPool to set.

Returns
TypeDescription
PrivatePool.Builder

This builder for chaining.

setWorkerPoolBytes(ByteString value)

public PrivatePool.Builder setWorkerPoolBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for workerPool to set.

Returns
TypeDescription
PrivatePool.Builder

This builder for chaining.