Class FileHashes.Builder (2.7.0)

Stay organized with collections Save and categorize content based on your preferences.
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
TypeDescription
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
NameDescription
valuesIterable<? extends io.grafeas.v1.Hash>
Returns
TypeDescription
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
NameDescription
indexint
valueHash
Returns
TypeDescription
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
NameDescription
indexint
builderForValueHash.Builder
Returns
TypeDescription
FileHashes.Builder

addFileHash(Hash value)

public FileHashes.Builder addFileHash(Hash value)

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
NameDescription
valueHash
Returns
TypeDescription
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
NameDescription
builderForValueHash.Builder
Returns
TypeDescription
FileHashes.Builder

addFileHashBuilder()

public Hash.Builder addFileHashBuilder()

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Returns
TypeDescription
Hash.Builder

addFileHashBuilder(int index)

public Hash.Builder addFileHashBuilder(int index)

Required. Collection of file hashes.

repeated .grafeas.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()

Required. Collection of file hashes.

repeated .grafeas.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)

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Hash

getFileHashBuilder(int index)

public Hash.Builder getFileHashBuilder(int index)

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Hash.Builder

getFileHashBuilderList()

public List<Hash.Builder> getFileHashBuilderList()

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Returns
TypeDescription
List<Builder>

getFileHashCount()

public int getFileHashCount()

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Returns
TypeDescription
int

getFileHashList()

public List<Hash> getFileHashList()

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Returns
TypeDescription
List<Hash>

getFileHashOrBuilder(int index)

public HashOrBuilder getFileHashOrBuilder(int index)

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
HashOrBuilder

getFileHashOrBuilderList()

public List<? extends HashOrBuilder> getFileHashOrBuilderList()

Required. Collection of file hashes.

repeated .grafeas.v1.Hash file_hash = 1;

Returns
TypeDescription
List<? extends io.grafeas.v1.HashOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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

mergeFrom(FileHashes other)

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

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)

Required. Collection of file hashes.

repeated .grafeas.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)

Required. Collection of file hashes.

repeated .grafeas.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)

Required. Collection of file hashes.

repeated .grafeas.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