Interface GitRepoSourceOrBuilder (3.35.0)

public interface GitRepoSourceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnterpriseConfigCase()

public abstract GitRepoSource.EnterpriseConfigCase getEnterpriseConfigCase()
Returns
TypeDescription
GitRepoSource.EnterpriseConfigCase

getGithubEnterpriseConfig()

public abstract String 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) = { ... }

Returns
TypeDescription
String

The githubEnterpriseConfig.

getGithubEnterpriseConfigBytes()

public abstract 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for githubEnterpriseConfig.

getRef()

public abstract String getRef()

The branch or tag to use. Must start with "refs/" (required).

string ref = 2;

Returns
TypeDescription
String

The ref.

getRefBytes()

public abstract ByteString getRefBytes()

The branch or tag to use. Must start with "refs/" (required).

string ref = 2;

Returns
TypeDescription
ByteString

The bytes for ref.

getRepoType()

public abstract GitFileSource.RepoType getRepoType()

See RepoType below.

.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;

Returns
TypeDescription
GitFileSource.RepoType

The repoType.

getRepoTypeValue()

public abstract int getRepoTypeValue()

See RepoType below.

.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for repoType.

getRepository()

public abstract String 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) = { ... }

Returns
TypeDescription
String

The repository.

getRepositoryBytes()

public abstract 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for repository.

getSourceCase()

public abstract GitRepoSource.SourceCase getSourceCase()
Returns
TypeDescription
GitRepoSource.SourceCase

getUri()

public abstract String 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;

Returns
TypeDescription
String

The uri.

getUriBytes()

public abstract 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;

Returns
TypeDescription
ByteString

The bytes for uri.

hasGithubEnterpriseConfig()

public abstract 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) = { ... }

Returns
TypeDescription
boolean

Whether the githubEnterpriseConfig field is set.

hasRepository()

public abstract 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) = { ... }

Returns
TypeDescription
boolean

Whether the repository field is set.