Class PullRequestComment.Code (0.40.0)

public static final class PullRequestComment.Code extends GeneratedMessageV3 implements PullRequestComment.CodeOrBuilder

The comment on a code line.

Protobuf type google.cloud.securesourcemanager.v1.PullRequestComment.Code

Static Fields

BODY_FIELD_NUMBER

public static final int BODY_FIELD_NUMBER
Field Value
Type Description
int

EFFECTIVE_COMMIT_SHA_FIELD_NUMBER

public static final int EFFECTIVE_COMMIT_SHA_FIELD_NUMBER
Field Value
Type Description
int

EFFECTIVE_ROOT_COMMENT_FIELD_NUMBER

public static final int EFFECTIVE_ROOT_COMMENT_FIELD_NUMBER
Field Value
Type Description
int

POSITION_FIELD_NUMBER

public static final int POSITION_FIELD_NUMBER
Field Value
Type Description
int

REPLY_FIELD_NUMBER

public static final int REPLY_FIELD_NUMBER
Field Value
Type Description
int

RESOLVED_FIELD_NUMBER

public static final int RESOLVED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PullRequestComment.Code getDefaultInstance()
Returns
Type Description
PullRequestComment.Code

getDescriptor()

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

newBuilder()

public static PullRequestComment.Code.Builder newBuilder()
Returns
Type Description
PullRequestComment.Code.Builder

newBuilder(PullRequestComment.Code prototype)

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

parseDelimitedFrom(InputStream input)

public static PullRequestComment.Code parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PullRequestComment.Code
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PullRequestComment.Code parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PullRequestComment.Code
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PullRequestComment.Code parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PullRequestComment.Code
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PullRequestComment.Code parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PullRequestComment.Code
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PullRequestComment.Code parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PullRequestComment.Code
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PullRequestComment.Code> parser()
Returns
Type Description
Parser<Code>

Methods

equals(Object obj)

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

getBody()

public String getBody()

Required. The comment body.

string body = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The body.

getBodyBytes()

public ByteString getBodyBytes()

Required. The comment body.

string body = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for body.

getDefaultInstanceForType()

public PullRequestComment.Code getDefaultInstanceForType()
Returns
Type Description
PullRequestComment.Code

getEffectiveCommitSha()

public String getEffectiveCommitSha()

Output only. The effective commit sha this code comment is pointing to.

string effective_commit_sha = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The effectiveCommitSha.

getEffectiveCommitShaBytes()

public ByteString getEffectiveCommitShaBytes()

Output only. The effective commit sha this code comment is pointing to.

string effective_commit_sha = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for effectiveCommitSha.

getEffectiveRootComment()

public String getEffectiveRootComment()

Output only. The root comment of the conversation, derived from the reply field.

string effective_root_comment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The effectiveRootComment.

getEffectiveRootCommentBytes()

public ByteString getEffectiveRootCommentBytes()

Output only. The root comment of the conversation, derived from the reply field.

string effective_root_comment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for effectiveRootComment.

getParserForType()

public Parser<PullRequestComment.Code> getParserForType()
Returns
Type Description
Parser<Code>
Overrides

getPosition()

public PullRequestComment.Position getPosition()

Optional. The position of the comment.

.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PullRequestComment.Position

The position.

getPositionOrBuilder()

public PullRequestComment.PositionOrBuilder getPositionOrBuilder()

Optional. The position of the comment.

.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PullRequestComment.PositionOrBuilder

getReply()

public String getReply()

Optional. Input only. The PullRequestComment resource name that this comment is replying to.

string reply = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
String

The reply.

getReplyBytes()

public ByteString getReplyBytes()

Optional. Input only. The PullRequestComment resource name that this comment is replying to.

string reply = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ByteString

The bytes for reply.

getResolved()

public boolean getResolved()

Output only. Boolean indicator if the comment is resolved.

bool resolved = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The resolved.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasPosition()

public boolean hasPosition()

Optional. The position of the comment.

.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the position field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PullRequestComment.Code.Builder newBuilderForType()
Returns
Type Description
PullRequestComment.Code.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PullRequestComment.Code.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PullRequestComment.Code.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PullRequestComment.Code.Builder toBuilder()
Returns
Type Description
PullRequestComment.Code.Builder

writeTo(CodedOutputStream output)

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