Send feedback
Class PullRequestComment.Code (0.40.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER
Field Value
Type
Description
int
public static final int EFFECTIVE_COMMIT_SHA_FIELD_NUMBER
Field Value
Type
Description
int
public static final int EFFECTIVE_ROOT_COMMENT_FIELD_NUMBER
Field Value
Type
Description
int
public static final int POSITION_FIELD_NUMBER
Field Value
Type
Description
int
public static final int REPLY_FIELD_NUMBER
Field Value
Type
Description
int
public static final int RESOLVED_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static PullRequestComment . Code getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static PullRequestComment . Code . Builder newBuilder ()
public static PullRequestComment . Code . Builder newBuilder ( PullRequestComment . Code prototype )
public static PullRequestComment . Code parseDelimitedFrom ( InputStream input )
public static PullRequestComment . Code parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static PullRequestComment . Code parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static PullRequestComment . Code parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static PullRequestComment . Code parseFrom ( ByteString data )
public static PullRequestComment . Code parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static PullRequestComment . Code parseFrom ( CodedInputStream input )
public static PullRequestComment . Code parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static PullRequestComment . Code parseFrom ( InputStream input )
public static PullRequestComment . Code parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static PullRequestComment . Code parseFrom ( ByteBuffer data )
public static PullRequestComment . Code parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<PullRequestComment . Code > parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
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.
public PullRequestComment . Code getDefaultInstanceForType ()
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.
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.
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.
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.
public Parser<PullRequestComment . Code > getParserForType ()
Overrides
public PullRequestComment . Position getPosition ()
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
public PullRequestComment . PositionOrBuilder getPositionOrBuilder ()
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
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.
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.
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.
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
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.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public PullRequestComment . Code . Builder newBuilderForType ()
protected PullRequestComment . Code . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public PullRequestComment . Code . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-02 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-02 UTC."],[],[]]