Class ZipInfo.Builder (2.83.0)

public static final class ZipInfo.Builder extends GeneratedMessage.Builder<ZipInfo.Builder> implements ZipInfoOrBuilder

The zip file information for a zip deployment.

Protobuf type google.appengine.v1.ZipInfo

Implements

ZipInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public ZipInfo build()
Returns
Type Description
ZipInfo

buildPartial()

public ZipInfo buildPartial()
Returns
Type Description
ZipInfo

clear()

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

clearFilesCount()

public ZipInfo.Builder clearFilesCount()

An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.

int32 files_count = 4;

Returns
Type Description
ZipInfo.Builder

This builder for chaining.

clearSourceUrl()

public ZipInfo.Builder clearSourceUrl()

URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 3;

Returns
Type Description
ZipInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public ZipInfo getDefaultInstanceForType()
Returns
Type Description
ZipInfo

getDescriptorForType()

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

getFilesCount()

public int getFilesCount()

An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.

int32 files_count = 4;

Returns
Type Description
int

The filesCount.

getSourceUrl()

public String getSourceUrl()

URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 3;

Returns
Type Description
String

The sourceUrl.

getSourceUrlBytes()

public ByteString getSourceUrlBytes()

URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 3;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setFilesCount(int value)

public ZipInfo.Builder setFilesCount(int value)

An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.

int32 files_count = 4;

Parameter
Name Description
value int

The filesCount to set.

Returns
Type Description
ZipInfo.Builder

This builder for chaining.

setSourceUrl(String value)

public ZipInfo.Builder setSourceUrl(String value)

URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 3;

Parameter
Name Description
value String

The sourceUrl to set.

Returns
Type Description
ZipInfo.Builder

This builder for chaining.

setSourceUrlBytes(ByteString value)

public ZipInfo.Builder setSourceUrlBytes(ByteString value)

URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.

string source_url = 3;

Parameter
Name Description
value ByteString

The bytes for sourceUrl to set.

Returns
Type Description
ZipInfo.Builder

This builder for chaining.