public static final class PullRequestComment.Code extends GeneratedMessage implements PullRequestComment.CodeOrBuilder
The comment on a code line.
Protobuf type google.cloud.securesourcemanager.v1.PullRequestComment.Code
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PullRequestComment.Code.Builder newBuilderForType()
protected PullRequestComment.Code.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public PullRequestComment.Code.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides