Class ArtifactResult.Builder (3.4.1)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 3.4.1keyboard_arrow_down
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
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
Name
Description
values
Iterable <? extends com.google.cloudbuild.v1.FileHashes >
Returns
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
Returns
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
Returns
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
Returns
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
Returns
addFileHashBuilder()
public FileHashes . Builder addFileHashBuilder ()
The file hash of the artifact.
repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
Returns
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
Name
Description
index
int
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ArtifactResult . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public ArtifactResult build ()
Returns
buildPartial()
public ArtifactResult buildPartial ()
Returns
clear()
public ArtifactResult . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ArtifactResult . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearFileHash()
public ArtifactResult . Builder clearFileHash ()
The file hash of the artifact.
repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
Returns
clearLocation()
public ArtifactResult . Builder clearLocation ()
The path of an artifact in a Google Cloud Storage bucket, with the
generation number. For example,
gs://mybucket/path/to/output.jar#generation
.
string location = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ArtifactResult . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public ArtifactResult . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public ArtifactResult getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
Name
Description
index
int
Returns
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
Name
Description
index
int
Returns
getFileHashBuilderList()
public List<FileHashes . Builder > getFileHashBuilderList ()
The file hash of the artifact.
repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
Returns
getFileHashCount()
public int getFileHashCount ()
The file hash of the artifact.
repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
Returns
getFileHashList()
public List<FileHashes> getFileHashList ()
The file hash of the artifact.
repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
Returns
getFileHashOrBuilder(int index)
public FileHashesOrBuilder getFileHashOrBuilder ( int index )
The file hash of the artifact.
repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
Parameter
Name
Description
index
int
Returns
getFileHashOrBuilderList()
public List <? extends FileHashesOrBuilder > getFileHashOrBuilderList ()
The file hash of the artifact.
repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
Returns
Type
Description
List <? extends com.google.cloudbuild.v1.FileHashesOrBuilder >
getLocation()
public String getLocation ()
The path of an artifact in a Google Cloud Storage bucket, with the
generation number. For example,
gs://mybucket/path/to/output.jar#generation
.
string location = 1;
Returns
Type
Description
String
The location.
getLocationBytes()
public ByteString getLocationBytes ()
The path of an artifact in a Google Cloud Storage bucket, with the
generation number. For example,
gs://mybucket/path/to/output.jar#generation
.
string location = 1;
Returns
Type
Description
ByteString
The bytes for location.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(ArtifactResult other)
public ArtifactResult . Builder mergeFrom ( ArtifactResult other )
Parameter
Returns
public ArtifactResult . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ArtifactResult . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ArtifactResult . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Name
Description
index
int
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ArtifactResult . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
Returns
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
Returns
setLocation(String value)
public ArtifactResult . Builder setLocation ( String value )
The path of an artifact in a Google Cloud Storage bucket, with the
generation number. For example,
gs://mybucket/path/to/output.jar#generation
.
string location = 1;
Parameter
Name
Description
value
String
The location to set.
Returns
setLocationBytes(ByteString value)
public ArtifactResult . Builder setLocationBytes ( ByteString value )
The path of an artifact in a Google Cloud Storage bucket, with the
generation number. For example,
gs://mybucket/path/to/output.jar#generation
.
string location = 1;
Parameter
Name
Description
value
ByteString
The bytes for location to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ArtifactResult . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ArtifactResult . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[],[],null,[]]