Interface FileInfoOrBuilder (2.12.0)

publicinterface FileInfoOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getMimeType()

publicabstractStringgetMimeType()

The MIME type of the file. Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

publicabstractByteStringgetMimeTypeBytes()

The MIME type of the file. Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Returns
Type Description
ByteString

The bytes for mimeType.

getSha1Sum()

publicabstractStringgetSha1Sum()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
Type Description
String

The sha1Sum.

getSha1SumBytes()

publicabstractByteStringgetSha1SumBytes()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
Type Description
ByteString

The bytes for sha1Sum.

getSourceUrl()

publicabstractStringgetSourceUrl()

URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 1;

Returns
Type Description
String

The sourceUrl.

getSourceUrlBytes()

publicabstractByteStringgetSourceUrlBytes()

URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 1;

Returns
Type Description
ByteString

The bytes for sourceUrl.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.