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
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
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
Returns
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
Returns
addFileHash(Hash value)
public FileHashes.Builder addFileHash(Hash value)
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Parameter
Returns
addFileHash(Hash.Builder builderForValue)
public FileHashes.Builder addFileHash(Hash.Builder builderForValue)
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Parameter
Returns
addFileHashBuilder()
public Hash.Builder addFileHashBuilder()
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Returns
addFileHashBuilder(int index)
public Hash.Builder addFileHashBuilder(int index)
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FileHashes.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public FileHashes build()
Returns
buildPartial()
public FileHashes buildPartial()
Returns
clear()
public FileHashes.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public FileHashes.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFileHash()
public FileHashes.Builder clearFileHash()
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public FileHashes.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public FileHashes.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public FileHashes getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFileHash(int index)
public Hash getFileHash(int index)
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Parameter
Returns
getFileHashBuilder(int index)
public Hash.Builder getFileHashBuilder(int index)
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Parameter
Returns
getFileHashBuilderList()
public List<Hash.Builder> getFileHashBuilderList()
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Returns
getFileHashCount()
public int getFileHashCount()
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Returns
getFileHashList()
public List<Hash> getFileHashList()
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Returns
getFileHashOrBuilder(int index)
public HashOrBuilder getFileHashOrBuilder(int index)
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Parameter
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public FileHashes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public FileHashes.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(FileHashes other)
public FileHashes.Builder mergeFrom(FileHashes other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FileHashes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeFileHash(int index)
public FileHashes.Builder removeFileHash(int index)
Required. Collection of file hashes.
repeated .grafeas.v1.Hash file_hash = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public FileHashes.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FileHashes.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final FileHashes.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides