private void buildPartialOneofs(
          com.google.cloud.visionai.v1.PacketType.TypeDescriptor result) {
        result.typeDetailsCase_ = typeDetailsCase_;
        result.typeDetails_ = this.typeDetails_;
        if (typeDetailsCase_ == 2 && gstreamerBufferDescriptorBuilder_ != null) {
          result.typeDetails_ = gstreamerBufferDescriptorBuilder_.build();
        }
        if (typeDetailsCase_ == 3 && rawImageDescriptorBuilder_ != null) {
          result.typeDetails_ = rawImageDescriptorBuilder_.build();
        }
      }
<pre>
The message that fully specifies the type of the packet.
</pre>

Protobuf type {@code google.cloud.visionai.v1.PacketType.TypeDescriptor}
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/PacketType.java