Class Source (2.62.0)

publicfinalclassSourceextendsGeneratedMessageV3implementsSourceOrBuilder

The location of the function source code.

Protobuf type google.cloud.functions.v2alpha.Source

Implements

SourceOrBuilder

Static Fields

GIT_URI_FIELD_NUMBER

publicstaticfinalintGIT_URI_FIELD_NUMBER
Field Value
TypeDescription
int

REPO_SOURCE_FIELD_NUMBER

publicstaticfinalintREPO_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

STORAGE_SOURCE_FIELD_NUMBER

publicstaticfinalintSTORAGE_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticSourcegetDefaultInstance()
Returns
TypeDescription
Source

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticSource.BuildernewBuilder()
Returns
TypeDescription
Source.Builder

newBuilder(Source prototype)

publicstaticSource.BuildernewBuilder(Sourceprototype)
Parameter
NameDescription
prototypeSource
Returns
TypeDescription
Source.Builder

parseDelimitedFrom(InputStream input)

publicstaticSourceparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Source
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSourceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Source
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticSourceparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Source
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticSourceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Source
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticSourceparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Source
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticSourceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Source
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticSourceparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Source
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSourceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Source
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticSourceparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Source
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSourceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Source
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticSourceparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Source
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticSourceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Source
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<Source>parser()
Returns
TypeDescription
Parser<Source>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

publicSourcegetDefaultInstanceForType()
Returns
TypeDescription
Source

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.

getParserForType()

publicParser<Source>getParserForType()
Returns
TypeDescription
Parser<Source>
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
TypeDescription
RepoSource

The repoSource.

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

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicSource.BuildernewBuilderForType()
Returns
TypeDescription
Source.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Source.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicSource.BuildertoBuilder()
Returns
TypeDescription
Source.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException