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