public static final class IssueComment.Builder extends GeneratedMessageV3.Builder<IssueComment.Builder> implements IssueCommentOrBuilderIssueComment represents a comment on an issue.
Protobuf type google.cloud.securesourcemanager.v1.IssueComment
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > IssueComment.BuilderImplements
IssueCommentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public IssueComment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
build()
public IssueComment build()| Returns | |
|---|---|
| Type | Description |
IssueComment |
|
buildPartial()
public IssueComment buildPartial()| Returns | |
|---|---|
| Type | Description |
IssueComment |
|
clear()
public IssueComment.Builder clear()| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
clearBody()
public IssueComment.Builder clearBody()Required. The comment body.
string body = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
This builder for chaining. |
clearCreateTime()
public IssueComment.Builder clearCreateTime()Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public IssueComment.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
clearName()
public IssueComment.Builder clearName() Identifier. Unique identifier for an issue comment. The comment id is
generated by the server. Format:
projects/{project}/locations/{location}/repositories/{repository}/issues/{issue}/issueComments/{comment_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public IssueComment.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
clearUpdateTime()
public IssueComment.Builder clearUpdateTime()Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
clone()
public IssueComment.Builder clone()| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
getBody()
public String getBody()Required. The comment body.
string body = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The body. |
getBodyBytes()
public ByteString getBodyBytes()Required. The comment body.
string body = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for body. |
getCreateTime()
public Timestamp getCreateTime()Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public IssueComment getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
IssueComment |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName() Identifier. Unique identifier for an issue comment. The comment id is
generated by the server. Format:
projects/{project}/locations/{location}/repositories/{repository}/issues/{issue}/issueComments/{comment_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. Unique identifier for an issue comment. The comment id is
generated by the server. Format:
projects/{project}/locations/{location}/repositories/{repository}/issues/{issue}/issueComments/{comment_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasCreateTime()
public boolean hasCreateTime()Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public IssueComment.Builder mergeCreateTime(Timestamp value)Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
mergeFrom(IssueComment other)
public IssueComment.Builder mergeFrom(IssueComment other)| Parameter | |
|---|---|
| Name | Description |
other |
IssueComment |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public IssueComment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public IssueComment.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final IssueComment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
mergeUpdateTime(Timestamp value)
public IssueComment.Builder mergeUpdateTime(Timestamp value)Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
setBody(String value)
public IssueComment.Builder setBody(String value)Required. The comment body.
string body = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe body to set. |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
This builder for chaining. |
setBodyBytes(ByteString value)
public IssueComment.Builder setBodyBytes(ByteString value)Required. The comment body.
string body = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for body to set. |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
This builder for chaining. |
setCreateTime(Timestamp value)
public IssueComment.Builder setCreateTime(Timestamp value)Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public IssueComment.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public IssueComment.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
setName(String value)
public IssueComment.Builder setName(String value) Identifier. Unique identifier for an issue comment. The comment id is
generated by the server. Format:
projects/{project}/locations/{location}/repositories/{repository}/issues/{issue}/issueComments/{comment_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public IssueComment.Builder setNameBytes(ByteString value) Identifier. Unique identifier for an issue comment. The comment id is
generated by the server. Format:
projects/{project}/locations/{location}/repositories/{repository}/issues/{issue}/issueComments/{comment_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public IssueComment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final IssueComment.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
setUpdateTime(Timestamp value)
public IssueComment.Builder setUpdateTime(Timestamp value)Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public IssueComment.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
IssueComment.Builder |
|