Class PullRequestComment.Code
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.securesourcemanager.v1.PullRequestComment.Code
- All Implemented Interfaces:
PullRequestComment.CodeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- PullRequestComment
public static final class PullRequestComment.Code
extends com.google.protobuf.GeneratedMessage
implements PullRequestComment.CodeOrBuilder
The comment on a code line.Protobuf type
google.cloud.securesourcemanager.v1.PullRequestComment.Code- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe comment on a code line.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBody()Required.com.google.protobuf.ByteStringRequired.static PullRequestComment.Codestatic final com.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<PullRequestComment.Code>Optional.Optional.getReply()Optional.com.google.protobuf.ByteStringOptional.booleanOutput only.intinthashCode()booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(PullRequestComment.Code prototype) protected PullRequestComment.Code.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static PullRequestComment.CodeparseDelimitedFrom(InputStream input) static PullRequestComment.CodeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PullRequestComment.CodeparseFrom(byte[] data) static PullRequestComment.CodeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PullRequestComment.CodeparseFrom(com.google.protobuf.ByteString data) static PullRequestComment.CodeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PullRequestComment.CodeparseFrom(com.google.protobuf.CodedInputStream input) static PullRequestComment.CodeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PullRequestComment.CodeparseFrom(InputStream input) static PullRequestComment.CodeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PullRequestComment.CodeparseFrom(ByteBuffer data) static PullRequestComment.CodeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PullRequestComment.Code>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER- See Also:
-
REPLY_FIELD_NUMBER
public static final int REPLY_FIELD_NUMBER- See Also:
-
POSITION_FIELD_NUMBER
public static final int POSITION_FIELD_NUMBER- See Also:
-
EFFECTIVE_ROOT_COMMENT_FIELD_NUMBER
public static final int EFFECTIVE_ROOT_COMMENT_FIELD_NUMBER- See Also:
-
RESOLVED_FIELD_NUMBER
public static final int RESOLVED_FIELD_NUMBER- See Also:
-
EFFECTIVE_COMMIT_SHA_FIELD_NUMBER
public static final int EFFECTIVE_COMMIT_SHA_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PullRequestComment.Code parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PullRequestComment.Code parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PullRequestComment.Code parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PullRequestComment.Code parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PullRequestComment.Code parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PullRequestComment.Code parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PullRequestComment.Code parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PullRequestComment.Code parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PullRequestComment.Code parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PullRequestComment.Code parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PullRequestComment.Code.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-