Class Artifacts.Builder (3.7.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.

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.

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.

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

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.

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

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

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.

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

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