Class IssueComment.Builder (0.40.0)

public static final class IssueComment.Builder extends GeneratedMessageV3.Builder<IssueComment.Builder> implements IssueCommentOrBuilder

IssueComment represents a comment on an issue.

Protobuf type google.cloud.securesourcemanager.v1.IssueComment

Static 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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public IssueComment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IssueComment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IssueComment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IssueComment.Builder
Overrides

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 String

The 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 ByteString

The 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
Overrides

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 String

The 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 ByteString

The 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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IssueComment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IssueComment.Builder
Overrides

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