Class SourceRepository (2.51.0)

publicfinalclass SourceRepositoryextendsGeneratedMessageV3implementsSourceRepositoryOrBuilder

Describes SourceRepository, used to represent parameters related to source repository where a function is hosted.

Protobuf type google.cloud.functions.v1.SourceRepository

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

DEPLOYED_URL_FIELD_NUMBER

publicstaticfinalintDEPLOYED_URL_FIELD_NUMBER
Field Value
Type Description
int

URL_FIELD_NUMBER

publicstaticfinalintURL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticSourceRepositorygetDefaultInstance()
Returns
Type Description
SourceRepository

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticSourceRepository.BuildernewBuilder()
Returns
Type Description
SourceRepository.Builder

newBuilder(SourceRepository prototype)

publicstaticSourceRepository.BuildernewBuilder(SourceRepositoryprototype)
Parameter
Name Description
prototype SourceRepository
Returns
Type Description
SourceRepository.Builder

parseDelimitedFrom(InputStream input)

publicstaticSourceRepositoryparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SourceRepository
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSourceRepositoryparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceRepository
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticSourceRepositoryparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
SourceRepository
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticSourceRepositoryparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceRepository
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticSourceRepositoryparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
SourceRepository
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticSourceRepositoryparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceRepository
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticSourceRepositoryparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SourceRepository
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSourceRepositoryparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceRepository
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticSourceRepositoryparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SourceRepository
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSourceRepositoryparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceRepository
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticSourceRepositoryparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SourceRepository
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticSourceRepositoryparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceRepository
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<SourceRepository>parser()
Returns
Type Description
Parser<SourceRepository>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicSourceRepositorygetDefaultInstanceForType()
Returns
Type Description
SourceRepository

getDeployedUrl()

publicStringgetDeployedUrl()

Output only. The URL pointing to the hosted repository where the function were defined at the time of deployment. It always points to a specific commit in the format described above.

string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The deployedUrl.

getDeployedUrlBytes()

publicByteStringgetDeployedUrlBytes()

Output only. The URL pointing to the hosted repository where the function were defined at the time of deployment. It always points to a specific commit in the format described above.

string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for deployedUrl.

getParserForType()

publicParser<SourceRepository>getParserForType()
Returns
Type Description
Parser<SourceRepository>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUrl()

publicStringgetUrl()

The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:

To refer to a specific commit: https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/* To refer to a moveable alias (branch): https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/* In particular, to refer to HEAD use master moveable alias. To refer to a specific fixed alias (tag): https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*

You may omit paths/* if you want to use the main directory. The function response may add an empty /paths/ to the URL.

string url = 1;

Returns
Type Description
String

The url.

getUrlBytes()

publicByteStringgetUrlBytes()

The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:

To refer to a specific commit: https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/* To refer to a moveable alias (branch): https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/* In particular, to refer to HEAD use master moveable alias. To refer to a specific fixed alias (tag): https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*

You may omit paths/* if you want to use the main directory. The function response may add an empty /paths/ to the URL.

string url = 1;

Returns
Type Description
ByteString

The bytes for url.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicSourceRepository.BuildernewBuilderForType()
Returns
Type Description
SourceRepository.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedSourceRepository.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SourceRepository.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicSourceRepository.BuildertoBuilder()
Returns
Type Description
SourceRepository.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.