public static final class PullRequestComment.Review.Builder extends GeneratedMessageV3.Builder<PullRequestComment.Review.Builder> implements PullRequestComment.ReviewOrBuilderThe review summary comment.
Protobuf type google.cloud.securesourcemanager.v1.PullRequestComment.Review
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PullRequestComment.Review.BuilderImplements
PullRequestComment.ReviewOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PullRequestComment.Review.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|
build()
public PullRequestComment.Review build()| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review |
|
buildPartial()
public PullRequestComment.Review buildPartial()| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review |
|
clear()
public PullRequestComment.Review.Builder clear()| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|
clearActionType()
public PullRequestComment.Review.Builder clearActionType()Required. The review action type.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
This builder for chaining. |
clearBody()
public PullRequestComment.Review.Builder clearBody()Optional. The comment body.
string body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
This builder for chaining. |
clearEffectiveCommitSha()
public PullRequestComment.Review.Builder clearEffectiveCommitSha()Output only. The effective commit sha this review is pointing to.
string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PullRequestComment.Review.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public PullRequestComment.Review.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|
clone()
public PullRequestComment.Review.Builder clone()| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|
getActionType()
public PullRequestComment.Review.ActionType getActionType()Required. The review action type.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.ActionType |
The actionType. |
getActionTypeValue()
public int getActionTypeValue()Required. The review action type.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for actionType. |
getBody()
public String getBody()Optional. The comment body.
string body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The body. |
getBodyBytes()
public ByteString getBodyBytes()Optional. The comment body.
string body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for body. |
getDefaultInstanceForType()
public PullRequestComment.Review getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEffectiveCommitSha()
public String getEffectiveCommitSha()Output only. The effective commit sha this review is pointing to.
string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The effectiveCommitSha. |
getEffectiveCommitShaBytes()
public ByteString getEffectiveCommitShaBytes()Output only. The effective commit sha this review is pointing to.
string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for effectiveCommitSha. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PullRequestComment.Review other)
public PullRequestComment.Review.Builder mergeFrom(PullRequestComment.Review other)| Parameter | |
|---|---|
| Name | Description |
other |
PullRequestComment.Review |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PullRequestComment.Review.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PullRequestComment.Review.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PullRequestComment.Review.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|
setActionType(PullRequestComment.Review.ActionType value)
public PullRequestComment.Review.Builder setActionType(PullRequestComment.Review.ActionType value)Required. The review action type.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
PullRequestComment.Review.ActionTypeThe actionType to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
This builder for chaining. |
setActionTypeValue(int value)
public PullRequestComment.Review.Builder setActionTypeValue(int value)Required. The review action type.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for actionType to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
This builder for chaining. |
setBody(String value)
public PullRequestComment.Review.Builder setBody(String value)Optional. The comment body.
string body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe body to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
This builder for chaining. |
setBodyBytes(ByteString value)
public PullRequestComment.Review.Builder setBodyBytes(ByteString value)Optional. The comment body.
string body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for body to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
This builder for chaining. |
setEffectiveCommitSha(String value)
public PullRequestComment.Review.Builder setEffectiveCommitSha(String value)Output only. The effective commit sha this review is pointing to.
string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe effectiveCommitSha to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
This builder for chaining. |
setEffectiveCommitShaBytes(ByteString value)
public PullRequestComment.Review.Builder setEffectiveCommitShaBytes(ByteString value)Output only. The effective commit sha this review is pointing to.
string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for effectiveCommitSha to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PullRequestComment.Review.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PullRequestComment.Review.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final PullRequestComment.Review.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
PullRequestComment.Review.Builder |
|