Package io.grafeas.v1beta1.source
Interface SourceContextOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SourceContext
,SourceContext.Builder
public interface SourceContextOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels with user defined metadata.CloudRepoSourceContext
getCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.CloudRepoSourceContextOrBuilder
getCloudRepoOrBuilder()
A SourceContext referring to a revision in a Google Cloud Source Repo.SourceContext.ContextCase
getContextCase()
GerritSourceContext
getGerrit()
A SourceContext referring to a Gerrit project.GerritSourceContextOrBuilder
getGerritOrBuilder()
A SourceContext referring to a Gerrit project.GitSourceContext
getGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).GitSourceContextOrBuilder
getGitOrBuilder()
A SourceContext referring to any third party Git repo (e.g., GitHub).Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels with user defined metadata.Map<String,String>
getLabelsMap()
Labels with user defined metadata.String
getLabelsOrDefault(String key, String defaultValue)
Labels with user defined metadata.String
getLabelsOrThrow(String key)
Labels with user defined metadata.boolean
hasCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.boolean
hasGerrit()
A SourceContext referring to a Gerrit project.boolean
hasGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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
GitSourceContext 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 Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
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()
-
-