@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.visionai.v1.StreamAnnotation)) {
      return super.equals(obj);
    }
    com.google.cloud.visionai.v1.StreamAnnotation other =
        (com.google.cloud.visionai.v1.StreamAnnotation) obj;

    if (!getId().equals(other.getId())) return false;
    if (!getDisplayName().equals(other.getDisplayName())) return false;
    if (!getSourceStream().equals(other.getSourceStream())) return false;
    if (type_ != other.type_) return false;
    if (!getAnnotationPayloadCase().equals(other.getAnnotationPayloadCase())) return false;
    switch (annotationPayloadCase_) {
      case 5:
        if (!getActiveZone().equals(other.getActiveZone())) return false;
        break;
      case 6:
        if (!getCrossingLine().equals(other.getCrossingLine())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
The actual type of Annotation.
</pre>

<code>.google.cloud.visionai.v1.StreamAnnotationType type = 4;</code>

@return The type.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamAnnotation.java