Package com.google.cloudbuild.v1
Class GitFileSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GitFileSource.Builder>
com.google.cloudbuild.v1.GitFileSource.Builder
- All Implemented Interfaces:
GitFileSourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GitFileSource
public static final class GitFileSource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GitFileSource.Builder>
implements GitFileSourceOrBuilder
GitFileSource describes a file within a (possibly remote) code repository.Protobuf type
google.devtools.cloudbuild.v1.GitFileSource-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The full resource name of the github enterprise config.The path of the file, with the repo root as the root of the path.The fully qualified resource name of the Repos API repository.See RepoType above.The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional).clearUri()The URI of the repo.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe full resource name of the github enterprise config.com.google.protobuf.ByteStringThe full resource name of the github enterprise config.getPath()The path of the file, with the repo root as the root of the path.com.google.protobuf.ByteStringThe path of the file, with the repo root as the root of the path.The fully qualified resource name of the Repos API repository.com.google.protobuf.ByteStringThe fully qualified resource name of the Repos API repository.See RepoType above.intSee RepoType above.The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional).com.google.protobuf.ByteStringThe branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional).getUri()The URI of the repo.com.google.protobuf.ByteStringThe URI of the repo.booleanThe full resource name of the github enterprise config.booleanThe fully qualified resource name of the Repos API repository.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(GitFileSource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setGithubEnterpriseConfig(String value) The full resource name of the github enterprise config.setGithubEnterpriseConfigBytes(com.google.protobuf.ByteString value) The full resource name of the github enterprise config.The path of the file, with the repo root as the root of the path.setPathBytes(com.google.protobuf.ByteString value) The path of the file, with the repo root as the root of the path.setRepository(String value) The fully qualified resource name of the Repos API repository.setRepositoryBytes(com.google.protobuf.ByteString value) The fully qualified resource name of the Repos API repository.See RepoType above.setRepoTypeValue(int value) See RepoType above.setRevision(String value) The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional).setRevisionBytes(com.google.protobuf.ByteString value) The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional).The URI of the repo.setUriBytes(com.google.protobuf.ByteString value) The URI of the repo.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GitFileSource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GitFileSource.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.GeneratedMessage.Builder<GitFileSource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GitFileSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GitFileSource.Builder>
-
mergeFrom
public GitFileSource.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<GitFileSource.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceGitFileSourceOrBuilder
-
clearSource
-
getEnterpriseConfigCase
- Specified by:
getEnterpriseConfigCasein interfaceGitFileSourceOrBuilder
-
clearEnterpriseConfig
-
getPath
The path of the file, with the repo root as the root of the path.
string path = 1;- Specified by:
getPathin interfaceGitFileSourceOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()The path of the file, with the repo root as the root of the path.
string path = 1;- Specified by:
getPathBytesin interfaceGitFileSourceOrBuilder- Returns:
- The bytes for path.
-
setPath
The path of the file, with the repo root as the root of the path.
string path = 1;- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
The path of the file, with the repo root as the root of the path.
string path = 1;- Returns:
- This builder for chaining.
-
setPathBytes
The path of the file, with the repo root as the root of the path.
string path = 1;- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getUri
The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
string uri = 2;- Specified by:
getUriin interfaceGitFileSourceOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
string uri = 2;- Specified by:
getUriBytesin interfaceGitFileSourceOrBuilder- Returns:
- The bytes for uri.
-
setUri
The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
string uri = 2;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
hasRepository
public boolean hasRepository()The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
string repository = 7 [(.google.api.resource_reference) = { ... }- Specified by:
hasRepositoryin interfaceGitFileSourceOrBuilder- Returns:
- Whether the repository field is set.
-
getRepository
The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
string repository = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getRepositoryin interfaceGitFileSourceOrBuilder- Returns:
- The repository.
-
getRepositoryBytes
public com.google.protobuf.ByteString getRepositoryBytes()The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
string repository = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getRepositoryBytesin interfaceGitFileSourceOrBuilder- Returns:
- The bytes for repository.
-
setRepository
The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
string repository = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The repository to set.- Returns:
- This builder for chaining.
-
clearRepository
The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
string repository = 7 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setRepositoryBytes
The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
string repository = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for repository to set.- Returns:
- This builder for chaining.
-
getRepoTypeValue
public int getRepoTypeValue()See RepoType above.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;- Specified by:
getRepoTypeValuein interfaceGitFileSourceOrBuilder- Returns:
- The enum numeric value on the wire for repoType.
-
setRepoTypeValue
See RepoType above.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;- Parameters:
value- The enum numeric value on the wire for repoType to set.- Returns:
- This builder for chaining.
-
getRepoType
See RepoType above.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;- Specified by:
getRepoTypein interfaceGitFileSourceOrBuilder- Returns:
- The repoType.
-
setRepoType
See RepoType above.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;- Parameters:
value- The repoType to set.- Returns:
- This builder for chaining.
-
clearRepoType
See RepoType above.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;- Returns:
- This builder for chaining.
-
getRevision
The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
string revision = 4;- Specified by:
getRevisionin interfaceGitFileSourceOrBuilder- Returns:
- The revision.
-
getRevisionBytes
public com.google.protobuf.ByteString getRevisionBytes()The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
string revision = 4;- Specified by:
getRevisionBytesin interfaceGitFileSourceOrBuilder- Returns:
- The bytes for revision.
-
setRevision
The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
string revision = 4;- Parameters:
value- The revision to set.- Returns:
- This builder for chaining.
-
clearRevision
The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
string revision = 4;- Returns:
- This builder for chaining.
-
setRevisionBytes
The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
string revision = 4;- Parameters:
value- The bytes for revision to set.- Returns:
- This builder for chaining.
-
hasGithubEnterpriseConfig
public boolean hasGithubEnterpriseConfig()The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.string github_enterprise_config = 5 [(.google.api.resource_reference) = { ... }- Specified by:
hasGithubEnterpriseConfigin interfaceGitFileSourceOrBuilder- Returns:
- Whether the githubEnterpriseConfig field is set.
-
getGithubEnterpriseConfig
The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.string github_enterprise_config = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getGithubEnterpriseConfigin interfaceGitFileSourceOrBuilder- Returns:
- The githubEnterpriseConfig.
-
getGithubEnterpriseConfigBytes
public com.google.protobuf.ByteString getGithubEnterpriseConfigBytes()The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.string github_enterprise_config = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getGithubEnterpriseConfigBytesin interfaceGitFileSourceOrBuilder- Returns:
- The bytes for githubEnterpriseConfig.
-
setGithubEnterpriseConfig
The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.string github_enterprise_config = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The githubEnterpriseConfig to set.- Returns:
- This builder for chaining.
-
clearGithubEnterpriseConfig
The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.string github_enterprise_config = 5 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setGithubEnterpriseConfigBytes
The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.string github_enterprise_config = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for githubEnterpriseConfig to set.- Returns:
- This builder for chaining.
-