Note: The following fields are mutually exclusive: gstreamer_buffer_descriptor, raw_image_descriptor. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: gstreamer_buffer_descriptor, raw_image_descriptor. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: gstreamer_buffer_descriptor, raw_image_descriptor. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: raw_image_descriptor, gstreamer_buffer_descriptor. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: raw_image_descriptor, gstreamer_buffer_descriptor. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: raw_image_descriptor, gstreamer_buffer_descriptor. If a field in that set is populated, all other fields in the set will automatically be cleared.
#type
deftype()->::String
Returns
(::String) — 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.
#type=
deftype=(value)->::String
Parameter
value (::String) — 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.
Returns
(::String) — 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::PacketType::TypeDescriptor (v1.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.1 (latest)](/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-PacketType-TypeDescriptor)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-PacketType-TypeDescriptor)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-PacketType-TypeDescriptor)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-PacketType-TypeDescriptor)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-PacketType-TypeDescriptor)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-PacketType-TypeDescriptor)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-PacketType-TypeDescriptor) \nReference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::PacketType::TypeDescriptor.\n\nThe message that fully specifies the type of the packet. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #gstreamer_buffer_descriptor\n\n def gstreamer_buffer_descriptor() -\u003e ::Google::Cloud::VisionAI::V1::GstreamerBufferDescriptor\n\n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::GstreamerBufferDescriptor](./Google-Cloud-VisionAI-V1-GstreamerBufferDescriptor)) --- GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.\n\n\n Note: The following fields are mutually exclusive: `gstreamer_buffer_descriptor`, `raw_image_descriptor`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #gstreamer_buffer_descriptor=\n\n def gstreamer_buffer_descriptor=(value) -\u003e ::Google::Cloud::VisionAI::V1::GstreamerBufferDescriptor\n\n**Parameter**\n\n- **value** ([::Google::Cloud::VisionAI::V1::GstreamerBufferDescriptor](./Google-Cloud-VisionAI-V1-GstreamerBufferDescriptor)) --- GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.\n\n\nNote: The following fields are mutually exclusive: `gstreamer_buffer_descriptor`, `raw_image_descriptor`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::GstreamerBufferDescriptor](./Google-Cloud-VisionAI-V1-GstreamerBufferDescriptor)) --- GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.\n\n\n Note: The following fields are mutually exclusive: `gstreamer_buffer_descriptor`, `raw_image_descriptor`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #raw_image_descriptor\n\n def raw_image_descriptor() -\u003e ::Google::Cloud::VisionAI::V1::RawImageDescriptor\n\n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::RawImageDescriptor](./Google-Cloud-VisionAI-V1-RawImageDescriptor)) --- RawImageDescriptor is the descriptor for the raw image type.\n\n\n Note: The following fields are mutually exclusive: `raw_image_descriptor`, `gstreamer_buffer_descriptor`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #raw_image_descriptor=\n\n def raw_image_descriptor=(value) -\u003e ::Google::Cloud::VisionAI::V1::RawImageDescriptor\n\n**Parameter**\n\n- **value** ([::Google::Cloud::VisionAI::V1::RawImageDescriptor](./Google-Cloud-VisionAI-V1-RawImageDescriptor)) --- RawImageDescriptor is the descriptor for the raw image type.\n\n\nNote: The following fields are mutually exclusive: `raw_image_descriptor`, `gstreamer_buffer_descriptor`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::RawImageDescriptor](./Google-Cloud-VisionAI-V1-RawImageDescriptor)) --- RawImageDescriptor is the descriptor for the raw image type.\n\n\n Note: The following fields are mutually exclusive: `raw_image_descriptor`, `gstreamer_buffer_descriptor`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #type\n\n def type() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The type of the packet. Its possible values is codec dependent.\n\n The fully qualified type name is always the concatenation of the\n value in `type_class` together with the value in `type`, separated by a\n '/'.\n\n Note that specific codecs can define their own type hierarchy, and so the\n type string here can in fact be separated by multiple '/'s of its own.\n\n Please see the open source SDK for specific codec documentation.\n\n### #type=\n\n def type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The type of the packet. Its possible values is codec dependent.\n\n\n The fully qualified type name is always the concatenation of the\n value in `type_class` together with the value in `type`, separated by a\n '/'.\n\n Note that specific codecs can define their own type hierarchy, and so the\n type string here can in fact be separated by multiple '/'s of its own.\n\nPlease see the open source SDK for specific codec documentation. \n**Returns**\n\n- (::String) --- The type of the packet. Its possible values is codec dependent.\n\n The fully qualified type name is always the concatenation of the\n value in `type_class` together with the value in `type`, separated by a\n '/'.\n\n Note that specific codecs can define their own type hierarchy, and so the\n type string here can in fact be separated by multiple '/'s of its own.\n\n Please see the open source SDK for specific codec documentation."]]