public Builder setType(
          com.google.cloud.workflows.executions.v1.Execution.StateError.Type value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        type_ = value.getNumber();
        onChanged();
        return this;
      }
<pre>
The type of this state error.
</pre>

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

@param value The type to set.
@return This builder for chaining.
java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java