public Builder setTypeValue(int value) {
        type_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
<pre>
The type of this state error.
</pre>

<code>.google.cloud.workflows.v1.Workflow.StateError.Type type = 2;</code>

@param value The enum numeric value on the wire for type to set.
@return This builder for chaining.
java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java