@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
    }
    if (transformationCase_ == 5) {
      output.writeMessage(
          5, (com.google.cloud.storagebatchoperations.v1.PutObjectHold) transformation_);
    }
    if (transformationCase_ == 6) {
      output.writeMessage(
          6, (com.google.cloud.storagebatchoperations.v1.DeleteObject) transformation_);
    }
    if (transformationCase_ == 8) {
      output.writeMessage(
          8, (com.google.cloud.storagebatchoperations.v1.PutMetadata) transformation_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(9, getLoggingConfig());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(10, getCreateTime());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(11, getScheduleTime());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(12, getCompleteTime());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(13, getCounters());
    }
    for (int i = 0; i < errorSummaries_.size(); i++) {
      output.writeMessage(14, errorSummaries_.get(i));
    }
    if (state_
        != com.google.cloud.storagebatchoperations.v1.Job.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(15, state_);
    }
    if (sourceCase_ == 19) {
      output.writeMessage(19, (com.google.cloud.storagebatchoperations.v1.BucketList) source_);
    }
    if (transformationCase_ == 20) {
      output.writeMessage(
          20, (com.google.cloud.storagebatchoperations.v1.RewriteObject) transformation_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. State of the job.
</pre>

<code>
.google.cloud.storagebatchoperations.v1.Job.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>

@return The state.
java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/Job.java