Class FileInfo (2.20.0)

public final class FileInfo extends GeneratedMessageV3 implements FileInfoOrBuilder

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

Static Fields

MIME_TYPE_FIELD_NUMBER

public static final int MIME_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

SHA1_SUM_FIELD_NUMBER

public static final int SHA1_SUM_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_URL_FIELD_NUMBER

public static final int SOURCE_URL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FileInfo getDefaultInstance()
Returns
TypeDescription
FileInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static FileInfo.Builder newBuilder()
Returns
TypeDescription
FileInfo.Builder

newBuilder(FileInfo prototype)

public static FileInfo.Builder newBuilder(FileInfo prototype)
Parameter
NameDescription
prototypeFileInfo
Returns
TypeDescription
FileInfo.Builder

parseDelimitedFrom(InputStream input)

public static FileInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FileInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FileInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FileInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FileInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FileInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FileInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FileInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FileInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FileInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FileInfo> parser()
Returns
TypeDescription
Parser<FileInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public FileInfo getDefaultInstanceForType()
Returns
TypeDescription
FileInfo

getMimeType()

public String getMimeType()

The MIME type of the file.

Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

The MIME type of the file.

Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Returns
TypeDescription
ByteString

The bytes for mimeType.

getParserForType()

public Parser<FileInfo> getParserForType()
Returns
TypeDescription
Parser<FileInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSha1Sum()

public String getSha1Sum()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
TypeDescription
String

The sha1Sum.

getSha1SumBytes()

public ByteString getSha1SumBytes()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
TypeDescription
ByteString

The bytes for sha1Sum.

getSourceUrl()

public String getSourceUrl()

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
TypeDescription
String

The sourceUrl.

getSourceUrlBytes()

public ByteString getSourceUrlBytes()

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
TypeDescription
ByteString

The bytes for sourceUrl.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FileInfo.Builder newBuilderForType()
Returns
TypeDescription
FileInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FileInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FileInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FileInfo.Builder toBuilder()
Returns
TypeDescription
FileInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException