Class GitSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
- com.google.cloud.privatecatalog.v1beta1.GitSource.Builder
-
- All Implemented Interfaces:
GitSourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GitSource
public static final class GitSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder> implements GitSourceOrBuilder
Defines how to access a Git Source.
Protobuf typegoogle.cloud.privatecatalog.v1beta1.GitSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GitSource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GitSourcebuild()GitSourcebuildPartial()GitSource.Builderclear()GitSource.BuilderclearBranch()The revision branch to use.GitSource.BuilderclearCommit()The revision commit to use.GitSource.BuilderclearDir()Directory, relative to the source root, in which to run the build.GitSource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GitSource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GitSource.BuilderclearRef()GitSource.BuilderclearRepo()Location of the Git repo to build.GitSource.BuilderclearTag()The revision tag to use.GitSource.Builderclone()StringgetBranch()The revision branch to use.com.google.protobuf.ByteStringgetBranchBytes()The revision branch to use.StringgetCommit()The revision commit to use.com.google.protobuf.ByteStringgetCommitBytes()The revision commit to use.GitSourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDir()Directory, relative to the source root, in which to run the build.com.google.protobuf.ByteStringgetDirBytes()Directory, relative to the source root, in which to run the build.GitSource.RefCasegetRefCase()StringgetRepo()Location of the Git repo to build.com.google.protobuf.ByteStringgetRepoBytes()Location of the Git repo to build.StringgetTag()The revision tag to use.com.google.protobuf.ByteStringgetTagBytes()The revision tag to use.booleanhasBranch()The revision branch to use.booleanhasCommit()The revision commit to use.booleanhasTag()The revision tag to use.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GitSource.BuildermergeFrom(GitSource other)GitSource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GitSource.BuildermergeFrom(com.google.protobuf.Message other)GitSource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GitSource.BuildersetBranch(String value)The revision branch to use.GitSource.BuildersetBranchBytes(com.google.protobuf.ByteString value)The revision branch to use.GitSource.BuildersetCommit(String value)The revision commit to use.GitSource.BuildersetCommitBytes(com.google.protobuf.ByteString value)The revision commit to use.GitSource.BuildersetDir(String value)Directory, relative to the source root, in which to run the build.GitSource.BuildersetDirBytes(com.google.protobuf.ByteString value)Directory, relative to the source root, in which to run the build.GitSource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GitSource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GitSource.BuildersetRepo(String value)Location of the Git repo to build.GitSource.BuildersetRepoBytes(com.google.protobuf.ByteString value)Location of the Git repo to build.GitSource.BuildersetTag(String value)The revision tag to use.GitSource.BuildersetTagBytes(com.google.protobuf.ByteString value)The revision tag to use.GitSource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
clear
public GitSource.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
getDefaultInstanceForType
public GitSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GitSource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GitSource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GitSource.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
setField
public GitSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
clearField
public GitSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
clearOneof
public GitSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
setRepeatedField
public GitSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
addRepeatedField
public GitSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
mergeFrom
public GitSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GitSource.Builder>
-
mergeFrom
public GitSource.Builder mergeFrom(GitSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
mergeFrom
public GitSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GitSource.Builder>- Throws:
IOException
-
getRefCase
public GitSource.RefCase getRefCase()
- Specified by:
getRefCasein interfaceGitSourceOrBuilder
-
clearRef
public GitSource.Builder clearRef()
-
getRepo
public String getRepo()
Location of the Git repo to build.
string repo = 1;- Specified by:
getRepoin interfaceGitSourceOrBuilder- Returns:
- The repo.
-
getRepoBytes
public com.google.protobuf.ByteString getRepoBytes()
Location of the Git repo to build.
string repo = 1;- Specified by:
getRepoBytesin interfaceGitSourceOrBuilder- Returns:
- The bytes for repo.
-
setRepo
public GitSource.Builder setRepo(String value)
Location of the Git repo to build.
string repo = 1;- Parameters:
value- The repo to set.- Returns:
- This builder for chaining.
-
clearRepo
public GitSource.Builder clearRepo()
Location of the Git repo to build.
string repo = 1;- Returns:
- This builder for chaining.
-
setRepoBytes
public GitSource.Builder setRepoBytes(com.google.protobuf.ByteString value)
Location of the Git repo to build.
string repo = 1;- Parameters:
value- The bytes for repo to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getDirin interfaceGitSourceOrBuilder- Returns:
- The dir.
-
getDirBytes
public com.google.protobuf.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;- Specified by:
getDirBytesin interfaceGitSourceOrBuilder- Returns:
- The bytes for dir.
-
setDir
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;- Parameters:
value- The dir to set.- Returns:
- 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:
- This builder for chaining.
-
setDirBytes
public GitSource.Builder setDirBytes(com.google.protobuf.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;- Parameters:
value- The bytes for dir to set.- Returns:
- This builder for chaining.
-
hasCommit
public boolean hasCommit()
The revision commit to use.
string commit = 3;- Specified by:
hasCommitin interfaceGitSourceOrBuilder- Returns:
- Whether the commit field is set.
-
getCommit
public String getCommit()
The revision commit to use.
string commit = 3;- Specified by:
getCommitin interfaceGitSourceOrBuilder- Returns:
- The commit.
-
getCommitBytes
public com.google.protobuf.ByteString getCommitBytes()
The revision commit to use.
string commit = 3;- Specified by:
getCommitBytesin interfaceGitSourceOrBuilder- Returns:
- The bytes for commit.
-
setCommit
public GitSource.Builder setCommit(String value)
The revision commit to use.
string commit = 3;- Parameters:
value- The commit to set.- Returns:
- This builder for chaining.
-
clearCommit
public GitSource.Builder clearCommit()
The revision commit to use.
string commit = 3;- Returns:
- This builder for chaining.
-
setCommitBytes
public GitSource.Builder setCommitBytes(com.google.protobuf.ByteString value)
The revision commit to use.
string commit = 3;- Parameters:
value- The bytes for commit to set.- Returns:
- This builder for chaining.
-
hasBranch
public boolean hasBranch()
The revision branch to use.
string branch = 4;- Specified by:
hasBranchin interfaceGitSourceOrBuilder- Returns:
- Whether the branch field is set.
-
getBranch
public String getBranch()
The revision branch to use.
string branch = 4;- Specified by:
getBranchin interfaceGitSourceOrBuilder- Returns:
- The branch.
-
getBranchBytes
public com.google.protobuf.ByteString getBranchBytes()
The revision branch to use.
string branch = 4;- Specified by:
getBranchBytesin interfaceGitSourceOrBuilder- Returns:
- The bytes for branch.
-
setBranch
public GitSource.Builder setBranch(String value)
The revision branch to use.
string branch = 4;- Parameters:
value- The branch to set.- Returns:
- This builder for chaining.
-
clearBranch
public GitSource.Builder clearBranch()
The revision branch to use.
string branch = 4;- Returns:
- This builder for chaining.
-
setBranchBytes
public GitSource.Builder setBranchBytes(com.google.protobuf.ByteString value)
The revision branch to use.
string branch = 4;- Parameters:
value- The bytes for branch to set.- Returns:
- This builder for chaining.
-
hasTag
public boolean hasTag()
The revision tag to use.
string tag = 5;- Specified by:
hasTagin interfaceGitSourceOrBuilder- Returns:
- Whether the tag field is set.
-
getTag
public String getTag()
The revision tag to use.
string tag = 5;- Specified by:
getTagin interfaceGitSourceOrBuilder- Returns:
- The tag.
-
getTagBytes
public com.google.protobuf.ByteString getTagBytes()
The revision tag to use.
string tag = 5;- Specified by:
getTagBytesin interfaceGitSourceOrBuilder- Returns:
- The bytes for tag.
-
setTag
public GitSource.Builder setTag(String value)
The revision tag to use.
string tag = 5;- Parameters:
value- The tag to set.- Returns:
- This builder for chaining.
-
clearTag
public GitSource.Builder clearTag()
The revision tag to use.
string tag = 5;- Returns:
- This builder for chaining.
-
setTagBytes
public GitSource.Builder setTagBytes(com.google.protobuf.ByteString value)
The revision tag to use.
string tag = 5;- Parameters:
value- The bytes for tag to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GitSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
mergeUnknownFields
public final GitSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
-
-