Class File.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
- com.google.cloud.securitycenter.v1.File.Builder
-
- All Implemented Interfaces:
FileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- File
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 interpreter
Protobuf typegoogle.cloud.securitycenter.v1.File
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description File.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Filebuild()FilebuildPartial()File.Builderclear()File.BuilderclearContents()Prefix of the file contents as a JSON-encoded string.File.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)File.BuilderclearHashedSize()The length in bytes of the file prefix that was hashed.File.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)File.BuilderclearPartiallyHashed()True when the hash covers only a prefix of the file.File.BuilderclearPath()Absolute path of the file as a JSON encoded string.File.BuilderclearSha256()SHA256 hash of the first hashed_size bytes of the file encoded as a hex string.File.BuilderclearSize()Size of the file in bytes.File.Builderclone()StringgetContents()Prefix of the file contents as a JSON-encoded string.com.google.protobuf.ByteStringgetContentsBytes()Prefix of the file contents as a JSON-encoded string.FilegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetHashedSize()The length in bytes of the file prefix that was hashed.booleangetPartiallyHashed()True when the hash covers only a prefix of the file.StringgetPath()Absolute path of the file as a JSON encoded string.com.google.protobuf.ByteStringgetPathBytes()Absolute path of the file as a JSON encoded string.StringgetSha256()SHA256 hash of the first hashed_size bytes of the file encoded as a hex string.com.google.protobuf.ByteStringgetSha256Bytes()SHA256 hash of the first hashed_size bytes of the file encoded as a hex string.longgetSize()Size of the file in bytes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()File.BuildermergeFrom(File other)File.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)File.BuildermergeFrom(com.google.protobuf.Message other)File.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)File.BuildersetContents(String value)Prefix of the file contents as a JSON-encoded string.File.BuildersetContentsBytes(com.google.protobuf.ByteString value)Prefix of the file contents as a JSON-encoded string.File.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)File.BuildersetHashedSize(long value)The length in bytes of the file prefix that was hashed.File.BuildersetPartiallyHashed(boolean value)True when the hash covers only a prefix of the file.File.BuildersetPath(String value)Absolute path of the file as a JSON encoded string.File.BuildersetPathBytes(com.google.protobuf.ByteString value)Absolute path of the file as a JSON encoded string.File.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)File.BuildersetSha256(String value)SHA256 hash of the first hashed_size bytes of the file encoded as a hex string.File.BuildersetSha256Bytes(com.google.protobuf.ByteString value)SHA256 hash of the first hashed_size bytes of the file encoded as a hex string.File.BuildersetSize(long value)Size of the file in bytes.File.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
clear
public File.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
getDefaultInstanceForType
public File getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public File build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public File buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public File.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
setField
public File.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
clearField
public File.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
clearOneof
public File.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
setRepeatedField
public File.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
addRepeatedField
public File.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
mergeFrom
public File.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<File.Builder>
-
mergeFrom
public File.Builder mergeFrom(File other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
mergeFrom
public File.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<File.Builder>- Throws:
IOException
-
getPath
public String getPath()
Absolute path of the file as a JSON encoded string.
string path = 1;- Specified by:
getPathin interfaceFileOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
Absolute path of the file as a JSON encoded string.
string path = 1;- Specified by:
getPathBytesin interfaceFileOrBuilder- Returns:
- The bytes for path.
-
setPath
public File.Builder setPath(String value)
Absolute path of the file as a JSON encoded string.
string path = 1;- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public File.Builder clearPath()
Absolute path of the file as a JSON encoded string.
string path = 1;- Returns:
- This builder for chaining.
-
setPathBytes
public File.Builder setPathBytes(com.google.protobuf.ByteString value)
Absolute path of the file as a JSON encoded string.
string path = 1;- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getSize
public long getSize()
Size of the file in bytes.
int64 size = 2;- Specified by:
getSizein interfaceFileOrBuilder- Returns:
- The size.
-
setSize
public File.Builder setSize(long value)
Size of the file in bytes.
int64 size = 2;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
public File.Builder clearSize()
Size of the file in bytes.
int64 size = 2;- Returns:
- This builder for chaining.
-
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;- Specified by:
getSha256in interfaceFileOrBuilder- Returns:
- The sha256.
-
getSha256Bytes
public 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;- Specified by:
getSha256Bytesin interfaceFileOrBuilder- Returns:
- The bytes for sha256.
-
setSha256
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;- Parameters:
value- The sha256 to set.- Returns:
- 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:
- This builder for chaining.
-
setSha256Bytes
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;- Parameters:
value- The bytes for sha256 to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getHashedSizein interfaceFileOrBuilder- Returns:
- The hashedSize.
-
setHashedSize
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;- Parameters:
value- The hashedSize to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getPartiallyHashed
public boolean getPartiallyHashed()
True when the hash covers only a prefix of the file.
bool partially_hashed = 5;- Specified by:
getPartiallyHashedin interfaceFileOrBuilder- Returns:
- The partiallyHashed.
-
setPartiallyHashed
public File.Builder setPartiallyHashed(boolean value)
True when the hash covers only a prefix of the file.
bool partially_hashed = 5;- Parameters:
value- The partiallyHashed to set.- Returns:
- This builder for chaining.
-
clearPartiallyHashed
public File.Builder clearPartiallyHashed()
True when the hash covers only a prefix of the file.
bool partially_hashed = 5;- Returns:
- This builder for chaining.
-
getContents
public String getContents()
Prefix of the file contents as a JSON-encoded string.
string contents = 6;- Specified by:
getContentsin interfaceFileOrBuilder- Returns:
- The contents.
-
getContentsBytes
public com.google.protobuf.ByteString getContentsBytes()
Prefix of the file contents as a JSON-encoded string.
string contents = 6;- Specified by:
getContentsBytesin interfaceFileOrBuilder- Returns:
- The bytes for contents.
-
setContents
public File.Builder setContents(String value)
Prefix of the file contents as a JSON-encoded string.
string contents = 6;- Parameters:
value- The contents to set.- Returns:
- This builder for chaining.
-
clearContents
public File.Builder clearContents()
Prefix of the file contents as a JSON-encoded string.
string contents = 6;- Returns:
- This builder for chaining.
-
setContentsBytes
public File.Builder setContentsBytes(com.google.protobuf.ByteString value)
Prefix of the file contents as a JSON-encoded string.
string contents = 6;- Parameters:
value- The bytes for contents to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final File.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
mergeUnknownFields
public final File.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
-