Class RunStatus.Builder (0.5.0)

public static final class RunStatus.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RunStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public RunStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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