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.v1.File
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > File.BuilderImplements
FileOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public File.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| File.Builder |
build()
public File build()| Type | Description |
| File |
buildPartial()
public File buildPartial()| Type | Description |
| File |
clear()
public File.Builder clear()| Type | Description |
| File.Builder |
clearContents()
public File.Builder clearContents()Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
string contents = 6;
| Type | Description |
| File.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public File.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| 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;
| Type | Description |
| File.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public File.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| File.Builder |
clearPartiallyHashed()
public File.Builder clearPartiallyHashed()True when the hash covers only a prefix of the file.
bool partially_hashed = 5;
| 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;
| 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, hash_sha256 represents the SHA256 hash of the entire file.
string sha256 = 3;
| Type | Description |
| File.Builder | This builder for chaining. |
clearSize()
public File.Builder clearSize()Size of the file in bytes.
int64 size = 2;
| Type | Description |
| File.Builder | This builder for chaining. |
clone()
public File.Builder clone()| Type | Description |
| File.Builder |
getContents()
public String getContents()Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
string contents = 6;
| Type | Description |
| String | The contents. |
getContentsBytes()
public ByteString getContentsBytes()Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
string contents = 6;
| Type | Description |
| ByteString | The bytes for contents. |
getDefaultInstanceForType()
public File getDefaultInstanceForType()| Type | Description |
| File |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
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;
| Type | Description |
| long | The hashedSize. |
getPartiallyHashed()
public boolean getPartiallyHashed()True when the hash covers only a prefix of the file.
bool partially_hashed = 5;
| Type | Description |
| boolean | The partiallyHashed. |
getPath()
public String getPath()Absolute path of the file as a JSON encoded string.
string path = 1;
| Type | Description |
| String | The path. |
getPathBytes()
public ByteString getPathBytes()Absolute path of the file as a JSON encoded string.
string path = 1;
| 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, hash_sha256 represents the SHA256 hash of the entire file.
string sha256 = 3;
| 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, hash_sha256 represents the SHA256 hash of the entire file.
string sha256 = 3;
| Type | Description |
| ByteString | The bytes for sha256. |
getSize()
public long getSize()Size of the file in bytes.
int64 size = 2;
| Type | Description |
| long | The size. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(File other)
public File.Builder mergeFrom(File other)| Name | Description |
| other | File |
| Type | Description |
| File.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public File.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| File.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public File.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| File.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| File.Builder |
setContents(String value)
public File.Builder setContents(String value)Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
string contents = 6;
| Name | Description |
| value | StringThe contents to set. |
| 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. (Currently only populated for Malicious Script Executed findings.)
string contents = 6;
| Name | Description |
| value | ByteStringThe bytes for contents to set. |
| Type | Description |
| File.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public File.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| 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;
| Name | Description |
| value | longThe hashedSize to set. |
| Type | Description |
| File.Builder | This builder for chaining. |
setPartiallyHashed(boolean value)
public File.Builder setPartiallyHashed(boolean value)True when the hash covers only a prefix of the file.
bool partially_hashed = 5;
| Name | Description |
| value | booleanThe partiallyHashed to set. |
| 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;
| Name | Description |
| value | StringThe path to set. |
| 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;
| Name | Description |
| value | ByteStringThe bytes for path to set. |
| 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)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| 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, hash_sha256 represents the SHA256 hash of the entire file.
string sha256 = 3;
| Name | Description |
| value | StringThe sha256 to set. |
| 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, hash_sha256 represents the SHA256 hash of the entire file.
string sha256 = 3;
| Name | Description |
| value | ByteStringThe bytes for sha256 to set. |
| 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;
| Name | Description |
| value | longThe size to set. |
| Type | Description |
| File.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final File.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| File.Builder |