public static final class File.Builder extends com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field) |
File.Builder |
clearHashedSize()
The length in bytes of the file prefix that was hashed.
|
File.Builder |
clearOneof(com.google.protobuf.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.
|
com.google.protobuf.ByteString |
getContentsBytes()
Prefix of the file contents as a JSON-encoded string.
|
File |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.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.
|
com.google.protobuf.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.
|
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
File.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
File.Builder |
mergeFrom(File other) |
File.Builder |
mergeFrom(com.google.protobuf.Message other) |
File.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
File.Builder |
setContents(String value)
Prefix of the file contents as a JSON-encoded string.
|
File.Builder |
setContentsBytes(com.google.protobuf.ByteString value)
Prefix of the file contents as a JSON-encoded string.
|
File.Builder |
setField(com.google.protobuf.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(com.google.protobuf.ByteString value)
Absolute path of the file as a JSON encoded string.
|
File.Builder |
setRepeatedField(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>public File.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>public File getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic File build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic File buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic File.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>public File.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>public File.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>public File.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>public File.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>public File.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>public File.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<File.Builder>public File.Builder mergeFrom(File other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>public File.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<File.Builder>IOExceptionpublic String getPath()
Absolute path of the file as a JSON encoded string.
string path = 1;getPath in interface FileOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
Absolute path of the file as a JSON encoded string.
string path = 1;getPathBytes in interface FileOrBuilderpublic 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(com.google.protobuf.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 FileOrBuilderpublic 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 FileOrBuilderpublic com.google.protobuf.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 FileOrBuilderpublic 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(com.google.protobuf.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 FileOrBuilderpublic 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 FileOrBuilderpublic 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.
string contents = 6;getContents in interface FileOrBuilderpublic com.google.protobuf.ByteString getContentsBytes()
Prefix of the file contents as a JSON-encoded string.
string contents = 6;getContentsBytes in interface FileOrBuilderpublic File.Builder setContents(String value)
Prefix of the file contents as a JSON-encoded string.
string contents = 6;value - The contents to set.public File.Builder clearContents()
Prefix of the file contents as a JSON-encoded string.
string contents = 6;public File.Builder setContentsBytes(com.google.protobuf.ByteString value)
Prefix of the file contents as a JSON-encoded string.
string contents = 6;value - The bytes for contents to set.public final File.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>public final File.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>Copyright © 2024 Google LLC. All rights reserved.