Class Results.Builder (0.14.1)

public static final class Results.Builder extends GeneratedMessageV3.Builder<Results.Builder> implements ResultsOrBuilder

Artifacts created by the build pipeline.

Protobuf type google.events.cloud.cloudbuild.v1.Results

Implements

ResultsOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllBuildStepImages(Iterable<String> values)

public Results.Builder addAllBuildStepImages(Iterable<String> values)

List of build step digests, in the order corresponding to build step indices.

repeated string build_step_images = 3;

Parameter
NameDescription
valuesIterable<String>

The buildStepImages to add.

Returns
TypeDescription
Results.Builder

This builder for chaining.

addAllBuildStepOutputs(Iterable<? extends ByteString> values)

public Results.Builder addAllBuildStepOutputs(Iterable<? extends ByteString> values)

List of build step outputs, produced by builder images, in the order corresponding to build step indices. Cloud Builders can produce this output by writing to $BUILDER_OUTPUT/output. Only the first 4KB of data is stored.

repeated bytes build_step_outputs = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.ByteString>

The buildStepOutputs to add.

Returns
TypeDescription
Results.Builder

This builder for chaining.

addAllImages(Iterable<? extends BuiltImage> values)

public Results.Builder addAllImages(Iterable<? extends BuiltImage> values)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.events.cloud.cloudbuild.v1.BuiltImage>
Returns
TypeDescription
Results.Builder

addBuildStepImages(String value)

public Results.Builder addBuildStepImages(String value)

List of build step digests, in the order corresponding to build step indices.

repeated string build_step_images = 3;

Parameter
NameDescription
valueString

The buildStepImages to add.

Returns
TypeDescription
Results.Builder

This builder for chaining.

addBuildStepImagesBytes(ByteString value)

public Results.Builder addBuildStepImagesBytes(ByteString value)

List of build step digests, in the order corresponding to build step indices.

repeated string build_step_images = 3;

Parameter
NameDescription
valueByteString

The bytes of the buildStepImages to add.

Returns
TypeDescription
Results.Builder

This builder for chaining.

addBuildStepOutputs(ByteString value)

public Results.Builder addBuildStepOutputs(ByteString value)

List of build step outputs, produced by builder images, in the order corresponding to build step indices. Cloud Builders can produce this output by writing to $BUILDER_OUTPUT/output. Only the first 4KB of data is stored.

repeated bytes build_step_outputs = 6;

Parameter
NameDescription
valueByteString

The buildStepOutputs to add.

Returns
TypeDescription
Results.Builder

This builder for chaining.

addImages(BuiltImage value)

public Results.Builder addImages(BuiltImage value)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameter
NameDescription
valueBuiltImage
Returns
TypeDescription
Results.Builder

addImages(BuiltImage.Builder builderForValue)

public Results.Builder addImages(BuiltImage.Builder builderForValue)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameter
NameDescription
builderForValueBuiltImage.Builder
Returns
TypeDescription
Results.Builder

addImages(int index, BuiltImage value)

public Results.Builder addImages(int index, BuiltImage value)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameters
NameDescription
indexint
valueBuiltImage
Returns
TypeDescription
Results.Builder

addImages(int index, BuiltImage.Builder builderForValue)

public Results.Builder addImages(int index, BuiltImage.Builder builderForValue)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameters
NameDescription
indexint
builderForValueBuiltImage.Builder
Returns
TypeDescription
Results.Builder

addImagesBuilder()

public BuiltImage.Builder addImagesBuilder()

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Returns
TypeDescription
BuiltImage.Builder

addImagesBuilder(int index)

public BuiltImage.Builder addImagesBuilder(int index)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
BuiltImage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Results build()
Returns
TypeDescription
Results

buildPartial()

public Results buildPartial()
Returns
TypeDescription
Results

clear()

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

clearArtifactManifest()

public Results.Builder clearArtifactManifest()

Path to the artifact manifest. Only populated when artifacts are uploaded.

string artifact_manifest = 4;

Returns
TypeDescription
Results.Builder

This builder for chaining.

clearArtifactTiming()

public Results.Builder clearArtifactTiming()

Time to push all non-container artifacts.

.google.events.cloud.cloudbuild.v1.TimeSpan artifact_timing = 7;

Returns
TypeDescription
Results.Builder

clearBuildStepImages()

public Results.Builder clearBuildStepImages()

List of build step digests, in the order corresponding to build step indices.

repeated string build_step_images = 3;

Returns
TypeDescription
Results.Builder

This builder for chaining.

clearBuildStepOutputs()

public Results.Builder clearBuildStepOutputs()

List of build step outputs, produced by builder images, in the order corresponding to build step indices. Cloud Builders can produce this output by writing to $BUILDER_OUTPUT/output. Only the first 4KB of data is stored.

repeated bytes build_step_outputs = 6;

Returns
TypeDescription
Results.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearImages()

public Results.Builder clearImages()

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Returns
TypeDescription
Results.Builder

clearNumArtifacts()

public Results.Builder clearNumArtifacts()

Number of artifacts uploaded. Only populated when artifacts are uploaded.

int64 num_artifacts = 5;

Returns
TypeDescription
Results.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getArtifactManifest()

public String getArtifactManifest()

Path to the artifact manifest. Only populated when artifacts are uploaded.

string artifact_manifest = 4;

Returns
TypeDescription
String

The artifactManifest.

getArtifactManifestBytes()

public ByteString getArtifactManifestBytes()

Path to the artifact manifest. Only populated when artifacts are uploaded.

string artifact_manifest = 4;

Returns
TypeDescription
ByteString

The bytes for artifactManifest.

getArtifactTiming()

public TimeSpan getArtifactTiming()

Time to push all non-container artifacts.

.google.events.cloud.cloudbuild.v1.TimeSpan artifact_timing = 7;

Returns
TypeDescription
TimeSpan

The artifactTiming.

getArtifactTimingBuilder()

public TimeSpan.Builder getArtifactTimingBuilder()

Time to push all non-container artifacts.

.google.events.cloud.cloudbuild.v1.TimeSpan artifact_timing = 7;

Returns
TypeDescription
TimeSpan.Builder

getArtifactTimingOrBuilder()

public TimeSpanOrBuilder getArtifactTimingOrBuilder()

Time to push all non-container artifacts.

.google.events.cloud.cloudbuild.v1.TimeSpan artifact_timing = 7;

Returns
TypeDescription
TimeSpanOrBuilder

getBuildStepImages(int index)

public String getBuildStepImages(int index)

List of build step digests, in the order corresponding to build step indices.

repeated string build_step_images = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The buildStepImages at the given index.

getBuildStepImagesBytes(int index)

public ByteString getBuildStepImagesBytes(int index)

List of build step digests, in the order corresponding to build step indices.

repeated string build_step_images = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the buildStepImages at the given index.

getBuildStepImagesCount()

public int getBuildStepImagesCount()

List of build step digests, in the order corresponding to build step indices.

repeated string build_step_images = 3;

Returns
TypeDescription
int

The count of buildStepImages.

getBuildStepImagesList()

public ProtocolStringList getBuildStepImagesList()

List of build step digests, in the order corresponding to build step indices.

repeated string build_step_images = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the buildStepImages.

getBuildStepOutputs(int index)

public ByteString getBuildStepOutputs(int index)

List of build step outputs, produced by builder images, in the order corresponding to build step indices. Cloud Builders can produce this output by writing to $BUILDER_OUTPUT/output. Only the first 4KB of data is stored.

repeated bytes build_step_outputs = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ByteString

The buildStepOutputs at the given index.

getBuildStepOutputsCount()

public int getBuildStepOutputsCount()

List of build step outputs, produced by builder images, in the order corresponding to build step indices. Cloud Builders can produce this output by writing to $BUILDER_OUTPUT/output. Only the first 4KB of data is stored.

repeated bytes build_step_outputs = 6;

Returns
TypeDescription
int

The count of buildStepOutputs.

getBuildStepOutputsList()

public List<ByteString> getBuildStepOutputsList()

List of build step outputs, produced by builder images, in the order corresponding to build step indices. Cloud Builders can produce this output by writing to $BUILDER_OUTPUT/output. Only the first 4KB of data is stored.

repeated bytes build_step_outputs = 6;

Returns
TypeDescription
List<ByteString>

A list containing the buildStepOutputs.

getDefaultInstanceForType()

public Results getDefaultInstanceForType()
Returns
TypeDescription
Results

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImages(int index)

public BuiltImage getImages(int index)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
BuiltImage

getImagesBuilder(int index)

public BuiltImage.Builder getImagesBuilder(int index)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
BuiltImage.Builder

getImagesBuilderList()

public List<BuiltImage.Builder> getImagesBuilderList()

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Returns
TypeDescription
List<Builder>

getImagesCount()

public int getImagesCount()

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Returns
TypeDescription
int

getImagesList()

public List<BuiltImage> getImagesList()

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Returns
TypeDescription
List<BuiltImage>

getImagesOrBuilder(int index)

public BuiltImageOrBuilder getImagesOrBuilder(int index)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
BuiltImageOrBuilder

getImagesOrBuilderList()

public List<? extends BuiltImageOrBuilder> getImagesOrBuilderList()

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Returns
TypeDescription
List<? extends com.google.events.cloud.cloudbuild.v1.BuiltImageOrBuilder>

getNumArtifacts()

public long getNumArtifacts()

Number of artifacts uploaded. Only populated when artifacts are uploaded.

int64 num_artifacts = 5;

Returns
TypeDescription
long

The numArtifacts.

hasArtifactTiming()

public boolean hasArtifactTiming()

Time to push all non-container artifacts.

.google.events.cloud.cloudbuild.v1.TimeSpan artifact_timing = 7;

Returns
TypeDescription
boolean

Whether the artifactTiming field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeArtifactTiming(TimeSpan value)

public Results.Builder mergeArtifactTiming(TimeSpan value)

Time to push all non-container artifacts.

.google.events.cloud.cloudbuild.v1.TimeSpan artifact_timing = 7;

Parameter
NameDescription
valueTimeSpan
Returns
TypeDescription
Results.Builder

mergeFrom(Results other)

public Results.Builder mergeFrom(Results other)
Parameter
NameDescription
otherResults
Returns
TypeDescription
Results.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeImages(int index)

public Results.Builder removeImages(int index)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Results.Builder

setArtifactManifest(String value)

public Results.Builder setArtifactManifest(String value)

Path to the artifact manifest. Only populated when artifacts are uploaded.

string artifact_manifest = 4;

Parameter
NameDescription
valueString

The artifactManifest to set.

Returns
TypeDescription
Results.Builder

This builder for chaining.

setArtifactManifestBytes(ByteString value)

public Results.Builder setArtifactManifestBytes(ByteString value)

Path to the artifact manifest. Only populated when artifacts are uploaded.

string artifact_manifest = 4;

Parameter
NameDescription
valueByteString

The bytes for artifactManifest to set.

Returns
TypeDescription
Results.Builder

This builder for chaining.

setArtifactTiming(TimeSpan value)

public Results.Builder setArtifactTiming(TimeSpan value)

Time to push all non-container artifacts.

.google.events.cloud.cloudbuild.v1.TimeSpan artifact_timing = 7;

Parameter
NameDescription
valueTimeSpan
Returns
TypeDescription
Results.Builder

setArtifactTiming(TimeSpan.Builder builderForValue)

public Results.Builder setArtifactTiming(TimeSpan.Builder builderForValue)

Time to push all non-container artifacts.

.google.events.cloud.cloudbuild.v1.TimeSpan artifact_timing = 7;

Parameter
NameDescription
builderForValueTimeSpan.Builder
Returns
TypeDescription
Results.Builder

setBuildStepImages(int index, String value)

public Results.Builder setBuildStepImages(int index, String value)

List of build step digests, in the order corresponding to build step indices.

repeated string build_step_images = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The buildStepImages to set.

Returns
TypeDescription
Results.Builder

This builder for chaining.

setBuildStepOutputs(int index, ByteString value)

public Results.Builder setBuildStepOutputs(int index, ByteString value)

List of build step outputs, produced by builder images, in the order corresponding to build step indices. Cloud Builders can produce this output by writing to $BUILDER_OUTPUT/output. Only the first 4KB of data is stored.

repeated bytes build_step_outputs = 6;

Parameters
NameDescription
indexint

The index to set the value at.

valueByteString

The buildStepOutputs to set.

Returns
TypeDescription
Results.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setImages(int index, BuiltImage value)

public Results.Builder setImages(int index, BuiltImage value)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameters
NameDescription
indexint
valueBuiltImage
Returns
TypeDescription
Results.Builder

setImages(int index, BuiltImage.Builder builderForValue)

public Results.Builder setImages(int index, BuiltImage.Builder builderForValue)

Container images that were built as a part of the build.

repeated .google.events.cloud.cloudbuild.v1.BuiltImage images = 2;

Parameters
NameDescription
indexint
builderForValueBuiltImage.Builder
Returns
TypeDescription
Results.Builder

setNumArtifacts(long value)

public Results.Builder setNumArtifacts(long value)

Number of artifacts uploaded. Only populated when artifacts are uploaded.

int64 num_artifacts = 5;

Parameter
NameDescription
valuelong

The numArtifacts to set.

Returns
TypeDescription
Results.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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