Class FileHashes.Builder (2.44.0)

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

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

Protobuf type grafeas.v1.FileHashes

Implements

FileHashesOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllFileHash(Iterable<? extends Hash> values)

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

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1.Hash>
Returns
Type Description
FileHashes.Builder

addFileHash(int index, Hash value)

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

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameters
Name Description
index int
value Hash
Returns
Type Description
FileHashes.Builder

addFileHash(int index, Hash.Builder builderForValue)

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

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameters
Name Description
index int
builderForValue Hash.Builder
Returns
Type Description
FileHashes.Builder

addFileHash(Hash value)

public FileHashes.Builder addFileHash(Hash value)

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
Name Description
value Hash
Returns
Type Description
FileHashes.Builder

addFileHash(Hash.Builder builderForValue)

public FileHashes.Builder addFileHash(Hash.Builder builderForValue)

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
Name Description
builderForValue Hash.Builder
Returns
Type Description
FileHashes.Builder

addFileHashBuilder()

public Hash.Builder addFileHashBuilder()

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Returns
Type Description
Hash.Builder

addFileHashBuilder(int index)

public Hash.Builder addFileHashBuilder(int index)

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
Name Description
index int
Returns
Type Description
Hash.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FileHashes.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FileHashes.Builder
Overrides

build()

public FileHashes build()
Returns
Type Description
FileHashes

buildPartial()

public FileHashes buildPartial()
Returns
Type Description
FileHashes

clear()

public FileHashes.Builder clear()
Returns
Type Description
FileHashes.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FileHashes.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FileHashes.Builder
Overrides

clearFileHash()

public FileHashes.Builder clearFileHash()

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Returns
Type Description
FileHashes.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public FileHashes.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FileHashes.Builder
Overrides

clone()

public FileHashes.Builder clone()
Returns
Type Description
FileHashes.Builder
Overrides

getDefaultInstanceForType()

public FileHashes getDefaultInstanceForType()
Returns
Type Description
FileHashes

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFileHash(int index)

public Hash getFileHash(int index)

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
Name Description
index int
Returns
Type Description
Hash

getFileHashBuilder(int index)

public Hash.Builder getFileHashBuilder(int index)

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
Name Description
index int
Returns
Type Description
Hash.Builder

getFileHashBuilderList()

public List<Hash.Builder> getFileHashBuilderList()

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Returns
Type Description
List<Builder>

getFileHashCount()

public int getFileHashCount()

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Returns
Type Description
int

getFileHashList()

public List<Hash> getFileHashList()

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Returns
Type Description
List<Hash>

getFileHashOrBuilder(int index)

public HashOrBuilder getFileHashOrBuilder(int index)

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
Name Description
index int
Returns
Type Description
HashOrBuilder

getFileHashOrBuilderList()

public List<? extends HashOrBuilder> getFileHashOrBuilderList()

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Returns
Type Description
List<? extends io.grafeas.v1.HashOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FileHashes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileHashes.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FileHashes.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FileHashes.Builder
Overrides

mergeFrom(FileHashes other)

public FileHashes.Builder mergeFrom(FileHashes other)
Parameter
Name Description
other FileHashes
Returns
Type Description
FileHashes.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FileHashes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FileHashes.Builder
Overrides

removeFileHash(int index)

public FileHashes.Builder removeFileHash(int index)

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
Name Description
index int
Returns
Type Description
FileHashes.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FileHashes.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FileHashes.Builder
Overrides

setFileHash(int index, Hash value)

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

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameters
Name Description
index int
value Hash
Returns
Type Description
FileHashes.Builder

setFileHash(int index, Hash.Builder builderForValue)

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

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameters
Name Description
index int
builderForValue Hash.Builder
Returns
Type Description
FileHashes.Builder

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

public FileHashes.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FileHashes.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FileHashes.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FileHashes.Builder
Overrides