Package com.google.devtools.source.v1
Class CloudRepoSourceContext
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.devtools.source.v1.CloudRepoSourceContext
-
- All Implemented Interfaces:
CloudRepoSourceContextOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class CloudRepoSourceContext extends com.google.protobuf.GeneratedMessageV3 implements CloudRepoSourceContextOrBuilder
A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).
Protobuf typegoogle.devtools.source.v1.CloudRepoSourceContext
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CloudRepoSourceContext.Builder
A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).static class
CloudRepoSourceContext.RevisionCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALIAS_CONTEXT_FIELD_NUMBER
static int
ALIAS_NAME_FIELD_NUMBER
static int
REPO_ID_FIELD_NUMBER
static int
REVISION_ID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
AliasContext
getAliasContext()
An alias, which may be a branch or tag.AliasContextOrBuilder
getAliasContextOrBuilder()
An alias, which may be a branch or tag.String
getAliasName()
Deprecated.google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated.com.google.protobuf.ByteString
getAliasNameBytes()
Deprecated.google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated.static CloudRepoSourceContext
getDefaultInstance()
CloudRepoSourceContext
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Parser<CloudRepoSourceContext>
getParserForType()
RepoId
getRepoId()
The ID of the repo.RepoIdOrBuilder
getRepoIdOrBuilder()
The ID of the repo.CloudRepoSourceContext.RevisionCase
getRevisionCase()
String
getRevisionId()
A revision ID.com.google.protobuf.ByteString
getRevisionIdBytes()
A revision ID.int
getSerializedSize()
boolean
hasAliasContext()
An alias, which may be a branch or tag.boolean
hasAliasName()
Deprecated.google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated.int
hashCode()
boolean
hasRepoId()
The ID of the repo.boolean
hasRevisionId()
A revision ID.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static CloudRepoSourceContext.Builder
newBuilder()
static CloudRepoSourceContext.Builder
newBuilder(CloudRepoSourceContext prototype)
CloudRepoSourceContext.Builder
newBuilderForType()
protected CloudRepoSourceContext.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static CloudRepoSourceContext
parseDelimitedFrom(InputStream input)
static CloudRepoSourceContext
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CloudRepoSourceContext
parseFrom(byte[] data)
static CloudRepoSourceContext
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CloudRepoSourceContext
parseFrom(com.google.protobuf.ByteString data)
static CloudRepoSourceContext
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CloudRepoSourceContext
parseFrom(com.google.protobuf.CodedInputStream input)
static CloudRepoSourceContext
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CloudRepoSourceContext
parseFrom(InputStream input)
static CloudRepoSourceContext
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CloudRepoSourceContext
parseFrom(ByteBuffer data)
static CloudRepoSourceContext
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<CloudRepoSourceContext>
parser()
CloudRepoSourceContext.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
REPO_ID_FIELD_NUMBER
public static final int REPO_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REVISION_ID_FIELD_NUMBER
public static final int REVISION_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALIAS_NAME_FIELD_NUMBER
public static final int ALIAS_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALIAS_CONTEXT_FIELD_NUMBER
public static final int ALIAS_CONTEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getRevisionCase
public CloudRepoSourceContext.RevisionCase getRevisionCase()
- Specified by:
getRevisionCase
in interfaceCloudRepoSourceContextOrBuilder
-
hasRepoId
public boolean hasRepoId()
The ID of the repo.
.google.devtools.source.v1.RepoId repo_id = 1;
- Specified by:
hasRepoId
in interfaceCloudRepoSourceContextOrBuilder
- Returns:
- Whether the repoId field is set.
-
getRepoId
public RepoId getRepoId()
The ID of the repo.
.google.devtools.source.v1.RepoId repo_id = 1;
- Specified by:
getRepoId
in interfaceCloudRepoSourceContextOrBuilder
- Returns:
- The repoId.
-
getRepoIdOrBuilder
public RepoIdOrBuilder getRepoIdOrBuilder()
The ID of the repo.
.google.devtools.source.v1.RepoId repo_id = 1;
- Specified by:
getRepoIdOrBuilder
in interfaceCloudRepoSourceContextOrBuilder
-
hasRevisionId
public boolean hasRevisionId()
A revision ID.
string revision_id = 2;
- Specified by:
hasRevisionId
in interfaceCloudRepoSourceContextOrBuilder
- Returns:
- Whether the revisionId field is set.
-
getRevisionId
public String getRevisionId()
A revision ID.
string revision_id = 2;
- Specified by:
getRevisionId
in interfaceCloudRepoSourceContextOrBuilder
- Returns:
- The revisionId.
-
getRevisionIdBytes
public com.google.protobuf.ByteString getRevisionIdBytes()
A revision ID.
string revision_id = 2;
- Specified by:
getRevisionIdBytes
in interfaceCloudRepoSourceContextOrBuilder
- Returns:
- The bytes for revisionId.
-
hasAliasName
@Deprecated public boolean hasAliasName()
Deprecated.google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=95The name of an alias (branch, tag, etc.).
string alias_name = 3 [deprecated = true];
- Specified by:
hasAliasName
in interfaceCloudRepoSourceContextOrBuilder
- Returns:
- Whether the aliasName field is set.
-
getAliasName
@Deprecated public String getAliasName()
Deprecated.google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=95The name of an alias (branch, tag, etc.).
string alias_name = 3 [deprecated = true];
- Specified by:
getAliasName
in interfaceCloudRepoSourceContextOrBuilder
- Returns:
- The aliasName.
-
getAliasNameBytes
@Deprecated public com.google.protobuf.ByteString getAliasNameBytes()
Deprecated.google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=95The name of an alias (branch, tag, etc.).
string alias_name = 3 [deprecated = true];
- Specified by:
getAliasNameBytes
in interfaceCloudRepoSourceContextOrBuilder
- Returns:
- The bytes for aliasName.
-
hasAliasContext
public boolean hasAliasContext()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 4;
- Specified by:
hasAliasContext
in interfaceCloudRepoSourceContextOrBuilder
- Returns:
- Whether the aliasContext field is set.
-
getAliasContext
public AliasContext getAliasContext()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 4;
- Specified by:
getAliasContext
in interfaceCloudRepoSourceContextOrBuilder
- Returns:
- The aliasContext.
-
getAliasContextOrBuilder
public AliasContextOrBuilder getAliasContextOrBuilder()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 4;
- Specified by:
getAliasContextOrBuilder
in interfaceCloudRepoSourceContextOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CloudRepoSourceContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudRepoSourceContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudRepoSourceContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudRepoSourceContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudRepoSourceContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudRepoSourceContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudRepoSourceContext parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudRepoSourceContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CloudRepoSourceContext parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CloudRepoSourceContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudRepoSourceContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudRepoSourceContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CloudRepoSourceContext.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CloudRepoSourceContext.Builder newBuilder()
-
newBuilder
public static CloudRepoSourceContext.Builder newBuilder(CloudRepoSourceContext prototype)
-
toBuilder
public CloudRepoSourceContext.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CloudRepoSourceContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CloudRepoSourceContext getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CloudRepoSourceContext> parser()
-
getParserForType
public com.google.protobuf.Parser<CloudRepoSourceContext> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CloudRepoSourceContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-