@java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
      }
      if (typeDetailsCase_ == 2) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                2, (com.google.cloud.visionai.v1.GstreamerBufferDescriptor) typeDetails_);
      }
      if (typeDetailsCase_ == 3) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                3, (com.google.cloud.visionai.v1.RawImageDescriptor) typeDetails_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<pre>
The type of the packet. Its possible values is codec dependent.

The fully qualified type name is always the concatenation of the
value in `type_class` together with the value in `type`, separated by a
'/'.

Note that specific codecs can define their own type hierarchy, and so the
type string here can in fact be separated by multiple '/'s of its own.

Please see the open source SDK for specific codec documentation.
</pre>

<code>string type = 1;</code>

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