Class PullRequestComment.Code.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Code.Builder>
com.google.cloud.securesourcemanager.v1.PullRequestComment.Code.Builder
- All Implemented Interfaces:
PullRequestComment.CodeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PullRequestComment.Code
public static final class PullRequestComment.Code.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Code.Builder>
implements PullRequestComment.CodeOrBuilder
The comment on a code line.Protobuf type
google.cloud.securesourcemanager.v1.PullRequestComment.Code-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Output only.Output only.Optional.Optional.Output only.getBody()Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Optional.Optional.Optional.getReply()Optional.com.google.protobuf.ByteStringOptional.booleanOutput only.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PullRequestComment.Code other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Required.setBodyBytes(com.google.protobuf.ByteString value) Required.setEffectiveCommitSha(String value) Output only.setEffectiveCommitShaBytes(com.google.protobuf.ByteString value) Output only.setEffectiveRootComment(String value) Output only.setEffectiveRootCommentBytes(com.google.protobuf.ByteString value) Output only.Optional.setPosition(PullRequestComment.Position.Builder builderForValue) Optional.Optional.setReplyBytes(com.google.protobuf.ByteString value) Optional.setResolved(boolean 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.Code.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.Code.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.Code.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.Code.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Code.Builder>
-
mergeFrom
public PullRequestComment.Code.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.Code.Builder>- Throws:
IOException
-
getBody
Required. The comment body.
string body = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBodyin interfacePullRequestComment.CodeOrBuilder- Returns:
- The body.
-
getBodyBytes
public com.google.protobuf.ByteString getBodyBytes()Required. The comment body.
string body = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBodyBytesin interfacePullRequestComment.CodeOrBuilder- Returns:
- The bytes for body.
-
setBody
Required. The comment body.
string body = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The body to set.- Returns:
- This builder for chaining.
-
clearBody
Required. The comment body.
string body = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setBodyBytes
Required. The comment body.
string body = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for body to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getReplyin interfacePullRequestComment.CodeOrBuilder- Returns:
- The reply.
-
getReplyBytes
public com.google.protobuf.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];- Specified by:
getReplyBytesin interfacePullRequestComment.CodeOrBuilder- Returns:
- The bytes for reply.
-
setReply
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];- Parameters:
value- The reply to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setReplyBytes
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];- Parameters:
value- The bytes for reply to set.- Returns:
- This builder for chaining.
-
hasPosition
public boolean hasPosition()Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPositionin interfacePullRequestComment.CodeOrBuilder- Returns:
- Whether the position field is set.
-
getPosition
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPositionin interfacePullRequestComment.CodeOrBuilder- Returns:
- The position.
-
setPosition
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setPosition
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]; -
mergePosition
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearPosition
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getPositionBuilder
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getPositionOrBuilder
Optional. The position of the comment.
.google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPositionOrBuilderin interfacePullRequestComment.CodeOrBuilder
-
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];- Specified by:
getEffectiveRootCommentin interfacePullRequestComment.CodeOrBuilder- Returns:
- The effectiveRootComment.
-
getEffectiveRootCommentBytes
public com.google.protobuf.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];- Specified by:
getEffectiveRootCommentBytesin interfacePullRequestComment.CodeOrBuilder- Returns:
- The bytes for effectiveRootComment.
-
setEffectiveRootComment
Output only. The root comment of the conversation, derived from the reply field.
string effective_root_comment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The effectiveRootComment to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setEffectiveRootCommentBytes
public PullRequestComment.Code.Builder setEffectiveRootCommentBytes(com.google.protobuf.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];- Parameters:
value- The bytes for effectiveRootComment to set.- Returns:
- This builder for chaining.
-
getResolved
public boolean getResolved()Output only. Boolean indicator if the comment is resolved.
bool resolved = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getResolvedin interfacePullRequestComment.CodeOrBuilder- Returns:
- The resolved.
-
setResolved
Output only. Boolean indicator if the comment is resolved.
bool resolved = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The resolved to set.- Returns:
- This builder for chaining.
-
clearResolved
Output only. Boolean indicator if the comment is resolved.
bool resolved = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getEffectiveCommitSha
Output only. The effective commit sha this code comment is pointing to.
string effective_commit_sha = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEffectiveCommitShain interfacePullRequestComment.CodeOrBuilder- Returns:
- The effectiveCommitSha.
-
getEffectiveCommitShaBytes
public com.google.protobuf.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];- Specified by:
getEffectiveCommitShaBytesin interfacePullRequestComment.CodeOrBuilder- Returns:
- The bytes for effectiveCommitSha.
-
setEffectiveCommitSha
Output only. The effective commit sha this code comment is pointing to.
string effective_commit_sha = 7 [(.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 code comment is pointing to.
string effective_commit_sha = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setEffectiveCommitShaBytes
public PullRequestComment.Code.Builder setEffectiveCommitShaBytes(com.google.protobuf.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];- Parameters:
value- The bytes for effectiveCommitSha to set.- Returns:
- This builder for chaining.
-