@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (state_
        != com.google.cloud.tpu.v2alpha1.QueuedResourceState.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(1, state_);
    }
    if (stateDataCase_ == 2) {
      output.writeMessage(
          2, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.CreatingData) stateData_);
    }
    if (stateDataCase_ == 3) {
      output.writeMessage(
          3, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.AcceptedData) stateData_);
    }
    if (stateDataCase_ == 4) {
      output.writeMessage(
          4, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ProvisioningData) stateData_);
    }
    if (stateDataCase_ == 5) {
      output.writeMessage(
          5, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.FailedData) stateData_);
    }
    if (stateDataCase_ == 6) {
      output.writeMessage(
          6, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.DeletingData) stateData_);
    }
    if (stateDataCase_ == 7) {
      output.writeMessage(
          7, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.ActiveData) stateData_);
    }
    if (stateDataCase_ == 8) {
      output.writeMessage(
          8, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendingData) stateData_);
    }
    if (stateDataCase_ == 9) {
      output.writeMessage(
          9, (com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData) stateData_);
    }
    if (stateInitiator_
        != com.google.cloud.tpu.v2alpha1.QueuedResourceState.StateInitiator
            .STATE_INITIATOR_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(10, stateInitiator_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. The initiator of the QueuedResources's current state. Used to
indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
or the service.
</pre>

<code>
.google.cloud.tpu.v2alpha1.QueuedResourceState.StateInitiator state_initiator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>

@return The stateInitiator.
java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java