publicfinalclass GenerateUploadUrlRequestextendsGeneratedMessageV3implementsGenerateUploadUrlRequestOrBuilder
Request of GenerateSourceUploadUrl method.
Protobuf type google.cloud.functions.v2alpha.GenerateUploadUrlRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ENVIRONMENT_FIELD_NUMBER
publicstaticfinalintENVIRONMENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
KMS_KEY_NAME_FIELD_NUMBER
publicstaticfinalintKMS_KEY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
PARENT_FIELD_NUMBER
publicstaticfinalintPARENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticGenerateUploadUrlRequestgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticGenerateUploadUrlRequest.BuildernewBuilder()
newBuilder(GenerateUploadUrlRequest prototype)
publicstaticGenerateUploadUrlRequest.BuildernewBuilder(GenerateUploadUrlRequestprototype)
publicstaticGenerateUploadUrlRequestparseDelimitedFrom(InputStreaminput)
publicstaticGenerateUploadUrlRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticGenerateUploadUrlRequestparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticGenerateUploadUrlRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticGenerateUploadUrlRequestparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticGenerateUploadUrlRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticGenerateUploadUrlRequestparseFrom(CodedInputStreaminput)
publicstaticGenerateUploadUrlRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticGenerateUploadUrlRequestparseFrom(InputStreaminput)
publicstaticGenerateUploadUrlRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticGenerateUploadUrlRequestparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticGenerateUploadUrlRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<GenerateUploadUrlRequest>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicGenerateUploadUrlRequestgetDefaultInstanceForType()
getEnvironment()
publicEnvironmentgetEnvironment()
The function environment the generated upload url will be used for.
The upload url for 2nd Gen functions can also be used for 1st gen
functions, but not vice versa. If not specified, 2nd generation-style
upload URLs are generated.
.google.cloud.functions.v2alpha.Environment environment = 3;
getEnvironmentValue()
publicintgetEnvironmentValue()
The function environment the generated upload url will be used for.
The upload url for 2nd Gen functions can also be used for 1st gen
functions, but not vice versa. If not specified, 2nd generation-style
upload URLs are generated.
.google.cloud.functions.v2alpha.Environment environment = 3;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for environment.
|
getKmsKeyName()
publicStringgetKmsKeyName()
[Preview] Resource name of a KMS crypto key (managed by the user) used to
encrypt/decrypt function source code objects in intermediate Cloud Storage
buckets. When you generate an upload url and upload your source code, it
gets copied to an intermediate Cloud Storage bucket. The source code is
then copied to a versioned directory in the sources bucket in the consumer
project during the function deployment.
It must match the pattern
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
The Google Cloud Functions service account
(service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
(roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
Key/KeyRing/Project/Organization (least access preferred).
string kms_key_name = 2 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The kmsKeyName.
|
getKmsKeyNameBytes()
publicByteStringgetKmsKeyNameBytes()
[Preview] Resource name of a KMS crypto key (managed by the user) used to
encrypt/decrypt function source code objects in intermediate Cloud Storage
buckets. When you generate an upload url and upload your source code, it
gets copied to an intermediate Cloud Storage bucket. The source code is
then copied to a versioned directory in the sources bucket in the consumer
project during the function deployment.
It must match the pattern
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
The Google Cloud Functions service account
(service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
(roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
Key/KeyRing/Project/Organization (least access preferred).
string kms_key_name = 2 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for kmsKeyName.
|
getParent()
Required. The project and location in which the Google Cloud Storage signed
URL should be generated, specified in the format projects/*/locations/*.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The parent.
|
getParentBytes()
publicByteStringgetParentBytes()
Required. The project and location in which the Google Cloud Storage signed
URL should be generated, specified in the format projects/*/locations/*.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for parent.
|
getParserForType()
publicParser<GenerateUploadUrlRequest>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicGenerateUploadUrlRequest.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedGenerateUploadUrlRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicGenerateUploadUrlRequest.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides