Interface CommentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Comment,Comment.Builder
@Generated
public interface CommentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Optional.Output only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.getText()Required.com.google.protobuf.ByteStringRequired.booleanOutput only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Identifier. Name of this comment. Format: `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- The name.
-
getNameBytes
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];- Returns:
- The bytes for name.
-
hasCreateTime
boolean hasCreateTime()Output only. Time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
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];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
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]; -
getLabelsCount
int getLabelsCount()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]; -
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]; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
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]; -
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]; -
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]; -
getAuthor
String 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];- Returns:
- The author.
-
getAuthorBytes
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];- Returns:
- The bytes for author.
-
getText
String getText()Required. Text of this comment. The length of text must be <= 1000 characters.
string text = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The text.
-
getTextBytes
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];- Returns:
- The bytes for text.
-
hasCustomerViewedTime
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];- Returns:
- Whether the customerViewedTime field is set.
-
getCustomerViewedTime
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];- Returns:
- The customerViewedTime.
-
getCustomerViewedTimeOrBuilder
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]; -
getAuthorEntityValue
int getAuthorEntityValue()Output only. The entity the author belongs to.
.google.cloud.gdchardwaremanagement.v1alpha.Entity author_entity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for authorEntity.
-
getAuthorEntity
Entity getAuthorEntity()Output only. The entity the author belongs to.
.google.cloud.gdchardwaremanagement.v1alpha.Entity author_entity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The authorEntity.
-