Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::AnalyzerDefinition.
Defines an Analyzer.
An analyzer processes data from its input streams using the logic defined in
the Operator that it represents. Of course, it produces data for the output
streams declared in the Operator.
(::Google::Protobuf::Map{::String => ::Google::Cloud::VisionAI::V1::AttributeValue}) — The attribute values that this analyzer applies to the operator.
Supply a mapping between the attribute names and the actual value you wish
to apply. If an attribute name is omitted, then it will take a
preconfigured default value.
value (::Google::Protobuf::Map{::String => ::Google::Cloud::VisionAI::V1::AttributeValue}) — The attribute values that this analyzer applies to the operator.
Supply a mapping between the attribute names and the actual value you wish
to apply. If an attribute name is omitted, then it will take a
preconfigured default value.
Returns
(::Google::Protobuf::Map{::String => ::Google::Cloud::VisionAI::V1::AttributeValue}) — The attribute values that this analyzer applies to the operator.
Supply a mapping between the attribute names and the actual value you wish
to apply. If an attribute name is omitted, then it will take a
preconfigured default value.
[[["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::AnalyzerDefinition (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-AnalyzerDefinition)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-AnalyzerDefinition)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-AnalyzerDefinition)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-AnalyzerDefinition)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-AnalyzerDefinition)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-AnalyzerDefinition)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-AnalyzerDefinition) \nReference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::AnalyzerDefinition.\n\nDefines an Analyzer.\n\n\n\u003cbr /\u003e\n\nAn analyzer processes data from its input streams using the logic defined in\nthe Operator that it represents. Of course, it produces data for the output\nstreams declared in the Operator. \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### #analyzer\n\n def analyzer() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The name of this analyzer.\n\n Tentatively \\[a-z\\]\\[a-z0-9\\]*(_\\[a-z0-9\\]+)*.\n\n### #analyzer=\n\n def analyzer=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The name of this analyzer.\n\n\nTentatively \\[a-z\\]\\[a-z0-9\\]*(_\\[a-z0-9\\]+)*. \n**Returns**\n\n- (::String) --- The name of this analyzer.\n\n Tentatively \\[a-z\\]\\[a-z0-9\\]*(_\\[a-z0-9\\]+)*.\n\n### #attrs\n\n def attrs() -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Cloud::VisionAI::V1::AttributeValue}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::VisionAI::V1::AttributeValue}) --- The attribute values that this analyzer applies to the operator.\n\n Supply a mapping between the attribute names and the actual value you wish\n to apply. If an attribute name is omitted, then it will take a\n preconfigured default value.\n\n### #attrs=\n\n def attrs=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Cloud::VisionAI::V1::AttributeValue}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::VisionAI::V1::AttributeValue}) --- The attribute values that this analyzer applies to the operator.\n\n\n Supply a mapping between the attribute names and the actual value you wish\n to apply. If an attribute name is omitted, then it will take a\npreconfigured default value. \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::VisionAI::V1::AttributeValue}) --- The attribute values that this analyzer applies to the operator.\n\n Supply a mapping between the attribute names and the actual value you wish\n to apply. If an attribute name is omitted, then it will take a\n preconfigured default value.\n\n### #debug_options\n\n def debug_options() -\u003e ::Google::Cloud::VisionAI::V1::AnalyzerDefinition::DebugOptions\n\n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::AnalyzerDefinition::DebugOptions](./Google-Cloud-VisionAI-V1-AnalyzerDefinition-DebugOptions)) --- Debug options.\n\n### #debug_options=\n\n def debug_options=(value) -\u003e ::Google::Cloud::VisionAI::V1::AnalyzerDefinition::DebugOptions\n\n**Parameter**\n\n- **value** ([::Google::Cloud::VisionAI::V1::AnalyzerDefinition::DebugOptions](./Google-Cloud-VisionAI-V1-AnalyzerDefinition-DebugOptions)) --- Debug options. \n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::AnalyzerDefinition::DebugOptions](./Google-Cloud-VisionAI-V1-AnalyzerDefinition-DebugOptions)) --- Debug options.\n\n### #inputs\n\n def inputs() -\u003e ::Array\u003c::Google::Cloud::VisionAI::V1::AnalyzerDefinition::StreamInput\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::VisionAI::V1::AnalyzerDefinition::StreamInput](./Google-Cloud-VisionAI-V1-AnalyzerDefinition-StreamInput)\\\u003e) --- Input streams.\n\n### #inputs=\n\n def inputs=(value) -\u003e ::Array\u003c::Google::Cloud::VisionAI::V1::AnalyzerDefinition::StreamInput\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::VisionAI::V1::AnalyzerDefinition::StreamInput](./Google-Cloud-VisionAI-V1-AnalyzerDefinition-StreamInput)\\\u003e) --- Input streams. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::VisionAI::V1::AnalyzerDefinition::StreamInput](./Google-Cloud-VisionAI-V1-AnalyzerDefinition-StreamInput)\\\u003e) --- Input streams.\n\n### #operator\n\n def operator() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The name of the operator that this analyzer runs.\n\n Must match the name of a supported operator.\n\n### #operator=\n\n def operator=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The name of the operator that this analyzer runs.\n\n\nMust match the name of a supported operator. \n**Returns**\n\n- (::String) --- The name of the operator that this analyzer runs.\n\n Must match the name of a supported operator.\n\n### #operator_option\n\n def operator_option() -\u003e ::Google::Cloud::VisionAI::V1::AnalyzerDefinition::OperatorOption\n\n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::AnalyzerDefinition::OperatorOption](./Google-Cloud-VisionAI-V1-AnalyzerDefinition-OperatorOption)) --- Operator option.\n\n### #operator_option=\n\n def operator_option=(value) -\u003e ::Google::Cloud::VisionAI::V1::AnalyzerDefinition::OperatorOption\n\n**Parameter**\n\n- **value** ([::Google::Cloud::VisionAI::V1::AnalyzerDefinition::OperatorOption](./Google-Cloud-VisionAI-V1-AnalyzerDefinition-OperatorOption)) --- Operator option. \n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::AnalyzerDefinition::OperatorOption](./Google-Cloud-VisionAI-V1-AnalyzerDefinition-OperatorOption)) --- Operator option."]]