public Builder setType(
        com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000001;
      type_ = value.getNumber();
      onChanged();
      return this;
    }
<pre>
Defines the type of maintenance.
</pre>

<code>optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1;
</code>

@param value The type to set.
@return This builder for chaining.
java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpcomingMaintenance.java