Class BlameRange.Builder (0.60.0)

public static final class BlameRange.Builder extends GeneratedMessage.Builder<BlameRange.Builder> implements BlameRangeOrBuilder

BlameRange represents blame information for a range of lines.

Protobuf type google.cloud.developerconnect.v1.BlameRange

Implements

BlameRangeOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public BlameRange build()
Returns
Type Description
BlameRange

buildPartial()

public BlameRange buildPartial()
Returns
Type Description
BlameRange

clear()

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

clearCommit()

public BlameRange.Builder clearCommit()

The commit metadata for this line range.

.google.cloud.developerconnect.v1.SCMCommit commit = 3;

Returns
Type Description
BlameRange.Builder

clearFirstLine()

public BlameRange.Builder clearFirstLine()

The 1-indexed starting line number of the range (inclusive).

int32 first_line = 1;

Returns
Type Description
BlameRange.Builder

This builder for chaining.

clearLastLine()

public BlameRange.Builder clearLastLine()

The 1-indexed ending line number of the range (inclusive).

int32 last_line = 2;

Returns
Type Description
BlameRange.Builder

This builder for chaining.

getCommit()

public SCMCommit getCommit()

The commit metadata for this line range.

.google.cloud.developerconnect.v1.SCMCommit commit = 3;

Returns
Type Description
SCMCommit

The commit.

getCommitBuilder()

public SCMCommit.Builder getCommitBuilder()

The commit metadata for this line range.

.google.cloud.developerconnect.v1.SCMCommit commit = 3;

Returns
Type Description
SCMCommit.Builder

getCommitOrBuilder()

public SCMCommitOrBuilder getCommitOrBuilder()

The commit metadata for this line range.

.google.cloud.developerconnect.v1.SCMCommit commit = 3;

Returns
Type Description
SCMCommitOrBuilder

getDefaultInstanceForType()

public BlameRange getDefaultInstanceForType()
Returns
Type Description
BlameRange

getDescriptorForType()

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

getFirstLine()

public int getFirstLine()

The 1-indexed starting line number of the range (inclusive).

int32 first_line = 1;

Returns
Type Description
int

The firstLine.

getLastLine()

public int getLastLine()

The 1-indexed ending line number of the range (inclusive).

int32 last_line = 2;

Returns
Type Description
int

The lastLine.

hasCommit()

public boolean hasCommit()

The commit metadata for this line range.

.google.cloud.developerconnect.v1.SCMCommit commit = 3;

Returns
Type Description
boolean

Whether the commit field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCommit(SCMCommit value)

public BlameRange.Builder mergeCommit(SCMCommit value)

The commit metadata for this line range.

.google.cloud.developerconnect.v1.SCMCommit commit = 3;

Parameter
Name Description
value SCMCommit
Returns
Type Description
BlameRange.Builder

mergeFrom(BlameRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCommit(SCMCommit value)

public BlameRange.Builder setCommit(SCMCommit value)

The commit metadata for this line range.

.google.cloud.developerconnect.v1.SCMCommit commit = 3;

Parameter
Name Description
value SCMCommit
Returns
Type Description
BlameRange.Builder

setCommit(SCMCommit.Builder builderForValue)

public BlameRange.Builder setCommit(SCMCommit.Builder builderForValue)

The commit metadata for this line range.

.google.cloud.developerconnect.v1.SCMCommit commit = 3;

Parameter
Name Description
builderForValue SCMCommit.Builder
Returns
Type Description
BlameRange.Builder

setFirstLine(int value)

public BlameRange.Builder setFirstLine(int value)

The 1-indexed starting line number of the range (inclusive).

int32 first_line = 1;

Parameter
Name Description
value int

The firstLine to set.

Returns
Type Description
BlameRange.Builder

This builder for chaining.

setLastLine(int value)

public BlameRange.Builder setLastLine(int value)

The 1-indexed ending line number of the range (inclusive).

int32 last_line = 2;

Parameter
Name Description
value int

The lastLine to set.

Returns
Type Description
BlameRange.Builder

This builder for chaining.