Class CreateCommentRequest.Builder (0.28.0)

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

The request message for CreateComment endpoint.

Protobuf type google.cloud.support.v2.CreateCommentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateCommentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateCommentRequest.Builder
Overrides

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 object to be added to this Case.

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

Returns
Type Description
CreateCommentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateCommentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateCommentRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCommentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateCommentRequest.Builder
Overrides

clearParent()

public CreateCommentRequest.Builder clearParent()

Required. The resource name of Case to which this 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.

clone()

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

getComment()

public Comment getComment()

Required. The Comment object to be added to this Case.

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

Returns
Type Description
Comment

The comment.

getCommentBuilder()

public Comment.Builder getCommentBuilder()

Required. The Comment object to be added to this Case.

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

Returns
Type Description
Comment.Builder

getCommentOrBuilder()

public CommentOrBuilder getCommentOrBuilder()

Required. The Comment object to be added to this Case.

.google.cloud.support.v2.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 resource name of Case to which this 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 resource name of Case to which this 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 object to be added to this Case.

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

Returns
Type Description
boolean

Whether the comment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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 object to be added to this Case.

.google.cloud.support.v2.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateCommentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateCommentRequest.Builder
Overrides

setComment(Comment value)

public CreateCommentRequest.Builder setComment(Comment value)

Required. The Comment object to be added to this Case.

.google.cloud.support.v2.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 object to be added to this Case.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateCommentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateCommentRequest.Builder
Overrides

setParent(String value)

public CreateCommentRequest.Builder setParent(String value)

Required. The resource name of Case to which this 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 resource name of Case to which this 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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateCommentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateCommentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateCommentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateCommentRequest.Builder
Overrides