Interface GenerateUploadUrlResponseOrBuilder (2.19.0)

publicinterface GenerateUploadUrlResponseOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getStorageSource()

publicabstractStorageSourcegetStorageSource()

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.v2beta.StorageSource storage_source = 2;

Returns
Type Description
StorageSource

The storageSource.

getStorageSourceOrBuilder()

publicabstractStorageSourceOrBuildergetStorageSourceOrBuilder()

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.v2beta.StorageSource storage_source = 2;

Returns
Type Description
StorageSourceOrBuilder

getUploadUrl()

publicabstractStringgetUploadUrl()

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
Type Description
String

The uploadUrl.

getUploadUrlBytes()

publicabstractByteStringgetUploadUrlBytes()

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

The bytes for uploadUrl.

hasStorageSource()

publicabstractbooleanhasStorageSource()

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.v2beta.StorageSource storage_source = 2;

Returns
Type Description
boolean

Whether the storageSource field is set.

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.