Interface GitRepoSourceOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
GitRepoSource, GitRepoSource.Builder

@Generated public interface GitRepoSourceOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
     
    The full resource name of the github enterprise config.
    com.google.protobuf.ByteString
    The full resource name of the github enterprise config.
    The branch or tag to use.
    com.google.protobuf.ByteString
    The branch or tag to use.
    The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`.
    com.google.protobuf.ByteString
    The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`.
    See RepoType below.
    int
    See RepoType below.
     
    The URI of the repo (e.g. https://github.com/user/repo.git).
    com.google.protobuf.ByteString
    The URI of the repo (e.g. https://github.com/user/repo.git).
    boolean
    The full resource name of the github enterprise config.
    boolean
    The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getUri

      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:
      The uri.
    • getUriBytes

      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;
      Returns:
      The bytes for uri.
    • hasRepository

      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:
      Whether the repository field is set.
    • getRepository

      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:
      The repository.
    • getRepositoryBytes

      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) = { ... }
      Returns:
      The bytes for repository.
    • getRef

      String getRef()
       The branch or tag to use. Must start with "refs/" (required).
       
      string ref = 2;
      Returns:
      The ref.
    • getRefBytes

      com.google.protobuf.ByteString getRefBytes()
       The branch or tag to use. Must start with "refs/" (required).
       
      string ref = 2;
      Returns:
      The bytes for ref.
    • getRepoTypeValue

      int getRepoTypeValue()
       See RepoType below.
       
      .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 below.
       
      .google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;
      Returns:
      The repoType.
    • 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 = 4 [(.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 = 4 [(.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 = 4 [(.google.api.resource_reference) = { ... }
      Returns:
      The bytes for githubEnterpriseConfig.
    • getSourceCase

      GitRepoSource.SourceCase getSourceCase()
    • getEnterpriseConfigCase

      GitRepoSource.EnterpriseConfigCase getEnterpriseConfigCase()