Class Comment (0.17.0)

public final class Comment extends GeneratedMessageV3 implements CommentOrBuilder

A comment associated with a support case.

Protobuf type google.cloud.support.v2.Comment

Implements

CommentOrBuilder

Static Fields

BODY_FIELD_NUMBER

public static final int BODY_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

CREATOR_FIELD_NUMBER

public static final int CREATOR_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PLAIN_TEXT_BODY_FIELD_NUMBER

public static final int PLAIN_TEXT_BODY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Comment getDefaultInstance()
Returns
TypeDescription
Comment

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Comment.Builder newBuilder()
Returns
TypeDescription
Comment.Builder

newBuilder(Comment prototype)

public static Comment.Builder newBuilder(Comment prototype)
Parameter
NameDescription
prototypeComment
Returns
TypeDescription
Comment.Builder

parseDelimitedFrom(InputStream input)

public static Comment parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Comment
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Comment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Comment
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Comment parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Comment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Comment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Comment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Comment parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Comment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Comment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Comment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Comment parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Comment
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Comment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Comment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Comment parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Comment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Comment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Comment
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Comment parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Comment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Comment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Comment
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Comment> parser()
Returns
TypeDescription
Parser<Comment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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.

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

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.

getParserForType()

public Parser<Comment> getParserForType()
Returns
TypeDescription
Parser<Comment>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Comment.Builder newBuilderForType()
Returns
TypeDescription
Comment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Comment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Comment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Comment.Builder toBuilder()
Returns
TypeDescription
Comment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException