Class Artifacts.Builder (3.22.0)

public static final class Artifacts.Builder extends GeneratedMessageV3.Builder<Artifacts.Builder> implements ArtifactsOrBuilder

Artifacts produced by a build that should be uploaded upon successful completion of all build steps.

Protobuf type google.devtools.cloudbuild.v1.Artifacts

Implements

ArtifactsOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllImages(Iterable<String> values)

public Artifacts.Builder addAllImages(Iterable<String> values)

A list of images to be pushed upon the successful completion of all build steps.

The images will be pushed using the builder service account's credentials.

The digests of the pushed images will be stored in the Build resource's results field.

If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Parameter
NameDescription
valuesIterable<String>

The images to add.

Returns
TypeDescription
Artifacts.Builder

This builder for chaining.

addAllMavenArtifacts(Iterable<? extends Artifacts.MavenArtifact> values)

public Artifacts.Builder addAllMavenArtifacts(Iterable<? extends Artifacts.MavenArtifact> values)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloudbuild.v1.Artifacts.MavenArtifact>
Returns
TypeDescription
Artifacts.Builder

addAllNpmPackages(Iterable<? extends Artifacts.NpmPackage> values)

public Artifacts.Builder addAllNpmPackages(Iterable<? extends Artifacts.NpmPackage> values)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.cloudbuild.v1.Artifacts.NpmPackage>
Returns
TypeDescription
Artifacts.Builder

addAllPythonPackages(Iterable<? extends Artifacts.PythonPackage> values)

public Artifacts.Builder addAllPythonPackages(Iterable<? extends Artifacts.PythonPackage> values)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloudbuild.v1.Artifacts.PythonPackage>
Returns
TypeDescription
Artifacts.Builder

addImages(String value)

public Artifacts.Builder addImages(String value)

A list of images to be pushed upon the successful completion of all build steps.

The images will be pushed using the builder service account's credentials.

The digests of the pushed images will be stored in the Build resource's results field.

If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Parameter
NameDescription
valueString

The images to add.

Returns
TypeDescription
Artifacts.Builder

This builder for chaining.

addImagesBytes(ByteString value)

public Artifacts.Builder addImagesBytes(ByteString value)

A list of images to be pushed upon the successful completion of all build steps.

The images will be pushed using the builder service account's credentials.

The digests of the pushed images will be stored in the Build resource's results field.

If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Parameter
NameDescription
valueByteString

The bytes of the images to add.

Returns
TypeDescription
Artifacts.Builder

This builder for chaining.

addMavenArtifacts(Artifacts.MavenArtifact value)

public Artifacts.Builder addMavenArtifacts(Artifacts.MavenArtifact value)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameter
NameDescription
valueArtifacts.MavenArtifact
Returns
TypeDescription
Artifacts.Builder

addMavenArtifacts(Artifacts.MavenArtifact.Builder builderForValue)

public Artifacts.Builder addMavenArtifacts(Artifacts.MavenArtifact.Builder builderForValue)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameter
NameDescription
builderForValueArtifacts.MavenArtifact.Builder
Returns
TypeDescription
Artifacts.Builder

addMavenArtifacts(int index, Artifacts.MavenArtifact value)

public Artifacts.Builder addMavenArtifacts(int index, Artifacts.MavenArtifact value)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameters
NameDescription
indexint
valueArtifacts.MavenArtifact
Returns
TypeDescription
Artifacts.Builder

addMavenArtifacts(int index, Artifacts.MavenArtifact.Builder builderForValue)

public Artifacts.Builder addMavenArtifacts(int index, Artifacts.MavenArtifact.Builder builderForValue)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameters
NameDescription
indexint
builderForValueArtifacts.MavenArtifact.Builder
Returns
TypeDescription
Artifacts.Builder

addMavenArtifactsBuilder()

public Artifacts.MavenArtifact.Builder addMavenArtifactsBuilder()

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Returns
TypeDescription
Artifacts.MavenArtifact.Builder

addMavenArtifactsBuilder(int index)

public Artifacts.MavenArtifact.Builder addMavenArtifactsBuilder(int index)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.MavenArtifact.Builder

addNpmPackages(Artifacts.NpmPackage value)

public Artifacts.Builder addNpmPackages(Artifacts.NpmPackage value)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameter
NameDescription
valueArtifacts.NpmPackage
Returns
TypeDescription
Artifacts.Builder

addNpmPackages(Artifacts.NpmPackage.Builder builderForValue)

public Artifacts.Builder addNpmPackages(Artifacts.NpmPackage.Builder builderForValue)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameter
NameDescription
builderForValueArtifacts.NpmPackage.Builder
Returns
TypeDescription
Artifacts.Builder

addNpmPackages(int index, Artifacts.NpmPackage value)

public Artifacts.Builder addNpmPackages(int index, Artifacts.NpmPackage value)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameters
NameDescription
indexint
valueArtifacts.NpmPackage
Returns
TypeDescription
Artifacts.Builder

addNpmPackages(int index, Artifacts.NpmPackage.Builder builderForValue)

public Artifacts.Builder addNpmPackages(int index, Artifacts.NpmPackage.Builder builderForValue)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameters
NameDescription
indexint
builderForValueArtifacts.NpmPackage.Builder
Returns
TypeDescription
Artifacts.Builder

addNpmPackagesBuilder()

public Artifacts.NpmPackage.Builder addNpmPackagesBuilder()

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Returns
TypeDescription
Artifacts.NpmPackage.Builder

addNpmPackagesBuilder(int index)

public Artifacts.NpmPackage.Builder addNpmPackagesBuilder(int index)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.NpmPackage.Builder

addPythonPackages(Artifacts.PythonPackage value)

public Artifacts.Builder addPythonPackages(Artifacts.PythonPackage value)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameter
NameDescription
valueArtifacts.PythonPackage
Returns
TypeDescription
Artifacts.Builder

addPythonPackages(Artifacts.PythonPackage.Builder builderForValue)

public Artifacts.Builder addPythonPackages(Artifacts.PythonPackage.Builder builderForValue)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameter
NameDescription
builderForValueArtifacts.PythonPackage.Builder
Returns
TypeDescription
Artifacts.Builder

addPythonPackages(int index, Artifacts.PythonPackage value)

public Artifacts.Builder addPythonPackages(int index, Artifacts.PythonPackage value)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameters
NameDescription
indexint
valueArtifacts.PythonPackage
Returns
TypeDescription
Artifacts.Builder

addPythonPackages(int index, Artifacts.PythonPackage.Builder builderForValue)

public Artifacts.Builder addPythonPackages(int index, Artifacts.PythonPackage.Builder builderForValue)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameters
NameDescription
indexint
builderForValueArtifacts.PythonPackage.Builder
Returns
TypeDescription
Artifacts.Builder

addPythonPackagesBuilder()

public Artifacts.PythonPackage.Builder addPythonPackagesBuilder()

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Returns
TypeDescription
Artifacts.PythonPackage.Builder

addPythonPackagesBuilder(int index)

public Artifacts.PythonPackage.Builder addPythonPackagesBuilder(int index)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.PythonPackage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Artifacts build()
Returns
TypeDescription
Artifacts

buildPartial()

public Artifacts buildPartial()
Returns
TypeDescription
Artifacts

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearImages()

public Artifacts.Builder clearImages()

A list of images to be pushed upon the successful completion of all build steps.

The images will be pushed using the builder service account's credentials.

The digests of the pushed images will be stored in the Build resource's results field.

If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Returns
TypeDescription
Artifacts.Builder

This builder for chaining.

clearMavenArtifacts()

public Artifacts.Builder clearMavenArtifacts()

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Returns
TypeDescription
Artifacts.Builder

clearNpmPackages()

public Artifacts.Builder clearNpmPackages()

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Returns
TypeDescription
Artifacts.Builder

clearObjects()

public Artifacts.Builder clearObjects()

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.

Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials.

The location and generation of the uploaded objects will be stored in the Build resource's results field.

If any objects fail to be pushed, the build is marked FAILURE.

.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;

Returns
TypeDescription
Artifacts.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPythonPackages()

public Artifacts.Builder clearPythonPackages()

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Returns
TypeDescription
Artifacts.Builder

clone()

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

getDefaultInstanceForType()

public Artifacts getDefaultInstanceForType()
Returns
TypeDescription
Artifacts

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImages(int index)

public String getImages(int index)

A list of images to be pushed upon the successful completion of all build steps.

The images will be pushed using the builder service account's credentials.

The digests of the pushed images will be stored in the Build resource's results field.

If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The images at the given index.

getImagesBytes(int index)

public ByteString getImagesBytes(int index)

A list of images to be pushed upon the successful completion of all build steps.

The images will be pushed using the builder service account's credentials.

The digests of the pushed images will be stored in the Build resource's results field.

If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the images at the given index.

getImagesCount()

public int getImagesCount()

A list of images to be pushed upon the successful completion of all build steps.

The images will be pushed using the builder service account's credentials.

The digests of the pushed images will be stored in the Build resource's results field.

If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Returns
TypeDescription
int

The count of images.

getImagesList()

public ProtocolStringList getImagesList()

A list of images to be pushed upon the successful completion of all build steps.

The images will be pushed using the builder service account's credentials.

The digests of the pushed images will be stored in the Build resource's results field.

If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the images.

getMavenArtifacts(int index)

public Artifacts.MavenArtifact getMavenArtifacts(int index)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.MavenArtifact

getMavenArtifactsBuilder(int index)

public Artifacts.MavenArtifact.Builder getMavenArtifactsBuilder(int index)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.MavenArtifact.Builder

getMavenArtifactsBuilderList()

public List<Artifacts.MavenArtifact.Builder> getMavenArtifactsBuilderList()

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Returns
TypeDescription
List<Builder>

getMavenArtifactsCount()

public int getMavenArtifactsCount()

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Returns
TypeDescription
int

getMavenArtifactsList()

public List<Artifacts.MavenArtifact> getMavenArtifactsList()

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Returns
TypeDescription
List<MavenArtifact>

getMavenArtifactsOrBuilder(int index)

public Artifacts.MavenArtifactOrBuilder getMavenArtifactsOrBuilder(int index)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.MavenArtifactOrBuilder

getMavenArtifactsOrBuilderList()

public List<? extends Artifacts.MavenArtifactOrBuilder> getMavenArtifactsOrBuilderList()

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Returns
TypeDescription
List<? extends com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder>

getNpmPackages(int index)

public Artifacts.NpmPackage getNpmPackages(int index)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.NpmPackage

getNpmPackagesBuilder(int index)

public Artifacts.NpmPackage.Builder getNpmPackagesBuilder(int index)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.NpmPackage.Builder

getNpmPackagesBuilderList()

public List<Artifacts.NpmPackage.Builder> getNpmPackagesBuilderList()

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Returns
TypeDescription
List<Builder>

getNpmPackagesCount()

public int getNpmPackagesCount()

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Returns
TypeDescription
int

getNpmPackagesList()

public List<Artifacts.NpmPackage> getNpmPackagesList()

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Returns
TypeDescription
List<NpmPackage>

getNpmPackagesOrBuilder(int index)

public Artifacts.NpmPackageOrBuilder getNpmPackagesOrBuilder(int index)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.NpmPackageOrBuilder

getNpmPackagesOrBuilderList()

public List<? extends Artifacts.NpmPackageOrBuilder> getNpmPackagesOrBuilderList()

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Returns
TypeDescription
List<? extends com.google.cloudbuild.v1.Artifacts.NpmPackageOrBuilder>

getObjects()

public Artifacts.ArtifactObjects getObjects()

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.

Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials.

The location and generation of the uploaded objects will be stored in the Build resource's results field.

If any objects fail to be pushed, the build is marked FAILURE.

.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;

Returns
TypeDescription
Artifacts.ArtifactObjects

The objects.

getObjectsBuilder()

public Artifacts.ArtifactObjects.Builder getObjectsBuilder()

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.

Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials.

The location and generation of the uploaded objects will be stored in the Build resource's results field.

If any objects fail to be pushed, the build is marked FAILURE.

.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;

Returns
TypeDescription
Artifacts.ArtifactObjects.Builder

getObjectsOrBuilder()

public Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder()

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.

Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials.

The location and generation of the uploaded objects will be stored in the Build resource's results field.

If any objects fail to be pushed, the build is marked FAILURE.

.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;

Returns
TypeDescription
Artifacts.ArtifactObjectsOrBuilder

getPythonPackages(int index)

public Artifacts.PythonPackage getPythonPackages(int index)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.PythonPackage

getPythonPackagesBuilder(int index)

public Artifacts.PythonPackage.Builder getPythonPackagesBuilder(int index)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.PythonPackage.Builder

getPythonPackagesBuilderList()

public List<Artifacts.PythonPackage.Builder> getPythonPackagesBuilderList()

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Returns
TypeDescription
List<Builder>

getPythonPackagesCount()

public int getPythonPackagesCount()

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Returns
TypeDescription
int

getPythonPackagesList()

public List<Artifacts.PythonPackage> getPythonPackagesList()

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Returns
TypeDescription
List<PythonPackage>

getPythonPackagesOrBuilder(int index)

public Artifacts.PythonPackageOrBuilder getPythonPackagesOrBuilder(int index)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.PythonPackageOrBuilder

getPythonPackagesOrBuilderList()

public List<? extends Artifacts.PythonPackageOrBuilder> getPythonPackagesOrBuilderList()

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Returns
TypeDescription
List<? extends com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder>

hasObjects()

public boolean hasObjects()

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.

Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials.

The location and generation of the uploaded objects will be stored in the Build resource's results field.

If any objects fail to be pushed, the build is marked FAILURE.

.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;

Returns
TypeDescription
boolean

Whether the objects field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Artifacts other)

public Artifacts.Builder mergeFrom(Artifacts other)
Parameter
NameDescription
otherArtifacts
Returns
TypeDescription
Artifacts.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeObjects(Artifacts.ArtifactObjects value)

public Artifacts.Builder mergeObjects(Artifacts.ArtifactObjects value)

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.

Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials.

The location and generation of the uploaded objects will be stored in the Build resource's results field.

If any objects fail to be pushed, the build is marked FAILURE.

.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;

Parameter
NameDescription
valueArtifacts.ArtifactObjects
Returns
TypeDescription
Artifacts.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMavenArtifacts(int index)

public Artifacts.Builder removeMavenArtifacts(int index)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.Builder

removeNpmPackages(int index)

public Artifacts.Builder removeNpmPackages(int index)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.Builder

removePythonPackages(int index)

public Artifacts.Builder removePythonPackages(int index)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifacts.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setImages(int index, String value)

public Artifacts.Builder setImages(int index, String value)

A list of images to be pushed upon the successful completion of all build steps.

The images will be pushed using the builder service account's credentials.

The digests of the pushed images will be stored in the Build resource's results field.

If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The images to set.

Returns
TypeDescription
Artifacts.Builder

This builder for chaining.

setMavenArtifacts(int index, Artifacts.MavenArtifact value)

public Artifacts.Builder setMavenArtifacts(int index, Artifacts.MavenArtifact value)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameters
NameDescription
indexint
valueArtifacts.MavenArtifact
Returns
TypeDescription
Artifacts.Builder

setMavenArtifacts(int index, Artifacts.MavenArtifact.Builder builderForValue)

public Artifacts.Builder setMavenArtifacts(int index, Artifacts.MavenArtifact.Builder builderForValue)

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any artifacts fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;

Parameters
NameDescription
indexint
builderForValueArtifacts.MavenArtifact.Builder
Returns
TypeDescription
Artifacts.Builder

setNpmPackages(int index, Artifacts.NpmPackage value)

public Artifacts.Builder setNpmPackages(int index, Artifacts.NpmPackage value)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameters
NameDescription
indexint
valueArtifacts.NpmPackage
Returns
TypeDescription
Artifacts.Builder

setNpmPackages(int index, Artifacts.NpmPackage.Builder builderForValue)

public Artifacts.Builder setNpmPackages(int index, Artifacts.NpmPackage.Builder builderForValue)

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

If any packages fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;

Parameters
NameDescription
indexint
builderForValueArtifacts.NpmPackage.Builder
Returns
TypeDescription
Artifacts.Builder

setObjects(Artifacts.ArtifactObjects value)

public Artifacts.Builder setObjects(Artifacts.ArtifactObjects value)

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.

Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials.

The location and generation of the uploaded objects will be stored in the Build resource's results field.

If any objects fail to be pushed, the build is marked FAILURE.

.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;

Parameter
NameDescription
valueArtifacts.ArtifactObjects
Returns
TypeDescription
Artifacts.Builder

setObjects(Artifacts.ArtifactObjects.Builder builderForValue)

public Artifacts.Builder setObjects(Artifacts.ArtifactObjects.Builder builderForValue)

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.

Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials.

The location and generation of the uploaded objects will be stored in the Build resource's results field.

If any objects fail to be pushed, the build is marked FAILURE.

.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;

Parameter
NameDescription
builderForValueArtifacts.ArtifactObjects.Builder
Returns
TypeDescription
Artifacts.Builder

setPythonPackages(int index, Artifacts.PythonPackage value)

public Artifacts.Builder setPythonPackages(int index, Artifacts.PythonPackage value)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameters
NameDescription
indexint
valueArtifacts.PythonPackage
Returns
TypeDescription
Artifacts.Builder

setPythonPackages(int index, Artifacts.PythonPackage.Builder builderForValue)

public Artifacts.Builder setPythonPackages(int index, Artifacts.PythonPackage.Builder builderForValue)

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload.

If any objects fail to be pushed, the build is marked FAILURE.

repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;

Parameters
NameDescription
indexint
builderForValueArtifacts.PythonPackage.Builder
Returns
TypeDescription
Artifacts.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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