- 0.62.0 (latest)
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.54.0
- 0.52.0
- 0.51.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class Comment.Builder extends GeneratedMessageV3.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
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.
 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 | |
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. 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. | 
clearOneof(Descriptors.OneofDescriptor oneof)
public Comment.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| Comment.Builder | |
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. | 
clone()
public Comment.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| Comment.Builder | |
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 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 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 | |
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.
 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 | |
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. 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. | 
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 | |