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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SourceContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SourceContext build()
Returns
buildPartial()
public SourceContext buildPartial()
Returns
clear()
public SourceContext.Builder clear()
Returns
Overrides
clearCloudRepo()
public SourceContext.Builder clearCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
Returns
clearContext()
public SourceContext.Builder clearContext()
Returns
clearField(Descriptors.FieldDescriptor field)
public SourceContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearGerrit()
public SourceContext.Builder clearGerrit()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
Returns
clearGit()
public SourceContext.Builder clearGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
Returns
clearLabels()
public SourceContext.Builder clearLabels()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SourceContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SourceContext.Builder clone()
Returns
Overrides
containsLabels(String key)
public boolean containsLabels(String key)
Labels with user defined metadata.
map<string, string> labels = 4;
Parameter
Returns
getCloudRepo()
public CloudRepoSourceContext getCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
Returns
getCloudRepoBuilder()
public CloudRepoSourceContext.Builder getCloudRepoBuilder()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
Returns
getCloudRepoOrBuilder()
public CloudRepoSourceContextOrBuilder getCloudRepoOrBuilder()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
Returns
getContextCase()
public SourceContext.ContextCase getContextCase()
Returns
getDefaultInstanceForType()
public SourceContext getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getGerrit()
public GerritSourceContext getGerrit()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
Returns
getGerritBuilder()
public GerritSourceContext.Builder getGerritBuilder()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
Returns
getGerritOrBuilder()
public GerritSourceContextOrBuilder getGerritOrBuilder()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
Returns
getGit()
public GitSourceContext getGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
Returns
getGitBuilder()
public GitSourceContext.Builder getGitBuilder()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
Returns
getGitOrBuilder()
public GitSourceContextOrBuilder getGitOrBuilder()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
Returns
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
Labels with user defined metadata.
map<string, string> labels = 4;
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
Labels with user defined metadata.
map<string, string> labels = 4;
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels with user defined metadata.
map<string, string> labels = 4;
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels with user defined metadata.
map<string, string> labels = 4;
Parameter
Returns
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns
hasCloudRepo()
public boolean hasCloudRepo()
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
Returns
Type | Description |
boolean | Whether the cloudRepo field is set.
|
hasGerrit()
public boolean hasGerrit()
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
Returns
Type | Description |
boolean | Whether the gerrit field is set.
|
hasGit()
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
Returns
Type | Description |
boolean | Whether the git field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeCloudRepo(CloudRepoSourceContext value)
public SourceContext.Builder mergeCloudRepo(CloudRepoSourceContext value)
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SourceContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SourceContext.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(SourceContext other)
public SourceContext.Builder mergeFrom(SourceContext other)
Parameter
Returns
mergeGerrit(GerritSourceContext value)
public SourceContext.Builder mergeGerrit(GerritSourceContext value)
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
Parameter
Returns
mergeGit(GitSourceContext value)
public SourceContext.Builder mergeGit(GitSourceContext value)
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SourceContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllLabels(Map<String,String> values)
public SourceContext.Builder putAllLabels(Map<String,String> values)
Labels with user defined metadata.
map<string, string> labels = 4;
Parameter
Returns
putLabels(String key, String value)
public SourceContext.Builder putLabels(String key, String value)
Labels with user defined metadata.
map<string, string> labels = 4;
Parameters
Returns
removeLabels(String key)
public SourceContext.Builder removeLabels(String key)
Labels with user defined metadata.
map<string, string> labels = 4;
Parameter
Returns
setCloudRepo(CloudRepoSourceContext value)
public SourceContext.Builder setCloudRepo(CloudRepoSourceContext value)
A SourceContext referring to a revision in a Google Cloud Source Repo.
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
Parameter
Returns
setCloudRepo(CloudRepoSourceContext.Builder builderForValue)
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;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SourceContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setGerrit(GerritSourceContext value)
public SourceContext.Builder setGerrit(GerritSourceContext value)
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
Parameter
Returns
setGerrit(GerritSourceContext.Builder builderForValue)
public SourceContext.Builder setGerrit(GerritSourceContext.Builder builderForValue)
A SourceContext referring to a Gerrit project.
.grafeas.v1.GerritSourceContext gerrit = 2;
Parameter
Returns
setGit(GitSourceContext value)
public SourceContext.Builder setGit(GitSourceContext value)
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
Parameter
Returns
setGit(GitSourceContext.Builder builderForValue)
public SourceContext.Builder setGit(GitSourceContext.Builder builderForValue)
A SourceContext referring to any third party Git repo (e.g., GitHub).
.grafeas.v1.GitSourceContext git = 3;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SourceContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SourceContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides