Class Source.Builder (2.62.0)

publicstaticfinalclassSource.BuilderextendsGeneratedMessageV3.Builder<Source.Builder>implementsSourceOrBuilder

The location of the function source code.

Protobuf type google.cloud.functions.v2alpha.Source

Implements

SourceOrBuilder

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicSourcebuild()
Returns
TypeDescription
Source

buildPartial()

publicSourcebuildPartial()
Returns
TypeDescription
Source

clear()

publicSource.Builderclear()
Returns
TypeDescription
Source.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicSource.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Source.Builder
Overrides

clearGitUri()

publicSource.BuilderclearGitUri()

If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>;

string git_uri = 3;

Returns
TypeDescription
Source.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicSource.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Source.Builder

clearSource()

publicSource.BuilderclearSource()
Returns
TypeDescription
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
TypeDescription
Source.Builder

clone()

publicSource.Builderclone()
Returns
TypeDescription
Source.Builder
Overrides

getDefaultInstanceForType()

publicSourcegetDefaultInstanceForType()
Returns
TypeDescription
Source

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGitUri()

publicStringgetGitUri()

If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>;

string git_uri = 3;

Returns
TypeDescription
String

The gitUri.

getGitUriBytes()

publicByteStringgetGitUriBytes()

If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>;

string git_uri = 3;

Returns
TypeDescription
ByteString

The bytes for gitUri.

getRepoSource()

publicRepoSourcegetRepoSource()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RepoSourceOrBuilder

getSourceCase()

publicSource.SourceCasegetSourceCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
StorageSourceOrBuilder

hasGitUri()

publicbooleanhasGitUri()

If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>;

string git_uri = 3;

Returns
TypeDescription
boolean

Whether the gitUri field is set.

hasRepoSource()

publicbooleanhasRepoSource()

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

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the storageSource field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Source other)

publicSource.BuildermergeFrom(Sourceother)
Parameter
NameDescription
otherSource
Returns
TypeDescription
Source.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicSource.BuildermergeFrom(Messageother)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRepoSource
Returns
TypeDescription
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
NameDescription
valueStorageSource
Returns
TypeDescription
Source.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalSource.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Source.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setGitUri(String value)

publicSource.BuildersetGitUri(Stringvalue)

If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>;

string git_uri = 3;

Parameter
NameDescription
valueString

The gitUri to set.

Returns
TypeDescription
Source.Builder

This builder for chaining.

setGitUriBytes(ByteString value)

publicSource.BuildersetGitUriBytes(ByteStringvalue)

If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>;

string git_uri = 3;

Parameter
NameDescription
valueByteString

The bytes for gitUri to set.

Returns
TypeDescription
Source.Builder

This builder for chaining.

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

publicSource.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRepoSource
Returns
TypeDescription
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
NameDescription
builderForValueRepoSource.Builder
Returns
TypeDescription
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
NameDescription
valueStorageSource
Returns
TypeDescription
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
NameDescription
builderForValueStorageSource.Builder
Returns
TypeDescription
Source.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSource.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Source.Builder
Overrides