Package com.google.cloud.support.v2
Class Comment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
- com.google.cloud.support.v2.Comment.Builder
-
- All Implemented Interfaces:
CommentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Comment
public static final class Comment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder> implements CommentOrBuilder
A comment associated with a support case.
Protobuf typegoogle.cloud.support.v2.Comment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Comment.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Commentbuild()CommentbuildPartial()Comment.Builderclear()Comment.BuilderclearBody()The full comment body.Comment.BuilderclearCreateTime()Output only.Comment.BuilderclearCreator()Output only.Comment.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Comment.BuilderclearName()Output only.Comment.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Comment.BuilderclearPlainTextBody()Output only.Comment.Builderclone()StringgetBody()The full comment body.com.google.protobuf.ByteStringgetBodyBytes()The full comment body.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.ActorgetCreator()Output only.Actor.BuildergetCreatorBuilder()Output only.ActorOrBuildergetCreatorOrBuilder()Output only.CommentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.StringgetPlainTextBody()Output only.com.google.protobuf.ByteStringgetPlainTextBodyBytes()Output only.booleanhasCreateTime()Output only.booleanhasCreator()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Comment.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.Comment.BuildermergeCreator(Actor value)Output only.Comment.BuildermergeFrom(Comment other)Comment.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Comment.BuildermergeFrom(com.google.protobuf.Message other)Comment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Comment.BuildersetBody(String value)The full comment body.Comment.BuildersetBodyBytes(com.google.protobuf.ByteString value)The full comment body.Comment.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.Comment.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Comment.BuildersetCreator(Actor value)Output only.Comment.BuildersetCreator(Actor.Builder builderForValue)Output only.Comment.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Comment.BuildersetName(String value)Output only.Comment.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.Comment.BuildersetPlainTextBody(String value)Output only.Comment.BuildersetPlainTextBodyBytes(com.google.protobuf.ByteString value)Output only.Comment.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Comment.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
clear
public Comment.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
getDefaultInstanceForType
public Comment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Comment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Comment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Comment.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
setField
public Comment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
clearField
public Comment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
clearOneof
public Comment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
setRepeatedField
public Comment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
addRepeatedField
public Comment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
mergeFrom
public Comment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Comment.Builder>
-
mergeFrom
public Comment.Builder mergeFrom(Comment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
mergeFrom
public Comment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Comment.Builder>- Throws:
IOException
-
getName
public String getName()
Output only. The resource name for the comment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceCommentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The resource name for the comment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceCommentOrBuilder- Returns:
- The bytes for name.
-
setName
public Comment.Builder setName(String value)
Output only. The resource name for the comment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Comment.Builder clearName()
Output only. The resource name for the comment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public Comment.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name for the comment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCreateTimein interfaceCommentOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceCommentOrBuilder- Returns:
- The createTime.
-
setCreateTime
public Comment.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Comment.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Comment.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceCommentOrBuilder
-
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];- Specified by:
hasCreatorin interfaceCommentOrBuilder- Returns:
- Whether the creator field is set.
-
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];- Specified by:
getCreatorin interfaceCommentOrBuilder- Returns:
- The creator.
-
setCreator
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];
-
setCreator
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];
-
mergeCreator
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];
-
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];
-
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];
-
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];- Specified by:
getCreatorOrBuilderin interfaceCommentOrBuilder
-
getBody
public String getBody()
The full comment body. Maximum of 12800 characters. This can contain rich text syntax.
string body = 4;- Specified by:
getBodyin interfaceCommentOrBuilder- Returns:
- The body.
-
getBodyBytes
public com.google.protobuf.ByteString getBodyBytes()
The full comment body. Maximum of 12800 characters. This can contain rich text syntax.
string body = 4;- Specified by:
getBodyBytesin interfaceCommentOrBuilder- Returns:
- The bytes for body.
-
setBody
public Comment.Builder setBody(String value)
The full comment body. Maximum of 12800 characters. This can contain rich text syntax.
string body = 4;- Parameters:
value- The body to set.- Returns:
- This builder for chaining.
-
clearBody
public Comment.Builder clearBody()
The full comment body. Maximum of 12800 characters. This can contain rich text syntax.
string body = 4;- Returns:
- This builder for chaining.
-
setBodyBytes
public Comment.Builder setBodyBytes(com.google.protobuf.ByteString value)
The full comment body. Maximum of 12800 characters. This can contain rich text syntax.
string body = 4;- Parameters:
value- The bytes for body to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getPlainTextBodyin interfaceCommentOrBuilder- Returns:
- The plainTextBody.
-
getPlainTextBodyBytes
public com.google.protobuf.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];- Specified by:
getPlainTextBodyBytesin interfaceCommentOrBuilder- Returns:
- The bytes for plainTextBody.
-
setPlainTextBody
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];- Parameters:
value- The plainTextBody to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPlainTextBodyBytes
public Comment.Builder setPlainTextBodyBytes(com.google.protobuf.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];- Parameters:
value- The bytes for plainTextBody to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Comment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
mergeUnknownFields
public final Comment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Comment.Builder>
-
-