Class SourceRepository.Builder (2.45.0)

public static final class SourceRepository.Builder extends GeneratedMessageV3.Builder<SourceRepository.Builder> implements SourceRepositoryOrBuilder

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()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SourceRepository.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SourceRepository.Builder
Overrides

build()

public SourceRepository build()
Returns
Type Description
SourceRepository

buildPartial()

public SourceRepository buildPartial()
Returns
Type Description
SourceRepository

clear()

public SourceRepository.Builder clear()
Returns
Type Description
SourceRepository.Builder
Overrides

clearDeployedUrl()

public SourceRepository.Builder clearDeployedUrl()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SourceRepository.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SourceRepository.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SourceRepository.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SourceRepository.Builder
Overrides

clearUrl()

public SourceRepository.Builder clearUrl()

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

This builder for chaining.

clone()

public SourceRepository.Builder clone()
Returns
Type Description
SourceRepository.Builder
Overrides

getDefaultInstanceForType()

public SourceRepository getDefaultInstanceForType()
Returns
Type Description
SourceRepository

getDeployedUrl()

public String getDeployedUrl()

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()

public ByteString getDeployedUrlBytes()

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.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUrl()

public String getUrl()

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
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

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
Type Description
ByteString

The bytes for url.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceRepository other)

public SourceRepository.Builder mergeFrom(SourceRepository other)
Parameter
Name Description
other SourceRepository
Returns
Type Description
SourceRepository.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SourceRepository.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceRepository.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SourceRepository.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SourceRepository.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SourceRepository.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SourceRepository.Builder
Overrides

setDeployedUrl(String value)

public SourceRepository.Builder setDeployedUrl(String value)

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
Name Description
value String

The deployedUrl to set.

Returns
Type Description
SourceRepository.Builder

This builder for chaining.

setDeployedUrlBytes(ByteString value)

public SourceRepository.Builder setDeployedUrlBytes(ByteString value)

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
Name Description
value ByteString

The bytes for deployedUrl to set.

Returns
Type Description
SourceRepository.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SourceRepository.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SourceRepository.Builder
Overrides

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

public SourceRepository.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SourceRepository.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SourceRepository.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SourceRepository.Builder
Overrides

setUrl(String value)

public SourceRepository.Builder setUrl(String value)

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;

Parameter
Name Description
value String

The url to set.

Returns
Type Description
SourceRepository.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public SourceRepository.Builder setUrlBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
SourceRepository.Builder

This builder for chaining.