@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());
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetLabels().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
          LabelsDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_);
    }
    if (processorType_
        != com.google.cloud.visionai.v1.Processor.ProcessorType.PROCESSOR_TYPE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, processorType_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              7, getCustomProcessorSourceInfo());
    }
    if (state_
        != com.google.cloud.visionai.v1.Processor.ProcessorState.PROCESSOR_STATE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, description_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getProcessorIoSpec());
    }
    if (modelType_ != com.google.cloud.visionai.v1.ModelType.MODEL_TYPE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, modelType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configurationTypeurl_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, configurationTypeurl_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < supportedAnnotationTypes_.size(); i++) {
        dataSize +=
            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
                supportedAnnotationTypes_.get(i));
      }
      size += dataSize;
      if (!getSupportedAnnotationTypesList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
      }
      supportedAnnotationTypesMemoizedSerializedSize = dataSize;
    }
    if (supportsPostProcessing_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, supportsPostProcessing_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < supportedInstanceTypes_.size(); i++) {
        dataSize +=
            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
                supportedInstanceTypes_.get(i));
      }
      size += dataSize;
      if (!getSupportedInstanceTypesList().isEmpty()) {
        size += 2;
        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
      }
      supportedInstanceTypesMemoizedSerializedSize = dataSize;
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
Which instance types this processor supports; if empty, this default to
STREAMING_PREDICTION.
</pre>

<code>repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
</code>

@param index The index of the value to return.
@return The enum numeric value on the wire of supportedInstanceTypes at the given index.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/Processor.java