Class PullRequestComment.Review.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Review.Builder>
com.google.cloud.securesourcemanager.v1.PullRequestComment.Review.Builder
- All Implemented Interfaces:
PullRequestComment.ReviewOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PullRequestComment.Review
public static final class PullRequestComment.Review.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Review.Builder>
implements PullRequestComment.ReviewOrBuilder
The review summary comment.Protobuf type
google.cloud.securesourcemanager.v1.PullRequestComment.Review-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Optional.Output only.Required.intRequired.getBody()Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.setActionTypeValue(int value) Required.Optional.setBodyBytes(com.google.protobuf.ByteString value) Optional.setEffectiveCommitSha(String value) Output only.setEffectiveCommitShaBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Review.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Review.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Review.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PullRequestComment.Review.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Review.Builder>
-
mergeFrom
public PullRequestComment.Review.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PullRequestComment.Review.Builder>- Throws:
IOException
-
getActionTypeValue
public int getActionTypeValue()Required. The review action type.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getActionTypeValuein interfacePullRequestComment.ReviewOrBuilder- Returns:
- The enum numeric value on the wire for actionType.
-
setActionTypeValue
Required. The review action type.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for actionType to set.- Returns:
- This builder for chaining.
-
getActionType
Required. The review action type.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getActionTypein interfacePullRequestComment.ReviewOrBuilder- Returns:
- The actionType.
-
setActionType
Required. The review action type.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The actionType to set.- Returns:
- This builder for chaining.
-
clearActionType
Required. The review action type.
.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getBody
Optional. The comment body.
string body = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBodyin interfacePullRequestComment.ReviewOrBuilder- Returns:
- The body.
-
getBodyBytes
public com.google.protobuf.ByteString getBodyBytes()Optional. The comment body.
string body = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBodyBytesin interfacePullRequestComment.ReviewOrBuilder- Returns:
- The bytes for body.
-
setBody
Optional. The comment body.
string body = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The body to set.- Returns:
- This builder for chaining.
-
clearBody
Optional. The comment body.
string body = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setBodyBytes
Optional. The comment body.
string body = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for body to set.- Returns:
- This builder for chaining.
-
getEffectiveCommitSha
Output only. The effective commit sha this review is pointing to.
string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEffectiveCommitShain interfacePullRequestComment.ReviewOrBuilder- Returns:
- The effectiveCommitSha.
-
getEffectiveCommitShaBytes
public com.google.protobuf.ByteString getEffectiveCommitShaBytes()Output only. The effective commit sha this review is pointing to.
string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEffectiveCommitShaBytesin interfacePullRequestComment.ReviewOrBuilder- Returns:
- The bytes for effectiveCommitSha.
-
setEffectiveCommitSha
Output only. The effective commit sha this review is pointing to.
string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The effectiveCommitSha to set.- Returns:
- This builder for chaining.
-
clearEffectiveCommitSha
Output only. The effective commit sha this review is pointing to.
string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setEffectiveCommitShaBytes
public PullRequestComment.Review.Builder setEffectiveCommitShaBytes(com.google.protobuf.ByteString value) Output only. The effective commit sha this review is pointing to.
string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for effectiveCommitSha to set.- Returns:
- This builder for chaining.
-