Class Source.Builder (2.5.0)

public static final class Source.Builder extends GeneratedMessageV3.Builder<Source.Builder> implements SourceOrBuilder

The location of the function source code.

Protobuf type google.cloud.functions.v2.Source

Implements

SourceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Source.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Source.Builder
Overrides

build()

public Source build()
Returns
TypeDescription
Source

buildPartial()

public Source buildPartial()
Returns
TypeDescription
Source

clear()

public Source.Builder clear()
Returns
TypeDescription
Source.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Source.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Source.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Source.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Source.Builder
Overrides

clearRepoSource()

public Source.Builder clearRepoSource()

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

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

Returns
TypeDescription
Source.Builder

clearSource()

public Source.Builder clearSource()
Returns
TypeDescription
Source.Builder

clearStorageSource()

public Source.Builder clearStorageSource()

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

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

Returns
TypeDescription
Source.Builder

clone()

public Source.Builder clone()
Returns
TypeDescription
Source.Builder
Overrides

getDefaultInstanceForType()

public Source getDefaultInstanceForType()
Returns
TypeDescription
Source

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRepoSource()

public RepoSource getRepoSource()

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

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

Returns
TypeDescription
RepoSource

The repoSource.

getRepoSourceBuilder()

public RepoSource.Builder getRepoSourceBuilder()

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

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

Returns
TypeDescription
RepoSource.Builder

getRepoSourceOrBuilder()

public RepoSourceOrBuilder getRepoSourceOrBuilder()

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

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

Returns
TypeDescription
RepoSourceOrBuilder

getSourceCase()

public Source.SourceCase getSourceCase()
Returns
TypeDescription
Source.SourceCase

getStorageSource()

public StorageSource getStorageSource()

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

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

Returns
TypeDescription
StorageSource

The storageSource.

getStorageSourceBuilder()

public StorageSource.Builder getStorageSourceBuilder()

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

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

Returns
TypeDescription
StorageSource.Builder

getStorageSourceOrBuilder()

public StorageSourceOrBuilder getStorageSourceOrBuilder()

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

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

Returns
TypeDescription
StorageSourceOrBuilder

hasRepoSource()

public boolean hasRepoSource()

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

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

Returns
TypeDescription
boolean

Whether the repoSource field is set.

hasStorageSource()

public boolean hasStorageSource()

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

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

Returns
TypeDescription
boolean

Whether the storageSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Source other)

public Source.Builder mergeFrom(Source other)
Parameter
NameDescription
otherSource
Returns
TypeDescription
Source.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Source.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Source.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Source.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Source.Builder
Overrides

mergeRepoSource(RepoSource value)

public Source.Builder mergeRepoSource(RepoSource value)

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

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

Parameter
NameDescription
valueRepoSource
Returns
TypeDescription
Source.Builder

mergeStorageSource(StorageSource value)

public Source.Builder mergeStorageSource(StorageSource value)

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

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

Parameter
NameDescription
valueStorageSource
Returns
TypeDescription
Source.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Source.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Source.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Source.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Source.Builder
Overrides

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

public Source.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Source.Builder
Overrides

setRepoSource(RepoSource value)

public Source.Builder setRepoSource(RepoSource value)

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

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

Parameter
NameDescription
valueRepoSource
Returns
TypeDescription
Source.Builder

setRepoSource(RepoSource.Builder builderForValue)

public Source.Builder setRepoSource(RepoSource.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueRepoSource.Builder
Returns
TypeDescription
Source.Builder

setStorageSource(StorageSource value)

public Source.Builder setStorageSource(StorageSource value)

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

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

Parameter
NameDescription
valueStorageSource
Returns
TypeDescription
Source.Builder

setStorageSource(StorageSource.Builder builderForValue)

public Source.Builder setStorageSource(StorageSource.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueStorageSource.Builder
Returns
TypeDescription
Source.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Source.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Source.Builder
Overrides