Class SourceRepository (2.49.0)

publicfinalclassSourceRepositoryextendsGeneratedMessageV3implementsSourceRepositoryOrBuilder

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

Protobuf type google.cloud.functions.v1.SourceRepository

Static Fields

DEPLOYED_URL_FIELD_NUMBER

publicstaticfinalintDEPLOYED_URL_FIELD_NUMBER
Field Value
TypeDescription
int

URL_FIELD_NUMBER

publicstaticfinalintURL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticSourceRepositorygetDefaultInstance()
Returns
TypeDescription
SourceRepository

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticSourceRepository.BuildernewBuilder()
Returns
TypeDescription
SourceRepository.Builder

newBuilder(SourceRepository prototype)

publicstaticSourceRepository.BuildernewBuilder(SourceRepositoryprototype)
Parameter
NameDescription
prototypeSourceRepository
Returns
TypeDescription
SourceRepository.Builder

parseDelimitedFrom(InputStream input)

publicstaticSourceRepositoryparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SourceRepository
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSourceRepositoryparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceRepository
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticSourceRepositoryparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SourceRepository
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticSourceRepositoryparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SourceRepository
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticSourceRepositoryparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceRepository
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticSourceRepositoryparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SourceRepository
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSourceRepositoryparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceRepository
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticSourceRepositoryparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SourceRepository
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSourceRepositoryparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceRepository
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticSourceRepositoryparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SourceRepository
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticSourceRepositoryparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceRepository
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

publicSourceRepositorygetDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for deployedUrl.

getParserForType()

publicParser<SourceRepository>getParserForType()
Returns
TypeDescription
Parser<SourceRepository>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
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.

string url = 1;

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

string url = 1;

Returns
TypeDescription
ByteString

The bytes for url.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicSourceRepository.BuildernewBuilderForType()
Returns
TypeDescription
SourceRepository.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedSourceRepository.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SourceRepository.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicSourceRepository.BuildertoBuilder()
Returns
TypeDescription
SourceRepository.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException