Class StorageSource.Builder (2.9.0)

publicstaticfinalclass StorageSource.BuilderextendsGeneratedMessageV3.Builder<StorageSource.Builder>implementsStorageSourceOrBuilder

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

Protobuf type google.cloud.functions.v2beta.StorageSource

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()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicStorageSource.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicStorageSourcebuild()
Returns
Type Description

buildPartial()

publicStorageSourcebuildPartial()
Returns
Type Description

clear()

publicStorageSource.Builderclear()
Returns
Type Description
Overrides

clearBucket()

publicStorageSource.BuilderclearBucket()

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

string bucket = 1;

Returns
Type Description
StorageSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicStorageSource.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
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
Type Description
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
Type Description
StorageSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicStorageSource.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clone()

publicStorageSource.Builderclone()
Returns
Type Description
Overrides

getBucket()

publicStringgetBucket()

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

string bucket = 1;

Returns
Type Description
String

The bucket.

getBucketBytes()

publicByteStringgetBucketBytes()

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

string bucket = 1;

Returns
Type Description
ByteString

The bytes for bucket.

getDefaultInstanceForType()

publicStorageSourcegetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for object.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(StorageSource other)

publicStorageSource.BuildermergeFrom(StorageSourceother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicStorageSource.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicStorageSource.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalStorageSource.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setBucket(String value)

publicStorageSource.BuildersetBucket(Stringvalue)

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

string bucket = 1;

Parameter
Name Description
value String

The bucket to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for bucket to set.

Returns
Type Description
StorageSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicStorageSource.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
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
Name Description
value long

The generation to set.

Returns
Type Description
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
Name Description
value String

The object to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for object to set.

Returns
Type Description
StorageSource.Builder

This builder for chaining.

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

publicStorageSource.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalStorageSource.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.