Class ReasoningEngineSpec.BuildSpec.Builder (3.100.0)

public static final class ReasoningEngineSpec.BuildSpec.Builder extends GeneratedMessage.Builder<ReasoningEngineSpec.BuildSpec.Builder> implements ReasoningEngineSpec.BuildSpecOrBuilder

Specification for building container image.

Protobuf type google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.BuildSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ReasoningEngineSpec.BuildSpec build()
Returns
Type Description
ReasoningEngineSpec.BuildSpec

buildPartial()

public ReasoningEngineSpec.BuildSpec buildPartial()
Returns
Type Description
ReasoningEngineSpec.BuildSpec

clear()

public ReasoningEngineSpec.BuildSpec.Builder clear()
Returns
Type Description
ReasoningEngineSpec.BuildSpec.Builder
Overrides

clearServiceAccount()

public ReasoningEngineSpec.BuildSpec.Builder clearServiceAccount()

Optional. The service account that Cloud Build uses to run the build.

This field is only applicable when worker_pool is specified (i.e., for custom worker pools). If worker_pool is not specified, this field is ignored and the build runs using the Google-managed service agent.

Format: projects/{project}/serviceAccounts/{service_account} or {service_account}@{project}.iam.gserviceaccount.com

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ReasoningEngineSpec.BuildSpec.Builder

This builder for chaining.

clearWorkerPool()

public ReasoningEngineSpec.BuildSpec.Builder clearWorkerPool()

Optional. The resource name of the Cloud Build WorkerPool to use for the build. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}

string worker_pool = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ReasoningEngineSpec.BuildSpec.Builder

This builder for chaining.

getDefaultInstanceForType()

public ReasoningEngineSpec.BuildSpec getDefaultInstanceForType()
Returns
Type Description
ReasoningEngineSpec.BuildSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getServiceAccount()

public String getServiceAccount()

Optional. The service account that Cloud Build uses to run the build.

This field is only applicable when worker_pool is specified (i.e., for custom worker pools). If worker_pool is not specified, this field is ignored and the build runs using the Google-managed service agent.

Format: projects/{project}/serviceAccounts/{service_account} or {service_account}@{project}.iam.gserviceaccount.com

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Optional. The service account that Cloud Build uses to run the build.

This field is only applicable when worker_pool is specified (i.e., for custom worker pools). If worker_pool is not specified, this field is ignored and the build runs using the Google-managed service agent.

Format: projects/{project}/serviceAccounts/{service_account} or {service_account}@{project}.iam.gserviceaccount.com

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for serviceAccount.

getWorkerPool()

public String getWorkerPool()

Optional. The resource name of the Cloud Build WorkerPool to use for the build. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}

string worker_pool = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The workerPool.

getWorkerPoolBytes()

public ByteString getWorkerPoolBytes()

Optional. The resource name of the Cloud Build WorkerPool to use for the build. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}

string worker_pool = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for workerPool.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReasoningEngineSpec.BuildSpec other)

public ReasoningEngineSpec.BuildSpec.Builder mergeFrom(ReasoningEngineSpec.BuildSpec other)
Parameter
Name Description
other ReasoningEngineSpec.BuildSpec
Returns
Type Description
ReasoningEngineSpec.BuildSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReasoningEngineSpec.BuildSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReasoningEngineSpec.BuildSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ReasoningEngineSpec.BuildSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReasoningEngineSpec.BuildSpec.Builder
Overrides

setServiceAccount(String value)

public ReasoningEngineSpec.BuildSpec.Builder setServiceAccount(String value)

Optional. The service account that Cloud Build uses to run the build.

This field is only applicable when worker_pool is specified (i.e., for custom worker pools). If worker_pool is not specified, this field is ignored and the build runs using the Google-managed service agent.

Format: projects/{project}/serviceAccounts/{service_account} or {service_account}@{project}.iam.gserviceaccount.com

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
ReasoningEngineSpec.BuildSpec.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public ReasoningEngineSpec.BuildSpec.Builder setServiceAccountBytes(ByteString value)

Optional. The service account that Cloud Build uses to run the build.

This field is only applicable when worker_pool is specified (i.e., for custom worker pools). If worker_pool is not specified, this field is ignored and the build runs using the Google-managed service agent.

Format: projects/{project}/serviceAccounts/{service_account} or {service_account}@{project}.iam.gserviceaccount.com

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
ReasoningEngineSpec.BuildSpec.Builder

This builder for chaining.

setWorkerPool(String value)

public ReasoningEngineSpec.BuildSpec.Builder setWorkerPool(String value)

Optional. The resource name of the Cloud Build WorkerPool to use for the build. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}

string worker_pool = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The workerPool to set.

Returns
Type Description
ReasoningEngineSpec.BuildSpec.Builder

This builder for chaining.

setWorkerPoolBytes(ByteString value)

public ReasoningEngineSpec.BuildSpec.Builder setWorkerPoolBytes(ByteString value)

Optional. The resource name of the Cloud Build WorkerPool to use for the build. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}

string worker_pool = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for workerPool to set.

Returns
Type Description
ReasoningEngineSpec.BuildSpec.Builder

This builder for chaining.