Class SubmitBuildRequest.Builder (0.53.0)

public static final class SubmitBuildRequest.Builder extends GeneratedMessageV3.Builder<SubmitBuildRequest.Builder> implements SubmitBuildRequestOrBuilder

Request message for submitting a Build.

Protobuf type google.cloud.run.v2.SubmitBuildRequest

Static Methods

getDescriptor()

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

Methods

addAllTags(Iterable<String> values)

public SubmitBuildRequest.Builder addAllTags(Iterable<String> values)

Optional. Additional tags to annotate the build.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The tags to add.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SubmitBuildRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SubmitBuildRequest.Builder
Overrides

addTags(String value)

public SubmitBuildRequest.Builder addTags(String value)

Optional. Additional tags to annotate the build.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The tags to add.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public SubmitBuildRequest.Builder addTagsBytes(ByteString value)

Optional. Additional tags to annotate the build.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the tags to add.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

build()

public SubmitBuildRequest build()
Returns
Type Description
SubmitBuildRequest

buildPartial()

public SubmitBuildRequest buildPartial()
Returns
Type Description
SubmitBuildRequest

clear()

public SubmitBuildRequest.Builder clear()
Returns
Type Description
SubmitBuildRequest.Builder
Overrides

clearBuildType()

public SubmitBuildRequest.Builder clearBuildType()
Returns
Type Description
SubmitBuildRequest.Builder

clearBuildpackBuild()

public SubmitBuildRequest.Builder clearBuildpackBuild()

Build the source using Buildpacks.

.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;

Returns
Type Description
SubmitBuildRequest.Builder

clearDockerBuild()

public SubmitBuildRequest.Builder clearDockerBuild()

Build the source using Docker. This means the source has a Dockerfile.

.google.cloud.run.v2.SubmitBuildRequest.DockerBuild docker_build = 5;

Returns
Type Description
SubmitBuildRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public SubmitBuildRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SubmitBuildRequest.Builder
Overrides

clearImageUri()

public SubmitBuildRequest.Builder clearImageUri()

Required. Artifact Registry URI to store the built image.

string image_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SubmitBuildRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SubmitBuildRequest.Builder
Overrides

clearParent()

public SubmitBuildRequest.Builder clearParent()

Required. The project and location to build in. Location must be a region, e.g., 'us-central1' or 'global' if the global builder is to be used. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

clearServiceAccount()

public SubmitBuildRequest.Builder clearServiceAccount()

Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.

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

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

clearSource()

public SubmitBuildRequest.Builder clearSource()
Returns
Type Description
SubmitBuildRequest.Builder

clearStorageSource()

public SubmitBuildRequest.Builder clearStorageSource()

Required. Source for the build.

.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubmitBuildRequest.Builder

clearTags()

public SubmitBuildRequest.Builder clearTags()

Optional. Additional tags to annotate the build.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

clearWorkerPool()

public SubmitBuildRequest.Builder clearWorkerPool()

Optional. Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool.

string worker_pool = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

clone()

public SubmitBuildRequest.Builder clone()
Returns
Type Description
SubmitBuildRequest.Builder
Overrides

getBuildTypeCase()

public SubmitBuildRequest.BuildTypeCase getBuildTypeCase()
Returns
Type Description
SubmitBuildRequest.BuildTypeCase

getBuildpackBuild()

public SubmitBuildRequest.BuildpacksBuild getBuildpackBuild()

Build the source using Buildpacks.

.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild

The buildpackBuild.

getBuildpackBuildBuilder()

public SubmitBuildRequest.BuildpacksBuild.Builder getBuildpackBuildBuilder()

Build the source using Buildpacks.

.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

getBuildpackBuildOrBuilder()

public SubmitBuildRequest.BuildpacksBuildOrBuilder getBuildpackBuildOrBuilder()

Build the source using Buildpacks.

.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;

Returns
Type Description
SubmitBuildRequest.BuildpacksBuildOrBuilder

getDefaultInstanceForType()

public SubmitBuildRequest getDefaultInstanceForType()
Returns
Type Description
SubmitBuildRequest

getDescriptorForType()

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

getDockerBuild()

public SubmitBuildRequest.DockerBuild getDockerBuild()

Build the source using Docker. This means the source has a Dockerfile.

.google.cloud.run.v2.SubmitBuildRequest.DockerBuild docker_build = 5;

Returns
Type Description
SubmitBuildRequest.DockerBuild

The dockerBuild.

getDockerBuildBuilder()

public SubmitBuildRequest.DockerBuild.Builder getDockerBuildBuilder()

Build the source using Docker. This means the source has a Dockerfile.

.google.cloud.run.v2.SubmitBuildRequest.DockerBuild docker_build = 5;

Returns
Type Description
SubmitBuildRequest.DockerBuild.Builder

getDockerBuildOrBuilder()

public SubmitBuildRequest.DockerBuildOrBuilder getDockerBuildOrBuilder()

Build the source using Docker. This means the source has a Dockerfile.

.google.cloud.run.v2.SubmitBuildRequest.DockerBuild docker_build = 5;

Returns
Type Description
SubmitBuildRequest.DockerBuildOrBuilder

getImageUri()

public String getImageUri()

Required. Artifact Registry URI to store the built image.

string image_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The imageUri.

getImageUriBytes()

public ByteString getImageUriBytes()

Required. Artifact Registry URI to store the built image.

string image_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for imageUri.

getParent()

public String getParent()

Required. The project and location to build in. Location must be a region, e.g., 'us-central1' or 'global' if the global builder is to be used. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project and location to build in. Location must be a region, e.g., 'us-central1' or 'global' if the global builder is to be used. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

getServiceAccount()

public String getServiceAccount()

Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.

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

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.

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

Returns
Type Description
ByteString

The bytes for serviceAccount.

getSourceCase()

public SubmitBuildRequest.SourceCase getSourceCase()
Returns
Type Description
SubmitBuildRequest.SourceCase

getStorageSource()

public StorageSource getStorageSource()

Required. Source for the build.

.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StorageSource

The storageSource.

getStorageSourceBuilder()

public StorageSource.Builder getStorageSourceBuilder()

Required. Source for the build.

.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StorageSource.Builder

getStorageSourceOrBuilder()

public StorageSourceOrBuilder getStorageSourceOrBuilder()

Required. Source for the build.

.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StorageSourceOrBuilder

getTags(int index)

public String getTags(int index)

Optional. Additional tags to annotate the build.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The tags at the given index.

getTagsBytes(int index)

public ByteString getTagsBytes(int index)

Optional. Additional tags to annotate the build.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the tags at the given index.

getTagsCount()

public int getTagsCount()

Optional. Additional tags to annotate the build.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

Optional. Additional tags to annotate the build.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the tags.

getWorkerPool()

public String getWorkerPool()

Optional. Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool.

string worker_pool = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The workerPool.

getWorkerPoolBytes()

public ByteString getWorkerPoolBytes()

Optional. Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool.

string worker_pool = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for workerPool.

hasBuildpackBuild()

public boolean hasBuildpackBuild()

Build the source using Buildpacks.

.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;

Returns
Type Description
boolean

Whether the buildpackBuild field is set.

hasDockerBuild()

public boolean hasDockerBuild()

Build the source using Docker. This means the source has a Dockerfile.

.google.cloud.run.v2.SubmitBuildRequest.DockerBuild docker_build = 5;

Returns
Type Description
boolean

Whether the dockerBuild field is set.

hasStorageSource()

public boolean hasStorageSource()

Required. Source for the build.

.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the storageSource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBuildpackBuild(SubmitBuildRequest.BuildpacksBuild value)

public SubmitBuildRequest.Builder mergeBuildpackBuild(SubmitBuildRequest.BuildpacksBuild value)

Build the source using Buildpacks.

.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;

Parameter
Name Description
value SubmitBuildRequest.BuildpacksBuild
Returns
Type Description
SubmitBuildRequest.Builder

mergeDockerBuild(SubmitBuildRequest.DockerBuild value)

public SubmitBuildRequest.Builder mergeDockerBuild(SubmitBuildRequest.DockerBuild value)

Build the source using Docker. This means the source has a Dockerfile.

.google.cloud.run.v2.SubmitBuildRequest.DockerBuild docker_build = 5;

Parameter
Name Description
value SubmitBuildRequest.DockerBuild
Returns
Type Description
SubmitBuildRequest.Builder

mergeFrom(SubmitBuildRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStorageSource(StorageSource value)

public SubmitBuildRequest.Builder mergeStorageSource(StorageSource value)

Required. Source for the build.

.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value StorageSource
Returns
Type Description
SubmitBuildRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SubmitBuildRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SubmitBuildRequest.Builder
Overrides

setBuildpackBuild(SubmitBuildRequest.BuildpacksBuild value)

public SubmitBuildRequest.Builder setBuildpackBuild(SubmitBuildRequest.BuildpacksBuild value)

Build the source using Buildpacks.

.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;

Parameter
Name Description
value SubmitBuildRequest.BuildpacksBuild
Returns
Type Description
SubmitBuildRequest.Builder

setBuildpackBuild(SubmitBuildRequest.BuildpacksBuild.Builder builderForValue)

public SubmitBuildRequest.Builder setBuildpackBuild(SubmitBuildRequest.BuildpacksBuild.Builder builderForValue)

Build the source using Buildpacks.

.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;

Parameter
Name Description
builderForValue SubmitBuildRequest.BuildpacksBuild.Builder
Returns
Type Description
SubmitBuildRequest.Builder

setDockerBuild(SubmitBuildRequest.DockerBuild value)

public SubmitBuildRequest.Builder setDockerBuild(SubmitBuildRequest.DockerBuild value)

Build the source using Docker. This means the source has a Dockerfile.

.google.cloud.run.v2.SubmitBuildRequest.DockerBuild docker_build = 5;

Parameter
Name Description
value SubmitBuildRequest.DockerBuild
Returns
Type Description
SubmitBuildRequest.Builder

setDockerBuild(SubmitBuildRequest.DockerBuild.Builder builderForValue)

public SubmitBuildRequest.Builder setDockerBuild(SubmitBuildRequest.DockerBuild.Builder builderForValue)

Build the source using Docker. This means the source has a Dockerfile.

.google.cloud.run.v2.SubmitBuildRequest.DockerBuild docker_build = 5;

Parameter
Name Description
builderForValue SubmitBuildRequest.DockerBuild.Builder
Returns
Type Description
SubmitBuildRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SubmitBuildRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SubmitBuildRequest.Builder
Overrides

setImageUri(String value)

public SubmitBuildRequest.Builder setImageUri(String value)

Required. Artifact Registry URI to store the built image.

string image_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The imageUri to set.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

setImageUriBytes(ByteString value)

public SubmitBuildRequest.Builder setImageUriBytes(ByteString value)

Required. Artifact Registry URI to store the built image.

string image_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for imageUri to set.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

setParent(String value)

public SubmitBuildRequest.Builder setParent(String value)

Required. The project and location to build in. Location must be a region, e.g., 'us-central1' or 'global' if the global builder is to be used. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public SubmitBuildRequest.Builder setParentBytes(ByteString value)

Required. The project and location to build in. Location must be a region, e.g., 'us-central1' or 'global' if the global builder is to be used. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

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

public SubmitBuildRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SubmitBuildRequest.Builder
Overrides

setServiceAccount(String value)

public SubmitBuildRequest.Builder setServiceAccount(String value)

Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.

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

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public SubmitBuildRequest.Builder setServiceAccountBytes(ByteString value)

Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.

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

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

setStorageSource(StorageSource value)

public SubmitBuildRequest.Builder setStorageSource(StorageSource value)

Required. Source for the build.

.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value StorageSource
Returns
Type Description
SubmitBuildRequest.Builder

setStorageSource(StorageSource.Builder builderForValue)

public SubmitBuildRequest.Builder setStorageSource(StorageSource.Builder builderForValue)

Required. Source for the build.

.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue StorageSource.Builder
Returns
Type Description
SubmitBuildRequest.Builder

setTags(int index, String value)

public SubmitBuildRequest.Builder setTags(int index, String value)

Optional. Additional tags to annotate the build.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The tags to set.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SubmitBuildRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SubmitBuildRequest.Builder
Overrides

setWorkerPool(String value)

public SubmitBuildRequest.Builder setWorkerPool(String value)

Optional. Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool.

string worker_pool = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The workerPool to set.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.

setWorkerPoolBytes(ByteString value)

public SubmitBuildRequest.Builder setWorkerPoolBytes(ByteString value)

Optional. Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool.

string worker_pool = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for workerPool to set.

Returns
Type Description
SubmitBuildRequest.Builder

This builder for chaining.