public static final class GenerateUploadUrlResponse.Builder extends GeneratedMessageV3.Builder<GenerateUploadUrlResponse.Builder> implements GenerateUploadUrlResponseOrBuilder
Response of GenerateSourceUploadUrl
method.
Protobuf type google.cloud.functions.v2.GenerateUploadUrlResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateUploadUrlResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GenerateUploadUrlResponse build()
Returns
buildPartial()
public GenerateUploadUrlResponse buildPartial()
Returns
clear()
public GenerateUploadUrlResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GenerateUploadUrlResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateUploadUrlResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public GenerateUploadUrlResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public GenerateUploadUrlResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
Type | Description |
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
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
Type | Description |
boolean | Whether the storageSource field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GenerateUploadUrlResponse other)
public GenerateUploadUrlResponse.Builder mergeFrom(GenerateUploadUrlResponse other)
Parameter
Returns
public GenerateUploadUrlResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GenerateUploadUrlResponse.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateUploadUrlResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateUploadUrlResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateUploadUrlResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateUploadUrlResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Name | Description |
value | String
The uploadUrl to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for uploadUrl to set.
|
Returns