public static final class GitSource.Builder extends GeneratedMessage.Builder<GitSource.Builder> implements GitSourceOrBuilderLocation of the source in any accessible Git repository.
Protobuf type google.devtools.cloudbuild.v1.GitSource
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GitSource.BuilderImplements
GitSourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GitSource build()| Returns | |
|---|---|
| Type | Description |
GitSource |
|
buildPartial()
public GitSource buildPartial()| Returns | |
|---|---|
| Type | Description |
GitSource |
|
clear()
public GitSource.Builder clear()| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
|
clearDir()
public GitSource.Builder clearDir()Optional. Directory, relative to the source root, in which to run the build.
This must be a relative path. If a step's dir is specified and is an
absolute path, this value is ignored for that step's execution.
string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
clearRevision()
public GitSource.Builder clearRevision()Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
Cloud Build uses git fetch to fetch the revision from the Git
repository; therefore make sure that the string you provide for revision
is parsable by the command. For information on string values accepted by
git fetch, see
https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
information on git fetch, see https://git-scm.com/docs/git-fetch.
string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
clearUrl()
public GitSource.Builder clearUrl()Required. Location of the Git repo to build.
This will be used as a git remote, see
https://git-scm.com/docs/git-remote.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GitSource getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GitSource |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDir()
public String getDir()Optional. Directory, relative to the source root, in which to run the build.
This must be a relative path. If a step's dir is specified and is an
absolute path, this value is ignored for that step's execution.
string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The dir. |
getDirBytes()
public ByteString getDirBytes()Optional. Directory, relative to the source root, in which to run the build.
This must be a relative path. If a step's dir is specified and is an
absolute path, this value is ignored for that step's execution.
string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for dir. |
getRevision()
public String getRevision()Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
Cloud Build uses git fetch to fetch the revision from the Git
repository; therefore make sure that the string you provide for revision
is parsable by the command. For information on string values accepted by
git fetch, see
https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
information on git fetch, see https://git-scm.com/docs/git-fetch.
string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The revision. |
getRevisionBytes()
public ByteString getRevisionBytes()Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
Cloud Build uses git fetch to fetch the revision from the Git
repository; therefore make sure that the string you provide for revision
is parsable by the command. For information on string values accepted by
git fetch, see
https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
information on git fetch, see https://git-scm.com/docs/git-fetch.
string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for revision. |
getUrl()
public String getUrl()Required. Location of the Git repo to build.
This will be used as a git remote, see
https://git-scm.com/docs/git-remote.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The url. |
getUrlBytes()
public ByteString getUrlBytes()Required. Location of the Git repo to build.
This will be used as a git remote, see
https://git-scm.com/docs/git-remote.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| 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(GitSource other)
public GitSource.Builder mergeFrom(GitSource other)| Parameter | |
|---|---|
| Name | Description |
other |
GitSource |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GitSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GitSource.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
|
setDir(String value)
public GitSource.Builder setDir(String value)Optional. Directory, relative to the source root, in which to run the build.
This must be a relative path. If a step's dir is specified and is an
absolute path, this value is ignored for that step's execution.
string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe dir to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setDirBytes(ByteString value)
public GitSource.Builder setDirBytes(ByteString value)Optional. Directory, relative to the source root, in which to run the build.
This must be a relative path. If a step's dir is specified and is an
absolute path, this value is ignored for that step's execution.
string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for dir to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setRevision(String value)
public GitSource.Builder setRevision(String value)Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
Cloud Build uses git fetch to fetch the revision from the Git
repository; therefore make sure that the string you provide for revision
is parsable by the command. For information on string values accepted by
git fetch, see
https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
information on git fetch, see https://git-scm.com/docs/git-fetch.
string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe revision to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setRevisionBytes(ByteString value)
public GitSource.Builder setRevisionBytes(ByteString value)Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
Cloud Build uses git fetch to fetch the revision from the Git
repository; therefore make sure that the string you provide for revision
is parsable by the command. For information on string values accepted by
git fetch, see
https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
information on git fetch, see https://git-scm.com/docs/git-fetch.
string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for revision to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setUrl(String value)
public GitSource.Builder setUrl(String value)Required. Location of the Git repo to build.
This will be used as a git remote, see
https://git-scm.com/docs/git-remote.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe url to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setUrlBytes(ByteString value)
public GitSource.Builder setUrlBytes(ByteString value)Required. Location of the Git repo to build.
This will be used as a git remote, see
https://git-scm.com/docs/git-remote.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for url to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |