public static final class SubmitBuildRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder> implements SubmitBuildRequestOrBuilder
Request message for submitting a Build.Protobuf type
google.cloud.run.v2.SubmitBuildRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>public SubmitBuildRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>public SubmitBuildRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SubmitBuildRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SubmitBuildRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SubmitBuildRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>public SubmitBuildRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>public SubmitBuildRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>public SubmitBuildRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>public SubmitBuildRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>public SubmitBuildRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>public SubmitBuildRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SubmitBuildRequest.Builder>public SubmitBuildRequest.Builder mergeFrom(SubmitBuildRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>public SubmitBuildRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SubmitBuildRequest.Builder>IOExceptionpublic SubmitBuildRequest.SourceCase getSourceCase()
getSourceCase in interface SubmitBuildRequestOrBuilderpublic SubmitBuildRequest.Builder clearSource()
public SubmitBuildRequest.BuildTypeCase getBuildTypeCase()
getBuildTypeCase in interface SubmitBuildRequestOrBuilderpublic SubmitBuildRequest.Builder clearBuildType()
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];getParent in interface SubmitBuildRequestOrBuilderpublic com.google.protobuf.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];getParentBytes in interface SubmitBuildRequestOrBuilderpublic 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];value - The parent to set.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];public SubmitBuildRequest.Builder setParentBytes(com.google.protobuf.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];value - The bytes for parent to set.public boolean hasStorageSource()
Required. Source for the build.
.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];
hasStorageSource in interface SubmitBuildRequestOrBuilderpublic StorageSource getStorageSource()
Required. Source for the build.
.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];
getStorageSource in interface SubmitBuildRequestOrBuilderpublic SubmitBuildRequest.Builder setStorageSource(StorageSource value)
Required. Source for the build.
.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];
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];
public SubmitBuildRequest.Builder mergeStorageSource(StorageSource value)
Required. Source for the build.
.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];
public SubmitBuildRequest.Builder clearStorageSource()
Required. Source for the build.
.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];
public StorageSource.Builder getStorageSourceBuilder()
Required. Source for the build.
.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];
public StorageSourceOrBuilder getStorageSourceOrBuilder()
Required. Source for the build.
.google.cloud.run.v2.StorageSource storage_source = 2 [(.google.api.field_behavior) = REQUIRED];
getStorageSourceOrBuilder in interface SubmitBuildRequestOrBuilderpublic String getImageUri()
Required. Artifact Registry URI to store the built image.
string image_uri = 3 [(.google.api.field_behavior) = REQUIRED];getImageUri in interface SubmitBuildRequestOrBuilderpublic com.google.protobuf.ByteString getImageUriBytes()
Required. Artifact Registry URI to store the built image.
string image_uri = 3 [(.google.api.field_behavior) = REQUIRED];getImageUriBytes in interface SubmitBuildRequestOrBuilderpublic SubmitBuildRequest.Builder setImageUri(String value)
Required. Artifact Registry URI to store the built image.
string image_uri = 3 [(.google.api.field_behavior) = REQUIRED];value - The imageUri to set.public SubmitBuildRequest.Builder clearImageUri()
Required. Artifact Registry URI to store the built image.
string image_uri = 3 [(.google.api.field_behavior) = REQUIRED];public SubmitBuildRequest.Builder setImageUriBytes(com.google.protobuf.ByteString value)
Required. Artifact Registry URI to store the built image.
string image_uri = 3 [(.google.api.field_behavior) = REQUIRED];value - The bytes for imageUri to set.public boolean hasBuildpackBuild()
Build the source using Buildpacks.
.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;hasBuildpackBuild in interface SubmitBuildRequestOrBuilderpublic SubmitBuildRequest.BuildpacksBuild getBuildpackBuild()
Build the source using Buildpacks.
.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;getBuildpackBuild in interface SubmitBuildRequestOrBuilderpublic SubmitBuildRequest.Builder setBuildpackBuild(SubmitBuildRequest.BuildpacksBuild value)
Build the source using Buildpacks.
.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;public SubmitBuildRequest.Builder setBuildpackBuild(SubmitBuildRequest.BuildpacksBuild.Builder builderForValue)
Build the source using Buildpacks.
.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;public SubmitBuildRequest.Builder mergeBuildpackBuild(SubmitBuildRequest.BuildpacksBuild value)
Build the source using Buildpacks.
.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;public SubmitBuildRequest.Builder clearBuildpackBuild()
Build the source using Buildpacks.
.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;public SubmitBuildRequest.BuildpacksBuild.Builder getBuildpackBuildBuilder()
Build the source using Buildpacks.
.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;public SubmitBuildRequest.BuildpacksBuildOrBuilder getBuildpackBuildOrBuilder()
Build the source using Buildpacks.
.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild buildpack_build = 4;getBuildpackBuildOrBuilder in interface SubmitBuildRequestOrBuilderpublic boolean hasDockerBuild()
Build the source using Docker. This means the source has a Dockerfile.
.google.cloud.run.v2.SubmitBuildRequest.DockerBuild docker_build = 5;hasDockerBuild in interface SubmitBuildRequestOrBuilderpublic SubmitBuildRequest.DockerBuild getDockerBuild()
Build the source using Docker. This means the source has a Dockerfile.
.google.cloud.run.v2.SubmitBuildRequest.DockerBuild docker_build = 5;getDockerBuild in interface SubmitBuildRequestOrBuilderpublic 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;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;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;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;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;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;getDockerBuildOrBuilder in interface SubmitBuildRequestOrBuilderpublic 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];getServiceAccount in interface SubmitBuildRequestOrBuilderpublic com.google.protobuf.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];getServiceAccountBytes in interface SubmitBuildRequestOrBuilderpublic 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];value - The serviceAccount to set.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];public SubmitBuildRequest.Builder setServiceAccountBytes(com.google.protobuf.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];value - The bytes for serviceAccount to set.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) = { ... }
getWorkerPool in interface SubmitBuildRequestOrBuilderpublic com.google.protobuf.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) = { ... }
getWorkerPoolBytes in interface SubmitBuildRequestOrBuilderpublic 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) = { ... }
value - The workerPool to set.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) = { ... }
public SubmitBuildRequest.Builder setWorkerPoolBytes(com.google.protobuf.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) = { ... }
value - The bytes for workerPool to set.public com.google.protobuf.ProtocolStringList getTagsList()
Optional. Additional tags to annotate the build.
repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];getTagsList in interface SubmitBuildRequestOrBuilderpublic int getTagsCount()
Optional. Additional tags to annotate the build.
repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];getTagsCount in interface SubmitBuildRequestOrBuilderpublic String getTags(int index)
Optional. Additional tags to annotate the build.
repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];getTags in interface SubmitBuildRequestOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getTagsBytes(int index)
Optional. Additional tags to annotate the build.
repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];getTagsBytes in interface SubmitBuildRequestOrBuilderindex - The index of the value to return.public SubmitBuildRequest.Builder setTags(int index, String value)
Optional. Additional tags to annotate the build.
repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The tags to set.public SubmitBuildRequest.Builder addTags(String value)
Optional. Additional tags to annotate the build.
repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];value - The tags to add.public SubmitBuildRequest.Builder addAllTags(Iterable<String> values)
Optional. Additional tags to annotate the build.
repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];values - The tags to add.public SubmitBuildRequest.Builder clearTags()
Optional. Additional tags to annotate the build.
repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];public SubmitBuildRequest.Builder addTagsBytes(com.google.protobuf.ByteString value)
Optional. Additional tags to annotate the build.
repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the tags to add.public final SubmitBuildRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>public final SubmitBuildRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SubmitBuildRequest.Builder>Copyright © 2025 Google LLC. All rights reserved.