@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 (targetTypeCase_ == 3) {
      output.writeMessage(3, (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) targetType_);
    }
    if (targetTypeCase_ == 4) {
      output.writeMessage(4, (com.google.cloud.tasks.v2beta2.PullTarget) targetType_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(5, getRateLimits());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(6, getRetryConfig());
    }
    if (state_ != com.google.cloud.tasks.v2beta2.Queue.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(7, state_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(8, getPurgeTime());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(9, getTaskTtl());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(10, getTombstoneTtl());
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeMessage(16, getStats());
    }
    if (targetTypeCase_ == 17) {
      output.writeMessage(17, (com.google.cloud.tasks.v2beta2.HttpTarget) targetType_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. The realtime, informational statistics for a queue. In order
to receive the statistics the caller should include this field in the
FieldMask.
</pre>

<code>
.google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>
java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java