@java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (inputResourceInformationCase_ == 1) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputResourceInformation_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNode_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, consumerNode_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputResourceBinding_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inputResourceBinding_);
      }
      if (inputResourceInformationCase_ == 4) {
        output.writeMessage(
            4, (com.google.cloud.visionai.v1.StreamWithAnnotation) inputResourceInformation_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(5, getAnnotations());
      }
      if (dataType_ != com.google.cloud.visionai.v1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) {
        output.writeEnum(6, dataType_);
      }
      getUnknownFields().writeTo(output);
    }
<pre>
Contains resource annotations.
</pre>

<code>.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;</code>
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/Instance.java