public interface SourceContextOrBuilder extends MessageOrBuilder
Modifier and Type | Method and 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).
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
boolean hasCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
CloudRepoSourceContext getCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
CloudRepoSourceContextOrBuilder getCloudRepoOrBuilder()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
boolean hasGerrit()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
GerritSourceContext getGerrit()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
GerritSourceContextOrBuilder getGerritOrBuilder()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
boolean hasGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
GitSourceContext getGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
GitSourceContextOrBuilder getGitOrBuilder()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
int getLabelsCount()
Labels with user defined metadata.
map<string, string> labels = 4;
boolean containsLabels(String key)
Labels with user defined metadata.
map<string, string> labels = 4;
@Deprecated Map<String,String> getLabels()
getLabelsMap()
instead.Map<String,String> getLabelsMap()
Labels with user defined metadata.
map<string, string> labels = 4;
String getLabelsOrDefault(String key, String defaultValue)
Labels with user defined metadata.
map<string, string> labels = 4;
String getLabelsOrThrow(String key)
Labels with user defined metadata.
map<string, string> labels = 4;
SourceContext.ContextCase getContextCase()
Copyright © 2019 Google LLC. All rights reserved.