Class GerritSourceContext

  • All Implemented Interfaces:
    GerritSourceContextOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class GerritSourceContext
    extends com.google.protobuf.GeneratedMessageV3
    implements GerritSourceContextOrBuilder
     A SourceContext referring to a Gerrit project.
     
    Protobuf type google.devtools.source.v1.GerritSourceContext
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.google.protobuf.GeneratedMessageV3
      • getHostUriBytes

        public com.google.protobuf.ByteString getHostUriBytes()
         The URI of a running Gerrit instance.
         
        string host_uri = 1;
        Specified by:
        getHostUriBytes in interface GerritSourceContextOrBuilder
        Returns:
        The bytes for hostUri.
      • getGerritProject

        public String getGerritProject()
         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;
        Specified by:
        getGerritProject in interface GerritSourceContextOrBuilder
        Returns:
        The gerritProject.
      • getGerritProjectBytes

        public com.google.protobuf.ByteString getGerritProjectBytes()
         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;
        Specified by:
        getGerritProjectBytes in interface GerritSourceContextOrBuilder
        Returns:
        The bytes for gerritProject.
      • hasRevisionId

        public boolean hasRevisionId()
         A revision (commit) ID.
         
        string revision_id = 3;
        Specified by:
        hasRevisionId in interface GerritSourceContextOrBuilder
        Returns:
        Whether the revisionId field is set.
      • getRevisionIdBytes

        public com.google.protobuf.ByteString getRevisionIdBytes()
         A revision (commit) ID.
         
        string revision_id = 3;
        Specified by:
        getRevisionIdBytes in interface GerritSourceContextOrBuilder
        Returns:
        The bytes for revisionId.
      • hasAliasName

        @Deprecated
        public boolean hasAliasName()
        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];
        Specified by:
        hasAliasName in interface GerritSourceContextOrBuilder
        Returns:
        Whether the aliasName field is set.
      • getAliasName

        @Deprecated
        public String getAliasName()
        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];
        Specified by:
        getAliasName in interface GerritSourceContextOrBuilder
        Returns:
        The aliasName.
      • getAliasNameBytes

        @Deprecated
        public com.google.protobuf.ByteString getAliasNameBytes()
        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];
        Specified by:
        getAliasNameBytes in interface GerritSourceContextOrBuilder
        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 = 5;
        Specified by:
        hasAliasContext in interface GerritSourceContextOrBuilder
        Returns:
        Whether the aliasContext field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static GerritSourceContext parseFrom​(ByteBuffer data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GerritSourceContext parseFrom​(ByteBuffer data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GerritSourceContext parseFrom​(com.google.protobuf.ByteString data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GerritSourceContext parseFrom​(com.google.protobuf.ByteString data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GerritSourceContext parseFrom​(byte[] data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GerritSourceContext parseFrom​(byte[] data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GerritSourceContext parseFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Throws:
        IOException
      • newBuilderForType

        public GerritSourceContext.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public GerritSourceContext.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected GerritSourceContext.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<GerritSourceContext> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public GerritSourceContext getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder