@java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analysis_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, analysis_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < attributeOverrides_.size(); i++) {
        dataSize += computeStringSizeNoTag(attributeOverrides_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getAttributeOverridesList().size();
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRunStatus());
    }
    if (runMode_ != com.google.cloud.visionai.v1.RunMode.RUN_MODE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, runMode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, eventId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, batchId_);
    }
    if (retryCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, retryCount_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
Optional. Optional: The number of retries for a process in submission mode
the system should try before declaring failure. By default, no retry will
be performed.
</pre>

<code>int32 retry_count = 10 [(.google.api.field_behavior) = OPTIONAL];</code>

@return The retryCount.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/Process.java