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.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(File other)
File.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
clear
public File.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
getDefaultInstanceForType
public File getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public File build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public File buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public File.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
setField
public File.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
clearField
public File.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
clearOneof
public File.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
setRepeatedField
public File.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
addRepeatedField
public File.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
mergeFrom
public File.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<File.Builder>
-
mergeFrom
public File.Builder mergeFrom(File other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getPath
in 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:
getPathBytes
in 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:
getSize
in 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:
getSha256
in 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:
getSha256Bytes
in 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:
getHashedSize
in 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:
getPartiallyHashed
in 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:
getContents
in 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:
getContentsBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
mergeUnknownFields
public final File.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
-