Class Comment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Comment.Builder>
com.google.cloud.support.v2beta.Comment.Builder
All Implemented Interfaces:
CommentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Comment

public static final class Comment.Builder extends com.google.protobuf.GeneratedMessage.Builder<Comment.Builder> 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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Comment.Builder>
    • clear

      public Comment.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Comment.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Comment.Builder>
    • getDefaultInstanceForType

      public Comment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Comment build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Comment buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Comment.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Comment.Builder>
    • mergeFrom

      public Comment.Builder mergeFrom(Comment other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Comment.Builder>
    • mergeFrom

      public Comment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Comment.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Identifier. The resource name of the comment.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface CommentOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface CommentOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Comment.Builder setName(String value)
       Output only. Identifier. The resource name of the comment.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Comment.Builder clearName()
       Output only. Identifier. The resource name of the comment.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Comment.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Identifier. The resource name of the comment.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time when the comment was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface CommentOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when the comment was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface CommentOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Comment.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the comment was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Comment.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the comment was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Comment.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the comment was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Comment.Builder clearCreateTime()
       Output only. The time when the comment was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time when the comment was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when the comment was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface CommentOrBuilder
    • hasCreator

      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];
      Specified by:
      hasCreator in interface CommentOrBuilder
      Returns:
      Whether the creator field is set.
    • getCreator

      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];
      Specified by:
      getCreator in interface CommentOrBuilder
      Returns:
      The creator.
    • setCreator

      public Comment.Builder setCreator(Actor value)
       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];
    • setCreator

      public Comment.Builder setCreator(Actor.Builder builderForValue)
       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];
    • mergeCreator

      public Comment.Builder mergeCreator(Actor value)
       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];
    • clearCreator

      public Comment.Builder clearCreator()
       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];
    • getCreatorBuilder

      public Actor.Builder getCreatorBuilder()
       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];
    • getCreatorOrBuilder

      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];
      Specified by:
      getCreatorOrBuilder in interface CommentOrBuilder
    • getBody

      public String getBody()
       The full comment body.
      
       Maximum of 12800 characters.
       
      string body = 4;
      Specified by:
      getBody in interface CommentOrBuilder
      Returns:
      The body.
    • getBodyBytes

      public com.google.protobuf.ByteString getBodyBytes()
       The full comment body.
      
       Maximum of 12800 characters.
       
      string body = 4;
      Specified by:
      getBodyBytes in interface CommentOrBuilder
      Returns:
      The bytes for body.
    • setBody

      public Comment.Builder setBody(String value)
       The full comment body.
      
       Maximum of 12800 characters.
       
      string body = 4;
      Parameters:
      value - The body to set.
      Returns:
      This builder for chaining.
    • clearBody

      public Comment.Builder clearBody()
       The full comment body.
      
       Maximum of 12800 characters.
       
      string body = 4;
      Returns:
      This builder for chaining.
    • setBodyBytes

      public Comment.Builder setBodyBytes(com.google.protobuf.ByteString value)
       The full comment body.
      
       Maximum of 12800 characters.
       
      string body = 4;
      Parameters:
      value - The bytes for body to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getPlainTextBody in interface CommentOrBuilder
      Returns:
      The plainTextBody.
    • getPlainTextBodyBytes

      @Deprecated public com.google.protobuf.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];
      Specified by:
      getPlainTextBodyBytes in interface CommentOrBuilder
      Returns:
      The bytes for plainTextBody.
    • setPlainTextBody

      @Deprecated public Comment.Builder setPlainTextBody(String value)
      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];
      Parameters:
      value - The plainTextBody to set.
      Returns:
      This builder for chaining.
    • clearPlainTextBody

      @Deprecated public Comment.Builder clearPlainTextBody()
      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:
      This builder for chaining.
    • setPlainTextBodyBytes

      @Deprecated public Comment.Builder setPlainTextBodyBytes(com.google.protobuf.ByteString value)
      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];
      Parameters:
      value - The bytes for plainTextBody to set.
      Returns:
      This builder for chaining.