Class TaskStatusUpdateEvent.Builder (0.27.0)

public static final class TaskStatusUpdateEvent.Builder extends GeneratedMessage.Builder<TaskStatusUpdateEvent.Builder> implements TaskStatusUpdateEventOrBuilder

TaskStatusUpdateEvent is a delta event on a task indicating that a task has changed.

Protobuf type google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent

Static Methods

getDescriptor()

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

Methods

build()

public TaskStatusUpdateEvent build()
Returns
Type Description
TaskStatusUpdateEvent

buildPartial()

public TaskStatusUpdateEvent buildPartial()
Returns
Type Description
TaskStatusUpdateEvent

clear()

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

clearContextId()

public TaskStatusUpdateEvent.Builder clearContextId()

Optional. The id of the context that the task belongs to.

string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskStatusUpdateEvent.Builder

This builder for chaining.

clearFinal()

public TaskStatusUpdateEvent.Builder clearFinal()

Optional. Whether this is the last status update expected for this task.

bool final = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskStatusUpdateEvent.Builder

This builder for chaining.

clearMetadata()

public TaskStatusUpdateEvent.Builder clearMetadata()

Optional. Optional metadata to associate with the task update.

.google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskStatusUpdateEvent.Builder

clearStatus()

public TaskStatusUpdateEvent.Builder clearStatus()

Optional. The new status of the task.

.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskStatusUpdateEvent.Builder

clearTaskId()

public TaskStatusUpdateEvent.Builder clearTaskId()

Optional. The id of the task that is changed.

string task_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskStatusUpdateEvent.Builder

This builder for chaining.

getContextId()

public String getContextId()

Optional. The id of the context that the task belongs to.

string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The contextId.

getContextIdBytes()

public ByteString getContextIdBytes()

Optional. The id of the context that the task belongs to.

string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for contextId.

getDefaultInstanceForType()

public TaskStatusUpdateEvent getDefaultInstanceForType()
Returns
Type Description
TaskStatusUpdateEvent

getDescriptorForType()

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

getFinal()

public boolean getFinal()

Optional. Whether this is the last status update expected for this task.

bool final = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The final.

getMetadata()

public Struct getMetadata()

Optional. Optional metadata to associate with the task update.

.google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The metadata.

getMetadataBuilder()

public Struct.Builder getMetadataBuilder()

Optional. Optional metadata to associate with the task update.

.google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getMetadataOrBuilder()

public StructOrBuilder getMetadataOrBuilder()

Optional. Optional metadata to associate with the task update.

.google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getStatus()

public TaskStatus getStatus()

Optional. The new status of the task.

.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskStatus

The status.

getStatusBuilder()

public TaskStatus.Builder getStatusBuilder()

Optional. The new status of the task.

.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskStatus.Builder

getStatusOrBuilder()

public TaskStatusOrBuilder getStatusOrBuilder()

Optional. The new status of the task.

.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskStatusOrBuilder

getTaskId()

public String getTaskId()

Optional. The id of the task that is changed.

string task_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The taskId.

getTaskIdBytes()

public ByteString getTaskIdBytes()

Optional. The id of the task that is changed.

string task_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for taskId.

hasMetadata()

public boolean hasMetadata()

Optional. Optional metadata to associate with the task update.

.google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the metadata field is set.

hasStatus()

public boolean hasStatus()

Optional. The new status of the task.

.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TaskStatusUpdateEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetadata(Struct value)

public TaskStatusUpdateEvent.Builder mergeMetadata(Struct value)

Optional. Optional metadata to associate with the task update.

.google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
TaskStatusUpdateEvent.Builder

mergeStatus(TaskStatus value)

public TaskStatusUpdateEvent.Builder mergeStatus(TaskStatus value)

Optional. The new status of the task.

.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TaskStatus
Returns
Type Description
TaskStatusUpdateEvent.Builder

setContextId(String value)

public TaskStatusUpdateEvent.Builder setContextId(String value)

Optional. The id of the context that the task belongs to.

string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The contextId to set.

Returns
Type Description
TaskStatusUpdateEvent.Builder

This builder for chaining.

setContextIdBytes(ByteString value)

public TaskStatusUpdateEvent.Builder setContextIdBytes(ByteString value)

Optional. The id of the context that the task belongs to.

string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for contextId to set.

Returns
Type Description
TaskStatusUpdateEvent.Builder

This builder for chaining.

setFinal(boolean value)

public TaskStatusUpdateEvent.Builder setFinal(boolean value)

Optional. Whether this is the last status update expected for this task.

bool final = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The final to set.

Returns
Type Description
TaskStatusUpdateEvent.Builder

This builder for chaining.

setMetadata(Struct value)

public TaskStatusUpdateEvent.Builder setMetadata(Struct value)

Optional. Optional metadata to associate with the task update.

.google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
TaskStatusUpdateEvent.Builder

setMetadata(Struct.Builder builderForValue)

public TaskStatusUpdateEvent.Builder setMetadata(Struct.Builder builderForValue)

Optional. Optional metadata to associate with the task update.

.google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TaskStatusUpdateEvent.Builder

setStatus(TaskStatus value)

public TaskStatusUpdateEvent.Builder setStatus(TaskStatus value)

Optional. The new status of the task.

.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TaskStatus
Returns
Type Description
TaskStatusUpdateEvent.Builder

setStatus(TaskStatus.Builder builderForValue)

public TaskStatusUpdateEvent.Builder setStatus(TaskStatus.Builder builderForValue)

Optional. The new status of the task.

.google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setTaskId(String value)

public TaskStatusUpdateEvent.Builder setTaskId(String value)

Optional. The id of the task that is changed.

string task_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The taskId to set.

Returns
Type Description
TaskStatusUpdateEvent.Builder

This builder for chaining.

setTaskIdBytes(ByteString value)

public TaskStatusUpdateEvent.Builder setTaskIdBytes(ByteString value)

Optional. The id of the task that is changed.

string task_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for taskId to set.

Returns
Type Description
TaskStatusUpdateEvent.Builder

This builder for chaining.