Class Issue.Builder (0.40.0)

public static final class Issue.Builder extends GeneratedMessageV3.Builder<Issue.Builder> implements IssueOrBuilder

Metadata of an Issue.

Protobuf type google.cloud.securesourcemanager.v1.Issue

Implements

IssueOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Issue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Issue.Builder
Overrides

build()

public Issue build()
Returns
Type Description
Issue

buildPartial()

public Issue buildPartial()
Returns
Type Description
Issue

clear()

public Issue.Builder clear()
Returns
Type Description
Issue.Builder
Overrides

clearBody()

public Issue.Builder clearBody()

Optional. Issue body. Provides a detailed description of the issue.

string body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Issue.Builder

This builder for chaining.

clearCloseTime()

public Issue.Builder clearCloseTime()

Output only. Close timestamp (if closed). Cleared when is re-opened.

.google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Issue.Builder

clearCreateTime()

public Issue.Builder clearCreateTime()

Output only. Creation timestamp.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Issue.Builder

clearEtag()

public Issue.Builder clearEtag()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Issue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Issue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Issue.Builder
Overrides

clearName()

public Issue.Builder clearName()

Identifier. Unique identifier for an issue. The issue id is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Issue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Issue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Issue.Builder
Overrides

clearState()

public Issue.Builder clearState()

Output only. State of the issue.

.google.cloud.securesourcemanager.v1.Issue.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Issue.Builder

This builder for chaining.

clearTitle()

public Issue.Builder clearTitle()

Required. Issue title.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Issue.Builder

This builder for chaining.

clearUpdateTime()

public Issue.Builder clearUpdateTime()

Output only. Last updated timestamp.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Issue.Builder

clone()

public Issue.Builder clone()
Returns
Type Description
Issue.Builder
Overrides

getBody()

public String getBody()

Optional. Issue body. Provides a detailed description of the issue.

string body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The body.

getBodyBytes()

public ByteString getBodyBytes()

Optional. Issue body. Provides a detailed description of the issue.

string body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for body.

getCloseTime()

public Timestamp getCloseTime()

Output only. Close timestamp (if closed). Cleared when is re-opened.

.google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The closeTime.

getCloseTimeBuilder()

public Timestamp.Builder getCloseTimeBuilder()

Output only. Close timestamp (if closed). Cleared when is re-opened.

.google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCloseTimeOrBuilder()

public TimestampOrBuilder getCloseTimeOrBuilder()

Output only. Close timestamp (if closed). Cleared when is re-opened.

.google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation timestamp.

.google.protobuf.Timestamp create_time = 5 [(.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 = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation timestamp.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Issue getDefaultInstanceForType()
Returns
Type Description
Issue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEtag()

public String getEtag()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

getName()

public String getName()

Identifier. Unique identifier for an issue. The issue id is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_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. The issue id is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getState()

public Issue.State getState()

Output only. State of the issue.

.google.cloud.securesourcemanager.v1.Issue.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Issue.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the issue.

.google.cloud.securesourcemanager.v1.Issue.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTitle()

public String getTitle()

Required. Issue title.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required. Issue title.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for title.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Last updated timestamp.

.google.protobuf.Timestamp update_time = 6 [(.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 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Last updated timestamp.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCloseTime()

public boolean hasCloseTime()

Output only. Close timestamp (if closed). Cleared when is re-opened.

.google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the closeTime field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation timestamp.

.google.protobuf.Timestamp create_time = 5 [(.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 = 6 [(.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

mergeCloseTime(Timestamp value)

public Issue.Builder mergeCloseTime(Timestamp value)

Output only. Close timestamp (if closed). Cleared when is re-opened.

.google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Issue.Builder

mergeCreateTime(Timestamp value)

public Issue.Builder mergeCreateTime(Timestamp value)

Output only. Creation timestamp.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Issue.Builder

mergeFrom(Issue other)

public Issue.Builder mergeFrom(Issue other)
Parameter
Name Description
other Issue
Returns
Type Description
Issue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Issue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Issue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Issue.Builder mergeUpdateTime(Timestamp value)

Output only. Last updated timestamp.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Issue.Builder

setBody(String value)

public Issue.Builder setBody(String value)

Optional. Issue body. Provides a detailed description of the issue.

string body = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The body to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setBodyBytes(ByteString value)

public Issue.Builder setBodyBytes(ByteString value)

Optional. Issue body. Provides a detailed description of the issue.

string body = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for body to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setCloseTime(Timestamp value)

public Issue.Builder setCloseTime(Timestamp value)

Output only. Close timestamp (if closed). Cleared when is re-opened.

.google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Issue.Builder

setCloseTime(Timestamp.Builder builderForValue)

public Issue.Builder setCloseTime(Timestamp.Builder builderForValue)

Output only. Close timestamp (if closed). Cleared when is re-opened.

.google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Issue.Builder

setCreateTime(Timestamp value)

public Issue.Builder setCreateTime(Timestamp value)

Output only. Creation timestamp.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Issue.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Issue.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation timestamp.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Issue.Builder

setEtag(String value)

public Issue.Builder setEtag(String value)

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Issue.Builder setEtagBytes(ByteString value)

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Issue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Issue.Builder
Overrides

setName(String value)

public Issue.Builder setName(String value)

Identifier. Unique identifier for an issue. The issue id is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Issue.Builder setNameBytes(ByteString value)

Identifier. Unique identifier for an issue. The issue id is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Issue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Issue.Builder
Overrides

setState(Issue.State value)

public Issue.Builder setState(Issue.State value)

Output only. State of the issue.

.google.cloud.securesourcemanager.v1.Issue.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Issue.State

The state to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setStateValue(int value)

public Issue.Builder setStateValue(int value)

Output only. State of the issue.

.google.cloud.securesourcemanager.v1.Issue.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setTitle(String value)

public Issue.Builder setTitle(String value)

Required. Issue title.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The title to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Issue.Builder setTitleBytes(ByteString value)

Required. Issue title.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Issue.Builder setUpdateTime(Timestamp value)

Output only. Last updated timestamp.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Issue.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Issue.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Last updated timestamp.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Issue.Builder