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.v1beta1.provenance.FileHashes
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllFileHash(Iterable<? extends Hash> values)
public FileHashes.Builder addAllFileHash(Iterable<? extends Hash> values)
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends io.grafeas.v1beta1.provenance.Hash>
|
addFileHash(int index, Hash value)
public FileHashes.Builder addFileHash(int index, Hash value)
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Hash
|
addFileHash(int index, Hash.Builder builderForValue)
public FileHashes.Builder addFileHash(int index, Hash.Builder builderForValue)
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
addFileHash(Hash value)
public FileHashes.Builder addFileHash(Hash value)
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
Parameter |
Name |
Description |
value |
Hash
|
addFileHash(Hash.Builder builderForValue)
public FileHashes.Builder addFileHash(Hash.Builder builderForValue)
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
addFileHashBuilder()
public Hash.Builder addFileHashBuilder()
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
addFileHashBuilder(int index)
public Hash.Builder addFileHashBuilder(int index)
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FileHashes.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public FileHashes build()
buildPartial()
public FileHashes buildPartial()
clear()
public FileHashes.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public FileHashes.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearFileHash()
public FileHashes.Builder clearFileHash()
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public FileHashes.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public FileHashes.Builder clone()
Overrides
getDefaultInstanceForType()
public FileHashes getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFileHash(int index)
public Hash getFileHash(int index)
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.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.v1beta1.provenance.Hash file_hash = 1;
Parameter |
Name |
Description |
index |
int
|
getFileHashBuilderList()
public List<Hash.Builder> getFileHashBuilderList()
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
getFileHashCount()
public int getFileHashCount()
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
Returns |
Type |
Description |
int |
|
getFileHashList()
public List<Hash> getFileHashList()
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
getFileHashOrBuilder(int index)
public HashOrBuilder getFileHashOrBuilder(int index)
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
Parameter |
Name |
Description |
index |
int
|
getFileHashOrBuilderList()
public List<? extends HashOrBuilder> getFileHashOrBuilderList()
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
Returns |
Type |
Description |
List<? extends io.grafeas.v1beta1.provenance.HashOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public FileHashes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public FileHashes.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(FileHashes other)
public FileHashes.Builder mergeFrom(FileHashes other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FileHashes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeFileHash(int index)
public FileHashes.Builder removeFileHash(int index)
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public FileHashes.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setFileHash(int index, Hash value)
public FileHashes.Builder setFileHash(int index, Hash value)
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Hash
|
setFileHash(int index, Hash.Builder builderForValue)
public FileHashes.Builder setFileHash(int index, Hash.Builder builderForValue)
Required. Collection of file hashes.
repeated .grafeas.v1beta1.provenance.Hash file_hash = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FileHashes.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final FileHashes.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides