Class Workflow.StateError.Builder (2.24.0)

public static final class Workflow.StateError.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Workflow.StateError.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Workflow.StateError.Builder
Overrides

build()

public Workflow.StateError build()
Returns
TypeDescription
Workflow.StateError

buildPartial()

public Workflow.StateError buildPartial()
Returns
TypeDescription
Workflow.StateError

clear()

public Workflow.StateError.Builder clear()
Returns
TypeDescription
Workflow.StateError.Builder
Overrides

clearDetails()

public Workflow.StateError.Builder clearDetails()

Provides specifics about the error.

string details = 1;

Returns
TypeDescription
Workflow.StateError.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Workflow.StateError.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Workflow.StateError.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Workflow.StateError.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Workflow.StateError.Builder
Overrides

clearType()

public Workflow.StateError.Builder clearType()

The type of this state error.

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

Returns
TypeDescription
Workflow.StateError.Builder

This builder for chaining.

clone()

public Workflow.StateError.Builder clone()
Returns
TypeDescription
Workflow.StateError.Builder
Overrides

getDefaultInstanceForType()

public Workflow.StateError getDefaultInstanceForType()
Returns
TypeDescription
Workflow.StateError

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetails()

public String getDetails()

Provides specifics about the error.

string details = 1;

Returns
TypeDescription
String

The details.

getDetailsBytes()

public ByteString getDetailsBytes()

Provides specifics about the error.

string details = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Workflow.StateError other)

public Workflow.StateError.Builder mergeFrom(Workflow.StateError other)
Parameter
NameDescription
otherWorkflow.StateError
Returns
TypeDescription
Workflow.StateError.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Workflow.StateError.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Workflow.StateError.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Workflow.StateError.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Workflow.StateError.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Workflow.StateError.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Workflow.StateError.Builder
Overrides

setDetails(String value)

public Workflow.StateError.Builder setDetails(String value)

Provides specifics about the error.

string details = 1;

Parameter
NameDescription
valueString

The details to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for details to set.

Returns
TypeDescription
Workflow.StateError.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Workflow.StateError.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Workflow.StateError.Builder
Overrides

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

public Workflow.StateError.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Workflow.StateError.Builder
Overrides

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
NameDescription
valueWorkflow.StateError.Type

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Workflow.StateError.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Workflow.StateError.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Workflow.StateError.Builder
Overrides