- 3.56.0 (latest)
- 3.55.0
- 3.54.0
- 3.53.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.6
- 3.4.1
- 3.3.12
public static final class GitSource.Builder extends GeneratedMessageV3.Builder<GitSource.Builder> implements GitSourceOrBuilder
Location of the source in any accessible Git repository.
Protobuf type google.devtools.cloudbuild.v1.GitSource
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GitSource.BuilderImplements
GitSourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GitSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
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()
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;
Returns | |
---|---|
Type | Description |
GitSource.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public GitSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public GitSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
clearRevision()
public GitSource.Builder clearRevision()
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;
Returns | |
---|---|
Type | Description |
GitSource.Builder |
This builder for chaining. |
clearUrl()
public GitSource.Builder clearUrl()
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;
Returns | |
---|---|
Type | Description |
GitSource.Builder |
This builder for chaining. |
clone()
public GitSource.Builder clone()
Returns | |
---|---|
Type | Description |
GitSource.Builder |
getDefaultInstanceForType()
public GitSource getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
GitSource |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDir()
public String getDir()
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;
Returns | |
---|---|
Type | Description |
String |
The dir. |
getDirBytes()
public ByteString getDirBytes()
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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for dir. |
getRevision()
public String getRevision()
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;
Returns | |
---|---|
Type | Description |
String |
The revision. |
getRevisionBytes()
public ByteString getRevisionBytes()
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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for revision. |
getUrl()
public String getUrl()
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;
Returns | |
---|---|
Type | Description |
String |
The url. |
getUrlBytes()
public ByteString getUrlBytes()
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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for url. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GitSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
setDir(String value)
public GitSource.Builder setDir(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The dir to set. |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
This builder for chaining. |
setDirBytes(ByteString value)
public GitSource.Builder setDirBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for dir to set. |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public GitSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GitSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
setRevision(String value)
public GitSource.Builder setRevision(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The revision to set. |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
This builder for chaining. |
setRevisionBytes(ByteString value)
public GitSource.Builder setRevisionBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for revision to set. |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final GitSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
setUrl(String value)
public GitSource.Builder setUrl(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The url to set. |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
This builder for chaining. |
setUrlBytes(ByteString value)
public GitSource.Builder setUrlBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for url to set. |
Returns | |
---|---|
Type | Description |
GitSource.Builder |
This builder for chaining. |