Class GitRepoSource.Builder (3.78.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 3.82.0 (latest)
- 3.80.0
- 3.78.0
- 3.77.0
- 3.76.0
- 3.75.0
- 3.74.0
- 3.72.0
- 3.70.0
- 3.69.0
- 3.66.0
- 3.65.0
- 3.64.0
- 3.62.0
- 3.61.0
- 3.60.0
- 3.59.0
- 3.58.0
- 3.57.0
- 3.56.0
- 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
publicstaticfinalclass GitRepoSource.BuilderextendsGeneratedMessageV3.Builder<GitRepoSource.Builder>implementsGitRepoSourceOrBuilderGitRepoSource describes a repo and ref of a code repository.
Protobuf type google.devtools.cloudbuild.v1.GitRepoSource
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GitRepoSource.BuilderImplements
GitRepoSourceOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicGitRepoSource.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
build()
publicGitRepoSourcebuild()| Returns | |
|---|---|
| Type | Description |
GitRepoSource |
|
buildPartial()
publicGitRepoSourcebuildPartial()| Returns | |
|---|---|
| Type | Description |
GitRepoSource |
|
clear()
publicGitRepoSource.Builderclear()| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
clearEnterpriseConfig()
publicGitRepoSource.BuilderclearEnterpriseConfig()| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicGitRepoSource.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
clearGithubEnterpriseConfig()
publicGitRepoSource.BuilderclearGithubEnterpriseConfig() 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 | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicGitRepoSource.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
clearRef()
publicGitRepoSource.BuilderclearRef()The branch or tag to use. Must start with "refs/" (required).
string ref = 2;
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
clearRepoType()
publicGitRepoSource.BuilderclearRepoType()See RepoType below.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
clearRepository()
publicGitRepoSource.BuilderclearRepository() 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 | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
clearSource()
publicGitRepoSource.BuilderclearSource()| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
clearUri()
publicGitRepoSource.BuilderclearUri() 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 | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
clone()
publicGitRepoSource.Builderclone()| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
getDefaultInstanceForType()
publicGitRepoSourcegetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GitRepoSource |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnterpriseConfigCase()
publicGitRepoSource.EnterpriseConfigCasegetEnterpriseConfigCase()| Returns | |
|---|---|
| Type | Description |
GitRepoSource.EnterpriseConfigCase |
|
getGithubEnterpriseConfig()
publicStringgetGithubEnterpriseConfig() 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 | |
|---|---|
| Type | Description |
String |
The githubEnterpriseConfig. |
getGithubEnterpriseConfigBytes()
publicByteStringgetGithubEnterpriseConfigBytes() 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for githubEnterpriseConfig. |
getRef()
publicStringgetRef()The branch or tag to use. Must start with "refs/" (required).
string ref = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The ref. |
getRefBytes()
publicByteStringgetRefBytes()The branch or tag to use. Must start with "refs/" (required).
string ref = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for ref. |
getRepoType()
publicGitFileSource.RepoTypegetRepoType()See RepoType below.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;
| Returns | |
|---|---|
| Type | Description |
GitFileSource.RepoType |
The repoType. |
getRepoTypeValue()
publicintgetRepoTypeValue()See RepoType below.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for repoType. |
getRepository()
publicStringgetRepository() 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 | |
|---|---|
| Type | Description |
String |
The repository. |
getRepositoryBytes()
publicByteStringgetRepositoryBytes() 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for repository. |
getSourceCase()
publicGitRepoSource.SourceCasegetSourceCase()| Returns | |
|---|---|
| Type | Description |
GitRepoSource.SourceCase |
|
getUri()
publicStringgetUri() 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 | |
|---|---|
| Type | Description |
String |
The uri. |
getUriBytes()
publicByteStringgetUriBytes() 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for uri. |
hasGithubEnterpriseConfig()
publicbooleanhasGithubEnterpriseConfig() 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 | |
|---|---|
| Type | Description |
boolean |
Whether the githubEnterpriseConfig field is set. |
hasRepository()
publicbooleanhasRepository() 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 | |
|---|---|
| Type | Description |
boolean |
Whether the repository field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GitRepoSource other)
publicGitRepoSource.BuildermergeFrom(GitRepoSourceother)| Parameter | |
|---|---|
| Name | Description |
other |
GitRepoSource |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicGitRepoSource.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicGitRepoSource.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalGitRepoSource.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicGitRepoSource.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
setGithubEnterpriseConfig(String value)
publicGitRepoSource.BuildersetGithubEnterpriseConfig(Stringvalue) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
String The githubEnterpriseConfig to set. |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
setGithubEnterpriseConfigBytes(ByteString value)
publicGitRepoSource.BuildersetGithubEnterpriseConfigBytes(ByteStringvalue) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for githubEnterpriseConfig to set. |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
setRef(String value)
publicGitRepoSource.BuildersetRef(Stringvalue)The branch or tag to use. Must start with "refs/" (required).
string ref = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
String The ref to set. |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
setRefBytes(ByteString value)
publicGitRepoSource.BuildersetRefBytes(ByteStringvalue)The branch or tag to use. Must start with "refs/" (required).
string ref = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for ref to set. |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicGitRepoSource.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
setRepoType(GitFileSource.RepoType value)
publicGitRepoSource.BuildersetRepoType(GitFileSource.RepoTypevalue)See RepoType below.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
GitFileSource.RepoType The repoType to set. |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
setRepoTypeValue(int value)
publicGitRepoSource.BuildersetRepoTypeValue(intvalue)See RepoType below.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for repoType to set. |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
setRepository(String value)
publicGitRepoSource.BuildersetRepository(Stringvalue) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
String The repository to set. |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
setRepositoryBytes(ByteString value)
publicGitRepoSource.BuildersetRepositoryBytes(ByteStringvalue) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for repository to set. |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalGitRepoSource.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
|
setUri(String value)
publicGitRepoSource.BuildersetUri(Stringvalue) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
String The uri to set. |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
publicGitRepoSource.BuildersetUriBytes(ByteStringvalue) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
GitRepoSource.Builder |
This builder for chaining. |