Class Source.Builder (2.4.3)

publicstaticfinalclass Source.BuilderextendsGeneratedMessageV3.Builder<Source.Builder>implementsSourceOrBuilder

The location of the function source code.

Protobuf type google.cloud.functions.v2alpha.Source

Implements

SourceOrBuilder

Inherited Members

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicSourcebuild()
Returns
Type Description

buildPartial()

publicSourcebuildPartial()
Returns
Type Description

clear()

publicSource.Builderclear()
Returns
Type Description
Overrides

clearField(Descriptors.FieldDescriptor field)

publicSource.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRepoSource()

publicSource.BuilderclearRepoSource()

If provided, get the source from this location in a Cloud Source Repository.

.google.cloud.functions.v2alpha.RepoSource repo_source = 2;

Returns
Type Description

clearSource()

publicSource.BuilderclearSource()
Returns
Type Description

clearStorageSource()

publicSource.BuilderclearStorageSource()

If provided, get the source from this location in Google Cloud Storage.

.google.cloud.functions.v2alpha.StorageSource storage_source = 1;

Returns
Type Description

clone()

publicSource.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicSourcegetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getRepoSource()

publicRepoSourcegetRepoSource()

If provided, get the source from this location in a Cloud Source Repository.

.google.cloud.functions.v2alpha.RepoSource repo_source = 2;

Returns
Type Description
RepoSource

The repoSource.

getRepoSourceBuilder()

publicRepoSource.BuildergetRepoSourceBuilder()

If provided, get the source from this location in a Cloud Source Repository.

.google.cloud.functions.v2alpha.RepoSource repo_source = 2;

Returns
Type Description

getRepoSourceOrBuilder()

publicRepoSourceOrBuildergetRepoSourceOrBuilder()

If provided, get the source from this location in a Cloud Source Repository.

.google.cloud.functions.v2alpha.RepoSource repo_source = 2;

Returns
Type Description

getSourceCase()

publicSource.SourceCasegetSourceCase()
Returns
Type Description

getStorageSource()

publicStorageSourcegetStorageSource()

If provided, get the source from this location in Google Cloud Storage.

.google.cloud.functions.v2alpha.StorageSource storage_source = 1;

Returns
Type Description
StorageSource

The storageSource.

getStorageSourceBuilder()

publicStorageSource.BuildergetStorageSourceBuilder()

If provided, get the source from this location in Google Cloud Storage.

.google.cloud.functions.v2alpha.StorageSource storage_source = 1;

Returns
Type Description

getStorageSourceOrBuilder()

publicStorageSourceOrBuildergetStorageSourceOrBuilder()

If provided, get the source from this location in Google Cloud Storage.

.google.cloud.functions.v2alpha.StorageSource storage_source = 1;

Returns
Type Description

hasRepoSource()

publicbooleanhasRepoSource()

If provided, get the source from this location in a Cloud Source Repository.

.google.cloud.functions.v2alpha.RepoSource repo_source = 2;

Returns
Type Description
boolean

Whether the repoSource field is set.

hasStorageSource()

publicbooleanhasStorageSource()

If provided, get the source from this location in Google Cloud Storage.

.google.cloud.functions.v2alpha.StorageSource storage_source = 1;

Returns
Type Description
boolean

Whether the storageSource field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(Source other)

publicSource.BuildermergeFrom(Sourceother)
Parameter
Name Description
other Source
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRepoSource(RepoSource value)

publicSource.BuildermergeRepoSource(RepoSourcevalue)

If provided, get the source from this location in a Cloud Source Repository.

.google.cloud.functions.v2alpha.RepoSource repo_source = 2;

Parameter
Name Description
value RepoSource
Returns
Type Description

mergeStorageSource(StorageSource value)

publicSource.BuildermergeStorageSource(StorageSourcevalue)

If provided, get the source from this location in Google Cloud Storage.

.google.cloud.functions.v2alpha.StorageSource storage_source = 1;

Parameter
Name Description
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

publicSource.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

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

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

setRepoSource(RepoSource value)

publicSource.BuildersetRepoSource(RepoSourcevalue)

If provided, get the source from this location in a Cloud Source Repository.

.google.cloud.functions.v2alpha.RepoSource repo_source = 2;

Parameter
Name Description
value RepoSource
Returns
Type Description

setRepoSource(RepoSource.Builder builderForValue)

publicSource.BuildersetRepoSource(RepoSource.BuilderbuilderForValue)

If provided, get the source from this location in a Cloud Source Repository.

.google.cloud.functions.v2alpha.RepoSource repo_source = 2;

Parameter
Name Description
builderForValue RepoSource.Builder
Returns
Type Description

setStorageSource(StorageSource value)

publicSource.BuildersetStorageSource(StorageSourcevalue)

If provided, get the source from this location in Google Cloud Storage.

.google.cloud.functions.v2alpha.StorageSource storage_source = 1;

Parameter
Name Description
Returns
Type Description

setStorageSource(StorageSource.Builder builderForValue)

publicSource.BuildersetStorageSource(StorageSource.BuilderbuilderForValue)

If provided, get the source from this location in Google Cloud Storage.

.google.cloud.functions.v2alpha.StorageSource storage_source = 1;

Parameter
Name Description
builderForValue StorageSource.Builder
Returns
Type Description

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSource.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年12月18日 UTC.