Class Comment (0.60.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.60.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  Comment   extends   GeneratedMessageV3   implements   CommentOrBuilder  
   A comment associated with a support case.
 Case comments are the primary way for Google Support to communicate with a
 user who has opened a case. When a user responds to Google Support, the
 user's responses also appear as comments.
 Protobuf type google.cloud.support.v2beta.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  
      
        prototypeComment  
     
  
  
  
  
  
    
public   static   Comment   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
  
  
    
public   static   Comment   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
  
  
    
public   static   Comment   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
  
  
    
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  
      
        objObject  
     
  
  
  Overrides 
  
  getBody() 
  
   The full comment body.
 Maximum of 12800 characters.
 string body = 4;
    
      
        Returns  
      
        Type Description  
      
        String The body.
 
     
  
  getBodyBytes() 
  
    
public   ByteString   getBodyBytes ()  
   The full comment body.
 Maximum of 12800 characters.
 string body = 4;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for body.
 
     
  
  
  
  
    
public   Timestamp   getCreateTime ()  
   Output only. The time when the 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 the 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 who created the comment.
 
 .google.cloud.support.v2beta.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 who created the comment.
 
 .google.cloud.support.v2beta.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
public   Comment   getDefaultInstanceForType ()  
  
  
  
  
   Output only. Identifier. The resource name of the comment.
 
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        String The name.
 
     
  
  
  
  
    
public   ByteString   getNameBytes ()  
   Output only. Identifier. The resource name of the comment.
 
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for name.
 
     
  
  
  
  
    
public   Parser<Comment>   getParserForType ()  
  
  Overrides 
  
  getPlainTextBody() (deprecated) 
  
    
public   String   getPlainTextBody ()  
  Deprecated.  google.cloud.support.v2beta.Comment.plain_text_body is deprecated. See
     google/cloud/support/v2beta/comment.proto;l=66 
 Output only. DEPRECATED. DO NOT USE.
 A duplicate of the body field.
 This field is only present for legacy reasons.
 
 string plain_text_body = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        String The plainTextBody.
 
     
  
  getPlainTextBodyBytes() (deprecated) 
  
    
public   ByteString   getPlainTextBodyBytes ()  
  Deprecated.  google.cloud.support.v2beta.Comment.plain_text_body is deprecated. See
     google/cloud/support/v2beta/comment.proto;l=66 
 Output only. DEPRECATED. DO NOT USE.
 A duplicate of the body field.
 This field is only present for legacy reasons.
 
 string plain_text_body = 5 [deprecated = true, (.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 the 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 who created the comment.
 
 .google.cloud.support.v2beta.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 )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
  
  
    
public   Comment . Builder   toBuilder ()  
  
  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-10-28 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]