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 interpreterProtobuf type
google.cloud.securitycenter.v1.File
Modifier and Type | Method and Description |
---|---|
File.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
File |
build() |
File |
buildPartial() |
File.Builder |
clear() |
File.Builder |
clearContents()
Prefix of the file contents as a JSON encoded string.
|
File.Builder |
clearField(Descriptors.FieldDescriptor field) |
File.Builder |
clearHashedSize()
The length in bytes of the file prefix that was hashed.
|
File.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
File.Builder |
clearPartiallyHashed()
True when the hash covers only a prefix of the file.
|
File.Builder |
clearPath()
Absolute path of the file as a JSON encoded string.
|
File.Builder |
clearSha256()
SHA256 hash of the first hashed_size bytes of the file encoded as a
hex string.
|
File.Builder |
clearSize()
Size of the file in bytes.
|
File.Builder |
clone() |
String |
getContents()
Prefix of the file contents as a JSON encoded string.
|
ByteString |
getContentsBytes()
Prefix of the file contents as a JSON encoded string.
|
File |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
long |
getHashedSize()
The length in bytes of the file prefix that was hashed.
|
boolean |
getPartiallyHashed()
True when the hash covers only a prefix of the file.
|
String |
getPath()
Absolute path of the file as a JSON encoded string.
|
ByteString |
getPathBytes()
Absolute path of the file as a JSON encoded string.
|
String |
getSha256()
SHA256 hash of the first hashed_size bytes of the file encoded as a
hex string.
|
ByteString |
getSha256Bytes()
SHA256 hash of the first hashed_size bytes of the file encoded as a
hex string.
|
long |
getSize()
Size of the file in bytes.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
File.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
File.Builder |
mergeFrom(File other) |
File.Builder |
mergeFrom(Message other) |
File.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
File.Builder |
setContents(String value)
Prefix of the file contents as a JSON encoded string.
|
File.Builder |
setContentsBytes(ByteString value)
Prefix of the file contents as a JSON encoded string.
|
File.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
File.Builder |
setHashedSize(long value)
The length in bytes of the file prefix that was hashed.
|
File.Builder |
setPartiallyHashed(boolean value)
True when the hash covers only a prefix of the file.
|
File.Builder |
setPath(String value)
Absolute path of the file as a JSON encoded string.
|
File.Builder |
setPathBytes(ByteString value)
Absolute path of the file as a JSON encoded string.
|
File.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
File.Builder |
setSha256(String value)
SHA256 hash of the first hashed_size bytes of the file encoded as a
hex string.
|
File.Builder |
setSha256Bytes(ByteString value)
SHA256 hash of the first hashed_size bytes of the file encoded as a
hex string.
|
File.Builder |
setSize(long value)
Size of the file in bytes.
|
File.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<File.Builder>
public File.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<File.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<File.Builder>
public File getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public File build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public File buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public File.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<File.Builder>
public File.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<File.Builder>
public File.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<File.Builder>
public File.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<File.Builder>
public File.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<File.Builder>
public File.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<File.Builder>
public File.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<File.Builder>
public File.Builder mergeFrom(File other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<File.Builder>
public File.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<File.Builder>
IOException
public String getPath()
Absolute path of the file as a JSON encoded string.
string path = 1;
getPath
in interface FileOrBuilder
public ByteString getPathBytes()
Absolute path of the file as a JSON encoded string.
string path = 1;
getPathBytes
in interface FileOrBuilder
public File.Builder setPath(String value)
Absolute path of the file as a JSON encoded string.
string path = 1;
value
- The path to set.public File.Builder clearPath()
Absolute path of the file as a JSON encoded string.
string path = 1;
public File.Builder setPathBytes(ByteString value)
Absolute path of the file as a JSON encoded string.
string path = 1;
value
- The bytes for path to set.public long getSize()
Size of the file in bytes.
int64 size = 2;
getSize
in interface FileOrBuilder
public File.Builder setSize(long value)
Size of the file in bytes.
int64 size = 2;
value
- The size to set.public File.Builder clearSize()
Size of the file in bytes.
int64 size = 2;
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;
getSha256
in interface FileOrBuilder
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;
getSha256Bytes
in interface FileOrBuilder
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;
value
- The sha256 to set.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;
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;
value
- The bytes for sha256 to set.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;
getHashedSize
in interface FileOrBuilder
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;
value
- The hashedSize to set.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;
public boolean getPartiallyHashed()
True when the hash covers only a prefix of the file.
bool partially_hashed = 5;
getPartiallyHashed
in interface FileOrBuilder
public File.Builder setPartiallyHashed(boolean value)
True when the hash covers only a prefix of the file.
bool partially_hashed = 5;
value
- The partiallyHashed to set.public File.Builder clearPartiallyHashed()
True when the hash covers only a prefix of the file.
bool partially_hashed = 5;
public String getContents()
Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
string contents = 6;
getContents
in interface FileOrBuilder
public ByteString getContentsBytes()
Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
string contents = 6;
getContentsBytes
in interface FileOrBuilder
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;
value
- The contents to set.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;
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;
value
- The bytes for contents to set.public final File.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<File.Builder>
public final File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<File.Builder>
Copyright © 2022 Google LLC. All rights reserved.