Class 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.GeneratedMessageV3.Builder<Comment.Builder>
    implements CommentOrBuilder
     A comment associated with a support case.
     
    Protobuf type google.cloud.support.v2.Comment
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Comment.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
      • setField

        public Comment.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
      • clearField

        public Comment.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
      • clearOneof

        public Comment.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
      • setRepeatedField

        public Comment.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                int index,
                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
      • addRepeatedField

        public Comment.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Comment.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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. The resource name for the comment.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface CommentOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource name for the comment.
         
        string name = 1 [(.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. The resource name for the comment.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

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

        public Comment.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name for the comment.
         
        string name = 1 [(.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 this 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 this 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 this 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 this 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 this 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 this 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 this 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 this 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 created this comment.
         
        .google.cloud.support.v2.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 created this comment.
         
        .google.cloud.support.v2.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 created this comment.
         
        .google.cloud.support.v2.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 created this comment.
         
        .google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreator

        public Comment.Builder mergeCreator​(Actor value)
         Output only. The user or Google Support agent created this comment.
         
        .google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreator

        public Comment.Builder clearCreator()
         Output only. The user or Google Support agent created this comment.
         
        .google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreatorBuilder

        public Actor.Builder getCreatorBuilder()
         Output only. The user or Google Support agent created this comment.
         
        .google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreatorOrBuilder

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

        public String getBody()
         The full comment body. Maximum of 12800 characters. This can contain rich
         text syntax.
         
        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. This can contain rich
         text syntax.
         
        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. This can contain rich
         text syntax.
         
        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. This can contain rich
         text syntax.
         
        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. This can contain rich
         text syntax.
         
        string body = 4;
        Parameters:
        value - The bytes for body to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getPlainTextBody in interface CommentOrBuilder
        Returns:
        The plainTextBody.
      • getPlainTextBodyBytes

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

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

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

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

        public final Comment.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
      • mergeUnknownFields

        public final Comment.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>