public static final class SourceContext.Builder extends com.google.protobuf.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
google.devtools.source.v1.SourceContext| Modifier and Type | Method and Description |
|---|---|
SourceContext.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SourceContext |
build() |
SourceContext |
buildPartial() |
SourceContext.Builder |
clear() |
SourceContext.Builder |
clearCloudRepo()
A SourceContext referring to a revision in a cloud repo.
|
SourceContext.Builder |
clearCloudWorkspace()
A SourceContext referring to a snapshot in a cloud workspace.
|
SourceContext.Builder |
clearContext() |
SourceContext.Builder |
clearField(com.google.protobuf.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.
|
SourceContext.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SourceContext.Builder |
clone() |
CloudRepoSourceContext |
getCloudRepo()
A SourceContext referring to a revision in a cloud repo.
|
CloudRepoSourceContext.Builder |
getCloudRepoBuilder()
A SourceContext referring to a revision in a cloud repo.
|
CloudRepoSourceContextOrBuilder |
getCloudRepoOrBuilder()
A SourceContext referring to a revision in a cloud repo.
|
CloudWorkspaceSourceContext |
getCloudWorkspace()
A SourceContext referring to a snapshot in a cloud workspace.
|
CloudWorkspaceSourceContext.Builder |
getCloudWorkspaceBuilder()
A SourceContext referring to a snapshot in a cloud workspace.
|
CloudWorkspaceSourceContextOrBuilder |
getCloudWorkspaceOrBuilder()
A SourceContext referring to a snapshot in a cloud workspace.
|
SourceContext.ContextCase |
getContextCase() |
SourceContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.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.
|
GitSourceContext.Builder |
getGitBuilder()
A SourceContext referring to any third party Git repo (e.g.
|
GitSourceContextOrBuilder |
getGitOrBuilder()
A SourceContext referring to any third party Git repo (e.g.
|
boolean |
hasCloudRepo()
A SourceContext referring to a revision in a cloud repo.
|
boolean |
hasCloudWorkspace()
A SourceContext referring to a snapshot in a cloud workspace.
|
boolean |
hasGerrit()
A SourceContext referring to a Gerrit project.
|
boolean |
hasGit()
A SourceContext referring to any third party Git repo (e.g.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SourceContext.Builder |
mergeCloudRepo(CloudRepoSourceContext value)
A SourceContext referring to a revision in a cloud repo.
|
SourceContext.Builder |
mergeCloudWorkspace(CloudWorkspaceSourceContext value)
A SourceContext referring to a snapshot in a cloud workspace.
|
SourceContext.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SourceContext.Builder |
mergeFrom(com.google.protobuf.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.
|
SourceContext.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SourceContext.Builder |
setCloudRepo(CloudRepoSourceContext.Builder builderForValue)
A SourceContext referring to a revision in a cloud repo.
|
SourceContext.Builder |
setCloudRepo(CloudRepoSourceContext value)
A SourceContext referring to a revision in a cloud repo.
|
SourceContext.Builder |
setCloudWorkspace(CloudWorkspaceSourceContext.Builder builderForValue)
A SourceContext referring to a snapshot in a cloud workspace.
|
SourceContext.Builder |
setCloudWorkspace(CloudWorkspaceSourceContext value)
A SourceContext referring to a snapshot in a cloud workspace.
|
SourceContext.Builder |
setField(com.google.protobuf.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.
|
SourceContext.Builder |
setGit(GitSourceContext value)
A SourceContext referring to any third party Git repo (e.g.
|
SourceContext.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SourceContext.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SourceContext build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SourceContext buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SourceContext.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourceContext.Builder>public SourceContext.Builder mergeFrom(SourceContext other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>public SourceContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.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 cloud repo.
.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;hasCloudRepo in interface SourceContextOrBuilderpublic CloudRepoSourceContext getCloudRepo()
A SourceContext referring to a revision in a cloud repo.
.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;getCloudRepo in interface SourceContextOrBuilderpublic SourceContext.Builder setCloudRepo(CloudRepoSourceContext value)
A SourceContext referring to a revision in a cloud repo.
.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;public SourceContext.Builder setCloudRepo(CloudRepoSourceContext.Builder builderForValue)
A SourceContext referring to a revision in a cloud repo.
.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;public SourceContext.Builder mergeCloudRepo(CloudRepoSourceContext value)
A SourceContext referring to a revision in a cloud repo.
.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;public SourceContext.Builder clearCloudRepo()
A SourceContext referring to a revision in a cloud repo.
.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;public CloudRepoSourceContext.Builder getCloudRepoBuilder()
A SourceContext referring to a revision in a cloud repo.
.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;public CloudRepoSourceContextOrBuilder getCloudRepoOrBuilder()
A SourceContext referring to a revision in a cloud repo.
.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;getCloudRepoOrBuilder in interface SourceContextOrBuilderpublic boolean hasCloudWorkspace()
A SourceContext referring to a snapshot in a cloud workspace.
.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;hasCloudWorkspace in interface SourceContextOrBuilderpublic CloudWorkspaceSourceContext getCloudWorkspace()
A SourceContext referring to a snapshot in a cloud workspace.
.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;getCloudWorkspace in interface SourceContextOrBuilderpublic SourceContext.Builder setCloudWorkspace(CloudWorkspaceSourceContext value)
A SourceContext referring to a snapshot in a cloud workspace.
.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;public SourceContext.Builder setCloudWorkspace(CloudWorkspaceSourceContext.Builder builderForValue)
A SourceContext referring to a snapshot in a cloud workspace.
.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;public SourceContext.Builder mergeCloudWorkspace(CloudWorkspaceSourceContext value)
A SourceContext referring to a snapshot in a cloud workspace.
.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;public SourceContext.Builder clearCloudWorkspace()
A SourceContext referring to a snapshot in a cloud workspace.
.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;public CloudWorkspaceSourceContext.Builder getCloudWorkspaceBuilder()
A SourceContext referring to a snapshot in a cloud workspace.
.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;public CloudWorkspaceSourceContextOrBuilder getCloudWorkspaceOrBuilder()
A SourceContext referring to a snapshot in a cloud workspace.
.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;getCloudWorkspaceOrBuilder in interface SourceContextOrBuilderpublic boolean hasGerrit()
A SourceContext referring to a Gerrit project.
.google.devtools.source.v1.GerritSourceContext gerrit = 3;hasGerrit in interface SourceContextOrBuilderpublic GerritSourceContext getGerrit()
A SourceContext referring to a Gerrit project.
.google.devtools.source.v1.GerritSourceContext gerrit = 3;getGerrit in interface SourceContextOrBuilderpublic SourceContext.Builder setGerrit(GerritSourceContext value)
A SourceContext referring to a Gerrit project.
.google.devtools.source.v1.GerritSourceContext gerrit = 3;public SourceContext.Builder setGerrit(GerritSourceContext.Builder builderForValue)
A SourceContext referring to a Gerrit project.
.google.devtools.source.v1.GerritSourceContext gerrit = 3;public SourceContext.Builder mergeGerrit(GerritSourceContext value)
A SourceContext referring to a Gerrit project.
.google.devtools.source.v1.GerritSourceContext gerrit = 3;public SourceContext.Builder clearGerrit()
A SourceContext referring to a Gerrit project.
.google.devtools.source.v1.GerritSourceContext gerrit = 3;public GerritSourceContext.Builder getGerritBuilder()
A SourceContext referring to a Gerrit project.
.google.devtools.source.v1.GerritSourceContext gerrit = 3;public GerritSourceContextOrBuilder getGerritOrBuilder()
A SourceContext referring to a Gerrit project.
.google.devtools.source.v1.GerritSourceContext gerrit = 3;getGerritOrBuilder in interface SourceContextOrBuilderpublic boolean hasGit()
A SourceContext referring to any third party Git repo (e.g. GitHub).
.google.devtools.source.v1.GitSourceContext git = 6;hasGit in interface SourceContextOrBuilderpublic GitSourceContext getGit()
A SourceContext referring to any third party Git repo (e.g. GitHub).
.google.devtools.source.v1.GitSourceContext git = 6;getGit in interface SourceContextOrBuilderpublic SourceContext.Builder setGit(GitSourceContext value)
A SourceContext referring to any third party Git repo (e.g. GitHub).
.google.devtools.source.v1.GitSourceContext git = 6;public SourceContext.Builder setGit(GitSourceContext.Builder builderForValue)
A SourceContext referring to any third party Git repo (e.g. GitHub).
.google.devtools.source.v1.GitSourceContext git = 6;public SourceContext.Builder mergeGit(GitSourceContext value)
A SourceContext referring to any third party Git repo (e.g. GitHub).
.google.devtools.source.v1.GitSourceContext git = 6;public SourceContext.Builder clearGit()
A SourceContext referring to any third party Git repo (e.g. GitHub).
.google.devtools.source.v1.GitSourceContext git = 6;public GitSourceContext.Builder getGitBuilder()
A SourceContext referring to any third party Git repo (e.g. GitHub).
.google.devtools.source.v1.GitSourceContext git = 6;public GitSourceContextOrBuilder getGitOrBuilder()
A SourceContext referring to any third party Git repo (e.g. GitHub).
.google.devtools.source.v1.GitSourceContext git = 6;getGitOrBuilder in interface SourceContextOrBuilderpublic final SourceContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>public final SourceContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourceContext.Builder>Copyright © 2024 Google LLC. All rights reserved.