Class FileInfo.Builder (2.83.0)

public static final class FileInfo.Builder extends GeneratedMessage.Builder<FileInfo.Builder> 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 Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public FileInfo build()
Returns
Type Description
FileInfo

buildPartial()

public FileInfo buildPartial()
Returns
Type Description
FileInfo

clear()

public FileInfo.Builder clear()
Returns
Type Description
FileInfo.Builder
Overrides

clearMimeType()

public FileInfo.Builder clearMimeType()

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.

clearSha1Sum()

public FileInfo.Builder clearSha1Sum()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
Type Description
FileInfo.Builder

This builder for chaining.

clearSourceUrl()

public FileInfo.Builder clearSourceUrl()

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.

getDefaultInstanceForType()

public FileInfo getDefaultInstanceForType()
Returns
Type Description
FileInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMimeType()

public String getMimeType()

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

public ByteString getMimeTypeBytes()

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

public String getSha1Sum()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
Type Description
String

The sha1Sum.

getSha1SumBytes()

public ByteString getSha1SumBytes()

The SHA1 hash of the file, in hex.

string sha1_sum = 2;

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for sourceUrl.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FileInfo other)

public FileInfo.Builder mergeFrom(FileInfo other)
Parameter
Name Description
other FileInfo
Returns
Type Description
FileInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FileInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FileInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FileInfo.Builder
Overrides

setMimeType(String value)

public FileInfo.Builder setMimeType(String value)

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)

public FileInfo.Builder setMimeTypeBytes(ByteString value)

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.

setSha1Sum(String value)

public FileInfo.Builder setSha1Sum(String value)

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)

public FileInfo.Builder setSha1SumBytes(ByteString value)

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)

public FileInfo.Builder setSourceUrl(String value)

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)

public FileInfo.Builder setSourceUrlBytes(ByteString value)

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.