Interface GenerateUploadUrlResponseOrBuilder (2.42.0)

public interface GenerateUploadUrlResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getStorageSource()

public abstract StorageSource getStorageSource()

The location of the source code in the upload bucket.

Once the archive is uploaded using the upload_url use this field to set the function.build_config.source.storage_source during CreateFunction and UpdateFunction.

Generation defaults to 0, as Cloud Storage provides a new generation only upon uploading a new object or version of an object.

.google.cloud.functions.v2.StorageSource storage_source = 2;

Returns
TypeDescription
StorageSource

The storageSource.

getStorageSourceOrBuilder()

public abstract StorageSourceOrBuilder getStorageSourceOrBuilder()

The location of the source code in the upload bucket.

Once the archive is uploaded using the upload_url use this field to set the function.build_config.source.storage_source during CreateFunction and UpdateFunction.

Generation defaults to 0, as Cloud Storage provides a new generation only upon uploading a new object or version of an object.

.google.cloud.functions.v2.StorageSource storage_source = 2;

Returns
TypeDescription
StorageSourceOrBuilder

getUploadUrl()

public abstract String getUploadUrl()

The generated Google Cloud Storage signed URL that should be used for a function source code upload. The uploaded file should be a zip archive which contains a function.

string upload_url = 1;

Returns
TypeDescription
String

The uploadUrl.

getUploadUrlBytes()

public abstract ByteString getUploadUrlBytes()

The generated Google Cloud Storage signed URL that should be used for a function source code upload. The uploaded file should be a zip archive which contains a function.

string upload_url = 1;

Returns
TypeDescription
ByteString

The bytes for uploadUrl.

hasStorageSource()

public abstract boolean hasStorageSource()

The location of the source code in the upload bucket.

Once the archive is uploaded using the upload_url use this field to set the function.build_config.source.storage_source during CreateFunction and UpdateFunction.

Generation defaults to 0, as Cloud Storage provides a new generation only upon uploading a new object or version of an object.

.google.cloud.functions.v2.StorageSource storage_source = 2;

Returns
TypeDescription
boolean

Whether the storageSource field is set.