- 2.86.0 (latest)
- 2.84.0
- 2.83.0
- 2.82.0
- 2.81.0
- 2.80.0
- 2.78.0
- 2.76.0
- 2.75.0
- 2.72.0
- 2.71.0
- 2.70.0
- 2.68.0
- 2.67.0
- 2.66.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.1
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.1
- 2.6.0
- 2.5.6
- 2.3.2
public static final class File.Builder extends GeneratedMessageV3.Builder<File.Builder> implements FileOrBuilderFile information about the related binary/library used by an executable, or the script used by a script interpreter
 Protobuf type google.cloud.securitycenter.v2.File
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > File.BuilderImplements
FileOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addAllOperations(Iterable<? extends File.FileOperation> values)
public File.Builder addAllOperations(Iterable<? extends File.FileOperation> values)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameter | |
|---|---|
| Name | Description | 
| values | Iterable<? extends com.google.cloud.securitycenter.v2.File.FileOperation> | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
addOperations(File.FileOperation value)
public File.Builder addOperations(File.FileOperation value)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameter | |
|---|---|
| Name | Description | 
| value | File.FileOperation | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
addOperations(File.FileOperation.Builder builderForValue)
public File.Builder addOperations(File.FileOperation.Builder builderForValue)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | File.FileOperation.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
addOperations(int index, File.FileOperation value)
public File.Builder addOperations(int index, File.FileOperation value)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | File.FileOperation | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
addOperations(int index, File.FileOperation.Builder builderForValue)
public File.Builder addOperations(int index, File.FileOperation.Builder builderForValue)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | File.FileOperation.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
addOperationsBuilder()
public File.FileOperation.Builder addOperationsBuilder()Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Returns | |
|---|---|
| Type | Description | 
| File.FileOperation.Builder | |
addOperationsBuilder(int index)
public File.FileOperation.Builder addOperationsBuilder(int index)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| File.FileOperation.Builder | |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public File.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
build()
public File build()| Returns | |
|---|---|
| Type | Description | 
| File | |
buildPartial()
public File buildPartial()| Returns | |
|---|---|
| Type | Description | 
| File | |
clear()
public File.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
clearContents()
public File.Builder clearContents()Prefix of the file contents as a JSON-encoded string.
 string contents = 6;
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
clearDiskPath()
public File.Builder clearDiskPath()Path of the file in terms of underlying disk/partition identifiers.
 .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7;
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
clearField(Descriptors.FieldDescriptor field)
public File.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
clearHashedSize()
public File.Builder clearHashedSize()The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
 int64 hashed_size = 4;
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
clearOneof(Descriptors.OneofDescriptor oneof)
public File.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
clearOperations()
public File.Builder clearOperations()Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
clearPartiallyHashed()
public File.Builder clearPartiallyHashed()True when the hash covers only a prefix of the file.
 bool partially_hashed = 5;
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
clearPath()
public File.Builder clearPath()Absolute path of the file as a JSON encoded string.
 string path = 1;
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
clearSha256()
public File.Builder clearSha256()SHA256 hash of the first hashed_size bytes of the file encoded as a hex string. If hashed_size == size, sha256 represents the SHA256 hash of the entire file.
 string sha256 = 3;
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
clearSize()
public File.Builder clearSize()Size of the file in bytes.
 int64 size = 2;
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
clone()
public File.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
getContents()
public String getContents()Prefix of the file contents as a JSON-encoded string.
 string contents = 6;
| Returns | |
|---|---|
| Type | Description | 
| String | The contents. | 
getContentsBytes()
public ByteString getContentsBytes()Prefix of the file contents as a JSON-encoded string.
 string contents = 6;
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for contents. | 
getDefaultInstanceForType()
public File getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
| File | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
getDiskPath()
public File.DiskPath getDiskPath()Path of the file in terms of underlying disk/partition identifiers.
 .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7;
| Returns | |
|---|---|
| Type | Description | 
| File.DiskPath | The diskPath. | 
getDiskPathBuilder()
public File.DiskPath.Builder getDiskPathBuilder()Path of the file in terms of underlying disk/partition identifiers.
 .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7;
| Returns | |
|---|---|
| Type | Description | 
| File.DiskPath.Builder | |
getDiskPathOrBuilder()
public File.DiskPathOrBuilder getDiskPathOrBuilder()Path of the file in terms of underlying disk/partition identifiers.
 .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7;
| Returns | |
|---|---|
| Type | Description | 
| File.DiskPathOrBuilder | |
getHashedSize()
public long getHashedSize()The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
 int64 hashed_size = 4;
| Returns | |
|---|---|
| Type | Description | 
| long | The hashedSize. | 
getOperations(int index)
public File.FileOperation getOperations(int index)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| File.FileOperation | |
getOperationsBuilder(int index)
public File.FileOperation.Builder getOperationsBuilder(int index)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| File.FileOperation.Builder | |
getOperationsBuilderList()
public List<File.FileOperation.Builder> getOperationsBuilderList()Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Returns | |
|---|---|
| Type | Description | 
| List<Builder> | |
getOperationsCount()
public int getOperationsCount()Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Returns | |
|---|---|
| Type | Description | 
| int | |
getOperationsList()
public List<File.FileOperation> getOperationsList()Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Returns | |
|---|---|
| Type | Description | 
| List<FileOperation> | |
getOperationsOrBuilder(int index)
public File.FileOperationOrBuilder getOperationsOrBuilder(int index)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| File.FileOperationOrBuilder | |
getOperationsOrBuilderList()
public List<? extends File.FileOperationOrBuilder> getOperationsOrBuilderList()Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Returns | |
|---|---|
| Type | Description | 
| List<? extends com.google.cloud.securitycenter.v2.File.FileOperationOrBuilder> | |
getPartiallyHashed()
public boolean getPartiallyHashed()True when the hash covers only a prefix of the file.
 bool partially_hashed = 5;
| Returns | |
|---|---|
| Type | Description | 
| boolean | The partiallyHashed. | 
getPath()
public String getPath()Absolute path of the file as a JSON encoded string.
 string path = 1;
| Returns | |
|---|---|
| Type | Description | 
| String | The path. | 
getPathBytes()
public ByteString getPathBytes()Absolute path of the file as a JSON encoded string.
 string path = 1;
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for path. | 
getSha256()
public String getSha256()SHA256 hash of the first hashed_size bytes of the file encoded as a hex string. If hashed_size == size, sha256 represents the SHA256 hash of the entire file.
 string sha256 = 3;
| Returns | |
|---|---|
| Type | Description | 
| String | The sha256. | 
getSha256Bytes()
public ByteString getSha256Bytes()SHA256 hash of the first hashed_size bytes of the file encoded as a hex string. If hashed_size == size, sha256 represents the SHA256 hash of the entire file.
 string sha256 = 3;
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for sha256. | 
getSize()
public long getSize()Size of the file in bytes.
 int64 size = 2;
| Returns | |
|---|---|
| Type | Description | 
| long | The size. | 
hasDiskPath()
public boolean hasDiskPath()Path of the file in terms of underlying disk/partition identifiers.
 .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7;
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the diskPath field is set. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeDiskPath(File.DiskPath value)
public File.Builder mergeDiskPath(File.DiskPath value)Path of the file in terms of underlying disk/partition identifiers.
 .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7;
| Parameter | |
|---|---|
| Name | Description | 
| value | File.DiskPath | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
mergeFrom(File other)
public File.Builder mergeFrom(File other)| Parameter | |
|---|---|
| Name | Description | 
| other | File | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public File.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public File.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
removeOperations(int index)
public File.Builder removeOperations(int index)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
setContents(String value)
public File.Builder setContents(String value)Prefix of the file contents as a JSON-encoded string.
 string contents = 6;
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe contents to set. | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
setContentsBytes(ByteString value)
public File.Builder setContentsBytes(ByteString value)Prefix of the file contents as a JSON-encoded string.
 string contents = 6;
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for contents to set. | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
setDiskPath(File.DiskPath value)
public File.Builder setDiskPath(File.DiskPath value)Path of the file in terms of underlying disk/partition identifiers.
 .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7;
| Parameter | |
|---|---|
| Name | Description | 
| value | File.DiskPath | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
setDiskPath(File.DiskPath.Builder builderForValue)
public File.Builder setDiskPath(File.DiskPath.Builder builderForValue)Path of the file in terms of underlying disk/partition identifiers.
 .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | File.DiskPath.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
setField(Descriptors.FieldDescriptor field, Object value)
public File.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
setHashedSize(long value)
public File.Builder setHashedSize(long value)The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
 int64 hashed_size = 4;
| Parameter | |
|---|---|
| Name | Description | 
| value | longThe hashedSize to set. | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
setOperations(int index, File.FileOperation value)
public File.Builder setOperations(int index, File.FileOperation value)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | File.FileOperation | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
setOperations(int index, File.FileOperation.Builder builderForValue)
public File.Builder setOperations(int index, File.FileOperation.Builder builderForValue)Operation(s) performed on a file.
 repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | File.FileOperation.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
setPartiallyHashed(boolean value)
public File.Builder setPartiallyHashed(boolean value)True when the hash covers only a prefix of the file.
 bool partially_hashed = 5;
| Parameter | |
|---|---|
| Name | Description | 
| value | booleanThe partiallyHashed to set. | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
setPath(String value)
public File.Builder setPath(String value)Absolute path of the file as a JSON encoded string.
 string path = 1;
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe path to set. | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
setPathBytes(ByteString value)
public File.Builder setPathBytes(ByteString value)Absolute path of the file as a JSON encoded string.
 string path = 1;
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for path to set. | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public File.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |
setSha256(String value)
public File.Builder setSha256(String value)SHA256 hash of the first hashed_size bytes of the file encoded as a hex string. If hashed_size == size, sha256 represents the SHA256 hash of the entire file.
 string sha256 = 3;
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe sha256 to set. | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
setSha256Bytes(ByteString value)
public File.Builder setSha256Bytes(ByteString value)SHA256 hash of the first hashed_size bytes of the file encoded as a hex string. If hashed_size == size, sha256 represents the SHA256 hash of the entire file.
 string sha256 = 3;
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for sha256 to set. | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
setSize(long value)
public File.Builder setSize(long value)Size of the file in bytes.
 int64 size = 2;
| Parameter | |
|---|---|
| Name | Description | 
| value | longThe size to set. | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | This builder for chaining. | 
setUnknownFields(UnknownFieldSet unknownFields)
public final File.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| File.Builder | |