[[["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-04 UTC."],[],[],null,["# Data Catalog V1 API - Class Google::Cloud::DataCatalog::V1::RoutineSpec (v2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [2.3.0](/ruby/docs/reference/google-cloud-data_catalog-v1/2.3.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [2.2.2](/ruby/docs/reference/google-cloud-data_catalog-v1/2.2.2/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [2.1.1](/ruby/docs/reference/google-cloud-data_catalog-v1/2.1.1/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [2.0.0](/ruby/docs/reference/google-cloud-data_catalog-v1/2.0.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [1.4.0](/ruby/docs/reference/google-cloud-data_catalog-v1/1.4.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [1.3.1](/ruby/docs/reference/google-cloud-data_catalog-v1/1.3.1/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [1.2.0](/ruby/docs/reference/google-cloud-data_catalog-v1/1.2.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [1.1.0](/ruby/docs/reference/google-cloud-data_catalog-v1/1.1.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [1.0.1](/ruby/docs/reference/google-cloud-data_catalog-v1/1.0.1/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.23.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.23.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.22.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.22.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.21.2](/ruby/docs/reference/google-cloud-data_catalog-v1/0.21.2/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.20.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.20.1/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.19.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.19.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.18.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.18.1/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.17.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.17.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.16.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.16.1/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.15.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.15.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.14.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.14.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.13.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.13.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.12.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.12.1/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.11.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.11.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.10.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.10.0/Google-Cloud-DataCatalog-V1-RoutineSpec)\n- [0.9.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.9.1/Google-Cloud-DataCatalog-V1-RoutineSpec) \nReference documentation and code samples for the Data Catalog V1 API class Google::Cloud::DataCatalog::V1::RoutineSpec.\n\nSpecification that applies to a routine. Valid only for\nentries with the `ROUTINE` type. \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### #bigquery_routine_spec\n\n def bigquery_routine_spec() -\u003e ::Google::Cloud::DataCatalog::V1::BigQueryRoutineSpec\n\n**Returns**\n\n- ([::Google::Cloud::DataCatalog::V1::BigQueryRoutineSpec](./Google-Cloud-DataCatalog-V1-BigQueryRoutineSpec)) --- Fields specific for BigQuery routines.\n\n### #bigquery_routine_spec=\n\n def bigquery_routine_spec=(value) -\u003e ::Google::Cloud::DataCatalog::V1::BigQueryRoutineSpec\n\n**Parameter**\n\n- **value** ([::Google::Cloud::DataCatalog::V1::BigQueryRoutineSpec](./Google-Cloud-DataCatalog-V1-BigQueryRoutineSpec)) --- Fields specific for BigQuery routines. \n**Returns**\n\n- ([::Google::Cloud::DataCatalog::V1::BigQueryRoutineSpec](./Google-Cloud-DataCatalog-V1-BigQueryRoutineSpec)) --- Fields specific for BigQuery routines.\n\n### #definition_body\n\n def definition_body() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The body of the routine.\n\n### #definition_body=\n\n def definition_body=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The body of the routine. \n**Returns**\n\n- (::String) --- The body of the routine.\n\n### #language\n\n def language() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The language the routine is written in. The exact value depends on the\n source system. For BigQuery routines, possible values are:\n\n - `SQL`\n - `JAVASCRIPT`\n\n### #language=\n\n def language=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n The language the routine is written in. The exact value depends on the\n source system. For BigQuery routines, possible values are:\n - `SQL`\n- `JAVASCRIPT` \n**Returns**\n\n- (::String) --- The language the routine is written in. The exact value depends on the\n source system. For BigQuery routines, possible values are:\n\n - `SQL`\n - `JAVASCRIPT`\n\n### #return_type\n\n def return_type() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Return type of the argument. The exact value depends on the source system and the language.\n\n### #return_type=\n\n def return_type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Return type of the argument. The exact value depends on the source system and the language. \n**Returns**\n\n- (::String) --- Return type of the argument. The exact value depends on the source system and the language.\n\n### #routine_arguments\n\n def routine_arguments() -\u003e ::Array\u003c::Google::Cloud::DataCatalog::V1::RoutineSpec::Argument\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::DataCatalog::V1::RoutineSpec::Argument](./Google-Cloud-DataCatalog-V1-RoutineSpec-Argument)\\\u003e) --- Arguments of the routine.\n\n### #routine_arguments=\n\n def routine_arguments=(value) -\u003e ::Array\u003c::Google::Cloud::DataCatalog::V1::RoutineSpec::Argument\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::DataCatalog::V1::RoutineSpec::Argument](./Google-Cloud-DataCatalog-V1-RoutineSpec-Argument)\\\u003e) --- Arguments of the routine. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::DataCatalog::V1::RoutineSpec::Argument](./Google-Cloud-DataCatalog-V1-RoutineSpec-Argument)\\\u003e) --- Arguments of the routine.\n\n### #routine_type\n\n def routine_type() -\u003e ::Google::Cloud::DataCatalog::V1::RoutineSpec::RoutineType\n\n**Returns**\n\n- ([::Google::Cloud::DataCatalog::V1::RoutineSpec::RoutineType](./Google-Cloud-DataCatalog-V1-RoutineSpec-RoutineType)) --- The type of the routine.\n\n### #routine_type=\n\n def routine_type=(value) -\u003e ::Google::Cloud::DataCatalog::V1::RoutineSpec::RoutineType\n\n**Parameter**\n\n- **value** ([::Google::Cloud::DataCatalog::V1::RoutineSpec::RoutineType](./Google-Cloud-DataCatalog-V1-RoutineSpec-RoutineType)) --- The type of the routine. \n**Returns**\n\n- ([::Google::Cloud::DataCatalog::V1::RoutineSpec::RoutineType](./Google-Cloud-DataCatalog-V1-RoutineSpec-RoutineType)) --- The type of the routine."]]