Class CreateCommentRequest.Builder (0.2.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateCommentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateCommentRequest.Builder
Overrides

build()

public CreateCommentRequest build()
Returns
TypeDescription
CreateCommentRequest

buildPartial()

public CreateCommentRequest buildPartial()
Returns
TypeDescription
CreateCommentRequest

clear()

public CreateCommentRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
CreateCommentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateCommentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateCommentRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCommentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateCommentRequest.Builder

This builder for chaining.

clone()

public CreateCommentRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CommentOrBuilder

getDefaultInstanceForType()

public CreateCommentRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateCommentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the comment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueComment
Returns
TypeDescription
CreateCommentRequest.Builder

mergeFrom(CreateCommentRequest other)

public CreateCommentRequest.Builder mergeFrom(CreateCommentRequest other)
Parameter
NameDescription
otherCreateCommentRequest
Returns
TypeDescription
CreateCommentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateCommentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCommentRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateCommentRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateCommentRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateCommentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueComment
Returns
TypeDescription
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
NameDescription
builderForValueComment.Builder
Returns
TypeDescription
CreateCommentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateCommentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateCommentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateCommentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateCommentRequest.Builder
Overrides