Class Comment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Comment.Builder>
com.google.cloud.gdchardwaremanagement.v1alpha.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.GeneratedMessage.Builder<Comment.Builder>
implements CommentOrBuilder
A comment on an order.Protobuf type
google.cloud.gdchardwaremanagement.v1alpha.Comment-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Identifier.Required.booleancontainsLabels(String key) Optional.Output only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Deprecated.getName()Identifier.com.google.protobuf.ByteStringIdentifier.getText()Required.com.google.protobuf.ByteStringRequired.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeCustomerViewedTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllLabels(Map<String, String> values) Optional.Optional.removeLabels(String key) Optional.Output only.setAuthorBytes(com.google.protobuf.ByteString value) Output only.setAuthorEntity(Entity value) Output only.setAuthorEntityValue(int value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setCustomerViewedTime(com.google.protobuf.Timestamp value) Output only.setCustomerViewedTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.Required.setTextBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Comment.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Comment.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Comment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Comment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Comment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
Identifier. Name of this comment. Format: `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceCommentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. Name of this comment. Format: `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceCommentOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. Name of this comment. Format: `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Identifier. Name of this comment. Format: `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Identifier. Name of this comment. Format: `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. 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. 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
Output only. Time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. 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. 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. Time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceCommentOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:CommentOrBuilderOptional. Labels associated with this comment as key value pairs. For more information about labels, see [Create and manage labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceCommentOrBuilder
-
containsLabels
Optional. Labels associated with this comment as key value pairs. For more information about labels, see [Create and manage labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceCommentOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceCommentOrBuilder
-
getLabelsMap
Optional. Labels associated with this comment as key value pairs. For more information about labels, see [Create and manage labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceCommentOrBuilder
-
getLabelsOrDefault
Optional. Labels associated with this comment as key value pairs. For more information about labels, see [Create and manage labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceCommentOrBuilder
-
getLabelsOrThrow
Optional. Labels associated with this comment as key value pairs. For more information about labels, see [Create and manage labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceCommentOrBuilder
-
clearLabels
-
removeLabels
Optional. Labels associated with this comment as key value pairs. For more information about labels, see [Create and manage labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. Labels associated with this comment as key value pairs. For more information about labels, see [Create and manage labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. Labels associated with this comment as key value pairs. For more information about labels, see [Create and manage labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getAuthor
Output only. Username of the author of this comment. This is auto-populated from the credentials used during creation of the comment.
string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAuthorin interfaceCommentOrBuilder- Returns:
- The author.
-
getAuthorBytes
public com.google.protobuf.ByteString getAuthorBytes()Output only. Username of the author of this comment. This is auto-populated from the credentials used during creation of the comment.
string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAuthorBytesin interfaceCommentOrBuilder- Returns:
- The bytes for author.
-
setAuthor
Output only. Username of the author of this comment. This is auto-populated from the credentials used during creation of the comment.
string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The author to set.- Returns:
- This builder for chaining.
-
clearAuthor
Output only. Username of the author of this comment. This is auto-populated from the credentials used during creation of the comment.
string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setAuthorBytes
Output only. Username of the author of this comment. This is auto-populated from the credentials used during creation of the comment.
string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for author to set.- Returns:
- This builder for chaining.
-
getText
Required. Text of this comment. The length of text must be <= 1000 characters.
string text = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTextin interfaceCommentOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()Required. Text of this comment. The length of text must be <= 1000 characters.
string text = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTextBytesin interfaceCommentOrBuilder- Returns:
- The bytes for text.
-
setText
Required. Text of this comment. The length of text must be <= 1000 characters.
string text = 5 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
Required. Text of this comment. The length of text must be <= 1000 characters.
string text = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTextBytes
Required. Text of this comment. The length of text must be <= 1000 characters.
string text = 5 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
hasCustomerViewedTime
public boolean hasCustomerViewedTime()Output only. Timestamp of the first time this comment was viewed by the customer. If the comment wasn't viewed then this timestamp will be unset.
.google.protobuf.Timestamp customer_viewed_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCustomerViewedTimein interfaceCommentOrBuilder- Returns:
- Whether the customerViewedTime field is set.
-
getCustomerViewedTime
public com.google.protobuf.Timestamp getCustomerViewedTime()Output only. Timestamp of the first time this comment was viewed by the customer. If the comment wasn't viewed then this timestamp will be unset.
.google.protobuf.Timestamp customer_viewed_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCustomerViewedTimein interfaceCommentOrBuilder- Returns:
- The customerViewedTime.
-
setCustomerViewedTime
Output only. Timestamp of the first time this comment was viewed by the customer. If the comment wasn't viewed then this timestamp will be unset.
.google.protobuf.Timestamp customer_viewed_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCustomerViewedTime
Output only. Timestamp of the first time this comment was viewed by the customer. If the comment wasn't viewed then this timestamp will be unset.
.google.protobuf.Timestamp customer_viewed_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCustomerViewedTime
Output only. Timestamp of the first time this comment was viewed by the customer. If the comment wasn't viewed then this timestamp will be unset.
.google.protobuf.Timestamp customer_viewed_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCustomerViewedTime
Output only. Timestamp of the first time this comment was viewed by the customer. If the comment wasn't viewed then this timestamp will be unset.
.google.protobuf.Timestamp customer_viewed_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCustomerViewedTimeBuilder
public com.google.protobuf.Timestamp.Builder getCustomerViewedTimeBuilder()Output only. Timestamp of the first time this comment was viewed by the customer. If the comment wasn't viewed then this timestamp will be unset.
.google.protobuf.Timestamp customer_viewed_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCustomerViewedTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCustomerViewedTimeOrBuilder()Output only. Timestamp of the first time this comment was viewed by the customer. If the comment wasn't viewed then this timestamp will be unset.
.google.protobuf.Timestamp customer_viewed_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCustomerViewedTimeOrBuilderin interfaceCommentOrBuilder
-
getAuthorEntityValue
public int getAuthorEntityValue()Output only. The entity the author belongs to.
.google.cloud.gdchardwaremanagement.v1alpha.Entity author_entity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAuthorEntityValuein interfaceCommentOrBuilder- Returns:
- The enum numeric value on the wire for authorEntity.
-
setAuthorEntityValue
Output only. The entity the author belongs to.
.google.cloud.gdchardwaremanagement.v1alpha.Entity author_entity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for authorEntity to set.- Returns:
- This builder for chaining.
-
getAuthorEntity
Output only. The entity the author belongs to.
.google.cloud.gdchardwaremanagement.v1alpha.Entity author_entity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAuthorEntityin interfaceCommentOrBuilder- Returns:
- The authorEntity.
-
setAuthorEntity
Output only. The entity the author belongs to.
.google.cloud.gdchardwaremanagement.v1alpha.Entity author_entity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The authorEntity to set.- Returns:
- This builder for chaining.
-
clearAuthorEntity
Output only. The entity the author belongs to.
.google.cloud.gdchardwaremanagement.v1alpha.Entity author_entity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-