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.gdchardwaremanagement.v1alpha.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
 A request to create a comment.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.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 order to create the comment on.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      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 order to create the comment on.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      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 order to create the comment on.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      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 order to create the comment on.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      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 order to create the comment on.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      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.
    • getCommentId

      public String getCommentId()
       Optional. ID used to uniquely identify the Comment within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The comment.name field in the request will be ignored.
       
      string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommentId in interface CreateCommentRequestOrBuilder
      Returns:
      The commentId.
    • getCommentIdBytes

      public com.google.protobuf.ByteString getCommentIdBytes()
       Optional. ID used to uniquely identify the Comment within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The comment.name field in the request will be ignored.
       
      string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommentIdBytes in interface CreateCommentRequestOrBuilder
      Returns:
      The bytes for commentId.
    • setCommentId

      public CreateCommentRequest.Builder setCommentId(String value)
       Optional. ID used to uniquely identify the Comment within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The comment.name field in the request will be ignored.
       
      string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The commentId to set.
      Returns:
      This builder for chaining.
    • clearCommentId

      public CreateCommentRequest.Builder clearCommentId()
       Optional. ID used to uniquely identify the Comment within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The comment.name field in the request will be ignored.
       
      string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCommentIdBytes

      public CreateCommentRequest.Builder setCommentIdBytes(com.google.protobuf.ByteString value)
       Optional. ID used to uniquely identify the Comment within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The comment.name field in the request will be ignored.
       
      string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for commentId to set.
      Returns:
      This builder for chaining.
    • hasComment

      public boolean hasComment()
       Required. The comment to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.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 create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.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 create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];
    • setComment

      public CreateCommentRequest.Builder setComment(Comment.Builder builderForValue)
       Required. The comment to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeComment

      public CreateCommentRequest.Builder mergeComment(Comment value)
       Required. The comment to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearComment

      public CreateCommentRequest.Builder clearComment()
       Required. The comment to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];
    • getCommentBuilder

      public Comment.Builder getCommentBuilder()
       Required. The comment to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];
    • getCommentOrBuilder

      public CommentOrBuilder getCommentOrBuilder()
       Required. The comment to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCommentOrBuilder in interface CreateCommentRequestOrBuilder
    • getRequestId

      public String getRequestId()
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestId in interface CreateCommentRequestOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestIdBytes in interface CreateCommentRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public CreateCommentRequest.Builder setRequestId(String value)
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public CreateCommentRequest.Builder clearRequestId()
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public CreateCommentRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.