public static final class FileHashes.Builder extends GeneratedMessageV3.Builder<FileHashes.Builder> implements FileHashesOrBuilder
Container message for hashes of byte content of files, used in
SourceProvenance messages to verify integrity of source input to the build.
Protobuf type google.devtools.cloudbuild.v1.FileHashes
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
addAllFileHash(Iterable<? extends Hash> values)
public FileHashes.Builder addAllFileHash(Iterable<? extends Hash> values)
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloudbuild.v1.Hash>
|
Returns
addFileHash(Hash value)
public FileHashes.Builder addFileHash(Hash value)
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameter
Returns
addFileHash(Hash.Builder builderForValue)
public FileHashes.Builder addFileHash(Hash.Builder builderForValue)
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameter
Returns
addFileHash(int index, Hash value)
public FileHashes.Builder addFileHash(int index, Hash value)
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameters
Returns
addFileHash(int index, Hash.Builder builderForValue)
public FileHashes.Builder addFileHash(int index, Hash.Builder builderForValue)
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameters
Returns
addFileHashBuilder()
public Hash.Builder addFileHashBuilder()
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Returns
addFileHashBuilder(int index)
public Hash.Builder addFileHashBuilder(int index)
Collection of file hashes.
repeated .google.devtools.cloudbuild.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()
Collection of file hashes.
repeated .google.devtools.cloudbuild.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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFileHash(int index)
public Hash getFileHash(int index)
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameter
Returns
getFileHashBuilder(int index)
public Hash.Builder getFileHashBuilder(int index)
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameter
Returns
getFileHashBuilderList()
public List<Hash.Builder> getFileHashBuilderList()
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Returns
getFileHashCount()
public int getFileHashCount()
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Returns
getFileHashList()
public List<Hash> getFileHashList()
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Returns
getFileHashOrBuilder(int index)
public HashOrBuilder getFileHashOrBuilder(int index)
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameter
Returns
getFileHashOrBuilderList()
public List<? extends HashOrBuilder> getFileHashOrBuilderList()
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Returns
Type | Description |
List<? extends com.google.cloudbuild.v1.HashOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(FileHashes other)
public FileHashes.Builder mergeFrom(FileHashes other)
Parameter
Returns
public FileHashes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public FileHashes.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FileHashes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeFileHash(int index)
public FileHashes.Builder removeFileHash(int index)
Collection of file hashes.
repeated .google.devtools.cloudbuild.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)
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameters
Returns
setFileHash(int index, Hash.Builder builderForValue)
public FileHashes.Builder setFileHash(int index, Hash.Builder builderForValue)
Collection of file hashes.
repeated .google.devtools.cloudbuild.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