Class StorageSource.Builder (2.62.0)

publicstaticfinalclassStorageSource.BuilderextendsGeneratedMessageV3.Builder<StorageSource.Builder>implementsStorageSourceOrBuilder

Location of the source in an archive file in Google Cloud Storage.

Protobuf type google.cloud.functions.v2alpha.StorageSource

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicStorageSource.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StorageSource.Builder
Overrides

build()

publicStorageSourcebuild()
Returns
TypeDescription
StorageSource

buildPartial()

publicStorageSourcebuildPartial()
Returns
TypeDescription
StorageSource

clear()

publicStorageSource.Builderclear()
Returns
TypeDescription
StorageSource.Builder
Overrides

clearBucket()

publicStorageSource.BuilderclearBucket()

Google Cloud Storage bucket containing the source (see Bucket Name Requirements).

string bucket = 1;

Returns
TypeDescription
StorageSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicStorageSource.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StorageSource.Builder
Overrides

clearGeneration()

publicStorageSource.BuilderclearGeneration()

Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

int64 generation = 3;

Returns
TypeDescription
StorageSource.Builder

This builder for chaining.

clearObject()

publicStorageSource.BuilderclearObject()

Google Cloud Storage object containing the source.

This object must be a gzipped archive file (.tar.gz) containing source to build.

string object = 2;

Returns
TypeDescription
StorageSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicStorageSource.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StorageSource.Builder
Overrides

clearSourceUploadUrl()

publicStorageSource.BuilderclearSourceUploadUrl()

When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.

string source_upload_url = 4;

Returns
TypeDescription
StorageSource.Builder

This builder for chaining.

clone()

publicStorageSource.Builderclone()
Returns
TypeDescription
StorageSource.Builder
Overrides

getBucket()

publicStringgetBucket()

Google Cloud Storage bucket containing the source (see Bucket Name Requirements).

string bucket = 1;

Returns
TypeDescription
String

The bucket.

getBucketBytes()

publicByteStringgetBucketBytes()

Google Cloud Storage bucket containing the source (see Bucket Name Requirements).

string bucket = 1;

Returns
TypeDescription
ByteString

The bytes for bucket.

getDefaultInstanceForType()

publicStorageSourcegetDefaultInstanceForType()
Returns
TypeDescription
StorageSource

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGeneration()

publiclonggetGeneration()

Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

int64 generation = 3;

Returns
TypeDescription
long

The generation.

getObject()

publicStringgetObject()

Google Cloud Storage object containing the source.

This object must be a gzipped archive file (.tar.gz) containing source to build.

string object = 2;

Returns
TypeDescription
String

The object.

getObjectBytes()

publicByteStringgetObjectBytes()

Google Cloud Storage object containing the source.

This object must be a gzipped archive file (.tar.gz) containing source to build.

string object = 2;

Returns
TypeDescription
ByteString

The bytes for object.

getSourceUploadUrl()

publicStringgetSourceUploadUrl()

When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.

string source_upload_url = 4;

Returns
TypeDescription
String

The sourceUploadUrl.

getSourceUploadUrlBytes()

publicByteStringgetSourceUploadUrlBytes()

When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.

string source_upload_url = 4;

Returns
TypeDescription
ByteString

The bytes for sourceUploadUrl.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StorageSource other)

publicStorageSource.BuildermergeFrom(StorageSourceother)
Parameter
NameDescription
otherStorageSource
Returns
TypeDescription
StorageSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicStorageSource.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

publicStorageSource.BuildermergeFrom(Messageother)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StorageSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalStorageSource.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StorageSource.Builder
Overrides

setBucket(String value)

publicStorageSource.BuildersetBucket(Stringvalue)

Google Cloud Storage bucket containing the source (see Bucket Name Requirements).

string bucket = 1;

Parameter
NameDescription
valueString

The bucket to set.

Returns
TypeDescription
StorageSource.Builder

This builder for chaining.

setBucketBytes(ByteString value)

publicStorageSource.BuildersetBucketBytes(ByteStringvalue)

Google Cloud Storage bucket containing the source (see Bucket Name Requirements).

string bucket = 1;

Parameter
NameDescription
valueByteString

The bytes for bucket to set.

Returns
TypeDescription
StorageSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicStorageSource.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StorageSource.Builder
Overrides

setGeneration(long value)

publicStorageSource.BuildersetGeneration(longvalue)

Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

int64 generation = 3;

Parameter
NameDescription
valuelong

The generation to set.

Returns
TypeDescription
StorageSource.Builder

This builder for chaining.

setObject(String value)

publicStorageSource.BuildersetObject(Stringvalue)

Google Cloud Storage object containing the source.

This object must be a gzipped archive file (.tar.gz) containing source to build.

string object = 2;

Parameter
NameDescription
valueString

The object to set.

Returns
TypeDescription
StorageSource.Builder

This builder for chaining.

setObjectBytes(ByteString value)

publicStorageSource.BuildersetObjectBytes(ByteStringvalue)

Google Cloud Storage object containing the source.

This object must be a gzipped archive file (.tar.gz) containing source to build.

string object = 2;

Parameter
NameDescription
valueByteString

The bytes for object to set.

Returns
TypeDescription
StorageSource.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicStorageSource.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StorageSource.Builder
Overrides

setSourceUploadUrl(String value)

publicStorageSource.BuildersetSourceUploadUrl(Stringvalue)

When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.

string source_upload_url = 4;

Parameter
NameDescription
valueString

The sourceUploadUrl to set.

Returns
TypeDescription
StorageSource.Builder

This builder for chaining.

setSourceUploadUrlBytes(ByteString value)

publicStorageSource.BuildersetSourceUploadUrlBytes(ByteStringvalue)

When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.

string source_upload_url = 4;

Parameter
NameDescription
valueByteString

The bytes for sourceUploadUrl to set.

Returns
TypeDescription
StorageSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalStorageSource.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StorageSource.Builder
Overrides