Class Workflow.StateError.Builder (2.85.0)

public static final class Workflow.StateError.Builder extends GeneratedMessage.Builder<Workflow.StateError.Builder> implements Workflow.StateErrorOrBuilder

Describes an error related to the current state of the workflow.

Protobuf type google.cloud.workflows.v1.Workflow.StateError

Static Methods

getDescriptor()

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

Methods

build()

public Workflow.StateError build()
Returns
Type Description
Workflow.StateError

buildPartial()

public Workflow.StateError buildPartial()
Returns
Type Description
Workflow.StateError

clear()

public Workflow.StateError.Builder clear()
Returns
Type Description
Workflow.StateError.Builder
Overrides

clearDetails()

public Workflow.StateError.Builder clearDetails()

Provides specifics about the error.

string details = 1;

Returns
Type Description
Workflow.StateError.Builder

This builder for chaining.

clearType()

public Workflow.StateError.Builder clearType()

The type of this state error.

.google.cloud.workflows.v1.Workflow.StateError.Type type = 2;

Returns
Type Description
Workflow.StateError.Builder

This builder for chaining.

getDefaultInstanceForType()

public Workflow.StateError getDefaultInstanceForType()
Returns
Type Description
Workflow.StateError

getDescriptorForType()

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

getDetails()

public String getDetails()

Provides specifics about the error.

string details = 1;

Returns
Type Description
String

The details.

getDetailsBytes()

public ByteString getDetailsBytes()

Provides specifics about the error.

string details = 1;

Returns
Type Description
ByteString

The bytes for details.

getType()

public Workflow.StateError.Type getType()

The type of this state error.

.google.cloud.workflows.v1.Workflow.StateError.Type type = 2;

Returns
Type Description
Workflow.StateError.Type

The type.

getTypeValue()

public int getTypeValue()

The type of this state error.

.google.cloud.workflows.v1.Workflow.StateError.Type type = 2;

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Workflow.StateError other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDetails(String value)

public Workflow.StateError.Builder setDetails(String value)

Provides specifics about the error.

string details = 1;

Parameter
Name Description
value String

The details to set.

Returns
Type Description
Workflow.StateError.Builder

This builder for chaining.

setDetailsBytes(ByteString value)

public Workflow.StateError.Builder setDetailsBytes(ByteString value)

Provides specifics about the error.

string details = 1;

Parameter
Name Description
value ByteString

The bytes for details to set.

Returns
Type Description
Workflow.StateError.Builder

This builder for chaining.

setType(Workflow.StateError.Type value)

public Workflow.StateError.Builder setType(Workflow.StateError.Type value)

The type of this state error.

.google.cloud.workflows.v1.Workflow.StateError.Type type = 2;

Parameter
Name Description
value Workflow.StateError.Type

The type to set.

Returns
Type Description
Workflow.StateError.Builder

This builder for chaining.

setTypeValue(int value)

public Workflow.StateError.Builder setTypeValue(int value)

The type of this state error.

.google.cloud.workflows.v1.Workflow.StateError.Type type = 2;

Parameter
Name Description
value int

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

Returns
Type Description
Workflow.StateError.Builder

This builder for chaining.