public final class SourceContext extends GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
SourceContext.Builder
A SourceContext is a reference to a tree of files.
|
static class |
SourceContext.ContextCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
CLOUD_REPO_FIELD_NUMBER |
static int |
GERRIT_FIELD_NUMBER |
static int |
GIT_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int CLOUD_REPO_FIELD_NUMBER
public static final int GERRIT_FIELD_NUMBER
public static final int GIT_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public SourceContext.ContextCase getContextCase()
getContextCase
in interface SourceContextOrBuilder
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 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 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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static SourceContext parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SourceContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SourceContext parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SourceContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SourceContext parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SourceContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SourceContext parseFrom(InputStream input) throws IOException
IOException
public static SourceContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SourceContext parseDelimitedFrom(InputStream input) throws IOException
IOException
public static SourceContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SourceContext parseFrom(CodedInputStream input) throws IOException
IOException
public static SourceContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public SourceContext.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static SourceContext.Builder newBuilder()
public static SourceContext.Builder newBuilder(SourceContext prototype)
public SourceContext.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected SourceContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static SourceContext getDefaultInstance()
public static Parser<SourceContext> parser()
public Parser<SourceContext> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public SourceContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2019 Google LLC. All rights reserved.