Class TaskStatus.Builder (0.27.0)

public static final class TaskStatus.Builder extends GeneratedMessage.Builder<TaskStatus.Builder> implements TaskStatusOrBuilder

A container for the status of a task.

Protobuf type google.cloud.geminidataanalytics.v1beta.TaskStatus

Implements

TaskStatusOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public TaskStatus build()
Returns
Type Description
TaskStatus

buildPartial()

public TaskStatus buildPartial()
Returns
Type Description
TaskStatus

clear()

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

clearState()

public TaskStatus.Builder clearState()

Output only. The current state of this task.

.google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaskStatus.Builder

This builder for chaining.

clearTimestamp()

public TaskStatus.Builder clearTimestamp()

Output only. Timestamp when the status was recorded.

.google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaskStatus.Builder

clearUpdate()

public TaskStatus.Builder clearUpdate()

Optional. A message associated with the status.

.google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskStatus.Builder

getDefaultInstanceForType()

public TaskStatus getDefaultInstanceForType()
Returns
Type Description
TaskStatus

getDescriptorForType()

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

getState()

public TaskState getState()

Output only. The current state of this task.

.google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaskState

The state.

getStateValue()

public int getStateValue()

Output only. The current state of this task.

.google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTimestamp()

public Timestamp getTimestamp()

Output only. Timestamp when the status was recorded.

.google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The timestamp.

getTimestampBuilder()

public Timestamp.Builder getTimestampBuilder()

Output only. Timestamp when the status was recorded.

.google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getTimestampOrBuilder()

public TimestampOrBuilder getTimestampOrBuilder()

Output only. Timestamp when the status was recorded.

.google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getUpdate()

public A2AMessage getUpdate()

Optional. A message associated with the status.

.google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
A2AMessage

The update.

getUpdateBuilder()

public A2AMessage.Builder getUpdateBuilder()

Optional. A message associated with the status.

.google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
A2AMessage.Builder

getUpdateOrBuilder()

public A2AMessageOrBuilder getUpdateOrBuilder()

Optional. A message associated with the status.

.google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
A2AMessageOrBuilder

hasTimestamp()

public boolean hasTimestamp()

Output only. Timestamp when the status was recorded.

.google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the timestamp field is set.

hasUpdate()

public boolean hasUpdate()

Optional. A message associated with the status.

.google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the update field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TaskStatus other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTimestamp(Timestamp value)

public TaskStatus.Builder mergeTimestamp(Timestamp value)

Output only. Timestamp when the status was recorded.

.google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TaskStatus.Builder

mergeUpdate(A2AMessage value)

public TaskStatus.Builder mergeUpdate(A2AMessage value)

Optional. A message associated with the status.

.google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value A2AMessage
Returns
Type Description
TaskStatus.Builder

setState(TaskState value)

public TaskStatus.Builder setState(TaskState value)

Output only. The current state of this task.

.google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TaskState

The state to set.

Returns
Type Description
TaskStatus.Builder

This builder for chaining.

setStateValue(int value)

public TaskStatus.Builder setStateValue(int value)

Output only. The current state of this task.

.google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.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
TaskStatus.Builder

This builder for chaining.

setTimestamp(Timestamp value)

public TaskStatus.Builder setTimestamp(Timestamp value)

Output only. Timestamp when the status was recorded.

.google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TaskStatus.Builder

setTimestamp(Timestamp.Builder builderForValue)

public TaskStatus.Builder setTimestamp(Timestamp.Builder builderForValue)

Output only. Timestamp when the status was recorded.

.google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TaskStatus.Builder

setUpdate(A2AMessage value)

public TaskStatus.Builder setUpdate(A2AMessage value)

Optional. A message associated with the status.

.google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value A2AMessage
Returns
Type Description
TaskStatus.Builder

setUpdate(A2AMessage.Builder builderForValue)

public TaskStatus.Builder setUpdate(A2AMessage.Builder builderForValue)

Optional. A message associated with the status.

.google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue A2AMessage.Builder
Returns
Type Description
TaskStatus.Builder