- 2.63.0 (latest)
- 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 FileOrBuilder
File 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 | String The 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 | ByteString The 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 | long The 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 | boolean The 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 | String The 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 | ByteString The 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 | String The 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 | ByteString The 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 | long The 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 |