Class GerritSourceContext (1.41.0)

publicfinalclass GerritSourceContextextendsGeneratedMessageV3implementsGerritSourceContextOrBuilder

A SourceContext referring to a Gerrit project.

Protobuf type google.devtools.source.v1.GerritSourceContext

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

ALIAS_CONTEXT_FIELD_NUMBER

publicstaticfinalintALIAS_CONTEXT_FIELD_NUMBER
Field Value
Type Description
int

ALIAS_NAME_FIELD_NUMBER

publicstaticfinalintALIAS_NAME_FIELD_NUMBER
Field Value
Type Description
int

GERRIT_PROJECT_FIELD_NUMBER

publicstaticfinalintGERRIT_PROJECT_FIELD_NUMBER
Field Value
Type Description
int

HOST_URI_FIELD_NUMBER

publicstaticfinalintHOST_URI_FIELD_NUMBER
Field Value
Type Description
int

REVISION_ID_FIELD_NUMBER

publicstaticfinalintREVISION_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticGerritSourceContextgetDefaultInstance()
Returns
Type Description
GerritSourceContext

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticGerritSourceContext.BuildernewBuilder()
Returns
Type Description
GerritSourceContext.Builder

newBuilder(GerritSourceContext prototype)

publicstaticGerritSourceContext.BuildernewBuilder(GerritSourceContextprototype)
Parameter
Name Description
prototype GerritSourceContext
Returns
Type Description
GerritSourceContext.Builder

parseDelimitedFrom(InputStream input)

publicstaticGerritSourceContextparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticGerritSourceContextparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticGerritSourceContextparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticGerritSourceContextparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticGerritSourceContextparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticGerritSourceContextparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticGerritSourceContextparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticGerritSourceContextparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticGerritSourceContextparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticGerritSourceContextparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticGerritSourceContextparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticGerritSourceContextparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GerritSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<GerritSourceContext>parser()
Returns
Type Description
Parser<GerritSourceContext>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAliasContext()

publicAliasContextgetAliasContext()

An alias, which may be a branch or tag.

.google.devtools.source.v1.AliasContext alias_context = 5;

Returns
Type Description
AliasContext

The aliasContext.

getAliasContextOrBuilder()

publicAliasContextOrBuildergetAliasContextOrBuilder()

An alias, which may be a branch or tag.

.google.devtools.source.v1.AliasContext alias_context = 5;

Returns
Type Description
AliasContextOrBuilder

getAliasName() (deprecated)

publicStringgetAliasName()

Deprecated. google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129

The name of an alias (branch, tag, etc.).

string alias_name = 4 [deprecated = true];

Returns
Type Description
String

The aliasName.

getAliasNameBytes() (deprecated)

publicByteStringgetAliasNameBytes()

Deprecated. google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129

The name of an alias (branch, tag, etc.).

string alias_name = 4 [deprecated = true];

Returns
Type Description
ByteString

The bytes for aliasName.

getDefaultInstanceForType()

publicGerritSourceContextgetDefaultInstanceForType()
Returns
Type Description
GerritSourceContext

getGerritProject()

publicStringgetGerritProject()

The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is hostURI/project.

string gerrit_project = 2;

Returns
Type Description
String

The gerritProject.

getGerritProjectBytes()

publicByteStringgetGerritProjectBytes()

The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is hostURI/project.

string gerrit_project = 2;

Returns
Type Description
ByteString

The bytes for gerritProject.

getHostUri()

publicStringgetHostUri()

The URI of a running Gerrit instance.

string host_uri = 1;

Returns
Type Description
String

The hostUri.

getHostUriBytes()

publicByteStringgetHostUriBytes()

The URI of a running Gerrit instance.

string host_uri = 1;

Returns
Type Description
ByteString

The bytes for hostUri.

getParserForType()

publicParser<GerritSourceContext>getParserForType()
Returns
Type Description
Parser<GerritSourceContext>
Overrides

getRevisionCase()

publicGerritSourceContext.RevisionCasegetRevisionCase()
Returns
Type Description
GerritSourceContext.RevisionCase

getRevisionId()

publicStringgetRevisionId()

A revision (commit) ID.

string revision_id = 3;

Returns
Type Description
String

The revisionId.

getRevisionIdBytes()

publicByteStringgetRevisionIdBytes()

A revision (commit) ID.

string revision_id = 3;

Returns
Type Description
ByteString

The bytes for revisionId.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasAliasContext()

publicbooleanhasAliasContext()

An alias, which may be a branch or tag.

.google.devtools.source.v1.AliasContext alias_context = 5;

Returns
Type Description
boolean

Whether the aliasContext field is set.

hasAliasName() (deprecated)

publicbooleanhasAliasName()

Deprecated. google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129

The name of an alias (branch, tag, etc.).

string alias_name = 4 [deprecated = true];

Returns
Type Description
boolean

Whether the aliasName field is set.

hasRevisionId()

publicbooleanhasRevisionId()

A revision (commit) ID.

string revision_id = 3;

Returns
Type Description
boolean

Whether the revisionId field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicGerritSourceContext.BuildernewBuilderForType()
Returns
Type Description
GerritSourceContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedGerritSourceContext.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GerritSourceContext.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicGerritSourceContext.BuildertoBuilder()
Returns
Type Description
GerritSourceContext.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.