Class FetchGitAheadBehindResponse.Builder (0.23.0)

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

FetchGitAheadBehind response message.

Protobuf type google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FetchGitAheadBehindResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FetchGitAheadBehindResponse.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public FetchGitAheadBehindResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FetchGitAheadBehindResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FetchGitAheadBehindResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FetchGitAheadBehindResponse.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FetchGitAheadBehindResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public FetchGitAheadBehindResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FetchGitAheadBehindResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FetchGitAheadBehindResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FetchGitAheadBehindResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FetchGitAheadBehindResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FetchGitAheadBehindResponse.Builder
Overrides