Class FileHashes.Builder (3.5.1)

public static final class FileHashes.Builder extends GeneratedMessageV3.Builder<FileHashes.Builder> implements FileHashesOrBuilder

Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.

Protobuf type google.devtools.cloudbuild.v1.FileHashes

Implements

FileHashesOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllFileHash(Iterable<? extends Hash> values)

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

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

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

addFileHash(Hash value)

public FileHashes.Builder addFileHash(Hash value)

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Parameter
NameDescription
valueHash
Returns
TypeDescription
FileHashes.Builder

addFileHash(Hash.Builder builderForValue)

public FileHashes.Builder addFileHash(Hash.Builder builderForValue)

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Parameter
NameDescription
builderForValueHash.Builder
Returns
TypeDescription
FileHashes.Builder

addFileHash(int index, Hash value)

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

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Parameters
NameDescription
indexint
valueHash
Returns
TypeDescription
FileHashes.Builder

addFileHash(int index, Hash.Builder builderForValue)

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

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Parameters
NameDescription
indexint
builderForValueHash.Builder
Returns
TypeDescription
FileHashes.Builder

addFileHashBuilder()

public Hash.Builder addFileHashBuilder()

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Returns
TypeDescription
Hash.Builder

addFileHashBuilder(int index)

public Hash.Builder addFileHashBuilder(int index)

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Hash.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FileHashes build()
Returns
TypeDescription
FileHashes

buildPartial()

public FileHashes buildPartial()
Returns
TypeDescription
FileHashes

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFileHash()

public FileHashes.Builder clearFileHash()

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Returns
TypeDescription
FileHashes.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public FileHashes getDefaultInstanceForType()
Returns
TypeDescription
FileHashes

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFileHash(int index)

public Hash getFileHash(int index)

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Hash

getFileHashBuilder(int index)

public Hash.Builder getFileHashBuilder(int index)

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Hash.Builder

getFileHashBuilderList()

public List<Hash.Builder> getFileHashBuilderList()

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Returns
TypeDescription
List<Builder>

getFileHashCount()

public int getFileHashCount()

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Returns
TypeDescription
int

getFileHashList()

public List<Hash> getFileHashList()

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Returns
TypeDescription
List<Hash>

getFileHashOrBuilder(int index)

public HashOrBuilder getFileHashOrBuilder(int index)

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
HashOrBuilder

getFileHashOrBuilderList()

public List<? extends HashOrBuilder> getFileHashOrBuilderList()

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FileHashes other)

public FileHashes.Builder mergeFrom(FileHashes other)
Parameter
NameDescription
otherFileHashes
Returns
TypeDescription
FileHashes.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFileHash(int index)

public FileHashes.Builder removeFileHash(int index)

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileHashes.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileHash(int index, Hash value)

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

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Parameters
NameDescription
indexint
valueHash
Returns
TypeDescription
FileHashes.Builder

setFileHash(int index, Hash.Builder builderForValue)

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

Collection of file hashes.

repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;

Parameters
NameDescription
indexint
builderForValueHash.Builder
Returns
TypeDescription
FileHashes.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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