Package io.grafeas.v1beta1.source
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 Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Labels with user defined metadata.A SourceContext referring to a revision in a Google Cloud Source Repo.A SourceContext referring to a revision in a Google Cloud Source Repo.A SourceContext referring to a Gerrit project.A SourceContext referring to a Gerrit project.getGit()A SourceContext referring to any third party Git repo (e.g., GitHub).A SourceContext referring to any third party Git repo (e.g., GitHub).Deprecated.intLabels with user defined metadata.Labels with user defined metadata.getLabelsOrDefault(String key, String defaultValue) Labels with user defined metadata.getLabelsOrThrow(String key) Labels with user defined metadata.booleanA SourceContext referring to a revision in a Google Cloud Source Repo.booleanA SourceContext referring to a Gerrit project.booleanhasGit()A SourceContext referring to any third party Git repo (e.g., GitHub).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
-
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
Labels with user defined metadata.
map<string, string> labels = 4; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
getLabelsMap
Labels with user defined metadata.
map<string, string> labels = 4; -
getLabelsOrDefault
Labels with user defined metadata.
map<string, string> labels = 4; -
getLabelsOrThrow
Labels with user defined metadata.
map<string, string> labels = 4; -
getContextCase
SourceContext.ContextCase getContextCase()
-