public interface CommentOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
containsLabels(String key)
public abstract boolean containsLabels(String key)
Optional. Labels associated with this comment as key value pairs. For more information about labels, see Create and manage labels.
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
getAuthor()
public abstract 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 | |
---|---|
Type | Description |
String |
The author. |
getAuthorBytes()
public abstract 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 | |
---|---|
Type | Description |
ByteString |
The bytes for author. |
getCreateTime()
public abstract Timestamp getCreateTime()
Output only. Time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The createTime. |
getCreateTimeOrBuilder()
public abstract TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time when this comment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getLabels() (deprecated)
public abstract Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public abstract int getLabelsCount()
Optional. Labels associated with this comment as key value pairs. For more information about labels, see Create and manage labels.
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public abstract Map<String,String> getLabelsMap()
Optional. Labels associated with this comment as key value pairs. For more information about labels, see Create and manage labels.
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public abstract String getLabelsOrDefault(String key, String defaultValue)
Optional. Labels associated with this comment as key value pairs. For more information about labels, see Create and manage labels.
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public abstract String getLabelsOrThrow(String key)
Optional. Labels associated with this comment as key value pairs. For more information about labels, see Create and manage labels.
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getName()
public abstract 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 | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public abstract 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 | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getText()
public abstract String getText()
Required. Text of this comment. The length of text must be <= 1000 characters.
string text = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The text. |
getTextBytes()
public abstract ByteString getTextBytes()
Required. Text of this comment. The length of text must be <= 1000 characters.
string text = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for text. |
hasCreateTime()
public abstract boolean hasCreateTime()
Output only. Time when this 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. |