Class GerritSourceContext.Builder

    • Method Detail

      • 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.Builder<GerritSourceContext.Builder>
      • clear

        public GerritSourceContext.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
      • getDefaultInstanceForType

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

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

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

        public GerritSourceContext.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
      • setField

        public GerritSourceContext.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
      • clearField

        public GerritSourceContext.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
      • clearOneof

        public GerritSourceContext.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
      • setRepeatedField

        public GerritSourceContext.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
      • addRepeatedField

        public GerritSourceContext.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
      • mergeFrom

        public GerritSourceContext.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GerritSourceContext.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
      • mergeFrom

        public GerritSourceContext.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GerritSourceContext.Builder>
        Throws:
        IOException
      • 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.
      • setHostUri

        public GerritSourceContext.Builder setHostUri​(String value)
         The URI of a running Gerrit instance.
         
        string host_uri = 1;
        Parameters:
        value - The hostUri to set.
        Returns:
        This builder for chaining.
      • clearHostUri

        public GerritSourceContext.Builder clearHostUri()
         The URI of a running Gerrit instance.
         
        string host_uri = 1;
        Returns:
        This builder for chaining.
      • setHostUriBytes

        public GerritSourceContext.Builder setHostUriBytes​(com.google.protobuf.ByteString value)
         The URI of a running Gerrit instance.
         
        string host_uri = 1;
        Parameters:
        value - The bytes for hostUri to set.
        Returns:
        This builder for chaining.
      • 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.
      • setGerritProject

        public GerritSourceContext.Builder setGerritProject​(String value)
         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;
        Parameters:
        value - The gerritProject to set.
        Returns:
        This builder for chaining.
      • clearGerritProject

        public GerritSourceContext.Builder clearGerritProject()
         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:
        This builder for chaining.
      • setGerritProjectBytes

        public GerritSourceContext.Builder setGerritProjectBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for gerritProject to set.
        Returns:
        This builder for chaining.
      • 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.
      • setRevisionId

        public GerritSourceContext.Builder setRevisionId​(String value)
         A revision (commit) ID.
         
        string revision_id = 3;
        Parameters:
        value - The revisionId to set.
        Returns:
        This builder for chaining.
      • clearRevisionId

        public GerritSourceContext.Builder clearRevisionId()
         A revision (commit) ID.
         
        string revision_id = 3;
        Returns:
        This builder for chaining.
      • setRevisionIdBytes

        public GerritSourceContext.Builder setRevisionIdBytes​(com.google.protobuf.ByteString value)
         A revision (commit) ID.
         
        string revision_id = 3;
        Parameters:
        value - The bytes for revisionId to set.
        Returns:
        This builder for chaining.
      • 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.
      • setAliasName

        @Deprecated
        public GerritSourceContext.Builder setAliasName​(String value)
        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];
        Parameters:
        value - The aliasName to set.
        Returns:
        This builder for chaining.
      • clearAliasName

        @Deprecated
        public GerritSourceContext.Builder clearAliasName()
        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:
        This builder for chaining.
      • setAliasNameBytes

        @Deprecated
        public GerritSourceContext.Builder setAliasNameBytes​(com.google.protobuf.ByteString value)
        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];
        Parameters:
        value - The bytes for aliasName to set.
        Returns:
        This builder for chaining.
      • 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.
      • mergeAliasContext

        public GerritSourceContext.Builder mergeAliasContext​(AliasContext value)
         An alias, which may be a branch or tag.
         
        .google.devtools.source.v1.AliasContext alias_context = 5;
      • clearAliasContext

        public GerritSourceContext.Builder clearAliasContext()
         An alias, which may be a branch or tag.
         
        .google.devtools.source.v1.AliasContext alias_context = 5;
      • getAliasContextBuilder

        public AliasContext.Builder getAliasContextBuilder()
         An alias, which may be a branch or tag.
         
        .google.devtools.source.v1.AliasContext alias_context = 5;
      • setUnknownFields

        public final GerritSourceContext.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
      • mergeUnknownFields

        public final GerritSourceContext.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>