Class FetchGitAheadBehindResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FetchGitAheadBehindResponse.Builder>
com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.Builder
All Implemented Interfaces:
FetchGitAheadBehindResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FetchGitAheadBehindResponse

public static final class FetchGitAheadBehindResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<FetchGitAheadBehindResponse.Builder> implements FetchGitAheadBehindResponseOrBuilder
 `FetchGitAheadBehind` response message.
 
Protobuf type google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FetchGitAheadBehindResponse.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.GeneratedMessage.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.GeneratedMessage.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

      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
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.