public static final class Comment.Builder extends GeneratedMessageV3.Builder<Comment.Builder> implements CommentOrBuilderA comment associated with a support case.
Protobuf type google.cloud.support.v2.Comment
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Comment.BuilderImplements
CommentOrBuilderStatic 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 |
|
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. 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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Comment.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Comment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
|
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 |
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. This can contain rich text syntax.
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 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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Comment.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Comment.Builder |
|