Send feedback
Class Comment (0.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.16.0 keyboard_arrow_down
public final class Comment extends GeneratedMessageV3 implements CommentOrBuilder
A comment associated with a support case.
Protobuf type google.cloud.support.v2.Comment
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER
Field Value Type Description int
public static final int CREATE_TIME_FIELD_NUMBER
Field Value Type Description int
public static final int CREATOR_FIELD_NUMBER
Field Value Type Description int
public static final int NAME_FIELD_NUMBER
Field Value Type Description int
PLAIN_TEXT_BODY_FIELD_NUMBER
public static final int PLAIN_TEXT_BODY_FIELD_NUMBER
Field Value Type Description int
Static Methods
public static Comment getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static Comment . Builder newBuilder ()
public static Comment . Builder newBuilder ( Comment prototype )
Parameter Name Description prototype
Comment
public static Comment parseDelimitedFrom ( InputStream input )
public static Comment parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static Comment parseFrom ( byte [] data )
Parameter Name Description data
byte []
public static Comment parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static Comment parseFrom ( ByteString data )
public static Comment parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Comment parseFrom ( CodedInputStream input )
public static Comment parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Comment parseFrom ( InputStream input )
public static Comment parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static Comment parseFrom ( ByteBuffer data )
public static Comment parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<Comment> parser ()
Methods
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getBody()
The full comment body. Maximum of 12800 characters. This can contain rich
text syntax.
string body = 4;
Returns Type Description String
The body.
getBodyBytes()
public ByteString getBodyBytes ()
The full comment body. Maximum of 12800 characters. This can contain rich
text syntax.
string body = 4;
Returns Type Description ByteString
The bytes for body.
public Timestamp getCreateTime ()
Output only. The time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description Timestamp
The createTime.
public TimestampOrBuilder getCreateTimeOrBuilder ()
Output only. The time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Actor getCreator ()
Output only. The user or Google Support agent created this comment.
.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description Actor
The creator.
public ActorOrBuilder getCreatorOrBuilder ()
Output only. The user or Google Support agent created this comment.
.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Comment getDefaultInstanceForType ()
Output only. The resource name for the comment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description String
The name.
public ByteString getNameBytes ()
Output only. The resource name for the comment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description ByteString
The bytes for name.
public Parser<Comment> getParserForType ()
Overrides
getPlainTextBody()
public String getPlainTextBody ()
Output only. DEPRECATED. An automatically generated plain text version of
body with all rich text syntax stripped.
string plain_text_body = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description String
The plainTextBody.
getPlainTextBodyBytes()
public ByteString getPlainTextBodyBytes ()
Output only. DEPRECATED. An automatically generated plain text version of
body with all rich text syntax stripped.
string plain_text_body = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description ByteString
The bytes for plainTextBody.
public int getSerializedSize ()
Returns Type Description int
Overrides
public boolean hasCreateTime ()
Output only. The time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description boolean
Whether the createTime field is set.
public boolean hasCreator ()
Output only. The user or Google Support agent created this comment.
.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description boolean
Whether the creator field is set.
Returns Type Description int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public Comment . Builder newBuilderForType ()
protected Comment . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
public Comment . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]