Class Comment.Builder (0.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Comment build()
Returns
TypeDescription
Comment

buildPartial()

public Comment buildPartial()
Returns
TypeDescription
Comment

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Comment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Comment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Comment getDefaultInstanceForType()
Returns
TypeDescription
Comment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Output only. The resource name for the comment.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the creator field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueActor
Returns
TypeDescription
Comment.Builder

mergeFrom(Comment other)

public Comment.Builder mergeFrom(Comment other)
Parameter
NameDescription
otherComment
Returns
TypeDescription
Comment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The body to set.

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

The bytes for body to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueActor
Returns
TypeDescription
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
NameDescription
builderForValueActor.Builder
Returns
TypeDescription
Comment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

The plainTextBody to set.

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

The bytes for plainTextBody to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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