public static final class GitSource.Builder extends GeneratedMessage.Builder<GitSource.Builder> implements GitSourceOrBuilderDefines how to access a Git Source.
Protobuf type google.cloud.privatecatalog.v1beta1.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 |
|
clearBranch()
public GitSource.Builder clearBranch()The revision branch to use.
string branch = 4;
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
clearCommit()
public GitSource.Builder clearCommit()The revision commit to use.
string commit = 3;
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
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 = 2;
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
clearRef()
public GitSource.Builder clearRef()| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
|
clearRepo()
public GitSource.Builder clearRepo()Location of the Git repo to build.
string repo = 1;
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
clearTag()
public GitSource.Builder clearTag()The revision tag to use.
string tag = 5;
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
getBranch()
public String getBranch()The revision branch to use.
string branch = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The branch. |
getBranchBytes()
public ByteString getBranchBytes()The revision branch to use.
string branch = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for branch. |
getCommit()
public String getCommit()The revision commit to use.
string commit = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The commit. |
getCommitBytes()
public ByteString getCommitBytes()The revision commit to use.
string commit = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for commit. |
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 = 2;
| 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 = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for dir. |
getRefCase()
public GitSource.RefCase getRefCase()| Returns | |
|---|---|
| Type | Description |
GitSource.RefCase |
|
getRepo()
public String getRepo()Location of the Git repo to build.
string repo = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The repo. |
getRepoBytes()
public ByteString getRepoBytes()Location of the Git repo to build.
string repo = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for repo. |
getTag()
public String getTag()The revision tag to use.
string tag = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The tag. |
getTagBytes()
public ByteString getTagBytes()The revision tag to use.
string tag = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tag. |
hasBranch()
public boolean hasBranch()The revision branch to use.
string branch = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the branch field is set. |
hasCommit()
public boolean hasCommit()The revision commit to use.
string commit = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the commit field is set. |
hasTag()
public boolean hasTag()The revision tag to use.
string tag = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the tag field is set. |
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 |
|
setBranch(String value)
public GitSource.Builder setBranch(String value)The revision branch to use.
string branch = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe branch to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setBranchBytes(ByteString value)
public GitSource.Builder setBranchBytes(ByteString value)The revision branch to use.
string branch = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for branch to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setCommit(String value)
public GitSource.Builder setCommit(String value)The revision commit to use.
string commit = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe commit to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setCommitBytes(ByteString value)
public GitSource.Builder setCommitBytes(ByteString value)The revision commit to use.
string commit = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for commit to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
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 = 2;
| 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)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 = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for dir to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setRepo(String value)
public GitSource.Builder setRepo(String value)Location of the Git repo to build.
string repo = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe repo to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setRepoBytes(ByteString value)
public GitSource.Builder setRepoBytes(ByteString value)Location of the Git repo to build.
string repo = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for repo to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setTag(String value)
public GitSource.Builder setTag(String value)The revision tag to use.
string tag = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tag to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |
setTagBytes(ByteString value)
public GitSource.Builder setTagBytes(ByteString value)The revision tag to use.
string tag = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tag to set. |
| Returns | |
|---|---|
| Type | Description |
GitSource.Builder |
This builder for chaining. |