Class FileHashes (2.19.0)

public final class FileHashes extends GeneratedMessageV3 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.v1beta1.provenance.FileHashes

Implements

FileHashesOrBuilder

Static Fields

FILE_HASH_FIELD_NUMBER

public static final int FILE_HASH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FileHashes getDefaultInstance()
Returns
TypeDescription
FileHashes

getDescriptor()

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

newBuilder()

public static FileHashes.Builder newBuilder()
Returns
TypeDescription
FileHashes.Builder

newBuilder(FileHashes prototype)

public static FileHashes.Builder newBuilder(FileHashes prototype)
Parameter
NameDescription
prototypeFileHashes
Returns
TypeDescription
FileHashes.Builder

parseDelimitedFrom(InputStream input)

public static FileHashes parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileHashes parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FileHashes parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FileHashes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FileHashes parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FileHashes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FileHashes parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FileHashes parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FileHashes parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileHashes parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FileHashes parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FileHashes parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileHashes
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FileHashes> parser()
Returns
TypeDescription
Parser<FileHashes>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public FileHashes getDefaultInstanceForType()
Returns
TypeDescription
FileHashes

getFileHash(int index)

public Hash getFileHash(int index)

Required. Collection of file hashes.

repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Hash

getFileHashCount()

public int getFileHashCount()

Required. Collection of file hashes.

repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;

Returns
TypeDescription
int

getFileHashList()

public List<Hash> getFileHashList()

Required. Collection of file hashes.

repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;

Returns
TypeDescription
List<Hash>

getFileHashOrBuilder(int index)

public HashOrBuilder getFileHashOrBuilder(int index)

Required. Collection of file hashes.

repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
HashOrBuilder

getFileHashOrBuilderList()

public List<? extends HashOrBuilder> getFileHashOrBuilderList()

Required. Collection of file hashes.

repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;

Returns
TypeDescription
List<? extends io.grafeas.v1beta1.provenance.HashOrBuilder>

getParserForType()

public Parser<FileHashes> getParserForType()
Returns
TypeDescription
Parser<FileHashes>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FileHashes.Builder newBuilderForType()
Returns
TypeDescription
FileHashes.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FileHashes.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FileHashes.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FileHashes.Builder toBuilder()
Returns
TypeDescription
FileHashes.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException