public static final class SourceRepository.Builder extends GeneratedMessage.Builder<SourceRepository.Builder> implements SourceRepositoryOrBuilderDescribes SourceRepository, used to represent parameters related to source repository where a function is hosted.
Protobuf type google.cloud.functions.v1.SourceRepository
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SourceRepository.BuilderImplements
SourceRepositoryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. The function
response may add an empty /paths/ to the URL.
string url = 1;
| Returns | |
|---|---|
| Type | Description |
SourceRepository.Builder |
This builder for chaining. |
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 |
|
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. The function
response may add an empty /paths/ to the URL.
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. The function
response may add an empty /paths/ to the URL.
string url = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for url. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SourceRepository.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SourceRepository.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for deployedUrl to set. |
| Returns | |
|---|---|
| Type | Description |
SourceRepository.Builder |
This builder for chaining. |
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. The function
response may add an empty /paths/ to the URL.
string url = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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. The function
response may add an empty /paths/ to the URL.
string url = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for url to set. |
| Returns | |
|---|---|
| Type | Description |
SourceRepository.Builder |
This builder for chaining. |