Class Source.Builder (2.49.0)

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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicSourcebuild()
Returns
Type Description
Source

buildPartial()

publicSourcebuildPartial()
Returns
Type Description
Source

clear()

publicSource.Builderclear()
Returns
Type Description
Source.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicSource.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Source.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicSource.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Source.Builder
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
Source.Builder

clearSource()

publicSource.BuilderclearSource()
Returns
Type Description
Source.Builder

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
Source.Builder

clone()

publicSource.Builderclone()
Returns
Type Description
Source.Builder
Overrides

getDefaultInstanceForType()

publicSourcegetDefaultInstanceForType()
Returns
Type Description
Source

getDescriptorForType()

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

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
RepoSourceOrBuilder

getSourceCase()

publicSource.SourceCasegetSourceCase()
Returns
Type Description
Source.SourceCase

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
StorageSource.Builder

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
StorageSourceOrBuilder

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
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Source other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicSource.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Source.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicSource.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Source.Builder
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
Source.Builder

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
value StorageSource
Returns
Type Description
Source.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

publicSource.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Source.Builder
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
Source.Builder

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
Source.Builder

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
value StorageSource
Returns
Type Description
Source.Builder

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
Source.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSource.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Source.Builder
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.