Interface GitRepoSourceOrBuilder (3.56.0)

public interface GitRepoSourceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnterpriseConfigCase()

public abstract GitRepoSource.EnterpriseConfigCase getEnterpriseConfigCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
String

The ref.

getRefBytes()

public abstract ByteString getRefBytes()

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

string ref = 2;

Returns
Type Description
ByteString

The bytes for ref.

getRepoType()

public abstract GitFileSource.RepoType getRepoType()

See RepoType below.

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

Returns
Type Description
GitFileSource.RepoType

The repoType.

getRepoTypeValue()

public abstract int getRepoTypeValue()

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()

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
Type Description
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
Type Description
ByteString

The bytes for repository.

getSourceCase()

public abstract GitRepoSource.SourceCase getSourceCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the repository field is set.