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