public static final class SourceContext.Builder extends GeneratedMessageV3.Builder<SourceContext.Builder> implements SourceContextOrBuilder
A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.Protobuf type
grafeas.v1.SourceContext| Modifier and Type | Method and Description |
|---|---|
SourceContext.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
SourceContext |
build() |
SourceContext |
buildPartial() |
SourceContext.Builder |
clear() |
SourceContext.Builder |
clearCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.
|
SourceContext.Builder |
clearContext() |
SourceContext.Builder |
clearField(Descriptors.FieldDescriptor field) |
SourceContext.Builder |
clearGerrit()
A SourceContext referring to a Gerrit project.
|
SourceContext.Builder |
clearGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).
|
SourceContext.Builder |
clearLabels() |
SourceContext.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
SourceContext.Builder |
clone() |
boolean |
containsLabels(String key)
Labels with user defined metadata.
|
CloudRepoSourceContext |
getCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.
|
CloudRepoSourceContext.Builder |
getCloudRepoBuilder()
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() |
SourceContext |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
GerritSourceContext |
getGerrit()
A SourceContext referring to a Gerrit project.
|
GerritSourceContext.Builder |
getGerritBuilder()
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).
|
GitSourceContext.Builder |
getGitBuilder()
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.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
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).
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
SourceContext.Builder |
mergeCloudRepo(CloudRepoSourceContext value)
A SourceContext referring to a revision in a Google Cloud Source Repo.
|
SourceContext.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
SourceContext.Builder |
mergeFrom(Message other) |
SourceContext.Builder |
mergeFrom(SourceContext other) |
SourceContext.Builder |
mergeGerrit(GerritSourceContext value)
A SourceContext referring to a Gerrit project.
|
SourceContext.Builder |
mergeGit(GitSourceContext value)
A SourceContext referring to any third party Git repo (e.g., GitHub).
|
SourceContext.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
SourceContext.Builder |
putAllLabels(Map<String,String> values)
Labels with user defined metadata.
|
SourceContext.Builder |
putLabels(String key,
String value)
Labels with user defined metadata.
|
SourceContext.Builder |
removeLabels(String key)
Labels with user defined metadata.
|
SourceContext.Builder |
setCloudRepo(CloudRepoSourceContext.Builder builderForValue)
A SourceContext referring to a revision in a Google Cloud Source Repo.
|
SourceContext.Builder |
setCloudRepo(CloudRepoSourceContext value)
A SourceContext referring to a revision in a Google Cloud Source Repo.
|
SourceContext.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
SourceContext.Builder |
setGerrit(GerritSourceContext.Builder builderForValue)
A SourceContext referring to a Gerrit project.
|
SourceContext.Builder |
setGerrit(GerritSourceContext value)
A SourceContext referring to a Gerrit project.
|
SourceContext.Builder |
setGit(GitSourceContext.Builder builderForValue)
A SourceContext referring to any third party Git repo (e.g., GitHub).
|
SourceContext.Builder |
setGit(GitSourceContext value)
A SourceContext referring to any third party Git repo (e.g., GitHub).
|
SourceContext.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
SourceContext.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3.Builder<SourceContext.Builder>protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class GeneratedMessageV3.Builder<SourceContext.Builder>protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<SourceContext.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic SourceContext build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic SourceContext buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic SourceContext.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<SourceContext.Builder>public SourceContext.Builder mergeFrom(SourceContext other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<SourceContext.Builder>IOExceptionpublic SourceContext.ContextCase getContextCase()
getContextCase in interface SourceContextOrBuilderpublic SourceContext.Builder clearContext()
public boolean hasCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;hasCloudRepo in interface SourceContextOrBuilderpublic CloudRepoSourceContext getCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;getCloudRepo in interface SourceContextOrBuilderpublic SourceContext.Builder setCloudRepo(CloudRepoSourceContext value)
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;public SourceContext.Builder setCloudRepo(CloudRepoSourceContext.Builder builderForValue)
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;public SourceContext.Builder mergeCloudRepo(CloudRepoSourceContext value)
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;public SourceContext.Builder clearCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;public CloudRepoSourceContext.Builder getCloudRepoBuilder()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;public CloudRepoSourceContextOrBuilder getCloudRepoOrBuilder()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;getCloudRepoOrBuilder in interface SourceContextOrBuilderpublic boolean hasGerrit()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;hasGerrit in interface SourceContextOrBuilderpublic GerritSourceContext getGerrit()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;getGerrit in interface SourceContextOrBuilderpublic SourceContext.Builder setGerrit(GerritSourceContext value)
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;public SourceContext.Builder setGerrit(GerritSourceContext.Builder builderForValue)
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;public SourceContext.Builder mergeGerrit(GerritSourceContext value)
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;public SourceContext.Builder clearGerrit()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;public GerritSourceContext.Builder getGerritBuilder()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;public GerritSourceContextOrBuilder getGerritOrBuilder()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;getGerritOrBuilder in interface SourceContextOrBuilderpublic boolean hasGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;hasGit in interface SourceContextOrBuilderpublic GitSourceContext getGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;getGit in interface SourceContextOrBuilderpublic SourceContext.Builder setGit(GitSourceContext value)
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;public SourceContext.Builder setGit(GitSourceContext.Builder builderForValue)
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;public SourceContext.Builder mergeGit(GitSourceContext value)
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;public SourceContext.Builder clearGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;public GitSourceContext.Builder getGitBuilder()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;public GitSourceContextOrBuilder getGitOrBuilder()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;getGitOrBuilder in interface SourceContextOrBuilderpublic int getLabelsCount()
SourceContextOrBuilderLabels with user defined metadata.
map<string, string> labels = 4;getLabelsCount in interface SourceContextOrBuilderpublic boolean containsLabels(String key)
Labels with user defined metadata.
map<string, string> labels = 4;containsLabels in interface SourceContextOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface SourceContextOrBuilderpublic Map<String,String> getLabelsMap()
Labels with user defined metadata.
map<string, string> labels = 4;getLabelsMap in interface SourceContextOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels with user defined metadata.
map<string, string> labels = 4;getLabelsOrDefault in interface SourceContextOrBuilderpublic String getLabelsOrThrow(String key)
Labels with user defined metadata.
map<string, string> labels = 4;getLabelsOrThrow in interface SourceContextOrBuilderpublic SourceContext.Builder clearLabels()
public SourceContext.Builder removeLabels(String key)
Labels with user defined metadata.
map<string, string> labels = 4;@Deprecated public Map<String,String> getMutableLabels()
public SourceContext.Builder putLabels(String key, String value)
Labels with user defined metadata.
map<string, string> labels = 4;public SourceContext.Builder putAllLabels(Map<String,String> values)
Labels with user defined metadata.
map<string, string> labels = 4;public final SourceContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<SourceContext.Builder>public final SourceContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<SourceContext.Builder>Copyright © 2019 Google LLC. All rights reserved.