Class FileInfo (2.41.0)

publicfinalclass FileInfoextendsGeneratedMessageV3implementsFileInfoOrBuilder

Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.

Protobuf type google.appengine.v1.FileInfo

Implements

FileInfoOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

MIME_TYPE_FIELD_NUMBER

publicstaticfinalintMIME_TYPE_FIELD_NUMBER
Field Value
Type Description
int

SHA1_SUM_FIELD_NUMBER

publicstaticfinalintSHA1_SUM_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_URL_FIELD_NUMBER

publicstaticfinalintSOURCE_URL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticFileInfogetDefaultInstance()
Returns
Type Description
FileInfo

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticFileInfo.BuildernewBuilder()
Returns
Type Description
FileInfo.Builder

newBuilder(FileInfo prototype)

publicstaticFileInfo.BuildernewBuilder(FileInfoprototype)
Parameter
Name Description
prototype FileInfo
Returns
Type Description
FileInfo.Builder

parseDelimitedFrom(InputStream input)

publicstaticFileInfoparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
FileInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticFileInfoparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticFileInfoparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
FileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticFileInfoparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticFileInfoparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
FileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticFileInfoparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticFileInfoparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FileInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticFileInfoparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticFileInfoparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
FileInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticFileInfoparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticFileInfoparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticFileInfoparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<FileInfo>parser()
Returns
Type Description
Parser<FileInfo>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicFileInfogetDefaultInstanceForType()
Returns
Type Description
FileInfo

getMimeType()

publicStringgetMimeType()

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()

publicByteStringgetMimeTypeBytes()

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.

getParserForType()

publicParser<FileInfo>getParserForType()
Returns
Type Description
Parser<FileInfo>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSha1Sum()

publicStringgetSha1Sum()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
Type Description
String

The sha1Sum.

getSha1SumBytes()

publicByteStringgetSha1SumBytes()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
Type Description
ByteString

The bytes for sha1Sum.

getSourceUrl()

publicStringgetSourceUrl()

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()

publicByteStringgetSourceUrlBytes()

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicFileInfo.BuildernewBuilderForType()
Returns
Type Description
FileInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedFileInfo.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FileInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicFileInfo.BuildertoBuilder()
Returns
Type Description
FileInfo.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.