Class GenerateUploadUrlResponse.Builder (2.41.0)

public static final class GenerateUploadUrlResponse.Builder extends GeneratedMessageV3.Builder<GenerateUploadUrlResponse.Builder> implements GenerateUploadUrlResponseOrBuilder

Response of GenerateSourceUploadUrl method.

Protobuf type google.cloud.functions.v2.GenerateUploadUrlResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateUploadUrlResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenerateUploadUrlResponse.Builder
Overrides

build()

public GenerateUploadUrlResponse build()
Returns
TypeDescription
GenerateUploadUrlResponse

buildPartial()

public GenerateUploadUrlResponse buildPartial()
Returns
TypeDescription
GenerateUploadUrlResponse

clear()

public GenerateUploadUrlResponse.Builder clear()
Returns
TypeDescription
GenerateUploadUrlResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GenerateUploadUrlResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GenerateUploadUrlResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateUploadUrlResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GenerateUploadUrlResponse.Builder
Overrides

clearStorageSource()

public GenerateUploadUrlResponse.Builder clearStorageSource()

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

clearUploadUrl()

public GenerateUploadUrlResponse.Builder clearUploadUrl()

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

This builder for chaining.

clone()

public GenerateUploadUrlResponse.Builder clone()
Returns
TypeDescription
GenerateUploadUrlResponse.Builder
Overrides

getDefaultInstanceForType()

public GenerateUploadUrlResponse getDefaultInstanceForType()
Returns
TypeDescription
GenerateUploadUrlResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getStorageSource()

public 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.

getStorageSourceBuilder()

public StorageSource.Builder getStorageSourceBuilder()

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

getStorageSourceOrBuilder()

public 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 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GenerateUploadUrlResponse other)

public GenerateUploadUrlResponse.Builder mergeFrom(GenerateUploadUrlResponse other)
Parameter
NameDescription
otherGenerateUploadUrlResponse
Returns
TypeDescription
GenerateUploadUrlResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerateUploadUrlResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenerateUploadUrlResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GenerateUploadUrlResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GenerateUploadUrlResponse.Builder
Overrides

mergeStorageSource(StorageSource value)

public GenerateUploadUrlResponse.Builder mergeStorageSource(StorageSource value)

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;

Parameter
NameDescription
valueStorageSource
Returns
TypeDescription
GenerateUploadUrlResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateUploadUrlResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GenerateUploadUrlResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateUploadUrlResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenerateUploadUrlResponse.Builder
Overrides

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

public GenerateUploadUrlResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GenerateUploadUrlResponse.Builder
Overrides

setStorageSource(StorageSource value)

public GenerateUploadUrlResponse.Builder setStorageSource(StorageSource value)

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;

Parameter
NameDescription
valueStorageSource
Returns
TypeDescription
GenerateUploadUrlResponse.Builder

setStorageSource(StorageSource.Builder builderForValue)

public GenerateUploadUrlResponse.Builder setStorageSource(StorageSource.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueStorageSource.Builder
Returns
TypeDescription
GenerateUploadUrlResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateUploadUrlResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GenerateUploadUrlResponse.Builder
Overrides

setUploadUrl(String value)

public GenerateUploadUrlResponse.Builder setUploadUrl(String value)

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
NameDescription
valueString

The uploadUrl to set.

Returns
TypeDescription
GenerateUploadUrlResponse.Builder

This builder for chaining.

setUploadUrlBytes(ByteString value)

public GenerateUploadUrlResponse.Builder setUploadUrlBytes(ByteString value)

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
NameDescription
valueByteString

The bytes for uploadUrl to set.

Returns
TypeDescription
GenerateUploadUrlResponse.Builder

This builder for chaining.