Interface SourceContextOrBuilder

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

@Generated public interface SourceContextOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasCloudRepo

      boolean hasCloudRepo()
       A SourceContext referring to a revision in a Google Cloud Source Repo.
       
      .grafeas.v1beta1.source.CloudRepoSourceContext cloud_repo = 1;
      Returns:
      Whether the cloudRepo field is set.
    • getCloudRepo

      CloudRepoSourceContext getCloudRepo()
       A SourceContext referring to a revision in a Google Cloud Source Repo.
       
      .grafeas.v1beta1.source.CloudRepoSourceContext cloud_repo = 1;
      Returns:
      The cloudRepo.
    • getCloudRepoOrBuilder

      CloudRepoSourceContextOrBuilder getCloudRepoOrBuilder()
       A SourceContext referring to a revision in a Google Cloud Source Repo.
       
      .grafeas.v1beta1.source.CloudRepoSourceContext cloud_repo = 1;
    • hasGerrit

      boolean hasGerrit()
       A SourceContext referring to a Gerrit project.
       
      .grafeas.v1beta1.source.GerritSourceContext gerrit = 2;
      Returns:
      Whether the gerrit field is set.
    • getGerrit

      GerritSourceContext getGerrit()
       A SourceContext referring to a Gerrit project.
       
      .grafeas.v1beta1.source.GerritSourceContext gerrit = 2;
      Returns:
      The gerrit.
    • getGerritOrBuilder

      GerritSourceContextOrBuilder getGerritOrBuilder()
       A SourceContext referring to a Gerrit project.
       
      .grafeas.v1beta1.source.GerritSourceContext gerrit = 2;
    • hasGit

      boolean hasGit()
       A SourceContext referring to any third party Git repo (e.g., GitHub).
       
      .grafeas.v1beta1.source.GitSourceContext git = 3;
      Returns:
      Whether the git field is set.
    • getGit

       A SourceContext referring to any third party Git repo (e.g., GitHub).
       
      .grafeas.v1beta1.source.GitSourceContext git = 3;
      Returns:
      The git.
    • getGitOrBuilder

      GitSourceContextOrBuilder getGitOrBuilder()
       A SourceContext referring to any third party Git repo (e.g., GitHub).
       
      .grafeas.v1beta1.source.GitSourceContext git = 3;
    • getLabelsCount

      int getLabelsCount()
       Labels with user defined metadata.
       
      map<string, string> labels = 4;
    • containsLabels

      boolean containsLabels(String key)
       Labels with user defined metadata.
       
      map<string, string> labels = 4;
    • getLabels

      Deprecated.
      Use getLabelsMap() instead.
    • getLabelsMap

      Map<String,String> getLabelsMap()
       Labels with user defined metadata.
       
      map<string, string> labels = 4;
    • getLabelsOrDefault

      String getLabelsOrDefault(String key, String defaultValue)
       Labels with user defined metadata.
       
      map<string, string> labels = 4;
    • getLabelsOrThrow

      String getLabelsOrThrow(String key)
       Labels with user defined metadata.
       
      map<string, string> labels = 4;
    • getContextCase

      SourceContext.ContextCase getContextCase()