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

    if (hasCaptureTime() != other.hasCaptureTime()) return false;
    if (hasCaptureTime()) {
      if (!getCaptureTime().equals(other.getCaptureTime())) return false;
    }
    if (hasType() != other.hasType()) return false;
    if (hasType()) {
      if (!getType().equals(other.getType())) return false;
    }
    if (hasMetadata() != other.hasMetadata()) return false;
    if (hasMetadata()) {
      if (!getMetadata().equals(other.getMetadata())) return false;
    }
    if (hasServerMetadata() != other.hasServerMetadata()) return false;
    if (hasServerMetadata()) {
      if (!getServerMetadata().equals(other.getServerMetadata())) return false;
    }
    if (hasSeriesMetadata() != other.hasSeriesMetadata()) return false;
    if (hasSeriesMetadata()) {
      if (!getSeriesMetadata().equals(other.getSeriesMetadata())) return false;
    }
    if (getFlags() != other.getFlags()) return false;
    if (!getTraceContext().equals(other.getTraceContext())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Immutable. Header string for tracing across services. It should be set when
the packet is first arrived in the stream server.

The input format is a lowercase hex string:
  - version_id: 1 byte, currently must be zero - hex encoded (2 characters)
  - trace_id: 16 bytes (opaque blob) - hex encoded (32 characters)
  - span_id: 8 bytes (opaque blob) - hex encoded (16 characters)
  - trace_options: 1 byte (LSB means tracing enabled) - hex encoded (2
  characters)
Example: "00-404142434445464748494a4b4c4d4e4f-6162636465666768-01"
          v  trace_id                         span_id          options
</pre>

<code>string trace_context = 7 [(.google.api.field_behavior) = IMMUTABLE];</code>

@return The bytes for traceContext.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/PacketHeader.java