Class CreateCommentRequest.Builder

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

public static final class CreateCommentRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateCommentRequest.Builder> implements CreateCommentRequestOrBuilder
 The request message for the CreateComment endpoint.
 
Protobuf type google.cloud.support.v2beta.CreateCommentRequest
  • 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<CreateCommentRequest.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<CreateCommentRequest.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<CreateCommentRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CreateCommentRequest.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<CreateCommentRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public CreateCommentRequest.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<CreateCommentRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The name of the case to which the comment should be added.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateCommentRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The name of the case to which the comment should be added.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateCommentRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateCommentRequest.Builder setParent(String value)
       Required. The name of the case to which the comment should be added.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateCommentRequest.Builder clearParent()
       Required. The name of the case to which the comment should be added.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateCommentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the case to which the comment should be added.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasComment

      public boolean hasComment()
       Required. The comment to be added.
       
      .google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasComment in interface CreateCommentRequestOrBuilder
      Returns:
      Whether the comment field is set.
    • getComment

      public Comment getComment()
       Required. The comment to be added.
       
      .google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getComment in interface CreateCommentRequestOrBuilder
      Returns:
      The comment.
    • setComment

      public CreateCommentRequest.Builder setComment(Comment value)
       Required. The comment to be added.
       
      .google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];
    • setComment

      public CreateCommentRequest.Builder setComment(Comment.Builder builderForValue)
       Required. The comment to be added.
       
      .google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeComment

      public CreateCommentRequest.Builder mergeComment(Comment value)
       Required. The comment to be added.
       
      .google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearComment

      public CreateCommentRequest.Builder clearComment()
       Required. The comment to be added.
       
      .google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];
    • getCommentBuilder

      public Comment.Builder getCommentBuilder()
       Required. The comment to be added.
       
      .google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];
    • getCommentOrBuilder

      public CommentOrBuilder getCommentOrBuilder()
       Required. The comment to be added.
       
      .google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCommentOrBuilder in interface CreateCommentRequestOrBuilder