Send feedback
Class FileHashes.Builder (3.29.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.29.0 keyboard_arrow_down
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 ()
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 >
addFileHash(Hash value)
public FileHashes . Builder addFileHash ( Hash value )
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameter Name Description value
Hash
addFileHash(Hash.Builder builderForValue)
public FileHashes . Builder addFileHash ( Hash . Builder builderForValue )
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
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 Name Description index
int
value
Hash
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;
addFileHashBuilder()
public Hash . Builder addFileHashBuilder ()
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
addFileHashBuilder(int index)
public Hash . Builder addFileHashBuilder ( int index )
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.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 ()
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.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 )
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameter Name Description index
int
Returns Type Description Hash
getFileHashBuilder(int index)
public Hash . Builder getFileHashBuilder ( int index )
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameter Name Description index
int
getFileHashBuilderList()
public List<Hash . Builder > getFileHashBuilderList ()
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
getFileHashCount()
public int getFileHashCount ()
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Returns Type Description int
getFileHashList()
public List<Hash> getFileHashList ()
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
getFileHashOrBuilder(int index)
public HashOrBuilder getFileHashOrBuilder ( int index )
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.Hash file_hash = 1;
Parameter Name Description index
int
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(FileHashes other)
public FileHashes . Builder mergeFrom ( FileHashes other )
public FileHashes . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public FileHashes . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FileHashes . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
removeFileHash(int index)
public FileHashes . Builder removeFileHash ( int index )
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.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 )
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.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 )
Collection of file hashes.
repeated .google.devtools.cloudbuild.v1.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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]