@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    getSerializedSize();
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(2, getCreateTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(3, getUpdateTime());
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_);
    }
    if (processorType_
        != com.google.cloud.visionai.v1.Processor.ProcessorType.PROCESSOR_TYPE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(6, processorType_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(7, getCustomProcessorSourceInfo());
    }
    if (state_
        != com.google.cloud.visionai.v1.Processor.ProcessorState.PROCESSOR_STATE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(8, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, description_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(11, getProcessorIoSpec());
    }
    if (modelType_ != com.google.cloud.visionai.v1.ModelType.MODEL_TYPE_UNSPECIFIED.getNumber()) {
      output.writeEnum(13, modelType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configurationTypeurl_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, configurationTypeurl_);
    }
    if (getSupportedAnnotationTypesList().size() > 0) {
      output.writeUInt32NoTag(122);
      output.writeUInt32NoTag(supportedAnnotationTypesMemoizedSerializedSize);
    }
    for (int i = 0; i < supportedAnnotationTypes_.size(); i++) {
      output.writeEnumNoTag(supportedAnnotationTypes_.get(i));
    }
    if (supportsPostProcessing_ != false) {
      output.writeBool(17, supportsPostProcessing_);
    }
    if (getSupportedInstanceTypesList().size() > 0) {
      output.writeUInt32NoTag(146);
      output.writeUInt32NoTag(supportedInstanceTypesMemoizedSerializedSize);
    }
    for (int i = 0; i < supportedInstanceTypes_.size(); i++) {
      output.writeEnumNoTag(supportedInstanceTypes_.get(i));
    }
    getUnknownFields().writeTo(output);
  }
<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