Package com.google.cloudbuild.v1
Interface GitFileSourceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GitFileSource,GitFileSource.Builder
@Generated
public interface GitFileSourceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe 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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getPath
String getPath()The path of the file, with the repo root as the root of the path.
string path = 1;- Returns:
- The path.
-
getPathBytes
com.google.protobuf.ByteString getPathBytes()The path of the file, with the repo root as the root of the path.
string path = 1;- Returns:
- The bytes for path.
-
getUri
String 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;- Returns:
- The uri.
-
getUriBytes
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;- Returns:
- The bytes for uri.
-
hasRepository
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) = { ... }- Returns:
- Whether the repository field is set.
-
getRepository
String 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) = { ... }- Returns:
- The repository.
-
getRepositoryBytes
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) = { ... }- Returns:
- The bytes for repository.
-
getRepoTypeValue
int getRepoTypeValue()See RepoType above.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;- Returns:
- The enum numeric value on the wire for repoType.
-
getRepoType
GitFileSource.RepoType getRepoType()See RepoType above.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;- Returns:
- The repoType.
-
getRevision
String 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;- Returns:
- The revision.
-
getRevisionBytes
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;- Returns:
- The bytes for revision.
-
hasGithubEnterpriseConfig
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) = { ... }- Returns:
- Whether the githubEnterpriseConfig field is set.
-
getGithubEnterpriseConfig
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 = 5 [(.google.api.resource_reference) = { ... }- Returns:
- The githubEnterpriseConfig.
-
getGithubEnterpriseConfigBytes
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) = { ... }- Returns:
- The bytes for githubEnterpriseConfig.
-
getSourceCase
GitFileSource.SourceCase getSourceCase() -
getEnterpriseConfigCase
GitFileSource.EnterpriseConfigCase getEnterpriseConfigCase()
-