Class ArtifactResult.Builder (3.34.0)

public static final class ArtifactResult.Builder extends GeneratedMessageV3.Builder<ArtifactResult.Builder> implements ArtifactResultOrBuilder

An artifact that was uploaded during a build. This is a single record in the artifact manifest JSON file.

Protobuf type google.devtools.cloudbuild.v1.ArtifactResult

Static Methods

getDescriptor()

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

Methods

addAllFileHash(Iterable<? extends FileHashes> values)

public ArtifactResult.Builder addAllFileHash(Iterable<? extends FileHashes> values)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloudbuild.v1.FileHashes>
Returns
TypeDescription
ArtifactResult.Builder

addFileHash(FileHashes value)

public ArtifactResult.Builder addFileHash(FileHashes value)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameter
NameDescription
valueFileHashes
Returns
TypeDescription
ArtifactResult.Builder

addFileHash(FileHashes.Builder builderForValue)

public ArtifactResult.Builder addFileHash(FileHashes.Builder builderForValue)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameter
NameDescription
builderForValueFileHashes.Builder
Returns
TypeDescription
ArtifactResult.Builder

addFileHash(int index, FileHashes value)

public ArtifactResult.Builder addFileHash(int index, FileHashes value)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameters
NameDescription
indexint
valueFileHashes
Returns
TypeDescription
ArtifactResult.Builder

addFileHash(int index, FileHashes.Builder builderForValue)

public ArtifactResult.Builder addFileHash(int index, FileHashes.Builder builderForValue)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameters
NameDescription
indexint
builderForValueFileHashes.Builder
Returns
TypeDescription
ArtifactResult.Builder

addFileHashBuilder()

public FileHashes.Builder addFileHashBuilder()

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Returns
TypeDescription
FileHashes.Builder

addFileHashBuilder(int index)

public FileHashes.Builder addFileHashBuilder(int index)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileHashes.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ArtifactResult build()
Returns
TypeDescription
ArtifactResult

buildPartial()

public ArtifactResult buildPartial()
Returns
TypeDescription
ArtifactResult

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFileHash()

public ArtifactResult.Builder clearFileHash()

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Returns
TypeDescription
ArtifactResult.Builder

clearLocation()

public ArtifactResult.Builder clearLocation()

The path of an artifact in a Cloud Storage bucket, with the generation number. For example, gs://mybucket/path/to/output.jar#generation.

string location = 1;

Returns
TypeDescription
ArtifactResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ArtifactResult getDefaultInstanceForType()
Returns
TypeDescription
ArtifactResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFileHash(int index)

public FileHashes getFileHash(int index)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileHashes

getFileHashBuilder(int index)

public FileHashes.Builder getFileHashBuilder(int index)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileHashes.Builder

getFileHashBuilderList()

public List<FileHashes.Builder> getFileHashBuilderList()

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Returns
TypeDescription
List<Builder>

getFileHashCount()

public int getFileHashCount()

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Returns
TypeDescription
int

getFileHashList()

public List<FileHashes> getFileHashList()

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Returns
TypeDescription
List<FileHashes>

getFileHashOrBuilder(int index)

public FileHashesOrBuilder getFileHashOrBuilder(int index)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileHashesOrBuilder

getFileHashOrBuilderList()

public List<? extends FileHashesOrBuilder> getFileHashOrBuilderList()

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

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

getLocation()

public String getLocation()

The path of an artifact in a Cloud Storage bucket, with the generation number. For example, gs://mybucket/path/to/output.jar#generation.

string location = 1;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The path of an artifact in a Cloud Storage bucket, with the generation number. For example, gs://mybucket/path/to/output.jar#generation.

string location = 1;

Returns
TypeDescription
ByteString

The bytes for location.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ArtifactResult other)

public ArtifactResult.Builder mergeFrom(ArtifactResult other)
Parameter
NameDescription
otherArtifactResult
Returns
TypeDescription
ArtifactResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFileHash(int index)

public ArtifactResult.Builder removeFileHash(int index)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ArtifactResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileHash(int index, FileHashes value)

public ArtifactResult.Builder setFileHash(int index, FileHashes value)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameters
NameDescription
indexint
valueFileHashes
Returns
TypeDescription
ArtifactResult.Builder

setFileHash(int index, FileHashes.Builder builderForValue)

public ArtifactResult.Builder setFileHash(int index, FileHashes.Builder builderForValue)

The file hash of the artifact.

repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;

Parameters
NameDescription
indexint
builderForValueFileHashes.Builder
Returns
TypeDescription
ArtifactResult.Builder

setLocation(String value)

public ArtifactResult.Builder setLocation(String value)

The path of an artifact in a Cloud Storage bucket, with the generation number. For example, gs://mybucket/path/to/output.jar#generation.

string location = 1;

Parameter
NameDescription
valueString

The location to set.

Returns
TypeDescription
ArtifactResult.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public ArtifactResult.Builder setLocationBytes(ByteString value)

The path of an artifact in a Cloud Storage bucket, with the generation number. For example, gs://mybucket/path/to/output.jar#generation.

string location = 1;

Parameter
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
ArtifactResult.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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