Class FetchGitAheadBehindResponse.Builder (0.82.0)

public static final class FetchGitAheadBehindResponse.Builder extends GeneratedMessage.Builder<FetchGitAheadBehindResponse.Builder> implements FetchGitAheadBehindResponseOrBuilder

FetchGitAheadBehind response message.

Protobuf type google.cloud.dataform.v1.FetchGitAheadBehindResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public FetchGitAheadBehindResponse build()
Returns
Type Description
FetchGitAheadBehindResponse

buildPartial()

public FetchGitAheadBehindResponse buildPartial()
Returns
Type Description
FetchGitAheadBehindResponse

clear()

public FetchGitAheadBehindResponse.Builder clear()
Returns
Type Description
FetchGitAheadBehindResponse.Builder
Overrides

clearCommitsAhead()

public FetchGitAheadBehindResponse.Builder clearCommitsAhead()

The number of commits in the remote branch that are not in the workspace.

int32 commits_ahead = 1;

Returns
Type Description
FetchGitAheadBehindResponse.Builder

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
Type Description
FetchGitAheadBehindResponse.Builder

This builder for chaining.

getCommitsAhead()

public int getCommitsAhead()

The number of commits in the remote branch that are not in the workspace.

int32 commits_ahead = 1;

Returns
Type Description
int

The commitsAhead.

getCommitsBehind()

public int getCommitsBehind()

The number of commits in the workspace that are not in the remote branch.

int32 commits_behind = 2;

Returns
Type Description
int

The commitsBehind.

getDefaultInstanceForType()

public FetchGitAheadBehindResponse getDefaultInstanceForType()
Returns
Type Description
FetchGitAheadBehindResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchGitAheadBehindResponse other)

public FetchGitAheadBehindResponse.Builder mergeFrom(FetchGitAheadBehindResponse other)
Parameter
Name Description
other FetchGitAheadBehindResponse
Returns
Type Description
FetchGitAheadBehindResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FetchGitAheadBehindResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchGitAheadBehindResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FetchGitAheadBehindResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FetchGitAheadBehindResponse.Builder
Overrides

setCommitsAhead(int value)

public FetchGitAheadBehindResponse.Builder setCommitsAhead(int value)

The number of commits in the remote branch that are not in the workspace.

int32 commits_ahead = 1;

Parameter
Name Description
value int

The commitsAhead to set.

Returns
Type Description
FetchGitAheadBehindResponse.Builder

This builder for chaining.

setCommitsBehind(int value)

public FetchGitAheadBehindResponse.Builder setCommitsBehind(int value)

The number of commits in the workspace that are not in the remote branch.

int32 commits_behind = 2;

Parameter
Name Description
value int

The commitsBehind to set.

Returns
Type Description
FetchGitAheadBehindResponse.Builder

This builder for chaining.