public static final class GenerateUploadUrlResponse.Builder extends GeneratedMessageV3.Builder<GenerateUploadUrlResponse.Builder> implements GenerateUploadUrlResponseOrBuilder
Response of GenerateSourceUploadUrl
method.
Protobuf type google.cloud.functions.v2alpha.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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateUploadUrlResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GenerateUploadUrlResponse build()
buildPartial()
public GenerateUploadUrlResponse buildPartial()
clear()
public GenerateUploadUrlResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GenerateUploadUrlResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateUploadUrlResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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.v2alpha.StorageSource storage_source = 2;
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;
clone()
public GenerateUploadUrlResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public GenerateUploadUrlResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.v2alpha.StorageSource storage_source = 2;
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.v2alpha.StorageSource storage_source = 2;
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.v2alpha.StorageSource storage_source = 2;
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 |
---|
Type | Description |
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.v2alpha.StorageSource storage_source = 2;
Returns |
---|
Type | Description |
boolean | Whether the storageSource field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GenerateUploadUrlResponse other)
public GenerateUploadUrlResponse.Builder mergeFrom(GenerateUploadUrlResponse other)
public GenerateUploadUrlResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GenerateUploadUrlResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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.v2alpha.StorageSource storage_source = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateUploadUrlResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateUploadUrlResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateUploadUrlResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.v2alpha.StorageSource storage_source = 2;
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.v2alpha.StorageSource storage_source = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateUploadUrlResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|