Class FileInfo.Builder (2.29.0)

publicstaticfinalclass FileInfo.BuilderextendsGeneratedMessageV3.Builder<FileInfo.Builder>implementsFileInfoOrBuilder

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.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicFileInfo.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FileInfo.Builder
Overrides

build()

publicFileInfobuild()
Returns
Type Description
FileInfo

buildPartial()

publicFileInfobuildPartial()
Returns
Type Description
FileInfo

clear()

publicFileInfo.Builderclear()
Returns
Type Description
FileInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicFileInfo.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FileInfo.Builder
Overrides

clearMimeType()

publicFileInfo.BuilderclearMimeType()

The MIME type of the file.

Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Returns
Type Description
FileInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicFileInfo.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FileInfo.Builder
Overrides

clearSha1Sum()

publicFileInfo.BuilderclearSha1Sum()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
Type Description
FileInfo.Builder

This builder for chaining.

clearSourceUrl()

publicFileInfo.BuilderclearSourceUrl()

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
FileInfo.Builder

This builder for chaining.

clone()

publicFileInfo.Builderclone()
Returns
Type Description
FileInfo.Builder
Overrides

getDefaultInstanceForType()

publicFileInfogetDefaultInstanceForType()
Returns
Type Description
FileInfo

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FileInfo other)

publicFileInfo.BuildermergeFrom(FileInfoother)
Parameter
Name Description
other FileInfo
Returns
Type Description
FileInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicFileInfo.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicFileInfo.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
FileInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalFileInfo.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FileInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicFileInfo.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FileInfo.Builder
Overrides

setMimeType(String value)

publicFileInfo.BuildersetMimeType(Stringvalue)

The MIME type of the file.

Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Parameter
Name Description
value String

The mimeType to set.

Returns
Type Description
FileInfo.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

publicFileInfo.BuildersetMimeTypeBytes(ByteStringvalue)

The MIME type of the file.

Defaults to the value from Google Cloud Storage.

string mime_type = 3;

Parameter
Name Description
value ByteString

The bytes for mimeType to set.

Returns
Type Description
FileInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicFileInfo.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FileInfo.Builder
Overrides

setSha1Sum(String value)

publicFileInfo.BuildersetSha1Sum(Stringvalue)

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Parameter
Name Description
value String

The sha1Sum to set.

Returns
Type Description
FileInfo.Builder

This builder for chaining.

setSha1SumBytes(ByteString value)

publicFileInfo.BuildersetSha1SumBytes(ByteStringvalue)

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Parameter
Name Description
value ByteString

The bytes for sha1Sum to set.

Returns
Type Description
FileInfo.Builder

This builder for chaining.

setSourceUrl(String value)

publicFileInfo.BuildersetSourceUrl(Stringvalue)

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;

Parameter
Name Description
value String

The sourceUrl to set.

Returns
Type Description
FileInfo.Builder

This builder for chaining.

setSourceUrlBytes(ByteString value)

publicFileInfo.BuildersetSourceUrlBytes(ByteStringvalue)

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;

Parameter
Name Description
value ByteString

The bytes for sourceUrl to set.

Returns
Type Description
FileInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalFileInfo.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FileInfo.Builder
Overrides

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.