Class BlameRange (0.60.0)

public final class BlameRange extends GeneratedMessage implements BlameRangeOrBuilder

BlameRange represents blame information for a range of lines.

Protobuf type google.cloud.developerconnect.v1.BlameRange

Implements

BlameRangeOrBuilder

Static Fields

COMMIT_FIELD_NUMBER

public static final int COMMIT_FIELD_NUMBER
Field Value
Type Description
int

FIRST_LINE_FIELD_NUMBER

public static final int FIRST_LINE_FIELD_NUMBER
Field Value
Type Description
int

LAST_LINE_FIELD_NUMBER

public static final int LAST_LINE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BlameRange getDefaultInstance()
Returns
Type Description
BlameRange

getDescriptor()

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

newBuilder()

public static BlameRange.Builder newBuilder()
Returns
Type Description
BlameRange.Builder

newBuilder(BlameRange prototype)

public static BlameRange.Builder newBuilder(BlameRange prototype)
Parameter
Name Description
prototype BlameRange
Returns
Type Description
BlameRange.Builder

parseDelimitedFrom(InputStream input)

public static BlameRange parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BlameRange
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BlameRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BlameRange
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BlameRange parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BlameRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BlameRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BlameRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BlameRange parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BlameRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BlameRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BlameRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BlameRange parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BlameRange
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BlameRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BlameRange
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BlameRange parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BlameRange
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BlameRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BlameRange
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BlameRange parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BlameRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BlameRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BlameRange
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BlameRange> parser()
Returns
Type Description
Parser<BlameRange>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCommit()

public SCMCommit getCommit()

The commit metadata for this line range.

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

Returns
Type Description
SCMCommit

The commit.

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

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.

getParserForType()

public Parser<BlameRange> getParserForType()
Returns
Type Description
Parser<BlameRange>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BlameRange.Builder newBuilderForType()
Returns
Type Description
BlameRange.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected BlameRange.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BlameRange.Builder
Overrides

toBuilder()

public BlameRange.Builder toBuilder()
Returns
Type Description
BlameRange.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException