Interface FileOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
File
,File.Builder
public interface FileOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getPath
String getPath()
Absolute path of the file as a JSON encoded string.
string path = 1;
- Returns:
- The path.
-
getPathBytes
com.google.protobuf.ByteString getPathBytes()
Absolute path of the file as a JSON encoded string.
string path = 1;
- Returns:
- The bytes for path.
-
getSize
long getSize()
Size of the file in bytes.
int64 size = 2;
- Returns:
- The size.
-
getSha256
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;
- Returns:
- The sha256.
-
getSha256Bytes
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;
- Returns:
- The bytes for sha256.
-
getHashedSize
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;
- Returns:
- The hashedSize.
-
getPartiallyHashed
boolean getPartiallyHashed()
True when the hash covers only a prefix of the file.
bool partially_hashed = 5;
- Returns:
- The partiallyHashed.
-
getContents
String getContents()
Prefix of the file contents as a JSON-encoded string.
string contents = 6;
- Returns:
- The contents.
-
getContentsBytes
com.google.protobuf.ByteString getContentsBytes()
Prefix of the file contents as a JSON-encoded string.
string contents = 6;
- Returns:
- The bytes for contents.
-
-