public static final class PullRequestComment.Code.Builder extends GeneratedMessageV3.Builder<PullRequestComment.Code.Builder> implements PullRequestComment.CodeOrBuilder
The comment on a code line.
Protobuf type google.cloud.securesourcemanager.v1.PullRequestComment.Code
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PullRequestComment.Code.BuilderImplements
PullRequestComment.CodeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PullRequestComment.Code.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
build()
public PullRequestComment.Code build()
Returns | |
---|---|
Type | Description |
PullRequestComment.Code |
buildPartial()
public PullRequestComment.Code buildPartial()
Returns | |
---|---|
Type | Description |
PullRequestComment.Code |
clear()
public PullRequestComment.Code.Builder clear()
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
clearBody()
public PullRequestComment.Code.Builder clearBody()
Required. The comment body.
string body = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
This builder for chaining. |
clearEffectiveCommitSha()
public PullRequestComment.Code.Builder clearEffectiveCommitSha()
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 |
PullRequestComment.Code.Builder |
This builder for chaining. |
clearEffectiveRootComment()
public PullRequestComment.Code.Builder clearEffectiveRootComment()
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 |
PullRequestComment.Code.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PullRequestComment.Code.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public PullRequestComment.Code.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
clearPosition()
public PullRequestComment.Code.Builder clearPosition()
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
clearReply()
public PullRequestComment.Code.Builder clearReply()
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 |
PullRequestComment.Code.Builder |
This builder for chaining. |
clearResolved()
public PullRequestComment.Code.Builder clearResolved()
Output only. Boolean indicator if the comment is resolved.
bool resolved = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
This builder for chaining. |
clone()
public PullRequestComment.Code.Builder clone()
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
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 |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |
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. |
getPositionBuilder()
public PullRequestComment.Position.Builder getPositionBuilder()
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.Position.Builder |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(PullRequestComment.Code other)
public PullRequestComment.Code.Builder mergeFrom(PullRequestComment.Code other)
Parameter | |
---|---|
Name | Description |
other |
PullRequestComment.Code |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PullRequestComment.Code.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PullRequestComment.Code.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
mergePosition(PullRequestComment.Position value)
public PullRequestComment.Code.Builder mergePosition(PullRequestComment.Position value)
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
PullRequestComment.Position |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PullRequestComment.Code.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
setBody(String value)
public PullRequestComment.Code.Builder setBody(String value)
Required. The comment body.
string body = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The body to set. |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
This builder for chaining. |
setBodyBytes(ByteString value)
public PullRequestComment.Code.Builder setBodyBytes(ByteString value)
Required. The comment body.
string body = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for body to set. |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
This builder for chaining. |
setEffectiveCommitSha(String value)
public PullRequestComment.Code.Builder setEffectiveCommitSha(String value)
Output only. The effective commit sha this code comment is pointing to.
string effective_commit_sha = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The effectiveCommitSha to set. |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
This builder for chaining. |
setEffectiveCommitShaBytes(ByteString value)
public PullRequestComment.Code.Builder setEffectiveCommitShaBytes(ByteString value)
Output only. The effective commit sha this code comment is pointing to.
string effective_commit_sha = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for effectiveCommitSha to set. |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
This builder for chaining. |
setEffectiveRootComment(String value)
public PullRequestComment.Code.Builder setEffectiveRootComment(String value)
Output only. The root comment of the conversation, derived from the reply field.
string effective_root_comment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The effectiveRootComment to set. |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
This builder for chaining. |
setEffectiveRootCommentBytes(ByteString value)
public PullRequestComment.Code.Builder setEffectiveRootCommentBytes(ByteString value)
Output only. The root comment of the conversation, derived from the reply field.
string effective_root_comment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for effectiveRootComment to set. |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PullRequestComment.Code.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
setPosition(PullRequestComment.Position value)
public PullRequestComment.Code.Builder setPosition(PullRequestComment.Position value)
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
PullRequestComment.Position |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
setPosition(PullRequestComment.Position.Builder builderForValue)
public PullRequestComment.Code.Builder setPosition(PullRequestComment.Position.Builder builderForValue)
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
PullRequestComment.Position.Builder |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PullRequestComment.Code.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
setReply(String value)
public PullRequestComment.Code.Builder setReply(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The reply to set. |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
This builder for chaining. |
setReplyBytes(ByteString value)
public PullRequestComment.Code.Builder setReplyBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for reply to set. |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
This builder for chaining. |
setResolved(boolean value)
public PullRequestComment.Code.Builder setResolved(boolean value)
Output only. Boolean indicator if the comment is resolved.
bool resolved = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
boolean The resolved to set. |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final PullRequestComment.Code.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |