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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public 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.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SourceContext.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SourceContext.Builder>
public SourceContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SourceContext build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SourceContext buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SourceContext.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SourceContext.Builder>
public SourceContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SourceContext.Builder>
public SourceContext.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SourceContext.Builder>
public SourceContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SourceContext.Builder>
public SourceContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SourceContext.Builder>
public SourceContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SourceContext.Builder>
public SourceContext.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SourceContext.Builder>
public SourceContext.Builder mergeFrom(SourceContext other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SourceContext.Builder>
public SourceContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SourceContext.Builder>
IOException
public SourceContext.ContextCase getContextCase()
getContextCase
in interface SourceContextOrBuilder
public 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 SourceContextOrBuilder
public CloudRepoSourceContext getCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
getCloudRepo
in interface SourceContextOrBuilder
public 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 SourceContextOrBuilder
public boolean hasGerrit()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
hasGerrit
in interface SourceContextOrBuilder
public GerritSourceContext getGerrit()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
getGerrit
in interface SourceContextOrBuilder
public 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 SourceContextOrBuilder
public boolean hasGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
hasGit
in interface SourceContextOrBuilder
public GitSourceContext getGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
getGit
in interface SourceContextOrBuilder
public 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 SourceContextOrBuilder
public int getLabelsCount()
SourceContextOrBuilder
Labels with user defined metadata.
map<string, string> labels = 4;
getLabelsCount
in interface SourceContextOrBuilder
public 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 SourceContextOrBuilder
public Map<String,String> getLabelsMap()
Labels with user defined metadata.
map<string, string> labels = 4;
getLabelsMap
in interface SourceContextOrBuilder
public String getLabelsOrDefault(String key, String defaultValue)
Labels with user defined metadata.
map<string, string> labels = 4;
getLabelsOrDefault
in interface SourceContextOrBuilder
public String getLabelsOrThrow(String key)
Labels with user defined metadata.
map<string, string> labels = 4;
getLabelsOrThrow
in interface SourceContextOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SourceContext.Builder>
public final SourceContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SourceContext.Builder>
Copyright © 2019 Google LLC. All rights reserved.