Package com.google.cloudbuild.v1
Class GitRepoSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GitRepoSource.Builder>
com.google.cloudbuild.v1.GitRepoSource.Builder
- All Implemented Interfaces:
GitRepoSourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GitRepoSource
public static final class GitRepoSource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GitRepoSource.Builder>
implements GitRepoSourceOrBuilder
GitRepoSource describes a repo and ref of a code repository.Protobuf type
google.devtools.cloudbuild.v1.GitRepoSource-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The full resource name of the github enterprise config.clearRef()The branch or tag to use.The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`.See RepoType below.clearUri()The URI of the repo (e.g. https://github.com/user/repo.git).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.getRef()The branch or tag to use.com.google.protobuf.ByteStringThe branch or tag to use.The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`.com.google.protobuf.ByteStringThe connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`.See RepoType below.intSee RepoType below.getUri()The URI of the repo (e.g. https://github.com/user/repo.git).com.google.protobuf.ByteStringThe URI of the repo (e.g. https://github.com/user/repo.git).booleanThe full resource name of the github enterprise config.booleanThe connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(GitRepoSource 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 branch or tag to use.setRefBytes(com.google.protobuf.ByteString value) The branch or tag to use.setRepository(String value) The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`.setRepositoryBytes(com.google.protobuf.ByteString value) The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`.See RepoType below.setRepoTypeValue(int value) See RepoType below.The URI of the repo (e.g. https://github.com/user/repo.git).setUriBytes(com.google.protobuf.ByteString value) The URI of the repo (e.g. https://github.com/user/repo.git).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<GitRepoSource.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<GitRepoSource.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<GitRepoSource.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<GitRepoSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GitRepoSource.Builder>
-
mergeFrom
public GitRepoSource.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<GitRepoSource.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceGitRepoSourceOrBuilder
-
clearSource
-
getEnterpriseConfigCase
- Specified by:
getEnterpriseConfigCasein interfaceGitRepoSourceOrBuilder
-
clearEnterpriseConfig
-
getUri
The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.
string uri = 1;- Specified by:
getUriin interfaceGitRepoSourceOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.
string uri = 1;- Specified by:
getUriBytesin interfaceGitRepoSourceOrBuilder- Returns:
- The bytes for uri.
-
setUri
The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.
string uri = 1;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.
string uri = 1;- Returns:
- This builder for chaining.
-
setUriBytes
The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.
string uri = 1;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
hasRepository
public boolean hasRepository()The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
string repository = 6 [(.google.api.resource_reference) = { ... }- Specified by:
hasRepositoryin interfaceGitRepoSourceOrBuilder- Returns:
- Whether the repository field is set.
-
getRepository
The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
string repository = 6 [(.google.api.resource_reference) = { ... }- Specified by:
getRepositoryin interfaceGitRepoSourceOrBuilder- Returns:
- The repository.
-
getRepositoryBytes
public com.google.protobuf.ByteString getRepositoryBytes()The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
string repository = 6 [(.google.api.resource_reference) = { ... }- Specified by:
getRepositoryBytesin interfaceGitRepoSourceOrBuilder- Returns:
- The bytes for repository.
-
setRepository
The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
string repository = 6 [(.google.api.resource_reference) = { ... }- Parameters:
value- The repository to set.- Returns:
- This builder for chaining.
-
clearRepository
The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
string repository = 6 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setRepositoryBytes
The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
string repository = 6 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for repository to set.- Returns:
- This builder for chaining.
-
getRef
The branch or tag to use. Must start with "refs/" (required).
string ref = 2;- Specified by:
getRefin interfaceGitRepoSourceOrBuilder- Returns:
- The ref.
-
getRefBytes
public com.google.protobuf.ByteString getRefBytes()The branch or tag to use. Must start with "refs/" (required).
string ref = 2;- Specified by:
getRefBytesin interfaceGitRepoSourceOrBuilder- Returns:
- The bytes for ref.
-
setRef
The branch or tag to use. Must start with "refs/" (required).
string ref = 2;- Parameters:
value- The ref to set.- Returns:
- This builder for chaining.
-
clearRef
The branch or tag to use. Must start with "refs/" (required).
string ref = 2;- Returns:
- This builder for chaining.
-
setRefBytes
The branch or tag to use. Must start with "refs/" (required).
string ref = 2;- Parameters:
value- The bytes for ref to set.- Returns:
- This builder for chaining.
-
getRepoTypeValue
public int getRepoTypeValue()See RepoType below.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;- Specified by:
getRepoTypeValuein interfaceGitRepoSourceOrBuilder- Returns:
- The enum numeric value on the wire for repoType.
-
setRepoTypeValue
See RepoType below.
.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 below.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;- Specified by:
getRepoTypein interfaceGitRepoSourceOrBuilder- Returns:
- The repoType.
-
setRepoType
See RepoType below.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;- Parameters:
value- The repoType to set.- Returns:
- This builder for chaining.
-
clearRepoType
See RepoType below.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;- 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 = 4 [(.google.api.resource_reference) = { ... }- Specified by:
hasGithubEnterpriseConfigin interfaceGitRepoSourceOrBuilder- 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 = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getGithubEnterpriseConfigin interfaceGitRepoSourceOrBuilder- 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 = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getGithubEnterpriseConfigBytesin interfaceGitRepoSourceOrBuilder- 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 = 4 [(.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 = 4 [(.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 = 4 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for githubEnterpriseConfig to set.- Returns:
- This builder for chaining.
-