Class FetchGitAheadBehindResponse.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<FetchGitAheadBehindResponse.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<FetchGitAheadBehindResponse.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public FetchGitAheadBehindResponse.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<FetchGitAheadBehindResponse.Builder>
        Throws:
        IOException
      • getCommitsAhead

        public int getCommitsAhead()
         The number of commits in the remote branch that are not in the workspace.
         
        int32 commits_ahead = 1;
        Specified by:
        getCommitsAhead in interface FetchGitAheadBehindResponseOrBuilder
        Returns:
        The commitsAhead.
      • setCommitsAhead

        public FetchGitAheadBehindResponse.Builder setCommitsAhead​(int value)
         The number of commits in the remote branch that are not in the workspace.
         
        int32 commits_ahead = 1;
        Parameters:
        value - The commitsAhead to set.
        Returns:
        This builder for chaining.
      • clearCommitsAhead

        public FetchGitAheadBehindResponse.Builder clearCommitsAhead()
         The number of commits in the remote branch that are not in the workspace.
         
        int32 commits_ahead = 1;
        Returns:
        This builder for chaining.
      • getCommitsBehind

        public int getCommitsBehind()
         The number of commits in the workspace that are not in the remote branch.
         
        int32 commits_behind = 2;
        Specified by:
        getCommitsBehind in interface FetchGitAheadBehindResponseOrBuilder
        Returns:
        The commitsBehind.
      • setCommitsBehind

        public FetchGitAheadBehindResponse.Builder setCommitsBehind​(int value)
         The number of commits in the workspace that are not in the remote branch.
         
        int32 commits_behind = 2;
        Parameters:
        value - The commitsBehind to set.
        Returns:
        This builder for chaining.
      • clearCommitsBehind

        public FetchGitAheadBehindResponse.Builder clearCommitsBehind()
         The number of commits in the workspace that are not in the remote branch.
         
        int32 commits_behind = 2;
        Returns:
        This builder for chaining.
      • mergeUnknownFields

        public final FetchGitAheadBehindResponse.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<FetchGitAheadBehindResponse.Builder>