public static final class Comment.Builder extends GeneratedMessage.Builder<Comment.Builder> implements CommentOrBuilderA comment associated with a support case.
Case comments are the primary way for Google Support to communicate with a user who has opened a case. When a user responds to Google Support, the user's responses also appear as comments.
Protobuf type google.cloud.support.v2beta.Comment
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Comment.BuilderImplements
CommentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearBody()
public Comment.Builder clearBody()The full comment body.
Maximum of 12800 characters.
string body = 4;
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
This builder for chaining. |
clearCreateTime()
public Comment.Builder clearCreateTime()Output only. The time when the 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 who created the comment.
.google.cloud.support.v2beta.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
|
clearName()
public Comment.Builder clearName()Output only. Identifier. The resource name of the comment.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
This builder for chaining. |
clearPlainTextBody() (deprecated)
public Comment.Builder clearPlainTextBody()Deprecated. google.cloud.support.v2beta.Comment.plain_text_body is deprecated. See google/cloud/support/v2beta/comment.proto;l=66
Output only. DEPRECATED. DO NOT USE.
A duplicate of the body field.
This field is only present for legacy reasons.
string plain_text_body = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
This builder for chaining. |
getBody()
public String getBody()The full comment body.
Maximum of 12800 characters.
string body = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The body. |
getBodyBytes()
public ByteString getBodyBytes()The full comment body.
Maximum of 12800 characters.
string body = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for body. |
getCreateTime()
public Timestamp getCreateTime()Output only. The time when the 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 the 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 the 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 who created the comment.
.google.cloud.support.v2beta.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 who created the comment.
.google.cloud.support.v2beta.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 who created the comment.
.google.cloud.support.v2beta.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 |
|
getName()
public String getName()Output only. Identifier. The resource name of the comment.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Output only. Identifier. The resource name of the comment.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPlainTextBody() (deprecated)
public String getPlainTextBody()Deprecated. google.cloud.support.v2beta.Comment.plain_text_body is deprecated. See google/cloud/support/v2beta/comment.proto;l=66
Output only. DEPRECATED. DO NOT USE.
A duplicate of the body field.
This field is only present for legacy reasons.
string plain_text_body = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The plainTextBody. |
getPlainTextBodyBytes() (deprecated)
public ByteString getPlainTextBodyBytes()Deprecated. google.cloud.support.v2beta.Comment.plain_text_body is deprecated. See google/cloud/support/v2beta/comment.proto;l=66
Output only. DEPRECATED. DO NOT USE.
A duplicate of the body field.
This field is only present for legacy reasons.
string plain_text_body = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for plainTextBody. |
hasCreateTime()
public boolean hasCreateTime()Output only. The time when the 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 who created the comment.
.google.cloud.support.v2beta.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the creator field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public Comment.Builder mergeCreateTime(Timestamp value)Output only. The time when the 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 who created the comment.
.google.cloud.support.v2beta.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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Comment.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
|
setBody(String value)
public Comment.Builder setBody(String value)The full comment body.
Maximum of 12800 characters.
string body = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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.
string body = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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 the 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 the 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 who created the comment.
.google.cloud.support.v2beta.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 who created the comment.
.google.cloud.support.v2beta.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Actor.Builder |
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
|
setName(String value)
public Comment.Builder setName(String value)Output only. Identifier. The resource name of the comment.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Comment.Builder setNameBytes(ByteString value)Output only. Identifier. The resource name of the comment.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
This builder for chaining. |
setPlainTextBody(String value) (deprecated)
public Comment.Builder setPlainTextBody(String value)Deprecated. google.cloud.support.v2beta.Comment.plain_text_body is deprecated. See google/cloud/support/v2beta/comment.proto;l=66
Output only. DEPRECATED. DO NOT USE.
A duplicate of the body field.
This field is only present for legacy reasons.
string plain_text_body = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe plainTextBody to set. |
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
This builder for chaining. |
setPlainTextBodyBytes(ByteString value) (deprecated)
public Comment.Builder setPlainTextBodyBytes(ByteString value)Deprecated. google.cloud.support.v2beta.Comment.plain_text_body is deprecated. See google/cloud/support/v2beta/comment.proto;l=66
Output only. DEPRECATED. DO NOT USE.
A duplicate of the body field.
This field is only present for legacy reasons.
string plain_text_body = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for plainTextBody to set. |
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
This builder for chaining. |