Class Comment.Builder (0.35.0)

public static final class Comment.Builder extends GeneratedMessageV3.Builder<Comment.Builder> implements CommentOrBuilder

A comment associated with a support case.

Protobuf type google.cloud.support.v2.Comment

Implements

CommentOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Comment build()
Returns
Type Description
Comment

buildPartial()

public Comment buildPartial()
Returns
Type Description
Comment

clear()

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

clearBody()

public Comment.Builder clearBody()

The full comment body. Maximum of 12800 characters. This can contain rich text syntax.

string body = 4;

Returns
Type Description
Comment.Builder

This builder for chaining.

clearCreateTime()

public Comment.Builder clearCreateTime()

Output only. The time when this comment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Comment.Builder

clearCreator()

public Comment.Builder clearCreator()

Output only. The user or Google Support agent created this comment.

.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Comment.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Comment.Builder clearName()

Output only. The resource name for the comment.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Comment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPlainTextBody()

public Comment.Builder clearPlainTextBody()

Output only. DEPRECATED. An automatically generated plain text version of body with all rich text syntax stripped.

string plain_text_body = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Comment.Builder

This builder for chaining.

clone()

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

getBody()

public String getBody()

The full comment body. Maximum of 12800 characters. This can contain rich text syntax.

string body = 4;

Returns
Type Description
String

The body.

getBodyBytes()

public ByteString getBodyBytes()

The full comment body. Maximum of 12800 characters. This can contain rich text syntax.

string body = 4;

Returns
Type Description
ByteString

The bytes for body.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when this comment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when this comment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when this comment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCreator()

public Actor getCreator()

Output only. The user or Google Support agent created this comment.

.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Actor

The creator.

getCreatorBuilder()

public Actor.Builder getCreatorBuilder()

Output only. The user or Google Support agent created this comment.

.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Actor.Builder

getCreatorOrBuilder()

public ActorOrBuilder getCreatorOrBuilder()

Output only. The user or Google Support agent created this comment.

.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ActorOrBuilder

getDefaultInstanceForType()

public Comment getDefaultInstanceForType()
Returns
Type Description
Comment

getDescriptorForType()

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

getName()

public String getName()

Output only. The resource name for the comment.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name for the comment.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getPlainTextBody()

public String getPlainTextBody()

Output only. DEPRECATED. An automatically generated plain text version of body with all rich text syntax stripped.

string plain_text_body = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The plainTextBody.

getPlainTextBodyBytes()

public ByteString getPlainTextBodyBytes()

Output only. DEPRECATED. An automatically generated plain text version of body with all rich text syntax stripped.

string plain_text_body = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for plainTextBody.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when this comment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasCreator()

public boolean hasCreator()

Output only. The user or Google Support agent created this comment.

.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the creator field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Comment.Builder mergeCreateTime(Timestamp value)

Output only. The time when this comment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Comment.Builder

mergeCreator(Actor value)

public Comment.Builder mergeCreator(Actor value)

Output only. The user or Google Support agent created this comment.

.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Actor
Returns
Type Description
Comment.Builder

mergeFrom(Comment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBody(String value)

public Comment.Builder setBody(String value)

The full comment body. Maximum of 12800 characters. This can contain rich text syntax.

string body = 4;

Parameter
Name Description
value String

The body to set.

Returns
Type Description
Comment.Builder

This builder for chaining.

setBodyBytes(ByteString value)

public Comment.Builder setBodyBytes(ByteString value)

The full comment body. Maximum of 12800 characters. This can contain rich text syntax.

string body = 4;

Parameter
Name Description
value ByteString

The bytes for body to set.

Returns
Type Description
Comment.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Comment.Builder setCreateTime(Timestamp value)

Output only. The time when this comment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Comment.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Comment.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when this comment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Comment.Builder

setCreator(Actor value)

public Comment.Builder setCreator(Actor value)

Output only. The user or Google Support agent created this comment.

.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Actor
Returns
Type Description
Comment.Builder

setCreator(Actor.Builder builderForValue)

public Comment.Builder setCreator(Actor.Builder builderForValue)

Output only. The user or Google Support agent created this comment.

.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Comment.Builder setName(String value)

Output only. The resource name for the comment.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Comment.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Comment.Builder setNameBytes(ByteString value)

Output only. The resource name for the comment.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Comment.Builder

This builder for chaining.

setPlainTextBody(String value)

public Comment.Builder setPlainTextBody(String value)

Output only. DEPRECATED. An automatically generated plain text version of body with all rich text syntax stripped.

string plain_text_body = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The plainTextBody to set.

Returns
Type Description
Comment.Builder

This builder for chaining.

setPlainTextBodyBytes(ByteString value)

public Comment.Builder setPlainTextBodyBytes(ByteString value)

Output only. DEPRECATED. An automatically generated plain text version of body with all rich text syntax stripped.

string plain_text_body = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for plainTextBody to set.

Returns
Type Description
Comment.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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