Class SourceRepository.Builder (2.62.0)

publicstaticfinalclassSourceRepository.BuilderextendsGeneratedMessageV3.Builder<SourceRepository.Builder>implementsSourceRepositoryOrBuilder

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

Protobuf type google.cloud.functions.v1.SourceRepository

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicSourceRepositorybuild()
Returns
TypeDescription
SourceRepository

buildPartial()

publicSourceRepositorybuildPartial()
Returns
TypeDescription
SourceRepository

clear()

publicSourceRepository.Builderclear()
Returns
TypeDescription
SourceRepository.Builder
Overrides

clearDeployedUrl()

publicSourceRepository.BuilderclearDeployedUrl()

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
SourceRepository.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicSourceRepository.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SourceRepository.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicSourceRepository.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SourceRepository.Builder
Overrides

clearUrl()

publicSourceRepository.BuilderclearUrl()

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
TypeDescription
SourceRepository.Builder

This builder for chaining.

clone()

publicSourceRepository.Builderclone()
Returns
TypeDescription
SourceRepository.Builder
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.

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
TypeDescription
Descriptor
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
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. The function response may add an empty /paths/ to the URL.

string url = 1;

Returns
TypeDescription
ByteString

The bytes for url.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SourceRepository other)

publicSourceRepository.BuildermergeFrom(SourceRepositoryother)
Parameter
NameDescription
otherSourceRepository
Returns
TypeDescription
SourceRepository.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicSourceRepository.BuildermergeFrom(Messageother)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SourceRepository.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalSourceRepository.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SourceRepository.Builder
Overrides

setDeployedUrl(String value)

publicSourceRepository.BuildersetDeployedUrl(Stringvalue)

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];

Parameter
NameDescription
valueString

The deployedUrl to set.

Returns
TypeDescription
SourceRepository.Builder

This builder for chaining.

setDeployedUrlBytes(ByteString value)

publicSourceRepository.BuildersetDeployedUrlBytes(ByteStringvalue)

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];

Parameter
NameDescription
valueByteString

The bytes for deployedUrl to set.

Returns
TypeDescription
SourceRepository.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

publicSourceRepository.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SourceRepository.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSourceRepository.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SourceRepository.Builder
Overrides

setUrl(String value)

publicSourceRepository.BuildersetUrl(Stringvalue)

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;

Parameter
NameDescription
valueString

The url to set.

Returns
TypeDescription
SourceRepository.Builder

This builder for chaining.

setUrlBytes(ByteString value)

publicSourceRepository.BuildersetUrlBytes(ByteStringvalue)

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;

Parameter
NameDescription
valueByteString

The bytes for url to set.

Returns
TypeDescription
SourceRepository.Builder

This builder for chaining.