public final class GenerateUploadUrlResponse extends GeneratedMessageV3 implements GenerateUploadUrlResponseOrBuilder
Response of GenerateSourceUploadUrl
method.
Protobuf type google.cloud.functions.v2alpha.GenerateUploadUrlResponse
Static Fields
STORAGE_SOURCE_FIELD_NUMBER
public static final int STORAGE_SOURCE_FIELD_NUMBER
Field Value
UPLOAD_URL_FIELD_NUMBER
public static final int UPLOAD_URL_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static GenerateUploadUrlResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static GenerateUploadUrlResponse.Builder newBuilder()
Returns
newBuilder(GenerateUploadUrlResponse prototype)
public static GenerateUploadUrlResponse.Builder newBuilder(GenerateUploadUrlResponse prototype)
Parameter
Returns
public static GenerateUploadUrlResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static GenerateUploadUrlResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static GenerateUploadUrlResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GenerateUploadUrlResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static GenerateUploadUrlResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GenerateUploadUrlResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GenerateUploadUrlResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static GenerateUploadUrlResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GenerateUploadUrlResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static GenerateUploadUrlResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static GenerateUploadUrlResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GenerateUploadUrlResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<GenerateUploadUrlResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public GenerateUploadUrlResponse getDefaultInstanceForType()
Returns
getParserForType()
public Parser<GenerateUploadUrlResponse> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
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.v2alpha.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.v2alpha.StorageSource storage_source = 2;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.v2alpha.StorageSource storage_source = 2;
Returns
Type | Description |
boolean | Whether the storageSource field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public GenerateUploadUrlResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GenerateUploadUrlResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public GenerateUploadUrlResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions