Class StatusEvent.Builder (0.55.0)

public static final class StatusEvent.Builder extends GeneratedMessageV3.Builder<StatusEvent.Builder> implements StatusEventOrBuilder

Status event.

Protobuf type google.cloud.batch.v1alpha.StatusEvent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StatusEvent build()
Returns
Type Description
StatusEvent

buildPartial()

public StatusEvent buildPartial()
Returns
Type Description
StatusEvent

clear()

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

clearDescription()

public StatusEvent.Builder clearDescription()

Description of the event.

string description = 1;

Returns
Type Description
StatusEvent.Builder

This builder for chaining.

clearEventTime()

public StatusEvent.Builder clearEventTime()

The time this event occurred.

.google.protobuf.Timestamp event_time = 2;

Returns
Type Description
StatusEvent.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTaskExecution()

public StatusEvent.Builder clearTaskExecution()

Task Execution. This field is only defined for task-level status events where the task fails.

.google.cloud.batch.v1alpha.TaskExecution task_execution = 4;

Returns
Type Description
StatusEvent.Builder

clearTaskState()

public StatusEvent.Builder clearTaskState()

Task State. This field is only defined for task-level status events.

.google.cloud.batch.v1alpha.TaskStatus.State task_state = 5;

Returns
Type Description
StatusEvent.Builder

This builder for chaining.

clearType()

public StatusEvent.Builder clearType()

Type of the event.

string type = 3;

Returns
Type Description
StatusEvent.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public StatusEvent getDefaultInstanceForType()
Returns
Type Description
StatusEvent

getDescription()

public String getDescription()

Description of the event.

string description = 1;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the event.

string description = 1;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getEventTime()

public Timestamp getEventTime()

The time this event occurred.

.google.protobuf.Timestamp event_time = 2;

Returns
Type Description
Timestamp

The eventTime.

getEventTimeBuilder()

public Timestamp.Builder getEventTimeBuilder()

The time this event occurred.

.google.protobuf.Timestamp event_time = 2;

Returns
Type Description
Builder

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

The time this event occurred.

.google.protobuf.Timestamp event_time = 2;

Returns
Type Description
TimestampOrBuilder

getTaskExecution()

public TaskExecution getTaskExecution()

Task Execution. This field is only defined for task-level status events where the task fails.

.google.cloud.batch.v1alpha.TaskExecution task_execution = 4;

Returns
Type Description
TaskExecution

The taskExecution.

getTaskExecutionBuilder()

public TaskExecution.Builder getTaskExecutionBuilder()

Task Execution. This field is only defined for task-level status events where the task fails.

.google.cloud.batch.v1alpha.TaskExecution task_execution = 4;

Returns
Type Description
TaskExecution.Builder

getTaskExecutionOrBuilder()

public TaskExecutionOrBuilder getTaskExecutionOrBuilder()

Task Execution. This field is only defined for task-level status events where the task fails.

.google.cloud.batch.v1alpha.TaskExecution task_execution = 4;

Returns
Type Description
TaskExecutionOrBuilder

getTaskState()

public TaskStatus.State getTaskState()

Task State. This field is only defined for task-level status events.

.google.cloud.batch.v1alpha.TaskStatus.State task_state = 5;

Returns
Type Description
TaskStatus.State

The taskState.

getTaskStateValue()

public int getTaskStateValue()

Task State. This field is only defined for task-level status events.

.google.cloud.batch.v1alpha.TaskStatus.State task_state = 5;

Returns
Type Description
int

The enum numeric value on the wire for taskState.

getType()

public String getType()

Type of the event.

string type = 3;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Type of the event.

string type = 3;

Returns
Type Description
ByteString

The bytes for type.

hasEventTime()

public boolean hasEventTime()

The time this event occurred.

.google.protobuf.Timestamp event_time = 2;

Returns
Type Description
boolean

Whether the eventTime field is set.

hasTaskExecution()

public boolean hasTaskExecution()

Task Execution. This field is only defined for task-level status events where the task fails.

.google.cloud.batch.v1alpha.TaskExecution task_execution = 4;

Returns
Type Description
boolean

Whether the taskExecution field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEventTime(Timestamp value)

public StatusEvent.Builder mergeEventTime(Timestamp value)

The time this event occurred.

.google.protobuf.Timestamp event_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
StatusEvent.Builder

mergeFrom(StatusEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTaskExecution(TaskExecution value)

public StatusEvent.Builder mergeTaskExecution(TaskExecution value)

Task Execution. This field is only defined for task-level status events where the task fails.

.google.cloud.batch.v1alpha.TaskExecution task_execution = 4;

Parameter
Name Description
value TaskExecution
Returns
Type Description
StatusEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public StatusEvent.Builder setDescription(String value)

Description of the event.

string description = 1;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
StatusEvent.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public StatusEvent.Builder setDescriptionBytes(ByteString value)

Description of the event.

string description = 1;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
StatusEvent.Builder

This builder for chaining.

setEventTime(Timestamp value)

public StatusEvent.Builder setEventTime(Timestamp value)

The time this event occurred.

.google.protobuf.Timestamp event_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
StatusEvent.Builder

setEventTime(Timestamp.Builder builderForValue)

public StatusEvent.Builder setEventTime(Timestamp.Builder builderForValue)

The time this event occurred.

.google.protobuf.Timestamp event_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
StatusEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTaskExecution(TaskExecution value)

public StatusEvent.Builder setTaskExecution(TaskExecution value)

Task Execution. This field is only defined for task-level status events where the task fails.

.google.cloud.batch.v1alpha.TaskExecution task_execution = 4;

Parameter
Name Description
value TaskExecution
Returns
Type Description
StatusEvent.Builder

setTaskExecution(TaskExecution.Builder builderForValue)

public StatusEvent.Builder setTaskExecution(TaskExecution.Builder builderForValue)

Task Execution. This field is only defined for task-level status events where the task fails.

.google.cloud.batch.v1alpha.TaskExecution task_execution = 4;

Parameter
Name Description
builderForValue TaskExecution.Builder
Returns
Type Description
StatusEvent.Builder

setTaskState(TaskStatus.State value)

public StatusEvent.Builder setTaskState(TaskStatus.State value)

Task State. This field is only defined for task-level status events.

.google.cloud.batch.v1alpha.TaskStatus.State task_state = 5;

Parameter
Name Description
value TaskStatus.State

The taskState to set.

Returns
Type Description
StatusEvent.Builder

This builder for chaining.

setTaskStateValue(int value)

public StatusEvent.Builder setTaskStateValue(int value)

Task State. This field is only defined for task-level status events.

.google.cloud.batch.v1alpha.TaskStatus.State task_state = 5;

Parameter
Name Description
value int

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

Returns
Type Description
StatusEvent.Builder

This builder for chaining.

setType(String value)

public StatusEvent.Builder setType(String value)

Type of the event.

string type = 3;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
StatusEvent.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public StatusEvent.Builder setTypeBytes(ByteString value)

Type of the event.

string type = 3;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
StatusEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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