Class GenerateUploadUrlResponse.Builder (2.4.3)

publicstaticfinalclass GenerateUploadUrlResponse.BuilderextendsGeneratedMessageV3.Builder<GenerateUploadUrlResponse.Builder>implementsGenerateUploadUrlResponseOrBuilder

Response of GenerateSourceUploadUrl method.

Protobuf type google.cloud.functions.v2beta.GenerateUploadUrlResponse

Inherited Members

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicGenerateUploadUrlResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicGenerateUploadUrlResponsebuild()
Returns
Type Description

buildPartial()

publicGenerateUploadUrlResponsebuildPartial()
Returns
Type Description

clear()

publicGenerateUploadUrlResponse.Builderclear()
Returns
Type Description
Overrides

clearField(Descriptors.FieldDescriptor field)

publicGenerateUploadUrlResponse.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicGenerateUploadUrlResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearStorageSource()

publicGenerateUploadUrlResponse.BuilderclearStorageSource()

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

clearUploadUrl()

publicGenerateUploadUrlResponse.BuilderclearUploadUrl()

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

This builder for chaining.

clone()

publicGenerateUploadUrlResponse.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicGenerateUploadUrlResponsegetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getStorageSource()

publicStorageSourcegetStorageSource()

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.

getStorageSourceBuilder()

publicStorageSource.BuildergetStorageSourceBuilder()

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

getStorageSourceOrBuilder()

publicStorageSourceOrBuildergetStorageSourceOrBuilder()

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

getUploadUrl()

publicStringgetUploadUrl()

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

publicByteStringgetUploadUrlBytes()

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

publicbooleanhasStorageSource()

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(GenerateUploadUrlResponse other)

publicGenerateUploadUrlResponse.BuildermergeFrom(GenerateUploadUrlResponseother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicGenerateUploadUrlResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicGenerateUploadUrlResponse.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeStorageSource(StorageSource value)

publicGenerateUploadUrlResponse.BuildermergeStorageSource(StorageSourcevalue)

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;

Parameter
Name Description
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalGenerateUploadUrlResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicGenerateUploadUrlResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

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

publicGenerateUploadUrlResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setStorageSource(StorageSource value)

publicGenerateUploadUrlResponse.BuildersetStorageSource(StorageSourcevalue)

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;

Parameter
Name Description
Returns
Type Description

setStorageSource(StorageSource.Builder builderForValue)

publicGenerateUploadUrlResponse.BuildersetStorageSource(StorageSource.BuilderbuilderForValue)

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;

Parameter
Name Description
builderForValue StorageSource.Builder
Returns
Type Description

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalGenerateUploadUrlResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setUploadUrl(String value)

publicGenerateUploadUrlResponse.BuildersetUploadUrl(Stringvalue)

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;

Parameter
Name Description
value String

The uploadUrl to set.

Returns
Type Description
GenerateUploadUrlResponse.Builder

This builder for chaining.

setUploadUrlBytes(ByteString value)

publicGenerateUploadUrlResponse.BuildersetUploadUrlBytes(ByteStringvalue)

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;

Parameter
Name Description
value ByteString

The bytes for uploadUrl to set.

Returns
Type Description
GenerateUploadUrlResponse.Builder

This builder for chaining.

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.