public static final class PullRequestComment.Builder extends GeneratedMessageV3.Builder<PullRequestComment.Builder> implements PullRequestCommentOrBuilder
PullRequestComment represents a comment on a pull request.
Protobuf type google.cloud.securesourcemanager.v1.PullRequestComment
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PullRequestComment.BuilderImplements
PullRequestCommentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PullRequestComment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
build()
public PullRequestComment build()
Returns | |
---|---|
Type | Description |
PullRequestComment |
buildPartial()
public PullRequestComment buildPartial()
Returns | |
---|---|
Type | Description |
PullRequestComment |
clear()
public PullRequestComment.Builder clear()
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
clearCode()
public PullRequestComment.Builder clearCode()
Optional. The comment on a code line.
.google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
clearComment()
public PullRequestComment.Builder clearComment()
Optional. The general pull request comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
clearCommentDetail()
public PullRequestComment.Builder clearCommentDetail()
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
clearCreateTime()
public PullRequestComment.Builder clearCreateTime()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
clearField(Descriptors.FieldDescriptor field)
public PullRequestComment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
clearName()
public PullRequestComment.Builder clearName()
Identifier. Unique identifier for the pull request comment. The comment id
is generated by the server. Format:
projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PullRequestComment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
clearReview()
public PullRequestComment.Builder clearReview()
Optional. The review summary comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
clearUpdateTime()
public PullRequestComment.Builder clearUpdateTime()
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
clone()
public PullRequestComment.Builder clone()
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
getCode()
public PullRequestComment.Code getCode()
Optional. The comment on a code line.
.google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.Code |
The code. |
getCodeBuilder()
public PullRequestComment.Code.Builder getCodeBuilder()
Optional. The comment on a code line.
.google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.Code.Builder |
getCodeOrBuilder()
public PullRequestComment.CodeOrBuilder getCodeOrBuilder()
Optional. The comment on a code line.
.google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.CodeOrBuilder |
getComment()
public PullRequestComment.Comment getComment()
Optional. The general pull request comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.Comment |
The comment. |
getCommentBuilder()
public PullRequestComment.Comment.Builder getCommentBuilder()
Optional. The general pull request comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.Comment.Builder |
getCommentDetailCase()
public PullRequestComment.CommentDetailCase getCommentDetailCase()
Returns | |
---|---|
Type | Description |
PullRequestComment.CommentDetailCase |
getCommentOrBuilder()
public PullRequestComment.CommentOrBuilder getCommentOrBuilder()
Optional. The general pull request comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.CommentOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public PullRequestComment getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
PullRequestComment |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getName()
public String getName()
Identifier. Unique identifier for the pull request comment. The comment id
is generated by the server. Format:
projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Identifier. Unique identifier for the pull request comment. The comment id
is generated by the server. Format:
projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getReview()
public PullRequestComment.Review getReview()
Optional. The review summary comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.Review |
The review. |
getReviewBuilder()
public PullRequestComment.Review.Builder getReviewBuilder()
Optional. The review summary comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.Review.Builder |
getReviewOrBuilder()
public PullRequestComment.ReviewOrBuilder getReviewOrBuilder()
Optional. The review summary comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PullRequestComment.ReviewOrBuilder |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasCode()
public boolean hasCode()
Optional. The comment on a code line.
.google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the code field is set. |
hasComment()
public boolean hasComment()
Optional. The general pull request comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the comment field is set. |
hasCreateTime()
public boolean hasCreateTime()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the createTime field is set. |
hasReview()
public boolean hasReview()
Optional. The review summary comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the review field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCode(PullRequestComment.Code value)
public PullRequestComment.Builder mergeCode(PullRequestComment.Code value)
Optional. The comment on a code line.
.google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
PullRequestComment.Code |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
mergeComment(PullRequestComment.Comment value)
public PullRequestComment.Builder mergeComment(PullRequestComment.Comment value)
Optional. The general pull request comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
PullRequestComment.Comment |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
mergeCreateTime(Timestamp value)
public PullRequestComment.Builder mergeCreateTime(Timestamp value)
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
mergeFrom(PullRequestComment other)
public PullRequestComment.Builder mergeFrom(PullRequestComment other)
Parameter | |
---|---|
Name | Description |
other |
PullRequestComment |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PullRequestComment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PullRequestComment.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
mergeReview(PullRequestComment.Review value)
public PullRequestComment.Builder mergeReview(PullRequestComment.Review value)
Optional. The review summary comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
PullRequestComment.Review |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PullRequestComment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
mergeUpdateTime(Timestamp value)
public PullRequestComment.Builder mergeUpdateTime(Timestamp value)
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setCode(PullRequestComment.Code value)
public PullRequestComment.Builder setCode(PullRequestComment.Code value)
Optional. The comment on a code line.
.google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
PullRequestComment.Code |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setCode(PullRequestComment.Code.Builder builderForValue)
public PullRequestComment.Builder setCode(PullRequestComment.Code.Builder builderForValue)
Optional. The comment on a code line.
.google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
PullRequestComment.Code.Builder |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setComment(PullRequestComment.Comment value)
public PullRequestComment.Builder setComment(PullRequestComment.Comment value)
Optional. The general pull request comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
PullRequestComment.Comment |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setComment(PullRequestComment.Comment.Builder builderForValue)
public PullRequestComment.Builder setComment(PullRequestComment.Comment.Builder builderForValue)
Optional. The general pull request comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
PullRequestComment.Comment.Builder |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setCreateTime(Timestamp value)
public PullRequestComment.Builder setCreateTime(Timestamp value)
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public PullRequestComment.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public PullRequestComment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setName(String value)
public PullRequestComment.Builder setName(String value)
Identifier. Unique identifier for the pull request comment. The comment id
is generated by the server. Format:
projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public PullRequestComment.Builder setNameBytes(ByteString value)
Identifier. Unique identifier for the pull request comment. The comment id
is generated by the server. Format:
projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PullRequestComment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setReview(PullRequestComment.Review value)
public PullRequestComment.Builder setReview(PullRequestComment.Review value)
Optional. The review summary comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
PullRequestComment.Review |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setReview(PullRequestComment.Review.Builder builderForValue)
public PullRequestComment.Builder setReview(PullRequestComment.Review.Builder builderForValue)
Optional. The review summary comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
PullRequestComment.Review.Builder |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final PullRequestComment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setUpdateTime(Timestamp value)
public PullRequestComment.Builder setUpdateTime(Timestamp value)
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public PullRequestComment.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
PullRequestComment.Builder |