Class CreateCommentRequest.Builder (0.69.0)

public static final class CreateCommentRequest.Builder extends GeneratedMessage.Builder<CreateCommentRequest.Builder> implements CreateCommentRequestOrBuilder

The request message for the CreateComment endpoint.

Protobuf type google.cloud.support.v2beta.CreateCommentRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CreateCommentRequest build()
Returns
Type Description
CreateCommentRequest

buildPartial()

public CreateCommentRequest buildPartial()
Returns
Type Description
CreateCommentRequest

clear()

public CreateCommentRequest.Builder clear()
Returns
Type Description
CreateCommentRequest.Builder
Overrides

clearComment()

public CreateCommentRequest.Builder clearComment()

Required. The comment to be added.

.google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateCommentRequest.Builder

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
Type Description
CreateCommentRequest.Builder

This builder for chaining.

getComment()

public Comment getComment()

Required. The comment to be added.

.google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Comment

The comment.

getCommentBuilder()

public Comment.Builder getCommentBuilder()

Required. The comment to be added.

.google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Comment.Builder

getCommentOrBuilder()

public CommentOrBuilder getCommentOrBuilder()

Required. The comment to be added.

.google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CommentOrBuilder

getDefaultInstanceForType()

public CreateCommentRequest getDefaultInstanceForType()
Returns
Type Description
CreateCommentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasComment()

public boolean hasComment()

Required. The comment to be added.

.google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the comment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeComment(Comment value)

public CreateCommentRequest.Builder mergeComment(Comment value)

Required. The comment to be added.

.google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Comment
Returns
Type Description
CreateCommentRequest.Builder

mergeFrom(CreateCommentRequest other)

public CreateCommentRequest.Builder mergeFrom(CreateCommentRequest other)
Parameter
Name Description
other CreateCommentRequest
Returns
Type Description
CreateCommentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateCommentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateCommentRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateCommentRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateCommentRequest.Builder
Overrides

setComment(Comment value)

public CreateCommentRequest.Builder setComment(Comment value)

Required. The comment to be added.

.google.cloud.support.v2beta.Comment comment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Comment
Returns
Type Description
CreateCommentRequest.Builder

setComment(Comment.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Comment.Builder
Returns
Type Description
CreateCommentRequest.Builder

setParent(String value)

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) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateCommentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCommentRequest.Builder setParentBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateCommentRequest.Builder

This builder for chaining.