Class RunStatus.Builder (0.40.0)

public static final class RunStatus.Builder extends GeneratedMessage.Builder<RunStatus.Builder> implements RunStatusOrBuilder

Message describing the status of the Process.

Protobuf type google.cloud.visionai.v1.RunStatus

Implements

RunStatusOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public RunStatus build()
Returns
Type Description
RunStatus

buildPartial()

public RunStatus buildPartial()
Returns
Type Description
RunStatus

clear()

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

clearReason()

public RunStatus.Builder clearReason()

The reason of becoming the state.

string reason = 2;

Returns
Type Description
RunStatus.Builder

This builder for chaining.

clearState()

public RunStatus.Builder clearState()

The state of the Process.

.google.cloud.visionai.v1.RunStatus.State state = 1;

Returns
Type Description
RunStatus.Builder

This builder for chaining.

getDefaultInstanceForType()

public RunStatus getDefaultInstanceForType()
Returns
Type Description
RunStatus

getDescriptorForType()

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

getReason()

public String getReason()

The reason of becoming the state.

string reason = 2;

Returns
Type Description
String

The reason.

getReasonBytes()

public ByteString getReasonBytes()

The reason of becoming the state.

string reason = 2;

Returns
Type Description
ByteString

The bytes for reason.

getState()

public RunStatus.State getState()

The state of the Process.

.google.cloud.visionai.v1.RunStatus.State state = 1;

Returns
Type Description
RunStatus.State

The state.

getStateValue()

public int getStateValue()

The state of the Process.

.google.cloud.visionai.v1.RunStatus.State state = 1;

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RunStatus other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setReason(String value)

public RunStatus.Builder setReason(String value)

The reason of becoming the state.

string reason = 2;

Parameter
Name Description
value String

The reason to set.

Returns
Type Description
RunStatus.Builder

This builder for chaining.

setReasonBytes(ByteString value)

public RunStatus.Builder setReasonBytes(ByteString value)

The reason of becoming the state.

string reason = 2;

Parameter
Name Description
value ByteString

The bytes for reason to set.

Returns
Type Description
RunStatus.Builder

This builder for chaining.

setState(RunStatus.State value)

public RunStatus.Builder setState(RunStatus.State value)

The state of the Process.

.google.cloud.visionai.v1.RunStatus.State state = 1;

Parameter
Name Description
value RunStatus.State

The state to set.

Returns
Type Description
RunStatus.Builder

This builder for chaining.

setStateValue(int value)

public RunStatus.Builder setStateValue(int value)

The state of the Process.

.google.cloud.visionai.v1.RunStatus.State state = 1;

Parameter
Name Description
value int

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

Returns
Type Description
RunStatus.Builder

This builder for chaining.