From 9f579db47040f2b518f75d2a98a0c7c00bac8938 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Wed, 19 Jun 2024 07:22:03 +0000 Subject: [PATCH] chore: generated code for commit 7fd687fec5412890c9da984dd285f20ab852da1c. [skip ci] Co-authored-by: Pierre Millot --- .../algolia/abtesting/model_ab_test_.go | 50 +++-------------- .../abtesting/model_ab_test_configuration.go | 36 ------------ .../abtesting/model_ab_test_response.go | 36 ------------ .../abtesting/model_ab_tests_variant.go | 36 ------------ .../model_ab_tests_variant_search_params.go | 36 ------------ .../abtesting/model_add_ab_tests_request.go | 36 ------------ .../abtesting/model_add_ab_tests_variant.go | 36 ------------ .../algolia/abtesting/model_currency.go | 36 ------------ .../abtesting/model_custom_search_params.go | 36 ------------ .../algolia/abtesting/model_effect.go | 36 ------------ .../algolia/abtesting/model_empty_search.go | 36 ------------ .../algolia/abtesting/model_error_base.go | 36 ------------ .../algolia/abtesting/model_filter_effects.go | 36 ------------ .../model_filter_effects_empty_search.go | 36 ------------ .../model_filter_effects_outliers.go | 36 ------------ .../abtesting/model_list_ab_tests_response.go | 36 ------------ .../model_minimum_detectable_effect.go | 36 ------------ .../algolia/abtesting/model_outliers.go | 36 ------------ .../algolia/abtesting/model_status.go | 36 ------------ .../algolia/abtesting/model_variant.go | 56 ++++--------------- .../analytics/model_click_positions_inner.go | 36 ------------ .../analytics/model_currencies_value.go | 36 ------------ .../model_daily_add_to_cart_rates.go | 40 +------------ .../analytics/model_daily_average_clicks.go | 40 +------------ .../model_daily_click_through_rates.go | 40 +------------ .../analytics/model_daily_conversion_rates.go | 40 +------------ .../analytics/model_daily_no_click_rates.go | 36 ------------ .../analytics/model_daily_no_results_rates.go | 36 ------------ .../analytics/model_daily_purchase_rates.go | 40 +------------ .../algolia/analytics/model_daily_revenue.go | 36 ------------ .../algolia/analytics/model_daily_searches.go | 36 ------------ .../model_daily_searches_no_clicks.go | 36 ------------ .../model_daily_searches_no_results.go | 36 ------------ .../algolia/analytics/model_daily_users.go | 36 ------------ .../algolia/analytics/model_direction.go | 36 ------------ .../algolia/analytics/model_error_base.go | 36 ------------ .../model_get_add_to_cart_rate_response.go | 40 +------------ ...del_get_average_click_position_response.go | 40 +------------ .../model_get_click_positions_response.go | 36 ------------ .../model_get_click_through_rate_response.go | 40 +------------ .../model_get_conversion_rate_response.go | 40 +------------ .../model_get_no_click_rate_response.go | 36 ------------ .../model_get_no_results_rate_response.go | 36 ------------ .../model_get_purchase_rate_response.go | 40 +------------ .../algolia/analytics/model_get_revenue.go | 36 ------------ .../model_get_searches_count_response.go | 36 ------------ .../model_get_searches_no_clicks_response.go | 36 ------------ .../model_get_searches_no_results_response.go | 36 ------------ .../analytics/model_get_status_response.go | 40 +------------ .../model_get_top_countries_response.go | 36 ------------ .../model_get_top_filter_attribute.go | 36 ------------ ...odel_get_top_filter_attributes_response.go | 36 ------------ .../model_get_top_filter_for_attribute.go | 36 ------------ ...l_get_top_filter_for_attribute_response.go | 36 ------------ ...del_get_top_filters_no_results_response.go | 36 ------------ .../model_get_top_filters_no_results_value.go | 36 ------------ ...model_get_top_filters_no_results_values.go | 36 ------------ .../analytics/model_get_top_hits_response.go | 36 ------------ .../model_get_top_searches_response.go | 36 ------------ .../model_get_users_count_response.go | 36 ------------ .../algolia/analytics/model_operator.go | 36 ------------ .../algolia/analytics/model_order_by.go | 36 ------------ .../algolia/analytics/model_top_country.go | 36 ------------ .../algolia/analytics/model_top_hit.go | 36 ------------ .../analytics/model_top_hit_with_analytics.go | 42 +------------- .../model_top_hit_with_revenue_analytics.go | 46 ++------------- .../analytics/model_top_hits_response.go | 36 ------------ .../model_top_hits_response_with_analytics.go | 36 ------------ ...op_hits_response_with_revenue_analytics.go | 36 ------------ .../algolia/analytics/model_top_search.go | 36 ------------ .../model_top_search_with_analytics.go | 44 ++------------- ...model_top_search_with_revenue_analytics.go | 48 ++-------------- .../analytics/model_top_searches_response.go | 36 ------------ ...el_top_searches_response_with_analytics.go | 36 ------------ ...earches_response_with_revenue_analytics.go | 36 ------------ .../algolia/ingestion/model_action_type.go | 36 ------------ .../algolia/ingestion/model_auth_algolia.go | 36 ------------ .../ingestion/model_auth_algolia_insights.go | 36 ------------ .../model_auth_algolia_insights_partial.go | 36 ------------ .../ingestion/model_auth_algolia_partial.go | 36 ------------ .../algolia/ingestion/model_auth_api_key.go | 36 ------------ .../ingestion/model_auth_api_key_partial.go | 36 ------------ .../algolia/ingestion/model_auth_basic.go | 36 ------------ .../ingestion/model_auth_basic_partial.go | 36 ------------ .../model_auth_google_service_account.go | 36 ------------ ...del_auth_google_service_account_partial.go | 36 ------------ .../algolia/ingestion/model_auth_input.go | 36 ------------ .../ingestion/model_auth_input_partial.go | 36 ------------ .../algolia/ingestion/model_auth_o_auth.go | 36 ------------ .../ingestion/model_auth_o_auth_partial.go | 36 ------------ .../algolia/ingestion/model_authentication.go | 48 +++------------- .../ingestion/model_authentication_create.go | 48 +++------------- .../model_authentication_create_response.go | 36 ------------ .../ingestion/model_authentication_search.go | 36 ------------ .../model_authentication_sort_keys.go | 36 ------------ .../ingestion/model_authentication_type.go | 36 ------------ .../ingestion/model_authentication_update.go | 48 +++------------- .../model_authentication_update_response.go | 36 ------------ .../ingestion/model_big_commerce_channel.go | 36 ------------ .../ingestion/model_big_commerce_metafield.go | 36 ------------ .../ingestion/model_big_query_data_type.go | 36 ------------ .../model_commercetools_custom_fields.go | 36 ------------ .../ingestion/model_delete_response.go | 36 ------------ .../algolia/ingestion/model_destination.go | 36 ------------ .../ingestion/model_destination_create.go | 36 ------------ .../model_destination_create_response.go | 36 ------------ .../ingestion/model_destination_index_name.go | 36 ------------ .../model_destination_index_prefix.go | 36 ------------ .../ingestion/model_destination_input.go | 36 ------------ .../ingestion/model_destination_search.go | 36 ------------ .../ingestion/model_destination_sort_keys.go | 36 ------------ .../ingestion/model_destination_type.go | 36 ------------ .../ingestion/model_destination_update.go | 36 ------------ .../model_destination_update_response.go | 36 ------------ .../ingestion/model_docker_image_type.go | 36 ------------ .../ingestion/model_docker_registry.go | 36 ------------ .../ingestion/model_docker_source_discover.go | 36 ------------ .../ingestion/model_docker_source_streams.go | 36 ------------ .../algolia/ingestion/model_error_base.go | 36 ------------ .../algolia/ingestion/model_event.go | 36 ------------ .../ingestion/model_event_sort_keys.go | 36 ------------ .../algolia/ingestion/model_event_status.go | 36 ------------ .../algolia/ingestion/model_event_type.go | 36 ------------ .../model_list_authentications_response.go | 36 ------------ .../model_list_destinations_response.go | 36 ------------ .../ingestion/model_list_events_response.go | 36 ------------ .../ingestion/model_list_sources_response.go | 36 ------------ .../ingestion/model_list_tasks_response.go | 36 ------------ .../model_mapping_field_directive.go | 36 ------------ .../ingestion/model_mapping_format_schema.go | 36 ------------ .../algolia/ingestion/model_mapping_input.go | 36 ------------ .../ingestion/model_mapping_kit_action.go | 36 ------------ .../ingestion/model_mapping_type_csv.go | 36 ------------ .../algolia/ingestion/model_method_type.go | 36 ------------ .../model_on_demand_date_utils_input.go | 36 ------------ .../ingestion/model_on_demand_trigger.go | 36 ------------ .../model_on_demand_trigger_input.go | 36 ------------ .../ingestion/model_on_demand_trigger_type.go | 36 ------------ .../algolia/ingestion/model_order_keys.go | 36 ------------ .../algolia/ingestion/model_pagination.go | 36 ------------ .../algolia/ingestion/model_platform.go | 36 ------------ .../algolia/ingestion/model_platform_none.go | 36 ------------ .../ingestion/model_platform_with_none.go | 36 ------------ .../algolia/ingestion/model_record_type.go | 36 ------------ .../algolia/ingestion/model_run.go | 36 ------------ .../ingestion/model_run_list_response.go | 36 ------------ .../algolia/ingestion/model_run_outcome.go | 36 ------------ .../algolia/ingestion/model_run_progress.go | 36 ------------ .../ingestion/model_run_reason_code.go | 36 ------------ .../algolia/ingestion/model_run_response.go | 36 ------------ .../algolia/ingestion/model_run_sort_keys.go | 36 ------------ .../algolia/ingestion/model_run_status.go | 36 ------------ .../algolia/ingestion/model_run_type.go | 36 ------------ .../model_schedule_date_utils_input.go | 36 ------------ .../ingestion/model_schedule_trigger.go | 36 ------------ .../ingestion/model_schedule_trigger_input.go | 36 ------------ .../ingestion/model_schedule_trigger_type.go | 36 ------------ .../algolia/ingestion/model_shopify_input.go | 36 ------------ .../algolia/ingestion/model_shopify_market.go | 36 ------------ .../ingestion/model_shopify_metafield.go | 36 ------------ .../algolia/ingestion/model_source.go | 36 ------------ .../ingestion/model_source_big_commerce.go | 36 ------------ .../ingestion/model_source_big_query.go | 36 ------------ .../ingestion/model_source_commercetools.go | 36 ------------ .../algolia/ingestion/model_source_create.go | 36 ------------ .../ingestion/model_source_create_response.go | 36 ------------ .../algolia/ingestion/model_source_csv.go | 36 ------------ .../algolia/ingestion/model_source_docker.go | 36 ------------ .../model_source_ga4_big_query_export.go | 36 ------------ .../algolia/ingestion/model_source_input.go | 36 ------------ .../algolia/ingestion/model_source_json.go | 36 ------------ .../algolia/ingestion/model_source_search.go | 36 ------------ .../algolia/ingestion/model_source_shopify.go | 36 ------------ .../ingestion/model_source_shopify_base.go | 36 ------------ .../ingestion/model_source_sort_keys.go | 36 ------------ .../algolia/ingestion/model_source_type.go | 36 ------------ .../algolia/ingestion/model_source_update.go | 36 ------------ .../model_source_update_commercetools.go | 36 ------------ .../ingestion/model_source_update_docker.go | 36 ------------ .../ingestion/model_source_update_input.go | 36 ------------ .../ingestion/model_source_update_response.go | 36 ------------ .../ingestion/model_source_update_shopify.go | 36 ------------ .../ingestion/model_streaming_trigger.go | 36 ------------ .../ingestion/model_streaming_trigger_type.go | 36 ------------ .../ingestion/model_streaming_utils_input.go | 36 ------------ .../ingestion/model_subscription_trigger.go | 36 ------------ .../model_subscription_trigger_type.go | 36 ------------ .../algolia/ingestion/model_task.go | 36 ------------ .../algolia/ingestion/model_task_create.go | 36 ------------ .../ingestion/model_task_create_response.go | 36 ------------ .../ingestion/model_task_create_trigger.go | 36 ------------ .../algolia/ingestion/model_task_input.go | 36 ------------ .../algolia/ingestion/model_task_search.go | 36 ------------ .../algolia/ingestion/model_task_sort_keys.go | 36 ------------ .../algolia/ingestion/model_task_update.go | 36 ------------ .../ingestion/model_task_update_response.go | 36 ------------ .../algolia/ingestion/model_trigger.go | 36 ------------ .../algolia/ingestion/model_trigger_type.go | 36 ------------ .../ingestion/model_trigger_update_input.go | 36 ------------ .../algolia/ingestion/model_window.go | 36 ------------ .../insights/model_add_to_cart_event.go | 36 ------------ .../model_added_to_cart_object_ids.go | 36 ------------ ...l_added_to_cart_object_ids_after_search.go | 36 ------------ .../algolia/insights/model_click_event.go | 36 ------------ .../algolia/insights/model_clicked_filters.go | 36 ------------ .../insights/model_clicked_object_ids.go | 36 ------------ .../model_clicked_object_ids_after_search.go | 36 ------------ .../insights/model_conversion_event.go | 36 ------------ .../insights/model_converted_filters.go | 36 ------------ .../insights/model_converted_object_ids.go | 36 ------------ ...model_converted_object_ids_after_search.go | 36 ------------ .../algolia/insights/model_discount.go | 36 ------------ .../algolia/insights/model_error_base.go | 36 ------------ .../algolia/insights/model_events_items.go | 36 ------------ .../algolia/insights/model_events_response.go | 36 ------------ .../algolia/insights/model_insights_events.go | 36 ------------ .../algolia/insights/model_object_data.go | 36 ------------ .../model_object_data_after_search.go | 36 ------------ .../algolia/insights/model_price.go | 36 ------------ .../algolia/insights/model_purchase_event.go | 36 ------------ .../insights/model_purchased_object_ids.go | 36 ------------ ...model_purchased_object_ids_after_search.go | 36 ------------ .../algolia/insights/model_value.go | 36 ------------ .../algolia/insights/model_view_event.go | 36 ------------ .../algolia/insights/model_viewed_filters.go | 36 ------------ .../insights/model_viewed_object_ids.go | 36 ------------ .../algolia/monitoring/model_error_base.go | 36 ------------ .../model_get_servers_403_response.go | 36 ------------ .../algolia/monitoring/model_incident.go | 36 ------------ .../monitoring/model_incidents_inner.go | 36 ------------ .../monitoring/model_incidents_response.go | 36 ------------ .../model_indexing_time_response.go | 36 ------------ .../model_indexing_time_response_metrics.go | 36 ------------ .../model_infrastructure_response.go | 36 ------------ .../model_infrastructure_response_metrics.go | 36 ------------ .../monitoring/model_inventory_response.go | 36 ------------ .../monitoring/model_latency_response.go | 36 ------------ .../model_latency_response_metrics.go | 36 ------------ .../algolia/monitoring/model_metric.go | 36 ------------ .../algolia/monitoring/model_period.go | 36 ------------ .../algolia/monitoring/model_probes_metric.go | 36 ------------ .../algolia/monitoring/model_region.go | 36 ------------ .../algolia/monitoring/model_server.go | 36 ------------ .../algolia/monitoring/model_server_status.go | 36 ------------ .../algolia/monitoring/model_status.go | 36 ------------ .../monitoring/model_status_response.go | 36 ------------ .../algolia/monitoring/model_time_inner.go | 36 ------------ .../algolia/monitoring/model_type.go | 36 ------------ .../model_delete_user_profile_response.go | 36 ------------ .../personalization/model_error_base.go | 36 ------------ .../personalization/model_event_scoring.go | 36 ------------ .../personalization/model_event_type.go | 36 ------------ .../personalization/model_facet_scoring.go | 36 ------------ .../model_get_user_token_response.go | 36 ------------ .../model_personalization_strategy_params.go | 36 ------------ ...l_set_personalization_strategy_response.go | 36 ------------ .../algolia/query-suggestions/model_app_id.go | 36 ------------ .../query-suggestions/model_base_response.go | 36 ------------ .../query-suggestions/model_error_base.go | 36 ------------ .../algolia/query-suggestions/model_facet.go | 36 ------------ .../model_get_config_status_200_response.go | 36 ------------ .../model_get_log_file_200_response.go | 36 ------------ .../query-suggestions/model_languages.go | 36 ------------ .../query-suggestions/model_log_level.go | 36 ------------ .../model_query_suggestions_configuration.go | 36 ------------ ...uery_suggestions_configuration_response.go | 36 ------------ ...ry_suggestions_configuration_with_index.go | 36 ------------ .../query-suggestions/model_source_index.go | 36 ------------ .../model_advanced_syntax_features.go | 36 ------------ .../recommend/model_alternatives_as_exact.go | 36 ------------ .../recommend/model_around_precision.go | 36 ------------ ...model_around_precision_from_value_inner.go | 36 ------------ .../algolia/recommend/model_around_radius.go | 36 ------------ .../recommend/model_around_radius_all.go | 36 ------------ .../recommend/model_auto_facet_filter.go | 36 ------------ .../recommend/model_base_recommend_request.go | 36 ------------ .../recommend/model_base_search_params.go | 36 ------------ .../model_base_search_params_without_query.go | 36 ------------ .../recommend/model_base_search_response.go | 36 ------------ .../recommend/model_bought_together_query.go | 36 ------------ .../algolia/recommend/model_condition.go | 36 ------------ .../algolia/recommend/model_consequence.go | 36 ------------ .../recommend/model_deleted_at_response.go | 36 ------------ .../algolia/recommend/model_distinct.go | 36 ------------ .../algolia/recommend/model_error_base.go | 36 ------------ .../model_exact_on_single_word_query.go | 36 ------------ .../algolia/recommend/model_exhaustive.go | 36 ------------ .../algolia/recommend/model_facet_filters.go | 36 ------------ .../algolia/recommend/model_facet_ordering.go | 36 ------------ .../algolia/recommend/model_facets.go | 36 ------------ .../algolia/recommend/model_facets_stats.go | 36 ------------ .../recommend/model_fallback_params.go | 46 ++------------- .../algolia/recommend/model_fbt_model.go | 36 ------------ .../model_frequently_bought_together.go | 36 ------------ .../model_get_recommend_task_response.go | 36 ------------ .../model_get_recommendations_params.go | 36 ------------ .../model_get_recommendations_response.go | 36 ------------ .../model_hide_consequence_object.go | 36 ------------ .../recommend/model_highlight_result.go | 36 ------------ .../model_highlight_result_option.go | 36 ------------ .../algolia/recommend/model_ignore_plurals.go | 36 ------------ .../model_index_settings_as_search_params.go | 46 ++------------- .../recommend/model_looking_similar.go | 36 ------------ .../recommend/model_looking_similar_model.go | 36 ------------ .../recommend/model_looking_similar_query.go | 36 ------------ .../algolia/recommend/model_match_level.go | 36 ------------ .../recommend/model_matched_geo_location.go | 36 ------------ .../algolia/recommend/model_mode.go | 36 ------------ .../recommend/model_numeric_filters.go | 36 ------------ .../recommend/model_optional_filters.go | 36 ------------ .../recommend/model_params_consequence.go | 36 ------------ .../recommend/model_personalization.go | 36 ------------ .../model_promote_consequence_object.go | 36 ------------ .../algolia/recommend/model_query_type.go | 36 ------------ .../algolia/recommend/model_ranking_info.go | 36 ------------ .../model_re_ranking_apply_filter.go | 36 ------------ .../algolia/recommend/model_recommend_hit.go | 36 ------------ .../recommend/model_recommend_models.go | 36 ------------ .../algolia/recommend/model_recommend_rule.go | 36 ------------ .../model_recommend_rule__metadata.go | 36 ------------ .../recommend/model_recommendations_hit.go | 36 ------------ .../recommend/model_recommendations_hits.go | 36 ------------ .../model_recommendations_request.go | 36 ------------ .../model_recommendations_results.go | 36 ------------ .../recommend/model_recommended_for_you.go | 36 ------------ .../model_recommended_for_you_model.go | 36 ------------ .../model_recommended_for_you_query.go | 36 ------------ .../algolia/recommend/model_redirect.go | 36 ------------ .../model_redirect_rule_index_metadata.go | 36 ------------ ...model_redirect_rule_index_metadata_data.go | 36 ------------ .../algolia/recommend/model_related_model.go | 36 ------------ .../recommend/model_related_products.go | 36 ------------ .../algolia/recommend/model_related_query.go | 36 ------------ .../recommend/model_remove_stop_words.go | 36 ------------ .../model_remove_words_if_no_results.go | 36 ------------ .../recommend/model_rendering_content.go | 36 ------------ .../algolia/recommend/model_search_params.go | 46 ++------------- .../recommend/model_search_params_object.go | 46 ++------------- .../recommend/model_search_params_query.go | 36 ------------ .../model_search_recommend_rules_params.go | 36 ------------ .../model_search_recommend_rules_response.go | 36 ------------ .../recommend/model_semantic_search.go | 36 ------------ .../algolia/recommend/model_snippet_result.go | 36 ------------ .../recommend/model_snippet_result_option.go | 36 ------------ .../recommend/model_sort_remaining_by.go | 36 ------------ .../recommend/model_supported_language.go | 36 ------------ .../algolia/recommend/model_tag_filters.go | 36 ------------ .../algolia/recommend/model_task_status.go | 36 ------------ .../recommend/model_trending_facet_hit.go | 36 ------------ .../recommend/model_trending_facets.go | 36 ------------ .../recommend/model_trending_facets_model.go | 36 ------------ .../recommend/model_trending_facets_query.go | 36 ------------ .../algolia/recommend/model_trending_items.go | 36 ------------ .../recommend/model_trending_items_model.go | 36 ------------ .../recommend/model_trending_items_query.go | 36 ------------ .../algolia/recommend/model_typo_tolerance.go | 36 ------------ .../recommend/model_typo_tolerance_enum.go | 36 ------------ .../algolia/recommend/model_value.go | 36 ------------ .../algolia/search/model_acl.go | 36 ------------ .../algolia/search/model_action.go | 36 ------------ .../search/model_add_api_key_response.go | 36 ------------ .../search/model_advanced_syntax_features.go | 36 ------------ .../search/model_alternatives_as_exact.go | 36 ------------ .../algolia/search/model_anchoring.go | 36 ------------ .../algolia/search/model_api_key.go | 36 ------------ .../algolia/search/model_api_key_operation.go | 36 ------------ .../algolia/search/model_around_precision.go | 36 ------------ ...model_around_precision_from_value_inner.go | 36 ------------ .../algolia/search/model_around_radius.go | 36 ------------ .../algolia/search/model_around_radius_all.go | 36 ------------ .../search/model_assign_user_id_params.go | 36 ------------ .../search/model_attribute_to_update.go | 36 ------------ .../search/model_automatic_facet_filter.go | 36 ------------ .../search/model_automatic_facet_filters.go | 36 ------------ .../search/model_base_get_api_key_response.go | 36 ------------ .../search/model_base_index_settings.go | 36 ------------ .../search/model_base_search_params.go | 36 ------------ .../model_base_search_params_without_query.go | 36 ------------ .../search/model_base_search_response.go | 36 ------------ .../model_batch_assign_user_ids_params.go | 36 ------------ .../model_batch_dictionary_entries_params.go | 36 ------------ .../model_batch_dictionary_entries_request.go | 36 ------------ .../algolia/search/model_batch_params.go | 36 ------------ .../algolia/search/model_batch_request.go | 36 ------------ .../algolia/search/model_batch_response.go | 36 ------------ .../search/model_batch_write_params.go | 36 ------------ .../algolia/search/model_browse_params.go | 36 ------------ .../search/model_browse_params_object.go | 46 ++------------- .../algolia/search/model_browse_response.go | 36 ------------ .../search/model_built_in_operation.go | 36 ------------ .../search/model_built_in_operation_type.go | 36 ------------ .../algolia/search/model_condition.go | 36 ------------ .../algolia/search/model_consequence.go | 36 ------------ .../algolia/search/model_consequence_hide.go | 36 ------------ .../search/model_consequence_params.go | 52 +++-------------- .../algolia/search/model_consequence_query.go | 36 ------------ .../search/model_consequence_query_object.go | 36 ------------ .../search/model_created_at_response.go | 36 ------------ .../algolia/search/model_cursor.go | 36 ------------ .../search/model_delete_api_key_response.go | 36 ------------ .../algolia/search/model_delete_by_params.go | 36 ------------ .../search/model_delete_source_response.go | 36 ------------ .../search/model_deleted_at_response.go | 36 ------------ .../algolia/search/model_dictionary_action.go | 36 ------------ .../algolia/search/model_dictionary_entry.go | 36 ------------ .../search/model_dictionary_entry_state.go | 36 ------------ .../search/model_dictionary_language.go | 36 ------------ .../model_dictionary_settings_params.go | 36 ------------ .../algolia/search/model_dictionary_type.go | 36 ------------ .../algolia/search/model_distinct.go | 36 ------------ .../algolia/search/model_edit.go | 36 ------------ .../algolia/search/model_edit_type.go | 36 ------------ .../algolia/search/model_error_base.go | 36 ------------ .../model_exact_on_single_word_query.go | 36 ------------ .../algolia/search/model_exhaustive.go | 36 ------------ .../algolia/search/model_facet_filters.go | 36 ------------ .../algolia/search/model_facet_hits.go | 36 ------------ .../algolia/search/model_facet_ordering.go | 36 ------------ .../algolia/search/model_facets.go | 36 ------------ .../algolia/search/model_facets_stats.go | 36 ------------ .../algolia/search/model_fetched_index.go | 36 ------------ .../search/model_get_api_key_response.go | 36 ------------ .../model_get_dictionary_settings_response.go | 36 ------------ .../algolia/search/model_get_logs_response.go | 36 ------------ .../search/model_get_objects_params.go | 36 ------------ .../search/model_get_objects_request.go | 36 ------------ .../search/model_get_objects_response.go | 36 ------------ .../algolia/search/model_get_task_response.go | 36 ------------ .../search/model_get_top_user_ids_response.go | 36 ------------ .../model_has_pending_mappings_response.go | 36 ------------ .../algolia/search/model_highlight_result.go | 36 ------------ .../search/model_highlight_result_option.go | 36 ------------ .../algolia/search/model_hit.go | 36 ------------ .../algolia/search/model_ignore_plurals.go | 36 ------------ .../algolia/search/model_index_settings.go | 46 ++------------- .../model_index_settings_as_search_params.go | 46 ++------------- .../algolia/search/model_languages.go | 46 ++------------- .../search/model_list_api_keys_response.go | 36 ------------ .../search/model_list_clusters_response.go | 36 ------------ .../search/model_list_indices_response.go | 36 ------------ .../search/model_list_user_ids_response.go | 36 ------------ .../algolia/search/model_log.go | 36 ------------ .../algolia/search/model_log_query.go | 36 ------------ .../algolia/search/model_log_type.go | 36 ------------ .../algolia/search/model_match_level.go | 36 ------------ .../search/model_matched_geo_location.go | 36 ------------ .../algolia/search/model_mode.go | 36 ------------ .../search/model_multiple_batch_request.go | 36 ------------ .../search/model_multiple_batch_response.go | 36 ------------ .../algolia/search/model_numeric_filters.go | 36 ------------ .../search/model_operation_index_params.go | 36 ------------ .../algolia/search/model_operation_type.go | 36 ------------ .../algolia/search/model_optional_filters.go | 36 ------------ .../algolia/search/model_params.go | 36 ------------ .../algolia/search/model_personalization.go | 36 ------------ .../algolia/search/model_promote.go | 36 ------------ .../algolia/search/model_promote_object_id.go | 36 ------------ .../search/model_promote_object_ids.go | 36 ------------ .../algolia/search/model_query_type.go | 36 ------------ .../algolia/search/model_ranking_info.go | 36 ------------ .../search/model_re_ranking_apply_filter.go | 36 ------------ .../algolia/search/model_redirect.go | 36 ------------ .../model_redirect_rule_index_metadata.go | 36 ------------ ...model_redirect_rule_index_metadata_data.go | 36 ------------ .../algolia/search/model_remove_stop_words.go | 36 ------------ .../search/model_remove_user_id_response.go | 36 ------------ .../model_remove_words_if_no_results.go | 36 ------------ .../algolia/search/model_rendering_content.go | 36 ------------ .../model_replace_all_objects_response.go | 36 ------------ .../search/model_replace_source_response.go | 36 ------------ .../algolia/search/model_rule.go | 36 ------------ .../search/model_save_object_response.go | 36 ------------ .../search/model_save_synonym_response.go | 36 ------------ .../algolia/search/model_scope_type.go | 36 ------------ .../model_search_dictionary_entries_params.go | 36 ------------ ...odel_search_dictionary_entries_response.go | 36 ------------ .../model_search_for_facet_values_request.go | 36 ------------ .../model_search_for_facet_values_response.go | 36 ------------ .../algolia/search/model_search_for_facets.go | 46 ++------------- .../search/model_search_for_facets_options.go | 36 ------------ .../algolia/search/model_search_for_hits.go | 46 ++------------- .../search/model_search_for_hits_options.go | 36 ------------ .../algolia/search/model_search_hits.go | 36 ------------ .../search/model_search_method_params.go | 36 ------------ .../algolia/search/model_search_params.go | 36 ------------ .../search/model_search_params_object.go | 46 ++------------- .../search/model_search_params_query.go | 36 ------------ .../search/model_search_params_string.go | 36 ------------ .../algolia/search/model_search_query.go | 36 ------------ .../algolia/search/model_search_response.go | 36 ------------ .../algolia/search/model_search_responses.go | 36 ------------ .../algolia/search/model_search_result.go | 36 ------------ .../search/model_search_rules_params.go | 42 +------------- .../search/model_search_rules_response.go | 36 ------------ .../algolia/search/model_search_strategy.go | 36 ------------ .../search/model_search_synonyms_params.go | 36 ------------ .../search/model_search_synonyms_response.go | 36 ------------ .../search/model_search_type_default.go | 36 ------------ .../algolia/search/model_search_type_facet.go | 36 ------------ .../search/model_search_user_ids_params.go | 36 ------------ .../search/model_search_user_ids_response.go | 36 ------------ .../model_secured_api_key_restrictions.go | 36 ------------ .../algolia/search/model_semantic_search.go | 36 ------------ .../algolia/search/model_snippet_result.go | 36 ------------ .../search/model_snippet_result_option.go | 36 ------------ .../algolia/search/model_sort_remaining_by.go | 36 ------------ .../algolia/search/model_source.go | 36 ------------ .../algolia/search/model_standard_entries.go | 36 ------------ .../search/model_supported_language.go | 36 ------------ .../algolia/search/model_synonym_hit.go | 36 ------------ .../algolia/search/model_synonym_type.go | 36 ------------ .../algolia/search/model_tag_filters.go | 36 ------------ .../algolia/search/model_task_status.go | 36 ------------ .../algolia/search/model_time_range.go | 36 ------------ .../algolia/search/model_typo_tolerance.go | 36 ------------ .../search/model_typo_tolerance_enum.go | 36 ------------ .../search/model_update_api_key_response.go | 36 ------------ .../search/model_updated_at_response.go | 36 ------------ ...odel_updated_at_with_object_id_response.go | 36 ------------ .../search/model_updated_rule_response.go | 36 ------------ .../search/model_user_highlight_result.go | 36 ------------ .../algolia/search/model_user_hit.go | 36 ------------ .../algolia/search/model_user_id.go | 36 ------------ .../algolia/search/model_value.go | 36 ------------ .../algolia/usage/model_error_base.go | 36 ------------ .../usage/model_get_usage_200_response.go | 36 ------------ ...get_usage_200_response_statistics_inner.go | 36 ------------ .../usage/model_get_usage_400_response.go | 36 ------------ .../model_get_usage_400_response_error.go | 36 ------------ ...t_usage_400_response_error_errors_inner.go | 36 ------------ .../algolia/usage/model_granularity.go | 36 ------------ .../algolia/usage/model_statistic.go | 36 ------------ .../algolia/usage/model_statistic_value.go | 36 ------------ .../src/generated/requests/Insights.test.cs | 10 ++-- .../dart/test/requests/insights_test.dart | 6 +- .../output/go/tests/requests/insights_test.go | 10 ++-- .../com/algolia/requests/Insights.test.java | 12 ++-- .../javascript/src/requests/insights.test.ts | 12 ++-- .../com/algolia/requests/InsightsTest.kt | 6 +- .../output/php/src/requests/InsightsTest.php | 10 ++-- .../python/tests/requests/insights_test.py | 14 ++--- .../ruby/test/requests/insights_test.rb | 14 ++--- .../algoliasearch/requests/InsightsTest.scala | 10 ++-- .../swift/Tests/requests/InsightsTests.swift | 10 ++-- 544 files changed, 213 insertions(+), 19371 deletions(-) diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_.go b/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_.go index 42f9d95f96..70316fa54c 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_.go @@ -11,12 +11,12 @@ import ( // ABTest struct for ABTest. type ABTest struct { // Unique A/B test identifier. - AbTestID int32 `json:"abTestID"` - ClickSignificance utils.NullableFloat64 `json:"clickSignificance"` - ConversionSignificance utils.NullableFloat64 `json:"conversionSignificance"` - AddToCartSignificance utils.NullableFloat64 `json:"addToCartSignificance"` - PurchaseSignificance utils.NullableFloat64 `json:"purchaseSignificance"` - RevenueSignificance map[string]float64 `json:"revenueSignificance"` + AbTestID int32 `json:"abTestID"` + ClickSignificance utils.Nullable[float64] `json:"clickSignificance"` + ConversionSignificance utils.Nullable[float64] `json:"conversionSignificance"` + AddToCartSignificance utils.Nullable[float64] `json:"addToCartSignificance"` + PurchaseSignificance utils.Nullable[float64] `json:"purchaseSignificance"` + RevenueSignificance map[string]float64 `json:"revenueSignificance"` // Date and time when the A/B test was last updated, in RFC 3339 format. UpdatedAt string `json:"updatedAt"` // Date and time when the A/B test was created, in RFC 3339 format. @@ -43,7 +43,7 @@ func WithABTestConfiguration(val ABTestConfiguration) ABTestOption { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewABTest(abTestID int32, clickSignificance utils.NullableFloat64, conversionSignificance utils.NullableFloat64, addToCartSignificance utils.NullableFloat64, purchaseSignificance utils.NullableFloat64, revenueSignificance map[string]float64, updatedAt string, createdAt string, endAt string, name string, status Status, variants []Variant, opts ...ABTestOption) *ABTest { +func NewABTest(abTestID int32, clickSignificance utils.Nullable[float64], conversionSignificance utils.Nullable[float64], addToCartSignificance utils.Nullable[float64], purchaseSignificance utils.Nullable[float64], revenueSignificance map[string]float64, updatedAt string, createdAt string, endAt string, name string, status Status, variants []Variant, opts ...ABTestOption) *ABTest { this := &ABTest{} this.AbTestID = abTestID this.ClickSignificance = clickSignificance @@ -477,39 +477,3 @@ func (o ABTest) String() string { out += fmt.Sprintf(" configuration=%v\n", o.Configuration) return fmt.Sprintf("ABTest {\n%s}", out) } - -type NullableABTest struct { - value *ABTest - isSet bool -} - -func (v NullableABTest) Get() *ABTest { - return v.value -} - -func (v *NullableABTest) Set(val *ABTest) { - v.value = val - v.isSet = true -} - -func (v NullableABTest) IsSet() bool { - return v.isSet -} - -func (v *NullableABTest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableABTest(val *ABTest) *NullableABTest { - return &NullableABTest{value: val, isSet: true} -} - -func (v NullableABTest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableABTest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_configuration.go b/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_configuration.go index e359e38534..644f4bd77a 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_configuration.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_configuration.go @@ -162,39 +162,3 @@ func (o ABTestConfiguration) String() string { out += fmt.Sprintf(" minimumDetectableEffect=%v\n", o.MinimumDetectableEffect) return fmt.Sprintf("ABTestConfiguration {\n%s}", out) } - -type NullableABTestConfiguration struct { - value *ABTestConfiguration - isSet bool -} - -func (v NullableABTestConfiguration) Get() *ABTestConfiguration { - return v.value -} - -func (v *NullableABTestConfiguration) Set(val *ABTestConfiguration) { - v.value = val - v.isSet = true -} - -func (v NullableABTestConfiguration) IsSet() bool { - return v.isSet -} - -func (v *NullableABTestConfiguration) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableABTestConfiguration(val *ABTestConfiguration) *NullableABTestConfiguration { - return &NullableABTestConfiguration{value: val, isSet: true} -} - -func (v NullableABTestConfiguration) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableABTestConfiguration) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_response.go b/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_response.go index 7edb0d53ca..7b4081b3fc 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_response.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_ab_test_response.go @@ -134,39 +134,3 @@ func (o ABTestResponse) String() string { out += fmt.Sprintf(" taskID=%v\n", o.TaskID) return fmt.Sprintf("ABTestResponse {\n%s}", out) } - -type NullableABTestResponse struct { - value *ABTestResponse - isSet bool -} - -func (v NullableABTestResponse) Get() *ABTestResponse { - return v.value -} - -func (v *NullableABTestResponse) Set(val *ABTestResponse) { - v.value = val - v.isSet = true -} - -func (v NullableABTestResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableABTestResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableABTestResponse(val *ABTestResponse) *NullableABTestResponse { - return &NullableABTestResponse{value: val, isSet: true} -} - -func (v NullableABTestResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableABTestResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_ab_tests_variant.go b/clients/algoliasearch-client-go/algolia/abtesting/model_ab_tests_variant.go index 273b08a065..d526c16770 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_ab_tests_variant.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_ab_tests_variant.go @@ -152,39 +152,3 @@ func (o AbTestsVariant) String() string { out += fmt.Sprintf(" description=%v\n", o.Description) return fmt.Sprintf("AbTestsVariant {\n%s}", out) } - -type NullableAbTestsVariant struct { - value *AbTestsVariant - isSet bool -} - -func (v NullableAbTestsVariant) Get() *AbTestsVariant { - return v.value -} - -func (v *NullableAbTestsVariant) Set(val *AbTestsVariant) { - v.value = val - v.isSet = true -} - -func (v NullableAbTestsVariant) IsSet() bool { - return v.isSet -} - -func (v *NullableAbTestsVariant) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAbTestsVariant(val *AbTestsVariant) *NullableAbTestsVariant { - return &NullableAbTestsVariant{value: val, isSet: true} -} - -func (v NullableAbTestsVariant) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAbTestsVariant) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_ab_tests_variant_search_params.go b/clients/algoliasearch-client-go/algolia/abtesting/model_ab_tests_variant_search_params.go index 1f13557c7c..b2c6e58a5b 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_ab_tests_variant_search_params.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_ab_tests_variant_search_params.go @@ -183,39 +183,3 @@ func (o AbTestsVariantSearchParams) String() string { out += fmt.Sprintf(" customSearchParameters=%v\n", o.CustomSearchParameters) return fmt.Sprintf("AbTestsVariantSearchParams {\n%s}", out) } - -type NullableAbTestsVariantSearchParams struct { - value *AbTestsVariantSearchParams - isSet bool -} - -func (v NullableAbTestsVariantSearchParams) Get() *AbTestsVariantSearchParams { - return v.value -} - -func (v *NullableAbTestsVariantSearchParams) Set(val *AbTestsVariantSearchParams) { - v.value = val - v.isSet = true -} - -func (v NullableAbTestsVariantSearchParams) IsSet() bool { - return v.isSet -} - -func (v *NullableAbTestsVariantSearchParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAbTestsVariantSearchParams(val *AbTestsVariantSearchParams) *NullableAbTestsVariantSearchParams { - return &NullableAbTestsVariantSearchParams{value: val, isSet: true} -} - -func (v NullableAbTestsVariantSearchParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAbTestsVariantSearchParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_add_ab_tests_request.go b/clients/algoliasearch-client-go/algolia/abtesting/model_add_ab_tests_request.go index 7898497dc7..c3d15c5266 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_add_ab_tests_request.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_add_ab_tests_request.go @@ -134,39 +134,3 @@ func (o AddABTestsRequest) String() string { out += fmt.Sprintf(" endAt=%v\n", o.EndAt) return fmt.Sprintf("AddABTestsRequest {\n%s}", out) } - -type NullableAddABTestsRequest struct { - value *AddABTestsRequest - isSet bool -} - -func (v NullableAddABTestsRequest) Get() *AddABTestsRequest { - return v.value -} - -func (v *NullableAddABTestsRequest) Set(val *AddABTestsRequest) { - v.value = val - v.isSet = true -} - -func (v NullableAddABTestsRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableAddABTestsRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAddABTestsRequest(val *AddABTestsRequest) *NullableAddABTestsRequest { - return &NullableAddABTestsRequest{value: val, isSet: true} -} - -func (v NullableAddABTestsRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAddABTestsRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_add_ab_tests_variant.go b/clients/algoliasearch-client-go/algolia/abtesting/model_add_ab_tests_variant.go index 7107c59722..4240e221cd 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_add_ab_tests_variant.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_add_ab_tests_variant.go @@ -94,39 +94,3 @@ func (obj AddABTestsVariant) GetActualInstance() any { // all schemas are nil return nil } - -type NullableAddABTestsVariant struct { - value *AddABTestsVariant - isSet bool -} - -func (v NullableAddABTestsVariant) Get() *AddABTestsVariant { - return v.value -} - -func (v *NullableAddABTestsVariant) Set(val *AddABTestsVariant) { - v.value = val - v.isSet = true -} - -func (v NullableAddABTestsVariant) IsSet() bool { - return v.isSet -} - -func (v *NullableAddABTestsVariant) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAddABTestsVariant(val *AddABTestsVariant) *NullableAddABTestsVariant { - return &NullableAddABTestsVariant{value: val, isSet: true} -} - -func (v NullableAddABTestsVariant) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAddABTestsVariant) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_currency.go b/clients/algoliasearch-client-go/algolia/abtesting/model_currency.go index 02a791c5d2..45fc291438 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_currency.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_currency.go @@ -223,39 +223,3 @@ func (o Currency) String() string { out += fmt.Sprintf(" standardDeviation=%v\n", o.StandardDeviation) return fmt.Sprintf("Currency {\n%s}", out) } - -type NullableCurrency struct { - value *Currency - isSet bool -} - -func (v NullableCurrency) Get() *Currency { - return v.value -} - -func (v *NullableCurrency) Set(val *Currency) { - v.value = val - v.isSet = true -} - -func (v NullableCurrency) IsSet() bool { - return v.isSet -} - -func (v *NullableCurrency) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCurrency(val *Currency) *NullableCurrency { - return &NullableCurrency{value: val, isSet: true} -} - -func (v NullableCurrency) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableCurrency) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_custom_search_params.go b/clients/algoliasearch-client-go/algolia/abtesting/model_custom_search_params.go index 29768dbc5e..ca6ae38a70 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_custom_search_params.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_custom_search_params.go @@ -69,39 +69,3 @@ func (o CustomSearchParams) String() string { out += fmt.Sprintf(" customSearchParameters=%v\n", o.CustomSearchParameters) return fmt.Sprintf("CustomSearchParams {\n%s}", out) } - -type NullableCustomSearchParams struct { - value *CustomSearchParams - isSet bool -} - -func (v NullableCustomSearchParams) Get() *CustomSearchParams { - return v.value -} - -func (v *NullableCustomSearchParams) Set(val *CustomSearchParams) { - v.value = val - v.isSet = true -} - -func (v NullableCustomSearchParams) IsSet() bool { - return v.isSet -} - -func (v *NullableCustomSearchParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCustomSearchParams(val *CustomSearchParams) *NullableCustomSearchParams { - return &NullableCustomSearchParams{value: val, isSet: true} -} - -func (v NullableCustomSearchParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableCustomSearchParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_effect.go b/clients/algoliasearch-client-go/algolia/abtesting/model_effect.go index e836d57b40..03965b7f6e 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_effect.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_effect.go @@ -67,39 +67,3 @@ func (v Effect) IsValid() bool { func (v Effect) Ptr() *Effect { return &v } - -type NullableEffect struct { - value *Effect - isSet bool -} - -func (v NullableEffect) Get() *Effect { - return v.value -} - -func (v *NullableEffect) Set(val *Effect) { - v.value = val - v.isSet = true -} - -func (v NullableEffect) IsSet() bool { - return v.isSet -} - -func (v *NullableEffect) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEffect(val *Effect) *NullableEffect { - return &NullableEffect{value: val, isSet: true} -} - -func (v NullableEffect) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEffect) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_empty_search.go b/clients/algoliasearch-client-go/algolia/abtesting/model_empty_search.go index 53df48c7e0..e72c6aa23b 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_empty_search.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_empty_search.go @@ -88,39 +88,3 @@ func (o EmptySearch) String() string { out += fmt.Sprintf(" exclude=%v\n", o.Exclude) return fmt.Sprintf("EmptySearch {\n%s}", out) } - -type NullableEmptySearch struct { - value *EmptySearch - isSet bool -} - -func (v NullableEmptySearch) Get() *EmptySearch { - return v.value -} - -func (v *NullableEmptySearch) Set(val *EmptySearch) { - v.value = val - v.isSet = true -} - -func (v NullableEmptySearch) IsSet() bool { - return v.isSet -} - -func (v *NullableEmptySearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEmptySearch(val *EmptySearch) *NullableEmptySearch { - return &NullableEmptySearch{value: val, isSet: true} -} - -func (v NullableEmptySearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEmptySearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_error_base.go b/clients/algoliasearch-client-go/algolia/abtesting/model_error_base.go index 0d850e115e..2ea0b2cb80 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_error_base.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_error_base.go @@ -131,39 +131,3 @@ func (o ErrorBase) String() string { } return fmt.Sprintf("ErrorBase {\n%s}", out) } - -type NullableErrorBase struct { - value *ErrorBase - isSet bool -} - -func (v NullableErrorBase) Get() *ErrorBase { - return v.value -} - -func (v *NullableErrorBase) Set(val *ErrorBase) { - v.value = val - v.isSet = true -} - -func (v NullableErrorBase) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorBase) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorBase(val *ErrorBase) *NullableErrorBase { - return &NullableErrorBase{value: val, isSet: true} -} - -func (v NullableErrorBase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableErrorBase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects.go b/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects.go index b22a0f9a1d..fc6afdf178 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects.go @@ -131,39 +131,3 @@ func (o FilterEffects) String() string { out += fmt.Sprintf(" emptySearch=%v\n", o.EmptySearch) return fmt.Sprintf("FilterEffects {\n%s}", out) } - -type NullableFilterEffects struct { - value *FilterEffects - isSet bool -} - -func (v NullableFilterEffects) Get() *FilterEffects { - return v.value -} - -func (v *NullableFilterEffects) Set(val *FilterEffects) { - v.value = val - v.isSet = true -} - -func (v NullableFilterEffects) IsSet() bool { - return v.isSet -} - -func (v *NullableFilterEffects) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFilterEffects(val *FilterEffects) *NullableFilterEffects { - return &NullableFilterEffects{value: val, isSet: true} -} - -func (v NullableFilterEffects) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFilterEffects) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_empty_search.go b/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_empty_search.go index 4dfcea1965..5828cd6365 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_empty_search.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_empty_search.go @@ -133,39 +133,3 @@ func (o FilterEffectsEmptySearch) String() string { out += fmt.Sprintf(" trackedSearchesCount=%v\n", o.TrackedSearchesCount) return fmt.Sprintf("FilterEffectsEmptySearch {\n%s}", out) } - -type NullableFilterEffectsEmptySearch struct { - value *FilterEffectsEmptySearch - isSet bool -} - -func (v NullableFilterEffectsEmptySearch) Get() *FilterEffectsEmptySearch { - return v.value -} - -func (v *NullableFilterEffectsEmptySearch) Set(val *FilterEffectsEmptySearch) { - v.value = val - v.isSet = true -} - -func (v NullableFilterEffectsEmptySearch) IsSet() bool { - return v.isSet -} - -func (v *NullableFilterEffectsEmptySearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFilterEffectsEmptySearch(val *FilterEffectsEmptySearch) *NullableFilterEffectsEmptySearch { - return &NullableFilterEffectsEmptySearch{value: val, isSet: true} -} - -func (v NullableFilterEffectsEmptySearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFilterEffectsEmptySearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_outliers.go b/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_outliers.go index aef473c257..41c90fcf8e 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_outliers.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_outliers.go @@ -133,39 +133,3 @@ func (o FilterEffectsOutliers) String() string { out += fmt.Sprintf(" trackedSearchesCount=%v\n", o.TrackedSearchesCount) return fmt.Sprintf("FilterEffectsOutliers {\n%s}", out) } - -type NullableFilterEffectsOutliers struct { - value *FilterEffectsOutliers - isSet bool -} - -func (v NullableFilterEffectsOutliers) Get() *FilterEffectsOutliers { - return v.value -} - -func (v *NullableFilterEffectsOutliers) Set(val *FilterEffectsOutliers) { - v.value = val - v.isSet = true -} - -func (v NullableFilterEffectsOutliers) IsSet() bool { - return v.isSet -} - -func (v *NullableFilterEffectsOutliers) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFilterEffectsOutliers(val *FilterEffectsOutliers) *NullableFilterEffectsOutliers { - return &NullableFilterEffectsOutliers{value: val, isSet: true} -} - -func (v NullableFilterEffectsOutliers) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFilterEffectsOutliers) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_list_ab_tests_response.go b/clients/algoliasearch-client-go/algolia/abtesting/model_list_ab_tests_response.go index 2c331b3c8a..63356d37cd 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_list_ab_tests_response.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_list_ab_tests_response.go @@ -136,39 +136,3 @@ func (o ListABTestsResponse) String() string { out += fmt.Sprintf(" total=%v\n", o.Total) return fmt.Sprintf("ListABTestsResponse {\n%s}", out) } - -type NullableListABTestsResponse struct { - value *ListABTestsResponse - isSet bool -} - -func (v NullableListABTestsResponse) Get() *ListABTestsResponse { - return v.value -} - -func (v *NullableListABTestsResponse) Set(val *ListABTestsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListABTestsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListABTestsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListABTestsResponse(val *ListABTestsResponse) *NullableListABTestsResponse { - return &NullableListABTestsResponse{value: val, isSet: true} -} - -func (v NullableListABTestsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableListABTestsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_minimum_detectable_effect.go b/clients/algoliasearch-client-go/algolia/abtesting/model_minimum_detectable_effect.go index 7ea04e6367..7bab5dc57e 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_minimum_detectable_effect.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_minimum_detectable_effect.go @@ -132,39 +132,3 @@ func (o MinimumDetectableEffect) String() string { out += fmt.Sprintf(" effect=%v\n", o.Effect) return fmt.Sprintf("MinimumDetectableEffect {\n%s}", out) } - -type NullableMinimumDetectableEffect struct { - value *MinimumDetectableEffect - isSet bool -} - -func (v NullableMinimumDetectableEffect) Get() *MinimumDetectableEffect { - return v.value -} - -func (v *NullableMinimumDetectableEffect) Set(val *MinimumDetectableEffect) { - v.value = val - v.isSet = true -} - -func (v NullableMinimumDetectableEffect) IsSet() bool { - return v.isSet -} - -func (v *NullableMinimumDetectableEffect) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMinimumDetectableEffect(val *MinimumDetectableEffect) *NullableMinimumDetectableEffect { - return &NullableMinimumDetectableEffect{value: val, isSet: true} -} - -func (v NullableMinimumDetectableEffect) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMinimumDetectableEffect) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_outliers.go b/clients/algoliasearch-client-go/algolia/abtesting/model_outliers.go index 74b1487dc2..8fd98b0a82 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_outliers.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_outliers.go @@ -88,39 +88,3 @@ func (o Outliers) String() string { out += fmt.Sprintf(" exclude=%v\n", o.Exclude) return fmt.Sprintf("Outliers {\n%s}", out) } - -type NullableOutliers struct { - value *Outliers - isSet bool -} - -func (v NullableOutliers) Get() *Outliers { - return v.value -} - -func (v *NullableOutliers) Set(val *Outliers) { - v.value = val - v.isSet = true -} - -func (v NullableOutliers) IsSet() bool { - return v.isSet -} - -func (v *NullableOutliers) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOutliers(val *Outliers) *NullableOutliers { - return &NullableOutliers{value: val, isSet: true} -} - -func (v NullableOutliers) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOutliers) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_status.go b/clients/algoliasearch-client-go/algolia/abtesting/model_status.go index 061b4b11cd..376ad83de9 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_status.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_status.go @@ -67,39 +67,3 @@ func (v Status) IsValid() bool { func (v Status) Ptr() *Status { return &v } - -type NullableStatus struct { - value *Status - isSet bool -} - -func (v NullableStatus) Get() *Status { - return v.value -} - -func (v *NullableStatus) Set(val *Status) { - v.value = val - v.isSet = true -} - -func (v NullableStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStatus(val *Status) *NullableStatus { - return &NullableStatus{value: val, isSet: true} -} - -func (v NullableStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_variant.go b/clients/algoliasearch-client-go/algolia/abtesting/model_variant.go index 4512bfd5c8..833effbe54 100644 --- a/clients/algoliasearch-client-go/algolia/abtesting/model_variant.go +++ b/clients/algoliasearch-client-go/algolia/abtesting/model_variant.go @@ -13,17 +13,17 @@ type Variant struct { // Number of add-to-cart events for this variant. AddToCartCount int32 `json:"addToCartCount"` // [Add-to-cart rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#add-to-cart-rate) for this variant. - AddToCartRate utils.NullableFloat64 `json:"addToCartRate"` + AddToCartRate utils.Nullable[float64] `json:"addToCartRate"` // [Average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position) for this variant. - AverageClickPosition utils.NullableInt32 `json:"averageClickPosition"` + AverageClickPosition utils.Nullable[int32] `json:"averageClickPosition"` // Number of click events for this variant. ClickCount int32 `json:"clickCount"` // [Click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate) for this variant. - ClickThroughRate utils.NullableFloat64 `json:"clickThroughRate"` + ClickThroughRate utils.Nullable[float64] `json:"clickThroughRate"` // Number of click events for this variant. ConversionCount int32 `json:"conversionCount"` // [Conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate) for this variant. - ConversionRate utils.NullableFloat64 `json:"conversionRate"` + ConversionRate utils.Nullable[float64] `json:"conversionRate"` // A/B test currencies. Currencies *map[string]Currency `json:"currencies,omitempty"` // Description for this variant. @@ -34,21 +34,21 @@ type Variant struct { // Index name of the A/B test variant (case-sensitive). Index string `json:"index"` // Number of [searches without results](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#searches-without-results) for this variant. - NoResultCount utils.NullableInt32 `json:"noResultCount"` + NoResultCount utils.Nullable[int32] `json:"noResultCount"` // Number of purchase events for this variant. PurchaseCount int32 `json:"purchaseCount"` // [Purchase rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#purchase-rate) for this variant. - PurchaseRate utils.NullableFloat64 `json:"purchaseRate"` + PurchaseRate utils.Nullable[float64] `json:"purchaseRate"` // Number of searches for this variant. - SearchCount utils.NullableInt32 `json:"searchCount"` + SearchCount utils.Nullable[int32] `json:"searchCount"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. TrackedSearchCount *int32 `json:"trackedSearchCount,omitempty"` // Percentage of search requests each variant receives. TrafficPercentage int32 `json:"trafficPercentage"` // Number of users that made searches to this variant. - UserCount utils.NullableInt32 `json:"userCount"` + UserCount utils.Nullable[int32] `json:"userCount"` // Number of users that made tracked searches to this variant. - TrackedUserCount utils.NullableInt32 `json:"trackedUserCount"` + TrackedUserCount utils.Nullable[int32] `json:"trackedUserCount"` } type VariantOption func(f *Variant) @@ -81,7 +81,7 @@ func WithVariantTrackedSearchCount(val int32) VariantOption { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewVariant(addToCartCount int32, addToCartRate utils.NullableFloat64, averageClickPosition utils.NullableInt32, clickCount int32, clickThroughRate utils.NullableFloat64, conversionCount int32, conversionRate utils.NullableFloat64, description string, index string, noResultCount utils.NullableInt32, purchaseCount int32, purchaseRate utils.NullableFloat64, searchCount utils.NullableInt32, trafficPercentage int32, userCount utils.NullableInt32, trackedUserCount utils.NullableInt32, opts ...VariantOption) *Variant { +func NewVariant(addToCartCount int32, addToCartRate utils.Nullable[float64], averageClickPosition utils.Nullable[int32], clickCount int32, clickThroughRate utils.Nullable[float64], conversionCount int32, conversionRate utils.Nullable[float64], description string, index string, noResultCount utils.Nullable[int32], purchaseCount int32, purchaseRate utils.Nullable[float64], searchCount utils.Nullable[int32], trafficPercentage int32, userCount utils.Nullable[int32], trackedUserCount utils.Nullable[int32], opts ...VariantOption) *Variant { this := &Variant{} this.AddToCartCount = addToCartCount this.AddToCartRate = addToCartRate @@ -754,39 +754,3 @@ func (o Variant) String() string { out += fmt.Sprintf(" trackedUserCount=%v\n", o.TrackedUserCount) return fmt.Sprintf("Variant {\n%s}", out) } - -type NullableVariant struct { - value *Variant - isSet bool -} - -func (v NullableVariant) Get() *Variant { - return v.value -} - -func (v *NullableVariant) Set(val *Variant) { - v.value = val - v.isSet = true -} - -func (v NullableVariant) IsSet() bool { - return v.isSet -} - -func (v *NullableVariant) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVariant(val *Variant) *NullableVariant { - return &NullableVariant{value: val, isSet: true} -} - -func (v NullableVariant) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableVariant) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_click_positions_inner.go b/clients/algoliasearch-client-go/algolia/analytics/model_click_positions_inner.go index 5746913b66..f4256a9cf5 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_click_positions_inner.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_click_positions_inner.go @@ -133,39 +133,3 @@ func (o ClickPositionsInner) String() string { out += fmt.Sprintf(" clickCount=%v\n", o.ClickCount) return fmt.Sprintf("ClickPositionsInner {\n%s}", out) } - -type NullableClickPositionsInner struct { - value *ClickPositionsInner - isSet bool -} - -func (v NullableClickPositionsInner) Get() *ClickPositionsInner { - return v.value -} - -func (v *NullableClickPositionsInner) Set(val *ClickPositionsInner) { - v.value = val - v.isSet = true -} - -func (v NullableClickPositionsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableClickPositionsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableClickPositionsInner(val *ClickPositionsInner) *NullableClickPositionsInner { - return &NullableClickPositionsInner{value: val, isSet: true} -} - -func (v NullableClickPositionsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableClickPositionsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_currencies_value.go b/clients/algoliasearch-client-go/algolia/analytics/model_currencies_value.go index 6da1d4fbdd..f6117d70dd 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_currencies_value.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_currencies_value.go @@ -133,39 +133,3 @@ func (o CurrenciesValue) String() string { out += fmt.Sprintf(" revenue=%v\n", o.Revenue) return fmt.Sprintf("CurrenciesValue {\n%s}", out) } - -type NullableCurrenciesValue struct { - value *CurrenciesValue - isSet bool -} - -func (v NullableCurrenciesValue) Get() *CurrenciesValue { - return v.value -} - -func (v *NullableCurrenciesValue) Set(val *CurrenciesValue) { - v.value = val - v.isSet = true -} - -func (v NullableCurrenciesValue) IsSet() bool { - return v.isSet -} - -func (v *NullableCurrenciesValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCurrenciesValue(val *CurrenciesValue) *NullableCurrenciesValue { - return &NullableCurrenciesValue{value: val, isSet: true} -} - -func (v NullableCurrenciesValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableCurrenciesValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_add_to_cart_rates.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_add_to_cart_rates.go index a199b05b6a..2367f01987 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_add_to_cart_rates.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_add_to_cart_rates.go @@ -11,7 +11,7 @@ import ( // DailyAddToCartRates struct for DailyAddToCartRates. type DailyAddToCartRates struct { // Add-to-cart rate, calculated as number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - Rate utils.NullableFloat64 `json:"rate"` + Rate utils.Nullable[float64] `json:"rate"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. TrackedSearchCount int32 `json:"trackedSearchCount"` // Number of add-to-cart events from this search. @@ -24,7 +24,7 @@ type DailyAddToCartRates struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewDailyAddToCartRates(rate utils.NullableFloat64, trackedSearchCount int32, addToCartCount int32, date string) *DailyAddToCartRates { +func NewDailyAddToCartRates(rate utils.Nullable[float64], trackedSearchCount int32, addToCartCount int32, date string) *DailyAddToCartRates { this := &DailyAddToCartRates{} this.Rate = rate this.TrackedSearchCount = trackedSearchCount @@ -170,39 +170,3 @@ func (o DailyAddToCartRates) String() string { out += fmt.Sprintf(" date=%v\n", o.Date) return fmt.Sprintf("DailyAddToCartRates {\n%s}", out) } - -type NullableDailyAddToCartRates struct { - value *DailyAddToCartRates - isSet bool -} - -func (v NullableDailyAddToCartRates) Get() *DailyAddToCartRates { - return v.value -} - -func (v *NullableDailyAddToCartRates) Set(val *DailyAddToCartRates) { - v.value = val - v.isSet = true -} - -func (v NullableDailyAddToCartRates) IsSet() bool { - return v.isSet -} - -func (v *NullableDailyAddToCartRates) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailyAddToCartRates(val *DailyAddToCartRates) *NullableDailyAddToCartRates { - return &NullableDailyAddToCartRates{value: val, isSet: true} -} - -func (v NullableDailyAddToCartRates) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailyAddToCartRates) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_average_clicks.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_average_clicks.go index 897f8bc6d3..603bff7b70 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_average_clicks.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_average_clicks.go @@ -11,7 +11,7 @@ import ( // DailyAverageClicks struct for DailyAverageClicks. type DailyAverageClicks struct { // Average position of a clicked search result in the list of search results. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - Average utils.NullableFloat64 `json:"average"` + Average utils.Nullable[float64] `json:"average"` // Number of clicks associated with this search. ClickCount int32 `json:"clickCount"` // Date in the format YYYY-MM-DD. @@ -22,7 +22,7 @@ type DailyAverageClicks struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewDailyAverageClicks(average utils.NullableFloat64, clickCount int32, date string) *DailyAverageClicks { +func NewDailyAverageClicks(average utils.Nullable[float64], clickCount int32, date string) *DailyAverageClicks { this := &DailyAverageClicks{} this.Average = average this.ClickCount = clickCount @@ -138,39 +138,3 @@ func (o DailyAverageClicks) String() string { out += fmt.Sprintf(" date=%v\n", o.Date) return fmt.Sprintf("DailyAverageClicks {\n%s}", out) } - -type NullableDailyAverageClicks struct { - value *DailyAverageClicks - isSet bool -} - -func (v NullableDailyAverageClicks) Get() *DailyAverageClicks { - return v.value -} - -func (v *NullableDailyAverageClicks) Set(val *DailyAverageClicks) { - v.value = val - v.isSet = true -} - -func (v NullableDailyAverageClicks) IsSet() bool { - return v.isSet -} - -func (v *NullableDailyAverageClicks) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailyAverageClicks(val *DailyAverageClicks) *NullableDailyAverageClicks { - return &NullableDailyAverageClicks{value: val, isSet: true} -} - -func (v NullableDailyAverageClicks) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailyAverageClicks) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_click_through_rates.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_click_through_rates.go index 4d35cbbaa8..bd86f10deb 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_click_through_rates.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_click_through_rates.go @@ -11,7 +11,7 @@ import ( // DailyClickThroughRates struct for DailyClickThroughRates. type DailyClickThroughRates struct { // Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - Rate utils.NullableFloat64 `json:"rate"` + Rate utils.Nullable[float64] `json:"rate"` // Number of clicks associated with this search. ClickCount int32 `json:"clickCount"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. @@ -24,7 +24,7 @@ type DailyClickThroughRates struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewDailyClickThroughRates(rate utils.NullableFloat64, clickCount int32, trackedSearchCount int32, date string) *DailyClickThroughRates { +func NewDailyClickThroughRates(rate utils.Nullable[float64], clickCount int32, trackedSearchCount int32, date string) *DailyClickThroughRates { this := &DailyClickThroughRates{} this.Rate = rate this.ClickCount = clickCount @@ -170,39 +170,3 @@ func (o DailyClickThroughRates) String() string { out += fmt.Sprintf(" date=%v\n", o.Date) return fmt.Sprintf("DailyClickThroughRates {\n%s}", out) } - -type NullableDailyClickThroughRates struct { - value *DailyClickThroughRates - isSet bool -} - -func (v NullableDailyClickThroughRates) Get() *DailyClickThroughRates { - return v.value -} - -func (v *NullableDailyClickThroughRates) Set(val *DailyClickThroughRates) { - v.value = val - v.isSet = true -} - -func (v NullableDailyClickThroughRates) IsSet() bool { - return v.isSet -} - -func (v *NullableDailyClickThroughRates) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailyClickThroughRates(val *DailyClickThroughRates) *NullableDailyClickThroughRates { - return &NullableDailyClickThroughRates{value: val, isSet: true} -} - -func (v NullableDailyClickThroughRates) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailyClickThroughRates) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_conversion_rates.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_conversion_rates.go index 53d6260dd5..81ec471c75 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_conversion_rates.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_conversion_rates.go @@ -11,7 +11,7 @@ import ( // DailyConversionRates struct for DailyConversionRates. type DailyConversionRates struct { // Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - Rate utils.NullableFloat64 `json:"rate"` + Rate utils.Nullable[float64] `json:"rate"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. TrackedSearchCount int32 `json:"trackedSearchCount"` // Number of conversions from this search. @@ -24,7 +24,7 @@ type DailyConversionRates struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewDailyConversionRates(rate utils.NullableFloat64, trackedSearchCount int32, conversionCount int32, date string) *DailyConversionRates { +func NewDailyConversionRates(rate utils.Nullable[float64], trackedSearchCount int32, conversionCount int32, date string) *DailyConversionRates { this := &DailyConversionRates{} this.Rate = rate this.TrackedSearchCount = trackedSearchCount @@ -170,39 +170,3 @@ func (o DailyConversionRates) String() string { out += fmt.Sprintf(" date=%v\n", o.Date) return fmt.Sprintf("DailyConversionRates {\n%s}", out) } - -type NullableDailyConversionRates struct { - value *DailyConversionRates - isSet bool -} - -func (v NullableDailyConversionRates) Get() *DailyConversionRates { - return v.value -} - -func (v *NullableDailyConversionRates) Set(val *DailyConversionRates) { - v.value = val - v.isSet = true -} - -func (v NullableDailyConversionRates) IsSet() bool { - return v.isSet -} - -func (v *NullableDailyConversionRates) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailyConversionRates(val *DailyConversionRates) *NullableDailyConversionRates { - return &NullableDailyConversionRates{value: val, isSet: true} -} - -func (v NullableDailyConversionRates) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailyConversionRates) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_no_click_rates.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_no_click_rates.go index 14db43823d..2cc636dbc1 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_no_click_rates.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_no_click_rates.go @@ -166,39 +166,3 @@ func (o DailyNoClickRates) String() string { out += fmt.Sprintf(" date=%v\n", o.Date) return fmt.Sprintf("DailyNoClickRates {\n%s}", out) } - -type NullableDailyNoClickRates struct { - value *DailyNoClickRates - isSet bool -} - -func (v NullableDailyNoClickRates) Get() *DailyNoClickRates { - return v.value -} - -func (v *NullableDailyNoClickRates) Set(val *DailyNoClickRates) { - v.value = val - v.isSet = true -} - -func (v NullableDailyNoClickRates) IsSet() bool { - return v.isSet -} - -func (v *NullableDailyNoClickRates) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailyNoClickRates(val *DailyNoClickRates) *NullableDailyNoClickRates { - return &NullableDailyNoClickRates{value: val, isSet: true} -} - -func (v NullableDailyNoClickRates) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailyNoClickRates) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_no_results_rates.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_no_results_rates.go index bdfcca4f93..f4c3407726 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_no_results_rates.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_no_results_rates.go @@ -166,39 +166,3 @@ func (o DailyNoResultsRates) String() string { out += fmt.Sprintf(" rate=%v\n", o.Rate) return fmt.Sprintf("DailyNoResultsRates {\n%s}", out) } - -type NullableDailyNoResultsRates struct { - value *DailyNoResultsRates - isSet bool -} - -func (v NullableDailyNoResultsRates) Get() *DailyNoResultsRates { - return v.value -} - -func (v *NullableDailyNoResultsRates) Set(val *DailyNoResultsRates) { - v.value = val - v.isSet = true -} - -func (v NullableDailyNoResultsRates) IsSet() bool { - return v.isSet -} - -func (v *NullableDailyNoResultsRates) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailyNoResultsRates(val *DailyNoResultsRates) *NullableDailyNoResultsRates { - return &NullableDailyNoResultsRates{value: val, isSet: true} -} - -func (v NullableDailyNoResultsRates) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailyNoResultsRates) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_purchase_rates.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_purchase_rates.go index 2253da1492..03b8a97f24 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_purchase_rates.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_purchase_rates.go @@ -11,7 +11,7 @@ import ( // DailyPurchaseRates struct for DailyPurchaseRates. type DailyPurchaseRates struct { // Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - Rate utils.NullableFloat64 `json:"rate"` + Rate utils.Nullable[float64] `json:"rate"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. TrackedSearchCount int32 `json:"trackedSearchCount"` // Number of purchase events from this search. @@ -24,7 +24,7 @@ type DailyPurchaseRates struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewDailyPurchaseRates(rate utils.NullableFloat64, trackedSearchCount int32, purchaseCount int32, date string) *DailyPurchaseRates { +func NewDailyPurchaseRates(rate utils.Nullable[float64], trackedSearchCount int32, purchaseCount int32, date string) *DailyPurchaseRates { this := &DailyPurchaseRates{} this.Rate = rate this.TrackedSearchCount = trackedSearchCount @@ -170,39 +170,3 @@ func (o DailyPurchaseRates) String() string { out += fmt.Sprintf(" date=%v\n", o.Date) return fmt.Sprintf("DailyPurchaseRates {\n%s}", out) } - -type NullableDailyPurchaseRates struct { - value *DailyPurchaseRates - isSet bool -} - -func (v NullableDailyPurchaseRates) Get() *DailyPurchaseRates { - return v.value -} - -func (v *NullableDailyPurchaseRates) Set(val *DailyPurchaseRates) { - v.value = val - v.isSet = true -} - -func (v NullableDailyPurchaseRates) IsSet() bool { - return v.isSet -} - -func (v *NullableDailyPurchaseRates) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailyPurchaseRates(val *DailyPurchaseRates) *NullableDailyPurchaseRates { - return &NullableDailyPurchaseRates{value: val, isSet: true} -} - -func (v NullableDailyPurchaseRates) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailyPurchaseRates) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_revenue.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_revenue.go index 0e312c8057..27198eb851 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_revenue.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_revenue.go @@ -102,39 +102,3 @@ func (o DailyRevenue) String() string { out += fmt.Sprintf(" date=%v\n", o.Date) return fmt.Sprintf("DailyRevenue {\n%s}", out) } - -type NullableDailyRevenue struct { - value *DailyRevenue - isSet bool -} - -func (v NullableDailyRevenue) Get() *DailyRevenue { - return v.value -} - -func (v *NullableDailyRevenue) Set(val *DailyRevenue) { - v.value = val - v.isSet = true -} - -func (v NullableDailyRevenue) IsSet() bool { - return v.isSet -} - -func (v *NullableDailyRevenue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailyRevenue(val *DailyRevenue) *NullableDailyRevenue { - return &NullableDailyRevenue{value: val, isSet: true} -} - -func (v NullableDailyRevenue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailyRevenue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches.go index 58dbcfcccc..89337bb774 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches.go @@ -102,39 +102,3 @@ func (o DailySearches) String() string { out += fmt.Sprintf(" count=%v\n", o.Count) return fmt.Sprintf("DailySearches {\n%s}", out) } - -type NullableDailySearches struct { - value *DailySearches - isSet bool -} - -func (v NullableDailySearches) Get() *DailySearches { - return v.value -} - -func (v *NullableDailySearches) Set(val *DailySearches) { - v.value = val - v.isSet = true -} - -func (v NullableDailySearches) IsSet() bool { - return v.isSet -} - -func (v *NullableDailySearches) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailySearches(val *DailySearches) *NullableDailySearches { - return &NullableDailySearches{value: val, isSet: true} -} - -func (v NullableDailySearches) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailySearches) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches_no_clicks.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches_no_clicks.go index d5874e9fd8..90ea871324 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches_no_clicks.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches_no_clicks.go @@ -134,39 +134,3 @@ func (o DailySearchesNoClicks) String() string { out += fmt.Sprintf(" nbHits=%v\n", o.NbHits) return fmt.Sprintf("DailySearchesNoClicks {\n%s}", out) } - -type NullableDailySearchesNoClicks struct { - value *DailySearchesNoClicks - isSet bool -} - -func (v NullableDailySearchesNoClicks) Get() *DailySearchesNoClicks { - return v.value -} - -func (v *NullableDailySearchesNoClicks) Set(val *DailySearchesNoClicks) { - v.value = val - v.isSet = true -} - -func (v NullableDailySearchesNoClicks) IsSet() bool { - return v.isSet -} - -func (v *NullableDailySearchesNoClicks) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailySearchesNoClicks(val *DailySearchesNoClicks) *NullableDailySearchesNoClicks { - return &NullableDailySearchesNoClicks{value: val, isSet: true} -} - -func (v NullableDailySearchesNoClicks) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailySearchesNoClicks) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches_no_results.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches_no_results.go index 28bd083124..2560caee13 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches_no_results.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_searches_no_results.go @@ -134,39 +134,3 @@ func (o DailySearchesNoResults) String() string { out += fmt.Sprintf(" withFilterCount=%v\n", o.WithFilterCount) return fmt.Sprintf("DailySearchesNoResults {\n%s}", out) } - -type NullableDailySearchesNoResults struct { - value *DailySearchesNoResults - isSet bool -} - -func (v NullableDailySearchesNoResults) Get() *DailySearchesNoResults { - return v.value -} - -func (v *NullableDailySearchesNoResults) Set(val *DailySearchesNoResults) { - v.value = val - v.isSet = true -} - -func (v NullableDailySearchesNoResults) IsSet() bool { - return v.isSet -} - -func (v *NullableDailySearchesNoResults) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailySearchesNoResults(val *DailySearchesNoResults) *NullableDailySearchesNoResults { - return &NullableDailySearchesNoResults{value: val, isSet: true} -} - -func (v NullableDailySearchesNoResults) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailySearchesNoResults) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_daily_users.go b/clients/algoliasearch-client-go/algolia/analytics/model_daily_users.go index af3c3ac83d..e22e861994 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_daily_users.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_daily_users.go @@ -102,39 +102,3 @@ func (o DailyUsers) String() string { out += fmt.Sprintf(" count=%v\n", o.Count) return fmt.Sprintf("DailyUsers {\n%s}", out) } - -type NullableDailyUsers struct { - value *DailyUsers - isSet bool -} - -func (v NullableDailyUsers) Get() *DailyUsers { - return v.value -} - -func (v *NullableDailyUsers) Set(val *DailyUsers) { - v.value = val - v.isSet = true -} - -func (v NullableDailyUsers) IsSet() bool { - return v.isSet -} - -func (v *NullableDailyUsers) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDailyUsers(val *DailyUsers) *NullableDailyUsers { - return &NullableDailyUsers{value: val, isSet: true} -} - -func (v NullableDailyUsers) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDailyUsers) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_direction.go b/clients/algoliasearch-client-go/algolia/analytics/model_direction.go index 24bd470716..d076f85324 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_direction.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_direction.go @@ -63,39 +63,3 @@ func (v Direction) IsValid() bool { func (v Direction) Ptr() *Direction { return &v } - -type NullableDirection struct { - value *Direction - isSet bool -} - -func (v NullableDirection) Get() *Direction { - return v.value -} - -func (v *NullableDirection) Set(val *Direction) { - v.value = val - v.isSet = true -} - -func (v NullableDirection) IsSet() bool { - return v.isSet -} - -func (v *NullableDirection) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDirection(val *Direction) *NullableDirection { - return &NullableDirection{value: val, isSet: true} -} - -func (v NullableDirection) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDirection) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_error_base.go b/clients/algoliasearch-client-go/algolia/analytics/model_error_base.go index 06fe9e2f00..0986dedd72 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_error_base.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_error_base.go @@ -131,39 +131,3 @@ func (o ErrorBase) String() string { } return fmt.Sprintf("ErrorBase {\n%s}", out) } - -type NullableErrorBase struct { - value *ErrorBase - isSet bool -} - -func (v NullableErrorBase) Get() *ErrorBase { - return v.value -} - -func (v *NullableErrorBase) Set(val *ErrorBase) { - v.value = val - v.isSet = true -} - -func (v NullableErrorBase) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorBase) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorBase(val *ErrorBase) *NullableErrorBase { - return &NullableErrorBase{value: val, isSet: true} -} - -func (v NullableErrorBase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableErrorBase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_add_to_cart_rate_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_add_to_cart_rate_response.go index dad85bc3a7..4f39d9e86e 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_add_to_cart_rate_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_add_to_cart_rate_response.go @@ -11,7 +11,7 @@ import ( // GetAddToCartRateResponse struct for GetAddToCartRateResponse. type GetAddToCartRateResponse struct { // Add-to-cart rate, calculated as number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - Rate utils.NullableFloat64 `json:"rate"` + Rate utils.Nullable[float64] `json:"rate"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. TrackedSearchCount int32 `json:"trackedSearchCount"` // Number of add-to-cart events from this search. @@ -24,7 +24,7 @@ type GetAddToCartRateResponse struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewGetAddToCartRateResponse(rate utils.NullableFloat64, trackedSearchCount int32, addToCartCount int32, dates []DailyAddToCartRates) *GetAddToCartRateResponse { +func NewGetAddToCartRateResponse(rate utils.Nullable[float64], trackedSearchCount int32, addToCartCount int32, dates []DailyAddToCartRates) *GetAddToCartRateResponse { this := &GetAddToCartRateResponse{} this.Rate = rate this.TrackedSearchCount = trackedSearchCount @@ -170,39 +170,3 @@ func (o GetAddToCartRateResponse) String() string { out += fmt.Sprintf(" dates=%v\n", o.Dates) return fmt.Sprintf("GetAddToCartRateResponse {\n%s}", out) } - -type NullableGetAddToCartRateResponse struct { - value *GetAddToCartRateResponse - isSet bool -} - -func (v NullableGetAddToCartRateResponse) Get() *GetAddToCartRateResponse { - return v.value -} - -func (v *NullableGetAddToCartRateResponse) Set(val *GetAddToCartRateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetAddToCartRateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetAddToCartRateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetAddToCartRateResponse(val *GetAddToCartRateResponse) *NullableGetAddToCartRateResponse { - return &NullableGetAddToCartRateResponse{value: val, isSet: true} -} - -func (v NullableGetAddToCartRateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetAddToCartRateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_average_click_position_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_average_click_position_response.go index 0adea2e48b..8068cd7841 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_average_click_position_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_average_click_position_response.go @@ -11,7 +11,7 @@ import ( // GetAverageClickPositionResponse struct for GetAverageClickPositionResponse. type GetAverageClickPositionResponse struct { // Average position of a clicked search result in the list of search results. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - Average utils.NullableFloat64 `json:"average"` + Average utils.Nullable[float64] `json:"average"` // Number of clicks associated with this search. ClickCount int32 `json:"clickCount"` // Daily average click positions. @@ -22,7 +22,7 @@ type GetAverageClickPositionResponse struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewGetAverageClickPositionResponse(average utils.NullableFloat64, clickCount int32, dates []DailyAverageClicks) *GetAverageClickPositionResponse { +func NewGetAverageClickPositionResponse(average utils.Nullable[float64], clickCount int32, dates []DailyAverageClicks) *GetAverageClickPositionResponse { this := &GetAverageClickPositionResponse{} this.Average = average this.ClickCount = clickCount @@ -138,39 +138,3 @@ func (o GetAverageClickPositionResponse) String() string { out += fmt.Sprintf(" dates=%v\n", o.Dates) return fmt.Sprintf("GetAverageClickPositionResponse {\n%s}", out) } - -type NullableGetAverageClickPositionResponse struct { - value *GetAverageClickPositionResponse - isSet bool -} - -func (v NullableGetAverageClickPositionResponse) Get() *GetAverageClickPositionResponse { - return v.value -} - -func (v *NullableGetAverageClickPositionResponse) Set(val *GetAverageClickPositionResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetAverageClickPositionResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetAverageClickPositionResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetAverageClickPositionResponse(val *GetAverageClickPositionResponse) *NullableGetAverageClickPositionResponse { - return &NullableGetAverageClickPositionResponse{value: val, isSet: true} -} - -func (v NullableGetAverageClickPositionResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetAverageClickPositionResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_click_positions_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_click_positions_response.go index e9949cdc64..638a8c2143 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_click_positions_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_click_positions_response.go @@ -70,39 +70,3 @@ func (o GetClickPositionsResponse) String() string { out += fmt.Sprintf(" positions=%v\n", o.Positions) return fmt.Sprintf("GetClickPositionsResponse {\n%s}", out) } - -type NullableGetClickPositionsResponse struct { - value *GetClickPositionsResponse - isSet bool -} - -func (v NullableGetClickPositionsResponse) Get() *GetClickPositionsResponse { - return v.value -} - -func (v *NullableGetClickPositionsResponse) Set(val *GetClickPositionsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetClickPositionsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetClickPositionsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetClickPositionsResponse(val *GetClickPositionsResponse) *NullableGetClickPositionsResponse { - return &NullableGetClickPositionsResponse{value: val, isSet: true} -} - -func (v NullableGetClickPositionsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetClickPositionsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_click_through_rate_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_click_through_rate_response.go index 3c5d5e6040..7dbea69067 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_click_through_rate_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_click_through_rate_response.go @@ -11,7 +11,7 @@ import ( // GetClickThroughRateResponse struct for GetClickThroughRateResponse. type GetClickThroughRateResponse struct { // Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - Rate utils.NullableFloat64 `json:"rate"` + Rate utils.Nullable[float64] `json:"rate"` // Number of clicks associated with this search. ClickCount int32 `json:"clickCount"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. @@ -24,7 +24,7 @@ type GetClickThroughRateResponse struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewGetClickThroughRateResponse(rate utils.NullableFloat64, clickCount int32, trackedSearchCount int32, dates []DailyClickThroughRates) *GetClickThroughRateResponse { +func NewGetClickThroughRateResponse(rate utils.Nullable[float64], clickCount int32, trackedSearchCount int32, dates []DailyClickThroughRates) *GetClickThroughRateResponse { this := &GetClickThroughRateResponse{} this.Rate = rate this.ClickCount = clickCount @@ -170,39 +170,3 @@ func (o GetClickThroughRateResponse) String() string { out += fmt.Sprintf(" dates=%v\n", o.Dates) return fmt.Sprintf("GetClickThroughRateResponse {\n%s}", out) } - -type NullableGetClickThroughRateResponse struct { - value *GetClickThroughRateResponse - isSet bool -} - -func (v NullableGetClickThroughRateResponse) Get() *GetClickThroughRateResponse { - return v.value -} - -func (v *NullableGetClickThroughRateResponse) Set(val *GetClickThroughRateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetClickThroughRateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetClickThroughRateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetClickThroughRateResponse(val *GetClickThroughRateResponse) *NullableGetClickThroughRateResponse { - return &NullableGetClickThroughRateResponse{value: val, isSet: true} -} - -func (v NullableGetClickThroughRateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetClickThroughRateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_conversion_rate_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_conversion_rate_response.go index 00666294ca..5e021ebd1c 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_conversion_rate_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_conversion_rate_response.go @@ -11,7 +11,7 @@ import ( // GetConversionRateResponse struct for GetConversionRateResponse. type GetConversionRateResponse struct { // Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - Rate utils.NullableFloat64 `json:"rate"` + Rate utils.Nullable[float64] `json:"rate"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. TrackedSearchCount int32 `json:"trackedSearchCount"` // Number of conversions from this search. @@ -24,7 +24,7 @@ type GetConversionRateResponse struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewGetConversionRateResponse(rate utils.NullableFloat64, trackedSearchCount int32, conversionCount int32, dates []DailyConversionRates) *GetConversionRateResponse { +func NewGetConversionRateResponse(rate utils.Nullable[float64], trackedSearchCount int32, conversionCount int32, dates []DailyConversionRates) *GetConversionRateResponse { this := &GetConversionRateResponse{} this.Rate = rate this.TrackedSearchCount = trackedSearchCount @@ -170,39 +170,3 @@ func (o GetConversionRateResponse) String() string { out += fmt.Sprintf(" dates=%v\n", o.Dates) return fmt.Sprintf("GetConversionRateResponse {\n%s}", out) } - -type NullableGetConversionRateResponse struct { - value *GetConversionRateResponse - isSet bool -} - -func (v NullableGetConversionRateResponse) Get() *GetConversionRateResponse { - return v.value -} - -func (v *NullableGetConversionRateResponse) Set(val *GetConversionRateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetConversionRateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetConversionRateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetConversionRateResponse(val *GetConversionRateResponse) *NullableGetConversionRateResponse { - return &NullableGetConversionRateResponse{value: val, isSet: true} -} - -func (v NullableGetConversionRateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetConversionRateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_no_click_rate_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_no_click_rate_response.go index dba58d57de..ff6205a7df 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_no_click_rate_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_no_click_rate_response.go @@ -166,39 +166,3 @@ func (o GetNoClickRateResponse) String() string { out += fmt.Sprintf(" dates=%v\n", o.Dates) return fmt.Sprintf("GetNoClickRateResponse {\n%s}", out) } - -type NullableGetNoClickRateResponse struct { - value *GetNoClickRateResponse - isSet bool -} - -func (v NullableGetNoClickRateResponse) Get() *GetNoClickRateResponse { - return v.value -} - -func (v *NullableGetNoClickRateResponse) Set(val *GetNoClickRateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetNoClickRateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetNoClickRateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetNoClickRateResponse(val *GetNoClickRateResponse) *NullableGetNoClickRateResponse { - return &NullableGetNoClickRateResponse{value: val, isSet: true} -} - -func (v NullableGetNoClickRateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetNoClickRateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_no_results_rate_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_no_results_rate_response.go index b508b74af8..3985956f3b 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_no_results_rate_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_no_results_rate_response.go @@ -166,39 +166,3 @@ func (o GetNoResultsRateResponse) String() string { out += fmt.Sprintf(" dates=%v\n", o.Dates) return fmt.Sprintf("GetNoResultsRateResponse {\n%s}", out) } - -type NullableGetNoResultsRateResponse struct { - value *GetNoResultsRateResponse - isSet bool -} - -func (v NullableGetNoResultsRateResponse) Get() *GetNoResultsRateResponse { - return v.value -} - -func (v *NullableGetNoResultsRateResponse) Set(val *GetNoResultsRateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetNoResultsRateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetNoResultsRateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetNoResultsRateResponse(val *GetNoResultsRateResponse) *NullableGetNoResultsRateResponse { - return &NullableGetNoResultsRateResponse{value: val, isSet: true} -} - -func (v NullableGetNoResultsRateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetNoResultsRateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_purchase_rate_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_purchase_rate_response.go index a732627413..8c703226f6 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_purchase_rate_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_purchase_rate_response.go @@ -11,7 +11,7 @@ import ( // GetPurchaseRateResponse struct for GetPurchaseRateResponse. type GetPurchaseRateResponse struct { // Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - Rate utils.NullableFloat64 `json:"rate"` + Rate utils.Nullable[float64] `json:"rate"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. TrackedSearchCount int32 `json:"trackedSearchCount"` // Number of purchase events from this search. @@ -24,7 +24,7 @@ type GetPurchaseRateResponse struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewGetPurchaseRateResponse(rate utils.NullableFloat64, trackedSearchCount int32, purchaseCount int32, dates []DailyPurchaseRates) *GetPurchaseRateResponse { +func NewGetPurchaseRateResponse(rate utils.Nullable[float64], trackedSearchCount int32, purchaseCount int32, dates []DailyPurchaseRates) *GetPurchaseRateResponse { this := &GetPurchaseRateResponse{} this.Rate = rate this.TrackedSearchCount = trackedSearchCount @@ -170,39 +170,3 @@ func (o GetPurchaseRateResponse) String() string { out += fmt.Sprintf(" dates=%v\n", o.Dates) return fmt.Sprintf("GetPurchaseRateResponse {\n%s}", out) } - -type NullableGetPurchaseRateResponse struct { - value *GetPurchaseRateResponse - isSet bool -} - -func (v NullableGetPurchaseRateResponse) Get() *GetPurchaseRateResponse { - return v.value -} - -func (v *NullableGetPurchaseRateResponse) Set(val *GetPurchaseRateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetPurchaseRateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetPurchaseRateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetPurchaseRateResponse(val *GetPurchaseRateResponse) *NullableGetPurchaseRateResponse { - return &NullableGetPurchaseRateResponse{value: val, isSet: true} -} - -func (v NullableGetPurchaseRateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetPurchaseRateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_revenue.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_revenue.go index 9e3b6f6dfa..b514f500aa 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_revenue.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_revenue.go @@ -102,39 +102,3 @@ func (o GetRevenue) String() string { out += fmt.Sprintf(" dates=%v\n", o.Dates) return fmt.Sprintf("GetRevenue {\n%s}", out) } - -type NullableGetRevenue struct { - value *GetRevenue - isSet bool -} - -func (v NullableGetRevenue) Get() *GetRevenue { - return v.value -} - -func (v *NullableGetRevenue) Set(val *GetRevenue) { - v.value = val - v.isSet = true -} - -func (v NullableGetRevenue) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRevenue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRevenue(val *GetRevenue) *NullableGetRevenue { - return &NullableGetRevenue{value: val, isSet: true} -} - -func (v NullableGetRevenue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetRevenue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_count_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_count_response.go index 7840881895..cb2b0ca49b 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_count_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_count_response.go @@ -102,39 +102,3 @@ func (o GetSearchesCountResponse) String() string { out += fmt.Sprintf(" dates=%v\n", o.Dates) return fmt.Sprintf("GetSearchesCountResponse {\n%s}", out) } - -type NullableGetSearchesCountResponse struct { - value *GetSearchesCountResponse - isSet bool -} - -func (v NullableGetSearchesCountResponse) Get() *GetSearchesCountResponse { - return v.value -} - -func (v *NullableGetSearchesCountResponse) Set(val *GetSearchesCountResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetSearchesCountResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetSearchesCountResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetSearchesCountResponse(val *GetSearchesCountResponse) *NullableGetSearchesCountResponse { - return &NullableGetSearchesCountResponse{value: val, isSet: true} -} - -func (v NullableGetSearchesCountResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetSearchesCountResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_no_clicks_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_no_clicks_response.go index 227a2bbcc7..f40c485b6f 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_no_clicks_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_no_clicks_response.go @@ -70,39 +70,3 @@ func (o GetSearchesNoClicksResponse) String() string { out += fmt.Sprintf(" searches=%v\n", o.Searches) return fmt.Sprintf("GetSearchesNoClicksResponse {\n%s}", out) } - -type NullableGetSearchesNoClicksResponse struct { - value *GetSearchesNoClicksResponse - isSet bool -} - -func (v NullableGetSearchesNoClicksResponse) Get() *GetSearchesNoClicksResponse { - return v.value -} - -func (v *NullableGetSearchesNoClicksResponse) Set(val *GetSearchesNoClicksResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetSearchesNoClicksResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetSearchesNoClicksResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetSearchesNoClicksResponse(val *GetSearchesNoClicksResponse) *NullableGetSearchesNoClicksResponse { - return &NullableGetSearchesNoClicksResponse{value: val, isSet: true} -} - -func (v NullableGetSearchesNoClicksResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetSearchesNoClicksResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_no_results_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_no_results_response.go index 8bb076af7d..2530aa66b8 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_no_results_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_searches_no_results_response.go @@ -70,39 +70,3 @@ func (o GetSearchesNoResultsResponse) String() string { out += fmt.Sprintf(" searches=%v\n", o.Searches) return fmt.Sprintf("GetSearchesNoResultsResponse {\n%s}", out) } - -type NullableGetSearchesNoResultsResponse struct { - value *GetSearchesNoResultsResponse - isSet bool -} - -func (v NullableGetSearchesNoResultsResponse) Get() *GetSearchesNoResultsResponse { - return v.value -} - -func (v *NullableGetSearchesNoResultsResponse) Set(val *GetSearchesNoResultsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetSearchesNoResultsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetSearchesNoResultsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetSearchesNoResultsResponse(val *GetSearchesNoResultsResponse) *NullableGetSearchesNoResultsResponse { - return &NullableGetSearchesNoResultsResponse{value: val, isSet: true} -} - -func (v NullableGetSearchesNoResultsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetSearchesNoResultsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_status_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_status_response.go index 418677fc31..c018b64ec2 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_status_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_status_response.go @@ -11,14 +11,14 @@ import ( // GetStatusResponse struct for GetStatusResponse. type GetStatusResponse struct { // Date and time when the object was updated, in RFC 3339 format. - UpdatedAt utils.NullableString `json:"updatedAt"` + UpdatedAt utils.Nullable[string] `json:"updatedAt"` } // NewGetStatusResponse instantiates a new GetStatusResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewGetStatusResponse(updatedAt utils.NullableString) *GetStatusResponse { +func NewGetStatusResponse(updatedAt utils.Nullable[string]) *GetStatusResponse { this := &GetStatusResponse{} this.UpdatedAt = updatedAt return this @@ -74,39 +74,3 @@ func (o GetStatusResponse) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("GetStatusResponse {\n%s}", out) } - -type NullableGetStatusResponse struct { - value *GetStatusResponse - isSet bool -} - -func (v NullableGetStatusResponse) Get() *GetStatusResponse { - return v.value -} - -func (v *NullableGetStatusResponse) Set(val *GetStatusResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetStatusResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetStatusResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetStatusResponse(val *GetStatusResponse) *NullableGetStatusResponse { - return &NullableGetStatusResponse{value: val, isSet: true} -} - -func (v NullableGetStatusResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetStatusResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_countries_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_countries_response.go index 7ca60997c0..fe7fe23033 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_countries_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_countries_response.go @@ -70,39 +70,3 @@ func (o GetTopCountriesResponse) String() string { out += fmt.Sprintf(" countries=%v\n", o.Countries) return fmt.Sprintf("GetTopCountriesResponse {\n%s}", out) } - -type NullableGetTopCountriesResponse struct { - value *GetTopCountriesResponse - isSet bool -} - -func (v NullableGetTopCountriesResponse) Get() *GetTopCountriesResponse { - return v.value -} - -func (v *NullableGetTopCountriesResponse) Set(val *GetTopCountriesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetTopCountriesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTopCountriesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTopCountriesResponse(val *GetTopCountriesResponse) *NullableGetTopCountriesResponse { - return &NullableGetTopCountriesResponse{value: val, isSet: true} -} - -func (v NullableGetTopCountriesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTopCountriesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_attribute.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_attribute.go index aa7f5ebcd6..c49bbd5491 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_attribute.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_attribute.go @@ -102,39 +102,3 @@ func (o GetTopFilterAttribute) String() string { out += fmt.Sprintf(" count=%v\n", o.Count) return fmt.Sprintf("GetTopFilterAttribute {\n%s}", out) } - -type NullableGetTopFilterAttribute struct { - value *GetTopFilterAttribute - isSet bool -} - -func (v NullableGetTopFilterAttribute) Get() *GetTopFilterAttribute { - return v.value -} - -func (v *NullableGetTopFilterAttribute) Set(val *GetTopFilterAttribute) { - v.value = val - v.isSet = true -} - -func (v NullableGetTopFilterAttribute) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTopFilterAttribute) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTopFilterAttribute(val *GetTopFilterAttribute) *NullableGetTopFilterAttribute { - return &NullableGetTopFilterAttribute{value: val, isSet: true} -} - -func (v NullableGetTopFilterAttribute) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTopFilterAttribute) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_attributes_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_attributes_response.go index 0300f4070a..cd1d42f23e 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_attributes_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_attributes_response.go @@ -70,39 +70,3 @@ func (o GetTopFilterAttributesResponse) String() string { out += fmt.Sprintf(" attributes=%v\n", o.Attributes) return fmt.Sprintf("GetTopFilterAttributesResponse {\n%s}", out) } - -type NullableGetTopFilterAttributesResponse struct { - value *GetTopFilterAttributesResponse - isSet bool -} - -func (v NullableGetTopFilterAttributesResponse) Get() *GetTopFilterAttributesResponse { - return v.value -} - -func (v *NullableGetTopFilterAttributesResponse) Set(val *GetTopFilterAttributesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetTopFilterAttributesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTopFilterAttributesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTopFilterAttributesResponse(val *GetTopFilterAttributesResponse) *NullableGetTopFilterAttributesResponse { - return &NullableGetTopFilterAttributesResponse{value: val, isSet: true} -} - -func (v NullableGetTopFilterAttributesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTopFilterAttributesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_for_attribute.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_for_attribute.go index d5da4463cd..ae15871343 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_for_attribute.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_for_attribute.go @@ -165,39 +165,3 @@ func (o GetTopFilterForAttribute) String() string { out += fmt.Sprintf(" count=%v\n", o.Count) return fmt.Sprintf("GetTopFilterForAttribute {\n%s}", out) } - -type NullableGetTopFilterForAttribute struct { - value *GetTopFilterForAttribute - isSet bool -} - -func (v NullableGetTopFilterForAttribute) Get() *GetTopFilterForAttribute { - return v.value -} - -func (v *NullableGetTopFilterForAttribute) Set(val *GetTopFilterForAttribute) { - v.value = val - v.isSet = true -} - -func (v NullableGetTopFilterForAttribute) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTopFilterForAttribute) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTopFilterForAttribute(val *GetTopFilterForAttribute) *NullableGetTopFilterForAttribute { - return &NullableGetTopFilterForAttribute{value: val, isSet: true} -} - -func (v NullableGetTopFilterForAttribute) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTopFilterForAttribute) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_for_attribute_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_for_attribute_response.go index abe02a5c1b..67466d4c86 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_for_attribute_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filter_for_attribute_response.go @@ -70,39 +70,3 @@ func (o GetTopFilterForAttributeResponse) String() string { out += fmt.Sprintf(" values=%v\n", o.Values) return fmt.Sprintf("GetTopFilterForAttributeResponse {\n%s}", out) } - -type NullableGetTopFilterForAttributeResponse struct { - value *GetTopFilterForAttributeResponse - isSet bool -} - -func (v NullableGetTopFilterForAttributeResponse) Get() *GetTopFilterForAttributeResponse { - return v.value -} - -func (v *NullableGetTopFilterForAttributeResponse) Set(val *GetTopFilterForAttributeResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetTopFilterForAttributeResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTopFilterForAttributeResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTopFilterForAttributeResponse(val *GetTopFilterForAttributeResponse) *NullableGetTopFilterForAttributeResponse { - return &NullableGetTopFilterForAttributeResponse{value: val, isSet: true} -} - -func (v NullableGetTopFilterForAttributeResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTopFilterForAttributeResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_response.go index 9dd90d839c..f418d44ad2 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_response.go @@ -72,39 +72,3 @@ func (o GetTopFiltersNoResultsResponse) String() string { out += fmt.Sprintf(" values=%v\n", o.Values) return fmt.Sprintf("GetTopFiltersNoResultsResponse {\n%s}", out) } - -type NullableGetTopFiltersNoResultsResponse struct { - value *GetTopFiltersNoResultsResponse - isSet bool -} - -func (v NullableGetTopFiltersNoResultsResponse) Get() *GetTopFiltersNoResultsResponse { - return v.value -} - -func (v *NullableGetTopFiltersNoResultsResponse) Set(val *GetTopFiltersNoResultsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetTopFiltersNoResultsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTopFiltersNoResultsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTopFiltersNoResultsResponse(val *GetTopFiltersNoResultsResponse) *NullableGetTopFiltersNoResultsResponse { - return &NullableGetTopFiltersNoResultsResponse{value: val, isSet: true} -} - -func (v NullableGetTopFiltersNoResultsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTopFiltersNoResultsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_value.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_value.go index f2c1f35968..850e7ebba2 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_value.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_value.go @@ -133,39 +133,3 @@ func (o GetTopFiltersNoResultsValue) String() string { out += fmt.Sprintf(" value=%v\n", o.Value) return fmt.Sprintf("GetTopFiltersNoResultsValue {\n%s}", out) } - -type NullableGetTopFiltersNoResultsValue struct { - value *GetTopFiltersNoResultsValue - isSet bool -} - -func (v NullableGetTopFiltersNoResultsValue) Get() *GetTopFiltersNoResultsValue { - return v.value -} - -func (v *NullableGetTopFiltersNoResultsValue) Set(val *GetTopFiltersNoResultsValue) { - v.value = val - v.isSet = true -} - -func (v NullableGetTopFiltersNoResultsValue) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTopFiltersNoResultsValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTopFiltersNoResultsValue(val *GetTopFiltersNoResultsValue) *NullableGetTopFiltersNoResultsValue { - return &NullableGetTopFiltersNoResultsValue{value: val, isSet: true} -} - -func (v NullableGetTopFiltersNoResultsValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTopFiltersNoResultsValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_values.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_values.go index d4b91b768e..388d97ff70 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_values.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_filters_no_results_values.go @@ -102,39 +102,3 @@ func (o GetTopFiltersNoResultsValues) String() string { out += fmt.Sprintf(" values=%v\n", o.Values) return fmt.Sprintf("GetTopFiltersNoResultsValues {\n%s}", out) } - -type NullableGetTopFiltersNoResultsValues struct { - value *GetTopFiltersNoResultsValues - isSet bool -} - -func (v NullableGetTopFiltersNoResultsValues) Get() *GetTopFiltersNoResultsValues { - return v.value -} - -func (v *NullableGetTopFiltersNoResultsValues) Set(val *GetTopFiltersNoResultsValues) { - v.value = val - v.isSet = true -} - -func (v NullableGetTopFiltersNoResultsValues) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTopFiltersNoResultsValues) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTopFiltersNoResultsValues(val *GetTopFiltersNoResultsValues) *NullableGetTopFiltersNoResultsValues { - return &NullableGetTopFiltersNoResultsValues{value: val, isSet: true} -} - -func (v NullableGetTopFiltersNoResultsValues) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTopFiltersNoResultsValues) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_hits_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_hits_response.go index 9d80192da7..bbcf2dce54 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_hits_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_hits_response.go @@ -128,39 +128,3 @@ func (obj GetTopHitsResponse) GetActualInstance() any { // all schemas are nil return nil } - -type NullableGetTopHitsResponse struct { - value *GetTopHitsResponse - isSet bool -} - -func (v NullableGetTopHitsResponse) Get() *GetTopHitsResponse { - return v.value -} - -func (v *NullableGetTopHitsResponse) Set(val *GetTopHitsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetTopHitsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTopHitsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTopHitsResponse(val *GetTopHitsResponse) *NullableGetTopHitsResponse { - return &NullableGetTopHitsResponse{value: val, isSet: true} -} - -func (v NullableGetTopHitsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTopHitsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_searches_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_searches_response.go index ca0347143f..273b5508a4 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_top_searches_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_top_searches_response.go @@ -128,39 +128,3 @@ func (obj GetTopSearchesResponse) GetActualInstance() any { // all schemas are nil return nil } - -type NullableGetTopSearchesResponse struct { - value *GetTopSearchesResponse - isSet bool -} - -func (v NullableGetTopSearchesResponse) Get() *GetTopSearchesResponse { - return v.value -} - -func (v *NullableGetTopSearchesResponse) Set(val *GetTopSearchesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetTopSearchesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTopSearchesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTopSearchesResponse(val *GetTopSearchesResponse) *NullableGetTopSearchesResponse { - return &NullableGetTopSearchesResponse{value: val, isSet: true} -} - -func (v NullableGetTopSearchesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTopSearchesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_users_count_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_users_count_response.go index a819ff6bdb..02f1a53299 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_get_users_count_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_users_count_response.go @@ -102,39 +102,3 @@ func (o GetUsersCountResponse) String() string { out += fmt.Sprintf(" dates=%v\n", o.Dates) return fmt.Sprintf("GetUsersCountResponse {\n%s}", out) } - -type NullableGetUsersCountResponse struct { - value *GetUsersCountResponse - isSet bool -} - -func (v NullableGetUsersCountResponse) Get() *GetUsersCountResponse { - return v.value -} - -func (v *NullableGetUsersCountResponse) Set(val *GetUsersCountResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetUsersCountResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUsersCountResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUsersCountResponse(val *GetUsersCountResponse) *NullableGetUsersCountResponse { - return &NullableGetUsersCountResponse{value: val, isSet: true} -} - -func (v NullableGetUsersCountResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetUsersCountResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_operator.go b/clients/algoliasearch-client-go/algolia/analytics/model_operator.go index c9bb30f223..d55f906bc7 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_operator.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_operator.go @@ -73,39 +73,3 @@ func (v Operator) IsValid() bool { func (v Operator) Ptr() *Operator { return &v } - -type NullableOperator struct { - value *Operator - isSet bool -} - -func (v NullableOperator) Get() *Operator { - return v.value -} - -func (v *NullableOperator) Set(val *Operator) { - v.value = val - v.isSet = true -} - -func (v NullableOperator) IsSet() bool { - return v.isSet -} - -func (v *NullableOperator) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOperator(val *Operator) *NullableOperator { - return &NullableOperator{value: val, isSet: true} -} - -func (v NullableOperator) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOperator) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_order_by.go b/clients/algoliasearch-client-go/algolia/analytics/model_order_by.go index f33f512195..6e94fa23a7 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_order_by.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_order_by.go @@ -67,39 +67,3 @@ func (v OrderBy) IsValid() bool { func (v OrderBy) Ptr() *OrderBy { return &v } - -type NullableOrderBy struct { - value *OrderBy - isSet bool -} - -func (v NullableOrderBy) Get() *OrderBy { - return v.value -} - -func (v *NullableOrderBy) Set(val *OrderBy) { - v.value = val - v.isSet = true -} - -func (v NullableOrderBy) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderBy) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderBy(val *OrderBy) *NullableOrderBy { - return &NullableOrderBy{value: val, isSet: true} -} - -func (v NullableOrderBy) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOrderBy) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_country.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_country.go index d8259d8365..7865be5ef8 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_country.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_country.go @@ -102,39 +102,3 @@ func (o TopCountry) String() string { out += fmt.Sprintf(" count=%v\n", o.Count) return fmt.Sprintf("TopCountry {\n%s}", out) } - -type NullableTopCountry struct { - value *TopCountry - isSet bool -} - -func (v NullableTopCountry) Get() *TopCountry { - return v.value -} - -func (v *NullableTopCountry) Set(val *TopCountry) { - v.value = val - v.isSet = true -} - -func (v NullableTopCountry) IsSet() bool { - return v.isSet -} - -func (v *NullableTopCountry) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopCountry(val *TopCountry) *NullableTopCountry { - return &NullableTopCountry{value: val, isSet: true} -} - -func (v NullableTopCountry) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopCountry) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_hit.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_hit.go index 2407fcb2bd..58656a9ca4 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_hit.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_hit.go @@ -102,39 +102,3 @@ func (o TopHit) String() string { out += fmt.Sprintf(" count=%v\n", o.Count) return fmt.Sprintf("TopHit {\n%s}", out) } - -type NullableTopHit struct { - value *TopHit - isSet bool -} - -func (v NullableTopHit) Get() *TopHit { - return v.value -} - -func (v *NullableTopHit) Set(val *TopHit) { - v.value = val - v.isSet = true -} - -func (v NullableTopHit) IsSet() bool { - return v.isSet -} - -func (v *NullableTopHit) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopHit(val *TopHit) *NullableTopHit { - return &NullableTopHit{value: val, isSet: true} -} - -func (v NullableTopHit) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopHit) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_hit_with_analytics.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_hit_with_analytics.go index ba676d7cd6..00b3794eb5 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_hit_with_analytics.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_hit_with_analytics.go @@ -15,9 +15,9 @@ type TopHitWithAnalytics struct { // Number of occurrences. Count int32 `json:"count"` // Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - ClickThroughRate utils.NullableFloat64 `json:"clickThroughRate"` + ClickThroughRate utils.Nullable[float64] `json:"clickThroughRate"` // Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - ConversionRate utils.NullableFloat64 `json:"conversionRate"` + ConversionRate utils.Nullable[float64] `json:"conversionRate"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. TrackedHitCount int32 `json:"trackedHitCount"` // Number of clicks associated with this search. @@ -30,7 +30,7 @@ type TopHitWithAnalytics struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewTopHitWithAnalytics(hit string, count int32, clickThroughRate utils.NullableFloat64, conversionRate utils.NullableFloat64, trackedHitCount int32, clickCount int32, conversionCount int32) *TopHitWithAnalytics { +func NewTopHitWithAnalytics(hit string, count int32, clickThroughRate utils.Nullable[float64], conversionRate utils.Nullable[float64], trackedHitCount int32, clickCount int32, conversionCount int32) *TopHitWithAnalytics { this := &TopHitWithAnalytics{} this.Hit = hit this.Count = count @@ -268,39 +268,3 @@ func (o TopHitWithAnalytics) String() string { out += fmt.Sprintf(" conversionCount=%v\n", o.ConversionCount) return fmt.Sprintf("TopHitWithAnalytics {\n%s}", out) } - -type NullableTopHitWithAnalytics struct { - value *TopHitWithAnalytics - isSet bool -} - -func (v NullableTopHitWithAnalytics) Get() *TopHitWithAnalytics { - return v.value -} - -func (v *NullableTopHitWithAnalytics) Set(val *TopHitWithAnalytics) { - v.value = val - v.isSet = true -} - -func (v NullableTopHitWithAnalytics) IsSet() bool { - return v.isSet -} - -func (v *NullableTopHitWithAnalytics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopHitWithAnalytics(val *TopHitWithAnalytics) *NullableTopHitWithAnalytics { - return &NullableTopHitWithAnalytics{value: val, isSet: true} -} - -func (v NullableTopHitWithAnalytics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopHitWithAnalytics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_hit_with_revenue_analytics.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_hit_with_revenue_analytics.go index 1fc07e1602..ebee24abeb 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_hit_with_revenue_analytics.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_hit_with_revenue_analytics.go @@ -15,9 +15,9 @@ type TopHitWithRevenueAnalytics struct { // Number of occurrences. Count int32 `json:"count"` // Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - ClickThroughRate utils.NullableFloat64 `json:"clickThroughRate"` + ClickThroughRate utils.Nullable[float64] `json:"clickThroughRate"` // Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - ConversionRate utils.NullableFloat64 `json:"conversionRate"` + ConversionRate utils.Nullable[float64] `json:"conversionRate"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. TrackedHitCount int32 `json:"trackedHitCount"` // Number of clicks associated with this search. @@ -25,11 +25,11 @@ type TopHitWithRevenueAnalytics struct { // Number of conversions from this search. ConversionCount int32 `json:"conversionCount"` // Add-to-cart rate, calculated as number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - AddToCartRate utils.NullableFloat64 `json:"addToCartRate"` + AddToCartRate utils.Nullable[float64] `json:"addToCartRate"` // Number of add-to-cart events from this search. AddToCartCount int32 `json:"addToCartCount"` // Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - PurchaseRate utils.NullableFloat64 `json:"purchaseRate"` + PurchaseRate utils.Nullable[float64] `json:"purchaseRate"` // Number of purchase events from this search. PurchaseCount int32 `json:"purchaseCount"` // Revenue associated with this search, broken-down by currencies. @@ -40,7 +40,7 @@ type TopHitWithRevenueAnalytics struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewTopHitWithRevenueAnalytics(hit string, count int32, clickThroughRate utils.NullableFloat64, conversionRate utils.NullableFloat64, trackedHitCount int32, clickCount int32, conversionCount int32, addToCartRate utils.NullableFloat64, addToCartCount int32, purchaseRate utils.NullableFloat64, purchaseCount int32, currencies map[string]CurrenciesValue) *TopHitWithRevenueAnalytics { +func NewTopHitWithRevenueAnalytics(hit string, count int32, clickThroughRate utils.Nullable[float64], conversionRate utils.Nullable[float64], trackedHitCount int32, clickCount int32, conversionCount int32, addToCartRate utils.Nullable[float64], addToCartCount int32, purchaseRate utils.Nullable[float64], purchaseCount int32, currencies map[string]CurrenciesValue) *TopHitWithRevenueAnalytics { this := &TopHitWithRevenueAnalytics{} this.Hit = hit this.Count = count @@ -432,39 +432,3 @@ func (o TopHitWithRevenueAnalytics) String() string { out += fmt.Sprintf(" currencies=%v\n", o.Currencies) return fmt.Sprintf("TopHitWithRevenueAnalytics {\n%s}", out) } - -type NullableTopHitWithRevenueAnalytics struct { - value *TopHitWithRevenueAnalytics - isSet bool -} - -func (v NullableTopHitWithRevenueAnalytics) Get() *TopHitWithRevenueAnalytics { - return v.value -} - -func (v *NullableTopHitWithRevenueAnalytics) Set(val *TopHitWithRevenueAnalytics) { - v.value = val - v.isSet = true -} - -func (v NullableTopHitWithRevenueAnalytics) IsSet() bool { - return v.isSet -} - -func (v *NullableTopHitWithRevenueAnalytics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopHitWithRevenueAnalytics(val *TopHitWithRevenueAnalytics) *NullableTopHitWithRevenueAnalytics { - return &NullableTopHitWithRevenueAnalytics{value: val, isSet: true} -} - -func (v NullableTopHitWithRevenueAnalytics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopHitWithRevenueAnalytics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response.go index 7f5802e74e..0ad56b935e 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response.go @@ -70,39 +70,3 @@ func (o TopHitsResponse) String() string { out += fmt.Sprintf(" hits=%v\n", o.Hits) return fmt.Sprintf("TopHitsResponse {\n%s}", out) } - -type NullableTopHitsResponse struct { - value *TopHitsResponse - isSet bool -} - -func (v NullableTopHitsResponse) Get() *TopHitsResponse { - return v.value -} - -func (v *NullableTopHitsResponse) Set(val *TopHitsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableTopHitsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableTopHitsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopHitsResponse(val *TopHitsResponse) *NullableTopHitsResponse { - return &NullableTopHitsResponse{value: val, isSet: true} -} - -func (v NullableTopHitsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopHitsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response_with_analytics.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response_with_analytics.go index ccb11c98e2..a5858e9963 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response_with_analytics.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response_with_analytics.go @@ -70,39 +70,3 @@ func (o TopHitsResponseWithAnalytics) String() string { out += fmt.Sprintf(" hits=%v\n", o.Hits) return fmt.Sprintf("TopHitsResponseWithAnalytics {\n%s}", out) } - -type NullableTopHitsResponseWithAnalytics struct { - value *TopHitsResponseWithAnalytics - isSet bool -} - -func (v NullableTopHitsResponseWithAnalytics) Get() *TopHitsResponseWithAnalytics { - return v.value -} - -func (v *NullableTopHitsResponseWithAnalytics) Set(val *TopHitsResponseWithAnalytics) { - v.value = val - v.isSet = true -} - -func (v NullableTopHitsResponseWithAnalytics) IsSet() bool { - return v.isSet -} - -func (v *NullableTopHitsResponseWithAnalytics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopHitsResponseWithAnalytics(val *TopHitsResponseWithAnalytics) *NullableTopHitsResponseWithAnalytics { - return &NullableTopHitsResponseWithAnalytics{value: val, isSet: true} -} - -func (v NullableTopHitsResponseWithAnalytics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopHitsResponseWithAnalytics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response_with_revenue_analytics.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response_with_revenue_analytics.go index ec87a6992d..d537b96dc9 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response_with_revenue_analytics.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_hits_response_with_revenue_analytics.go @@ -70,39 +70,3 @@ func (o TopHitsResponseWithRevenueAnalytics) String() string { out += fmt.Sprintf(" hits=%v\n", o.Hits) return fmt.Sprintf("TopHitsResponseWithRevenueAnalytics {\n%s}", out) } - -type NullableTopHitsResponseWithRevenueAnalytics struct { - value *TopHitsResponseWithRevenueAnalytics - isSet bool -} - -func (v NullableTopHitsResponseWithRevenueAnalytics) Get() *TopHitsResponseWithRevenueAnalytics { - return v.value -} - -func (v *NullableTopHitsResponseWithRevenueAnalytics) Set(val *TopHitsResponseWithRevenueAnalytics) { - v.value = val - v.isSet = true -} - -func (v NullableTopHitsResponseWithRevenueAnalytics) IsSet() bool { - return v.isSet -} - -func (v *NullableTopHitsResponseWithRevenueAnalytics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopHitsResponseWithRevenueAnalytics(val *TopHitsResponseWithRevenueAnalytics) *NullableTopHitsResponseWithRevenueAnalytics { - return &NullableTopHitsResponseWithRevenueAnalytics{value: val, isSet: true} -} - -func (v NullableTopHitsResponseWithRevenueAnalytics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopHitsResponseWithRevenueAnalytics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_search.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_search.go index 8d88668ade..ca2cd78b42 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_search.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_search.go @@ -134,39 +134,3 @@ func (o TopSearch) String() string { out += fmt.Sprintf(" nbHits=%v\n", o.NbHits) return fmt.Sprintf("TopSearch {\n%s}", out) } - -type NullableTopSearch struct { - value *TopSearch - isSet bool -} - -func (v NullableTopSearch) Get() *TopSearch { - return v.value -} - -func (v *NullableTopSearch) Set(val *TopSearch) { - v.value = val - v.isSet = true -} - -func (v NullableTopSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableTopSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopSearch(val *TopSearch) *NullableTopSearch { - return &NullableTopSearch{value: val, isSet: true} -} - -func (v NullableTopSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_analytics.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_analytics.go index 5a4ed0e20d..cbead85d62 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_analytics.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_analytics.go @@ -15,13 +15,13 @@ type TopSearchWithAnalytics struct { // Number of searches. Count int32 `json:"count"` // Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - ClickThroughRate utils.NullableFloat64 `json:"clickThroughRate"` + ClickThroughRate utils.Nullable[float64] `json:"clickThroughRate"` // Average position of a clicked search result in the list of search results. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - AverageClickPosition utils.NullableFloat64 `json:"averageClickPosition"` + AverageClickPosition utils.Nullable[float64] `json:"averageClickPosition"` // List of positions in the search results and clicks associated with this search. ClickPositions []ClickPositionsInner `json:"clickPositions"` // Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - ConversionRate utils.NullableFloat64 `json:"conversionRate"` + ConversionRate utils.Nullable[float64] `json:"conversionRate"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. TrackedSearchCount int32 `json:"trackedSearchCount"` // Number of clicks associated with this search. @@ -36,7 +36,7 @@ type TopSearchWithAnalytics struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewTopSearchWithAnalytics(search string, count int32, clickThroughRate utils.NullableFloat64, averageClickPosition utils.NullableFloat64, clickPositions []ClickPositionsInner, conversionRate utils.NullableFloat64, trackedSearchCount int32, clickCount int32, conversionCount int32, nbHits int32) *TopSearchWithAnalytics { +func NewTopSearchWithAnalytics(search string, count int32, clickThroughRate utils.Nullable[float64], averageClickPosition utils.Nullable[float64], clickPositions []ClickPositionsInner, conversionRate utils.Nullable[float64], trackedSearchCount int32, clickCount int32, conversionCount int32, nbHits int32) *TopSearchWithAnalytics { this := &TopSearchWithAnalytics{} this.Search = search this.Count = count @@ -366,39 +366,3 @@ func (o TopSearchWithAnalytics) String() string { out += fmt.Sprintf(" nbHits=%v\n", o.NbHits) return fmt.Sprintf("TopSearchWithAnalytics {\n%s}", out) } - -type NullableTopSearchWithAnalytics struct { - value *TopSearchWithAnalytics - isSet bool -} - -func (v NullableTopSearchWithAnalytics) Get() *TopSearchWithAnalytics { - return v.value -} - -func (v *NullableTopSearchWithAnalytics) Set(val *TopSearchWithAnalytics) { - v.value = val - v.isSet = true -} - -func (v NullableTopSearchWithAnalytics) IsSet() bool { - return v.isSet -} - -func (v *NullableTopSearchWithAnalytics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopSearchWithAnalytics(val *TopSearchWithAnalytics) *NullableTopSearchWithAnalytics { - return &NullableTopSearchWithAnalytics{value: val, isSet: true} -} - -func (v NullableTopSearchWithAnalytics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopSearchWithAnalytics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_revenue_analytics.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_revenue_analytics.go index 5173594c06..d30a426b1b 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_revenue_analytics.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_revenue_analytics.go @@ -15,13 +15,13 @@ type TopSearchWithRevenueAnalytics struct { // Number of searches. Count int32 `json:"count"` // Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - ClickThroughRate utils.NullableFloat64 `json:"clickThroughRate"` + ClickThroughRate utils.Nullable[float64] `json:"clickThroughRate"` // Average position of a clicked search result in the list of search results. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - AverageClickPosition utils.NullableFloat64 `json:"averageClickPosition"` + AverageClickPosition utils.Nullable[float64] `json:"averageClickPosition"` // List of positions in the search results and clicks associated with this search. ClickPositions []ClickPositionsInner `json:"clickPositions"` // Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - ConversionRate utils.NullableFloat64 `json:"conversionRate"` + ConversionRate utils.Nullable[float64] `json:"conversionRate"` // Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true. TrackedSearchCount int32 `json:"trackedSearchCount"` // Number of clicks associated with this search. @@ -33,11 +33,11 @@ type TopSearchWithRevenueAnalytics struct { // Revenue associated with this search, broken-down by currencies. Currencies map[string]CurrenciesValue `json:"currencies"` // Add-to-cart rate, calculated as number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - AddToCartRate utils.NullableFloat64 `json:"addToCartRate"` + AddToCartRate utils.Nullable[float64] `json:"addToCartRate"` // Number of add-to-cart events from this search. AddToCartCount int32 `json:"addToCartCount"` // Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. - PurchaseRate utils.NullableFloat64 `json:"purchaseRate"` + PurchaseRate utils.Nullable[float64] `json:"purchaseRate"` // Number of purchase events from this search. PurchaseCount int32 `json:"purchaseCount"` } @@ -46,7 +46,7 @@ type TopSearchWithRevenueAnalytics struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewTopSearchWithRevenueAnalytics(search string, count int32, clickThroughRate utils.NullableFloat64, averageClickPosition utils.NullableFloat64, clickPositions []ClickPositionsInner, conversionRate utils.NullableFloat64, trackedSearchCount int32, clickCount int32, conversionCount int32, nbHits int32, currencies map[string]CurrenciesValue, addToCartRate utils.NullableFloat64, addToCartCount int32, purchaseRate utils.NullableFloat64, purchaseCount int32) *TopSearchWithRevenueAnalytics { +func NewTopSearchWithRevenueAnalytics(search string, count int32, clickThroughRate utils.Nullable[float64], averageClickPosition utils.Nullable[float64], clickPositions []ClickPositionsInner, conversionRate utils.Nullable[float64], trackedSearchCount int32, clickCount int32, conversionCount int32, nbHits int32, currencies map[string]CurrenciesValue, addToCartRate utils.Nullable[float64], addToCartCount int32, purchaseRate utils.Nullable[float64], purchaseCount int32) *TopSearchWithRevenueAnalytics { this := &TopSearchWithRevenueAnalytics{} this.Search = search this.Count = count @@ -530,39 +530,3 @@ func (o TopSearchWithRevenueAnalytics) String() string { out += fmt.Sprintf(" purchaseCount=%v\n", o.PurchaseCount) return fmt.Sprintf("TopSearchWithRevenueAnalytics {\n%s}", out) } - -type NullableTopSearchWithRevenueAnalytics struct { - value *TopSearchWithRevenueAnalytics - isSet bool -} - -func (v NullableTopSearchWithRevenueAnalytics) Get() *TopSearchWithRevenueAnalytics { - return v.value -} - -func (v *NullableTopSearchWithRevenueAnalytics) Set(val *TopSearchWithRevenueAnalytics) { - v.value = val - v.isSet = true -} - -func (v NullableTopSearchWithRevenueAnalytics) IsSet() bool { - return v.isSet -} - -func (v *NullableTopSearchWithRevenueAnalytics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopSearchWithRevenueAnalytics(val *TopSearchWithRevenueAnalytics) *NullableTopSearchWithRevenueAnalytics { - return &NullableTopSearchWithRevenueAnalytics{value: val, isSet: true} -} - -func (v NullableTopSearchWithRevenueAnalytics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopSearchWithRevenueAnalytics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response.go index 3155a0f50c..3f82c7c359 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response.go @@ -70,39 +70,3 @@ func (o TopSearchesResponse) String() string { out += fmt.Sprintf(" searches=%v\n", o.Searches) return fmt.Sprintf("TopSearchesResponse {\n%s}", out) } - -type NullableTopSearchesResponse struct { - value *TopSearchesResponse - isSet bool -} - -func (v NullableTopSearchesResponse) Get() *TopSearchesResponse { - return v.value -} - -func (v *NullableTopSearchesResponse) Set(val *TopSearchesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableTopSearchesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableTopSearchesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopSearchesResponse(val *TopSearchesResponse) *NullableTopSearchesResponse { - return &NullableTopSearchesResponse{value: val, isSet: true} -} - -func (v NullableTopSearchesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopSearchesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response_with_analytics.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response_with_analytics.go index 4a6158c7f6..4523f1806a 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response_with_analytics.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response_with_analytics.go @@ -70,39 +70,3 @@ func (o TopSearchesResponseWithAnalytics) String() string { out += fmt.Sprintf(" searches=%v\n", o.Searches) return fmt.Sprintf("TopSearchesResponseWithAnalytics {\n%s}", out) } - -type NullableTopSearchesResponseWithAnalytics struct { - value *TopSearchesResponseWithAnalytics - isSet bool -} - -func (v NullableTopSearchesResponseWithAnalytics) Get() *TopSearchesResponseWithAnalytics { - return v.value -} - -func (v *NullableTopSearchesResponseWithAnalytics) Set(val *TopSearchesResponseWithAnalytics) { - v.value = val - v.isSet = true -} - -func (v NullableTopSearchesResponseWithAnalytics) IsSet() bool { - return v.isSet -} - -func (v *NullableTopSearchesResponseWithAnalytics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopSearchesResponseWithAnalytics(val *TopSearchesResponseWithAnalytics) *NullableTopSearchesResponseWithAnalytics { - return &NullableTopSearchesResponseWithAnalytics{value: val, isSet: true} -} - -func (v NullableTopSearchesResponseWithAnalytics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopSearchesResponseWithAnalytics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response_with_revenue_analytics.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response_with_revenue_analytics.go index 993166761f..40877f3270 100644 --- a/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response_with_revenue_analytics.go +++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_searches_response_with_revenue_analytics.go @@ -70,39 +70,3 @@ func (o TopSearchesResponseWithRevenueAnalytics) String() string { out += fmt.Sprintf(" searches=%v\n", o.Searches) return fmt.Sprintf("TopSearchesResponseWithRevenueAnalytics {\n%s}", out) } - -type NullableTopSearchesResponseWithRevenueAnalytics struct { - value *TopSearchesResponseWithRevenueAnalytics - isSet bool -} - -func (v NullableTopSearchesResponseWithRevenueAnalytics) Get() *TopSearchesResponseWithRevenueAnalytics { - return v.value -} - -func (v *NullableTopSearchesResponseWithRevenueAnalytics) Set(val *TopSearchesResponseWithRevenueAnalytics) { - v.value = val - v.isSet = true -} - -func (v NullableTopSearchesResponseWithRevenueAnalytics) IsSet() bool { - return v.isSet -} - -func (v *NullableTopSearchesResponseWithRevenueAnalytics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTopSearchesResponseWithRevenueAnalytics(val *TopSearchesResponseWithRevenueAnalytics) *NullableTopSearchesResponseWithRevenueAnalytics { - return &NullableTopSearchesResponseWithRevenueAnalytics{value: val, isSet: true} -} - -func (v NullableTopSearchesResponseWithRevenueAnalytics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTopSearchesResponseWithRevenueAnalytics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_action_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_action_type.go index 0f4c802747..0998a9af5d 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_action_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_action_type.go @@ -67,39 +67,3 @@ func (v ActionType) IsValid() bool { func (v ActionType) Ptr() *ActionType { return &v } - -type NullableActionType struct { - value *ActionType - isSet bool -} - -func (v NullableActionType) Get() *ActionType { - return v.value -} - -func (v *NullableActionType) Set(val *ActionType) { - v.value = val - v.isSet = true -} - -func (v NullableActionType) IsSet() bool { - return v.isSet -} - -func (v *NullableActionType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableActionType(val *ActionType) *NullableActionType { - return &NullableActionType{value: val, isSet: true} -} - -func (v NullableActionType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableActionType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia.go index 482b3d582a..db698dc819 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia.go @@ -102,39 +102,3 @@ func (o AuthAlgolia) String() string { out += fmt.Sprintf(" apiKey=%v\n", o.ApiKey) return fmt.Sprintf("AuthAlgolia {\n%s}", out) } - -type NullableAuthAlgolia struct { - value *AuthAlgolia - isSet bool -} - -func (v NullableAuthAlgolia) Get() *AuthAlgolia { - return v.value -} - -func (v *NullableAuthAlgolia) Set(val *AuthAlgolia) { - v.value = val - v.isSet = true -} - -func (v NullableAuthAlgolia) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthAlgolia) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthAlgolia(val *AuthAlgolia) *NullableAuthAlgolia { - return &NullableAuthAlgolia{value: val, isSet: true} -} - -func (v NullableAuthAlgolia) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthAlgolia) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_insights.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_insights.go index a5a3e5fe47..f3cf131f0d 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_insights.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_insights.go @@ -102,39 +102,3 @@ func (o AuthAlgoliaInsights) String() string { out += fmt.Sprintf(" apiKey=%v\n", o.ApiKey) return fmt.Sprintf("AuthAlgoliaInsights {\n%s}", out) } - -type NullableAuthAlgoliaInsights struct { - value *AuthAlgoliaInsights - isSet bool -} - -func (v NullableAuthAlgoliaInsights) Get() *AuthAlgoliaInsights { - return v.value -} - -func (v *NullableAuthAlgoliaInsights) Set(val *AuthAlgoliaInsights) { - v.value = val - v.isSet = true -} - -func (v NullableAuthAlgoliaInsights) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthAlgoliaInsights) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthAlgoliaInsights(val *AuthAlgoliaInsights) *NullableAuthAlgoliaInsights { - return &NullableAuthAlgoliaInsights{value: val, isSet: true} -} - -func (v NullableAuthAlgoliaInsights) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthAlgoliaInsights) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_insights_partial.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_insights_partial.go index 2165cb85b3..10a5f49548 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_insights_partial.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_insights_partial.go @@ -133,39 +133,3 @@ func (o AuthAlgoliaInsightsPartial) String() string { out += fmt.Sprintf(" apiKey=%v\n", o.ApiKey) return fmt.Sprintf("AuthAlgoliaInsightsPartial {\n%s}", out) } - -type NullableAuthAlgoliaInsightsPartial struct { - value *AuthAlgoliaInsightsPartial - isSet bool -} - -func (v NullableAuthAlgoliaInsightsPartial) Get() *AuthAlgoliaInsightsPartial { - return v.value -} - -func (v *NullableAuthAlgoliaInsightsPartial) Set(val *AuthAlgoliaInsightsPartial) { - v.value = val - v.isSet = true -} - -func (v NullableAuthAlgoliaInsightsPartial) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthAlgoliaInsightsPartial) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthAlgoliaInsightsPartial(val *AuthAlgoliaInsightsPartial) *NullableAuthAlgoliaInsightsPartial { - return &NullableAuthAlgoliaInsightsPartial{value: val, isSet: true} -} - -func (v NullableAuthAlgoliaInsightsPartial) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthAlgoliaInsightsPartial) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_partial.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_partial.go index bc1276aa39..e41c928b8a 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_partial.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_algolia_partial.go @@ -133,39 +133,3 @@ func (o AuthAlgoliaPartial) String() string { out += fmt.Sprintf(" apiKey=%v\n", o.ApiKey) return fmt.Sprintf("AuthAlgoliaPartial {\n%s}", out) } - -type NullableAuthAlgoliaPartial struct { - value *AuthAlgoliaPartial - isSet bool -} - -func (v NullableAuthAlgoliaPartial) Get() *AuthAlgoliaPartial { - return v.value -} - -func (v *NullableAuthAlgoliaPartial) Set(val *AuthAlgoliaPartial) { - v.value = val - v.isSet = true -} - -func (v NullableAuthAlgoliaPartial) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthAlgoliaPartial) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthAlgoliaPartial(val *AuthAlgoliaPartial) *NullableAuthAlgoliaPartial { - return &NullableAuthAlgoliaPartial{value: val, isSet: true} -} - -func (v NullableAuthAlgoliaPartial) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthAlgoliaPartial) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_api_key.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_api_key.go index f71f0fa689..50bf436aec 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_api_key.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_api_key.go @@ -70,39 +70,3 @@ func (o AuthAPIKey) String() string { out += fmt.Sprintf(" key=%v\n", o.Key) return fmt.Sprintf("AuthAPIKey {\n%s}", out) } - -type NullableAuthAPIKey struct { - value *AuthAPIKey - isSet bool -} - -func (v NullableAuthAPIKey) Get() *AuthAPIKey { - return v.value -} - -func (v *NullableAuthAPIKey) Set(val *AuthAPIKey) { - v.value = val - v.isSet = true -} - -func (v NullableAuthAPIKey) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthAPIKey) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthAPIKey(val *AuthAPIKey) *NullableAuthAPIKey { - return &NullableAuthAPIKey{value: val, isSet: true} -} - -func (v NullableAuthAPIKey) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthAPIKey) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_api_key_partial.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_api_key_partial.go index af9dc438b7..2ee2c50396 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_api_key_partial.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_api_key_partial.go @@ -88,39 +88,3 @@ func (o AuthAPIKeyPartial) String() string { out += fmt.Sprintf(" key=%v\n", o.Key) return fmt.Sprintf("AuthAPIKeyPartial {\n%s}", out) } - -type NullableAuthAPIKeyPartial struct { - value *AuthAPIKeyPartial - isSet bool -} - -func (v NullableAuthAPIKeyPartial) Get() *AuthAPIKeyPartial { - return v.value -} - -func (v *NullableAuthAPIKeyPartial) Set(val *AuthAPIKeyPartial) { - v.value = val - v.isSet = true -} - -func (v NullableAuthAPIKeyPartial) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthAPIKeyPartial) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthAPIKeyPartial(val *AuthAPIKeyPartial) *NullableAuthAPIKeyPartial { - return &NullableAuthAPIKeyPartial{value: val, isSet: true} -} - -func (v NullableAuthAPIKeyPartial) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthAPIKeyPartial) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_basic.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_basic.go index b67402b902..5b144e94e3 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_basic.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_basic.go @@ -102,39 +102,3 @@ func (o AuthBasic) String() string { out += fmt.Sprintf(" password=%v\n", o.Password) return fmt.Sprintf("AuthBasic {\n%s}", out) } - -type NullableAuthBasic struct { - value *AuthBasic - isSet bool -} - -func (v NullableAuthBasic) Get() *AuthBasic { - return v.value -} - -func (v *NullableAuthBasic) Set(val *AuthBasic) { - v.value = val - v.isSet = true -} - -func (v NullableAuthBasic) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthBasic) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthBasic(val *AuthBasic) *NullableAuthBasic { - return &NullableAuthBasic{value: val, isSet: true} -} - -func (v NullableAuthBasic) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthBasic) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_basic_partial.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_basic_partial.go index 70d9c8f0b3..242d8ba808 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_basic_partial.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_basic_partial.go @@ -133,39 +133,3 @@ func (o AuthBasicPartial) String() string { out += fmt.Sprintf(" password=%v\n", o.Password) return fmt.Sprintf("AuthBasicPartial {\n%s}", out) } - -type NullableAuthBasicPartial struct { - value *AuthBasicPartial - isSet bool -} - -func (v NullableAuthBasicPartial) Get() *AuthBasicPartial { - return v.value -} - -func (v *NullableAuthBasicPartial) Set(val *AuthBasicPartial) { - v.value = val - v.isSet = true -} - -func (v NullableAuthBasicPartial) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthBasicPartial) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthBasicPartial(val *AuthBasicPartial) *NullableAuthBasicPartial { - return &NullableAuthBasicPartial{value: val, isSet: true} -} - -func (v NullableAuthBasicPartial) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthBasicPartial) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_google_service_account.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_google_service_account.go index 39f1810618..de1dbafe89 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_google_service_account.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_google_service_account.go @@ -102,39 +102,3 @@ func (o AuthGoogleServiceAccount) String() string { out += fmt.Sprintf(" privateKey=%v\n", o.PrivateKey) return fmt.Sprintf("AuthGoogleServiceAccount {\n%s}", out) } - -type NullableAuthGoogleServiceAccount struct { - value *AuthGoogleServiceAccount - isSet bool -} - -func (v NullableAuthGoogleServiceAccount) Get() *AuthGoogleServiceAccount { - return v.value -} - -func (v *NullableAuthGoogleServiceAccount) Set(val *AuthGoogleServiceAccount) { - v.value = val - v.isSet = true -} - -func (v NullableAuthGoogleServiceAccount) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthGoogleServiceAccount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthGoogleServiceAccount(val *AuthGoogleServiceAccount) *NullableAuthGoogleServiceAccount { - return &NullableAuthGoogleServiceAccount{value: val, isSet: true} -} - -func (v NullableAuthGoogleServiceAccount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthGoogleServiceAccount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_google_service_account_partial.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_google_service_account_partial.go index 657f007838..99ec663039 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_google_service_account_partial.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_google_service_account_partial.go @@ -133,39 +133,3 @@ func (o AuthGoogleServiceAccountPartial) String() string { out += fmt.Sprintf(" privateKey=%v\n", o.PrivateKey) return fmt.Sprintf("AuthGoogleServiceAccountPartial {\n%s}", out) } - -type NullableAuthGoogleServiceAccountPartial struct { - value *AuthGoogleServiceAccountPartial - isSet bool -} - -func (v NullableAuthGoogleServiceAccountPartial) Get() *AuthGoogleServiceAccountPartial { - return v.value -} - -func (v *NullableAuthGoogleServiceAccountPartial) Set(val *AuthGoogleServiceAccountPartial) { - v.value = val - v.isSet = true -} - -func (v NullableAuthGoogleServiceAccountPartial) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthGoogleServiceAccountPartial) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthGoogleServiceAccountPartial(val *AuthGoogleServiceAccountPartial) *NullableAuthGoogleServiceAccountPartial { - return &NullableAuthGoogleServiceAccountPartial{value: val, isSet: true} -} - -func (v NullableAuthGoogleServiceAccountPartial) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthGoogleServiceAccountPartial) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_input.go index 9cf6db9da2..97cd1b408c 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_input.go @@ -230,39 +230,3 @@ func (obj AuthInput) GetActualInstance() any { // all schemas are nil return nil } - -type NullableAuthInput struct { - value *AuthInput - isSet bool -} - -func (v NullableAuthInput) Get() *AuthInput { - return v.value -} - -func (v *NullableAuthInput) Set(val *AuthInput) { - v.value = val - v.isSet = true -} - -func (v NullableAuthInput) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthInput(val *AuthInput) *NullableAuthInput { - return &NullableAuthInput{value: val, isSet: true} -} - -func (v NullableAuthInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_input_partial.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_input_partial.go index 02953207c2..b237950d04 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_input_partial.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_input_partial.go @@ -230,39 +230,3 @@ func (obj AuthInputPartial) GetActualInstance() any { // all schemas are nil return nil } - -type NullableAuthInputPartial struct { - value *AuthInputPartial - isSet bool -} - -func (v NullableAuthInputPartial) Get() *AuthInputPartial { - return v.value -} - -func (v *NullableAuthInputPartial) Set(val *AuthInputPartial) { - v.value = val - v.isSet = true -} - -func (v NullableAuthInputPartial) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthInputPartial) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthInputPartial(val *AuthInputPartial) *NullableAuthInputPartial { - return &NullableAuthInputPartial{value: val, isSet: true} -} - -func (v NullableAuthInputPartial) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthInputPartial) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_o_auth.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_o_auth.go index cc3ffb126c..dca96c257d 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_o_auth.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_o_auth.go @@ -184,39 +184,3 @@ func (o AuthOAuth) String() string { out += fmt.Sprintf(" scope=%v\n", o.Scope) return fmt.Sprintf("AuthOAuth {\n%s}", out) } - -type NullableAuthOAuth struct { - value *AuthOAuth - isSet bool -} - -func (v NullableAuthOAuth) Get() *AuthOAuth { - return v.value -} - -func (v *NullableAuthOAuth) Set(val *AuthOAuth) { - v.value = val - v.isSet = true -} - -func (v NullableAuthOAuth) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthOAuth) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthOAuth(val *AuthOAuth) *NullableAuthOAuth { - return &NullableAuthOAuth{value: val, isSet: true} -} - -func (v NullableAuthOAuth) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthOAuth) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_o_auth_partial.go b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_o_auth_partial.go index 98d6131e76..ebde5b4155 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_auth_o_auth_partial.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_auth_o_auth_partial.go @@ -223,39 +223,3 @@ func (o AuthOAuthPartial) String() string { out += fmt.Sprintf(" scope=%v\n", o.Scope) return fmt.Sprintf("AuthOAuthPartial {\n%s}", out) } - -type NullableAuthOAuthPartial struct { - value *AuthOAuthPartial - isSet bool -} - -func (v NullableAuthOAuthPartial) Get() *AuthOAuthPartial { - return v.value -} - -func (v *NullableAuthOAuthPartial) Set(val *AuthOAuthPartial) { - v.value = val - v.isSet = true -} - -func (v NullableAuthOAuthPartial) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthOAuthPartial) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthOAuthPartial(val *AuthOAuthPartial) *NullableAuthOAuthPartial { - return &NullableAuthOAuthPartial{value: val, isSet: true} -} - -func (v NullableAuthOAuthPartial) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthOAuthPartial) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication.go b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication.go index c8b93c79b4..dd5b116c30 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication.go @@ -4,6 +4,8 @@ package ingestion import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // Authentication Resource representing the information required to authenticate with a source or a destination. @@ -12,9 +14,9 @@ type Authentication struct { AuthenticationID string `json:"authenticationID"` Type AuthenticationType `json:"type"` // Descriptive name for the resource. - Name string `json:"name"` - Platform NullablePlatform `json:"platform,omitempty"` - Input AuthInputPartial `json:"input"` + Name string `json:"name"` + Platform utils.Nullable[Platform] `json:"platform,omitempty"` + Input AuthInputPartial `json:"input"` // Date of creation in RFC 3339 format. CreatedAt string `json:"createdAt"` // Date of last update in RFC 3339 format. @@ -23,7 +25,7 @@ type Authentication struct { type AuthenticationOption func(f *Authentication) -func WithAuthenticationPlatform(val NullablePlatform) AuthenticationOption { +func WithAuthenticationPlatform(val utils.Nullable[Platform]) AuthenticationOption { return func(f *Authentication) { f.Platform = val } @@ -160,7 +162,7 @@ func (o *Authentication) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. +// SetPlatform gets a reference to the given utils.Nullable[Platform] and assigns it to the Platform field. func (o *Authentication) SetPlatform(v Platform) *Authentication { o.Platform.Set(&v) return o @@ -301,39 +303,3 @@ func (o Authentication) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("Authentication {\n%s}", out) } - -type NullableAuthentication struct { - value *Authentication - isSet bool -} - -func (v NullableAuthentication) Get() *Authentication { - return v.value -} - -func (v *NullableAuthentication) Set(val *Authentication) { - v.value = val - v.isSet = true -} - -func (v NullableAuthentication) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthentication) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthentication(val *Authentication) *NullableAuthentication { - return &NullableAuthentication{value: val, isSet: true} -} - -func (v NullableAuthentication) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthentication) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_create.go b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_create.go index 2a0dee8a65..3ecf671e40 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_create.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_create.go @@ -4,20 +4,22 @@ package ingestion import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // AuthenticationCreate Request body for creating a new authentication resource. type AuthenticationCreate struct { Type AuthenticationType `json:"type"` // Descriptive name for the resource. - Name string `json:"name"` - Platform NullablePlatform `json:"platform,omitempty"` - Input AuthInput `json:"input"` + Name string `json:"name"` + Platform utils.Nullable[Platform] `json:"platform,omitempty"` + Input AuthInput `json:"input"` } type AuthenticationCreateOption func(f *AuthenticationCreate) -func WithAuthenticationCreatePlatform(val NullablePlatform) AuthenticationCreateOption { +func WithAuthenticationCreatePlatform(val utils.Nullable[Platform]) AuthenticationCreateOption { return func(f *AuthenticationCreate) { f.Platform = val } @@ -121,7 +123,7 @@ func (o *AuthenticationCreate) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. +// SetPlatform gets a reference to the given utils.Nullable[Platform] and assigns it to the Platform field. func (o *AuthenticationCreate) SetPlatform(v Platform) *AuthenticationCreate { o.Platform.Set(&v) return o @@ -192,39 +194,3 @@ func (o AuthenticationCreate) String() string { out += fmt.Sprintf(" input=%v\n", o.Input) return fmt.Sprintf("AuthenticationCreate {\n%s}", out) } - -type NullableAuthenticationCreate struct { - value *AuthenticationCreate - isSet bool -} - -func (v NullableAuthenticationCreate) Get() *AuthenticationCreate { - return v.value -} - -func (v *NullableAuthenticationCreate) Set(val *AuthenticationCreate) { - v.value = val - v.isSet = true -} - -func (v NullableAuthenticationCreate) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthenticationCreate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthenticationCreate(val *AuthenticationCreate) *NullableAuthenticationCreate { - return &NullableAuthenticationCreate{value: val, isSet: true} -} - -func (v NullableAuthenticationCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthenticationCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_create_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_create_response.go index 1f174eae26..912762e36d 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_create_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_create_response.go @@ -134,39 +134,3 @@ func (o AuthenticationCreateResponse) String() string { out += fmt.Sprintf(" createdAt=%v\n", o.CreatedAt) return fmt.Sprintf("AuthenticationCreateResponse {\n%s}", out) } - -type NullableAuthenticationCreateResponse struct { - value *AuthenticationCreateResponse - isSet bool -} - -func (v NullableAuthenticationCreateResponse) Get() *AuthenticationCreateResponse { - return v.value -} - -func (v *NullableAuthenticationCreateResponse) Set(val *AuthenticationCreateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableAuthenticationCreateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthenticationCreateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthenticationCreateResponse(val *AuthenticationCreateResponse) *NullableAuthenticationCreateResponse { - return &NullableAuthenticationCreateResponse{value: val, isSet: true} -} - -func (v NullableAuthenticationCreateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthenticationCreateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_search.go b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_search.go index 885085c443..e54b938201 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_search.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_search.go @@ -69,39 +69,3 @@ func (o AuthenticationSearch) String() string { out += fmt.Sprintf(" authenticationIDs=%v\n", o.AuthenticationIDs) return fmt.Sprintf("AuthenticationSearch {\n%s}", out) } - -type NullableAuthenticationSearch struct { - value *AuthenticationSearch - isSet bool -} - -func (v NullableAuthenticationSearch) Get() *AuthenticationSearch { - return v.value -} - -func (v *NullableAuthenticationSearch) Set(val *AuthenticationSearch) { - v.value = val - v.isSet = true -} - -func (v NullableAuthenticationSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthenticationSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthenticationSearch(val *AuthenticationSearch) *NullableAuthenticationSearch { - return &NullableAuthenticationSearch{value: val, isSet: true} -} - -func (v NullableAuthenticationSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthenticationSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_sort_keys.go b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_sort_keys.go index 5761323b7d..6a2d70c188 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_sort_keys.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_sort_keys.go @@ -69,39 +69,3 @@ func (v AuthenticationSortKeys) IsValid() bool { func (v AuthenticationSortKeys) Ptr() *AuthenticationSortKeys { return &v } - -type NullableAuthenticationSortKeys struct { - value *AuthenticationSortKeys - isSet bool -} - -func (v NullableAuthenticationSortKeys) Get() *AuthenticationSortKeys { - return v.value -} - -func (v *NullableAuthenticationSortKeys) Set(val *AuthenticationSortKeys) { - v.value = val - v.isSet = true -} - -func (v NullableAuthenticationSortKeys) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthenticationSortKeys) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthenticationSortKeys(val *AuthenticationSortKeys) *NullableAuthenticationSortKeys { - return &NullableAuthenticationSortKeys{value: val, isSet: true} -} - -func (v NullableAuthenticationSortKeys) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthenticationSortKeys) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_type.go index 4db97f0a42..6dedd29e33 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_type.go @@ -71,39 +71,3 @@ func (v AuthenticationType) IsValid() bool { func (v AuthenticationType) Ptr() *AuthenticationType { return &v } - -type NullableAuthenticationType struct { - value *AuthenticationType - isSet bool -} - -func (v NullableAuthenticationType) Get() *AuthenticationType { - return v.value -} - -func (v *NullableAuthenticationType) Set(val *AuthenticationType) { - v.value = val - v.isSet = true -} - -func (v NullableAuthenticationType) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthenticationType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthenticationType(val *AuthenticationType) *NullableAuthenticationType { - return &NullableAuthenticationType{value: val, isSet: true} -} - -func (v NullableAuthenticationType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthenticationType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_update.go b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_update.go index 2bed7eba56..6cd5350a3f 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_update.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_update.go @@ -4,15 +4,17 @@ package ingestion import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // AuthenticationUpdate Request body for updating an authentication resource. type AuthenticationUpdate struct { Type *AuthenticationType `json:"type,omitempty"` // Descriptive name for the resource. - Name *string `json:"name,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` - Input *AuthInputPartial `json:"input,omitempty"` + Name *string `json:"name,omitempty"` + Platform utils.Nullable[Platform] `json:"platform,omitempty"` + Input *AuthInputPartial `json:"input,omitempty"` } type AuthenticationUpdateOption func(f *AuthenticationUpdate) @@ -29,7 +31,7 @@ func WithAuthenticationUpdateName(val string) AuthenticationUpdateOption { } } -func WithAuthenticationUpdatePlatform(val NullablePlatform) AuthenticationUpdateOption { +func WithAuthenticationUpdatePlatform(val utils.Nullable[Platform]) AuthenticationUpdateOption { return func(f *AuthenticationUpdate) { f.Platform = val } @@ -152,7 +154,7 @@ func (o *AuthenticationUpdate) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. +// SetPlatform gets a reference to the given utils.Nullable[Platform] and assigns it to the Platform field. func (o *AuthenticationUpdate) SetPlatform(v Platform) *AuthenticationUpdate { o.Platform.Set(&v) return o @@ -231,39 +233,3 @@ func (o AuthenticationUpdate) String() string { out += fmt.Sprintf(" input=%v\n", o.Input) return fmt.Sprintf("AuthenticationUpdate {\n%s}", out) } - -type NullableAuthenticationUpdate struct { - value *AuthenticationUpdate - isSet bool -} - -func (v NullableAuthenticationUpdate) Get() *AuthenticationUpdate { - return v.value -} - -func (v *NullableAuthenticationUpdate) Set(val *AuthenticationUpdate) { - v.value = val - v.isSet = true -} - -func (v NullableAuthenticationUpdate) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthenticationUpdate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthenticationUpdate(val *AuthenticationUpdate) *NullableAuthenticationUpdate { - return &NullableAuthenticationUpdate{value: val, isSet: true} -} - -func (v NullableAuthenticationUpdate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthenticationUpdate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_update_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_update_response.go index 171a3fef01..c9d85e2e0f 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_update_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_authentication_update_response.go @@ -134,39 +134,3 @@ func (o AuthenticationUpdateResponse) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("AuthenticationUpdateResponse {\n%s}", out) } - -type NullableAuthenticationUpdateResponse struct { - value *AuthenticationUpdateResponse - isSet bool -} - -func (v NullableAuthenticationUpdateResponse) Get() *AuthenticationUpdateResponse { - return v.value -} - -func (v *NullableAuthenticationUpdateResponse) Set(val *AuthenticationUpdateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableAuthenticationUpdateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthenticationUpdateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthenticationUpdateResponse(val *AuthenticationUpdateResponse) *NullableAuthenticationUpdateResponse { - return &NullableAuthenticationUpdateResponse{value: val, isSet: true} -} - -func (v NullableAuthenticationUpdateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAuthenticationUpdateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_big_commerce_channel.go b/clients/algoliasearch-client-go/algolia/ingestion/model_big_commerce_channel.go index 04b4565f42..24bcf1ec51 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_big_commerce_channel.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_big_commerce_channel.go @@ -120,39 +120,3 @@ func (o BigCommerceChannel) String() string { out += fmt.Sprintf(" currencies=%v\n", o.Currencies) return fmt.Sprintf("BigCommerceChannel {\n%s}", out) } - -type NullableBigCommerceChannel struct { - value *BigCommerceChannel - isSet bool -} - -func (v NullableBigCommerceChannel) Get() *BigCommerceChannel { - return v.value -} - -func (v *NullableBigCommerceChannel) Set(val *BigCommerceChannel) { - v.value = val - v.isSet = true -} - -func (v NullableBigCommerceChannel) IsSet() bool { - return v.isSet -} - -func (v *NullableBigCommerceChannel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBigCommerceChannel(val *BigCommerceChannel) *NullableBigCommerceChannel { - return &NullableBigCommerceChannel{value: val, isSet: true} -} - -func (v NullableBigCommerceChannel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBigCommerceChannel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_big_commerce_metafield.go b/clients/algoliasearch-client-go/algolia/ingestion/model_big_commerce_metafield.go index 2a587b7fcb..da4bbea881 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_big_commerce_metafield.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_big_commerce_metafield.go @@ -102,39 +102,3 @@ func (o BigCommerceMetafield) String() string { out += fmt.Sprintf(" key=%v\n", o.Key) return fmt.Sprintf("BigCommerceMetafield {\n%s}", out) } - -type NullableBigCommerceMetafield struct { - value *BigCommerceMetafield - isSet bool -} - -func (v NullableBigCommerceMetafield) Get() *BigCommerceMetafield { - return v.value -} - -func (v *NullableBigCommerceMetafield) Set(val *BigCommerceMetafield) { - v.value = val - v.isSet = true -} - -func (v NullableBigCommerceMetafield) IsSet() bool { - return v.isSet -} - -func (v *NullableBigCommerceMetafield) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBigCommerceMetafield(val *BigCommerceMetafield) *NullableBigCommerceMetafield { - return &NullableBigCommerceMetafield{value: val, isSet: true} -} - -func (v NullableBigCommerceMetafield) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBigCommerceMetafield) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_big_query_data_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_big_query_data_type.go index e5789af794..b98306e6d4 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_big_query_data_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_big_query_data_type.go @@ -63,39 +63,3 @@ func (v BigQueryDataType) IsValid() bool { func (v BigQueryDataType) Ptr() *BigQueryDataType { return &v } - -type NullableBigQueryDataType struct { - value *BigQueryDataType - isSet bool -} - -func (v NullableBigQueryDataType) Get() *BigQueryDataType { - return v.value -} - -func (v *NullableBigQueryDataType) Set(val *BigQueryDataType) { - v.value = val - v.isSet = true -} - -func (v NullableBigQueryDataType) IsSet() bool { - return v.isSet -} - -func (v *NullableBigQueryDataType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBigQueryDataType(val *BigQueryDataType) *NullableBigQueryDataType { - return &NullableBigQueryDataType{value: val, isSet: true} -} - -func (v NullableBigQueryDataType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBigQueryDataType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_commercetools_custom_fields.go b/clients/algoliasearch-client-go/algolia/ingestion/model_commercetools_custom_fields.go index 9b37708532..6ef34a0e6e 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_commercetools_custom_fields.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_commercetools_custom_fields.go @@ -181,39 +181,3 @@ func (o CommercetoolsCustomFields) String() string { out += fmt.Sprintf(" category=%v\n", o.Category) return fmt.Sprintf("CommercetoolsCustomFields {\n%s}", out) } - -type NullableCommercetoolsCustomFields struct { - value *CommercetoolsCustomFields - isSet bool -} - -func (v NullableCommercetoolsCustomFields) Get() *CommercetoolsCustomFields { - return v.value -} - -func (v *NullableCommercetoolsCustomFields) Set(val *CommercetoolsCustomFields) { - v.value = val - v.isSet = true -} - -func (v NullableCommercetoolsCustomFields) IsSet() bool { - return v.isSet -} - -func (v *NullableCommercetoolsCustomFields) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCommercetoolsCustomFields(val *CommercetoolsCustomFields) *NullableCommercetoolsCustomFields { - return &NullableCommercetoolsCustomFields{value: val, isSet: true} -} - -func (v NullableCommercetoolsCustomFields) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableCommercetoolsCustomFields) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_delete_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_delete_response.go index 18613d03bc..7fa3e1fe44 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_delete_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_delete_response.go @@ -70,39 +70,3 @@ func (o DeleteResponse) String() string { out += fmt.Sprintf(" deletedAt=%v\n", o.DeletedAt) return fmt.Sprintf("DeleteResponse {\n%s}", out) } - -type NullableDeleteResponse struct { - value *DeleteResponse - isSet bool -} - -func (v NullableDeleteResponse) Get() *DeleteResponse { - return v.value -} - -func (v *NullableDeleteResponse) Set(val *DeleteResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDeleteResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDeleteResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeleteResponse(val *DeleteResponse) *NullableDeleteResponse { - return &NullableDeleteResponse{value: val, isSet: true} -} - -func (v NullableDeleteResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDeleteResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_destination.go b/clients/algoliasearch-client-go/algolia/ingestion/model_destination.go index 78e43fed11..f7664aa070 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_destination.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_destination.go @@ -291,39 +291,3 @@ func (o Destination) String() string { out += fmt.Sprintf(" authenticationID=%v\n", o.AuthenticationID) return fmt.Sprintf("Destination {\n%s}", out) } - -type NullableDestination struct { - value *Destination - isSet bool -} - -func (v NullableDestination) Get() *Destination { - return v.value -} - -func (v *NullableDestination) Set(val *Destination) { - v.value = val - v.isSet = true -} - -func (v NullableDestination) IsSet() bool { - return v.isSet -} - -func (v *NullableDestination) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDestination(val *Destination) *NullableDestination { - return &NullableDestination{value: val, isSet: true} -} - -func (v NullableDestination) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDestination) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_create.go b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_create.go index bdf43d22be..f66f9f4fa8 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_create.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_create.go @@ -182,39 +182,3 @@ func (o DestinationCreate) String() string { out += fmt.Sprintf(" authenticationID=%v\n", o.AuthenticationID) return fmt.Sprintf("DestinationCreate {\n%s}", out) } - -type NullableDestinationCreate struct { - value *DestinationCreate - isSet bool -} - -func (v NullableDestinationCreate) Get() *DestinationCreate { - return v.value -} - -func (v *NullableDestinationCreate) Set(val *DestinationCreate) { - v.value = val - v.isSet = true -} - -func (v NullableDestinationCreate) IsSet() bool { - return v.isSet -} - -func (v *NullableDestinationCreate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDestinationCreate(val *DestinationCreate) *NullableDestinationCreate { - return &NullableDestinationCreate{value: val, isSet: true} -} - -func (v NullableDestinationCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDestinationCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_create_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_create_response.go index 270527822d..c814a6cc81 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_create_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_create_response.go @@ -134,39 +134,3 @@ func (o DestinationCreateResponse) String() string { out += fmt.Sprintf(" createdAt=%v\n", o.CreatedAt) return fmt.Sprintf("DestinationCreateResponse {\n%s}", out) } - -type NullableDestinationCreateResponse struct { - value *DestinationCreateResponse - isSet bool -} - -func (v NullableDestinationCreateResponse) Get() *DestinationCreateResponse { - return v.value -} - -func (v *NullableDestinationCreateResponse) Set(val *DestinationCreateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDestinationCreateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDestinationCreateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDestinationCreateResponse(val *DestinationCreateResponse) *NullableDestinationCreateResponse { - return &NullableDestinationCreateResponse{value: val, isSet: true} -} - -func (v NullableDestinationCreateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDestinationCreateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_index_name.go b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_index_name.go index 24b1bf8fa5..0520ab5390 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_index_name.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_index_name.go @@ -164,39 +164,3 @@ func (o DestinationIndexName) String() string { out += fmt.Sprintf(" attributesToExclude=%v\n", o.AttributesToExclude) return fmt.Sprintf("DestinationIndexName {\n%s}", out) } - -type NullableDestinationIndexName struct { - value *DestinationIndexName - isSet bool -} - -func (v NullableDestinationIndexName) Get() *DestinationIndexName { - return v.value -} - -func (v *NullableDestinationIndexName) Set(val *DestinationIndexName) { - v.value = val - v.isSet = true -} - -func (v NullableDestinationIndexName) IsSet() bool { - return v.isSet -} - -func (v *NullableDestinationIndexName) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDestinationIndexName(val *DestinationIndexName) *NullableDestinationIndexName { - return &NullableDestinationIndexName{value: val, isSet: true} -} - -func (v NullableDestinationIndexName) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDestinationIndexName) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_index_prefix.go b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_index_prefix.go index 20f5a28625..e937fb197d 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_index_prefix.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_index_prefix.go @@ -70,39 +70,3 @@ func (o DestinationIndexPrefix) String() string { out += fmt.Sprintf(" indexPrefix=%v\n", o.IndexPrefix) return fmt.Sprintf("DestinationIndexPrefix {\n%s}", out) } - -type NullableDestinationIndexPrefix struct { - value *DestinationIndexPrefix - isSet bool -} - -func (v NullableDestinationIndexPrefix) Get() *DestinationIndexPrefix { - return v.value -} - -func (v *NullableDestinationIndexPrefix) Set(val *DestinationIndexPrefix) { - v.value = val - v.isSet = true -} - -func (v NullableDestinationIndexPrefix) IsSet() bool { - return v.isSet -} - -func (v *NullableDestinationIndexPrefix) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDestinationIndexPrefix(val *DestinationIndexPrefix) *NullableDestinationIndexPrefix { - return &NullableDestinationIndexPrefix{value: val, isSet: true} -} - -func (v NullableDestinationIndexPrefix) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDestinationIndexPrefix) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_input.go index 5f79c31333..9a0f11b248 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_input.go @@ -94,39 +94,3 @@ func (obj DestinationInput) GetActualInstance() any { // all schemas are nil return nil } - -type NullableDestinationInput struct { - value *DestinationInput - isSet bool -} - -func (v NullableDestinationInput) Get() *DestinationInput { - return v.value -} - -func (v *NullableDestinationInput) Set(val *DestinationInput) { - v.value = val - v.isSet = true -} - -func (v NullableDestinationInput) IsSet() bool { - return v.isSet -} - -func (v *NullableDestinationInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDestinationInput(val *DestinationInput) *NullableDestinationInput { - return &NullableDestinationInput{value: val, isSet: true} -} - -func (v NullableDestinationInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDestinationInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_search.go b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_search.go index a1fe2dd586..728b4f6a81 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_search.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_search.go @@ -69,39 +69,3 @@ func (o DestinationSearch) String() string { out += fmt.Sprintf(" destinationIDs=%v\n", o.DestinationIDs) return fmt.Sprintf("DestinationSearch {\n%s}", out) } - -type NullableDestinationSearch struct { - value *DestinationSearch - isSet bool -} - -func (v NullableDestinationSearch) Get() *DestinationSearch { - return v.value -} - -func (v *NullableDestinationSearch) Set(val *DestinationSearch) { - v.value = val - v.isSet = true -} - -func (v NullableDestinationSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableDestinationSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDestinationSearch(val *DestinationSearch) *NullableDestinationSearch { - return &NullableDestinationSearch{value: val, isSet: true} -} - -func (v NullableDestinationSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDestinationSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_sort_keys.go b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_sort_keys.go index fe2cd38480..5c1155b92c 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_sort_keys.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_sort_keys.go @@ -67,39 +67,3 @@ func (v DestinationSortKeys) IsValid() bool { func (v DestinationSortKeys) Ptr() *DestinationSortKeys { return &v } - -type NullableDestinationSortKeys struct { - value *DestinationSortKeys - isSet bool -} - -func (v NullableDestinationSortKeys) Get() *DestinationSortKeys { - return v.value -} - -func (v *NullableDestinationSortKeys) Set(val *DestinationSortKeys) { - v.value = val - v.isSet = true -} - -func (v NullableDestinationSortKeys) IsSet() bool { - return v.isSet -} - -func (v *NullableDestinationSortKeys) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDestinationSortKeys(val *DestinationSortKeys) *NullableDestinationSortKeys { - return &NullableDestinationSortKeys{value: val, isSet: true} -} - -func (v NullableDestinationSortKeys) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDestinationSortKeys) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_type.go index 0c55fcfd2c..0efa06bd4d 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_type.go @@ -63,39 +63,3 @@ func (v DestinationType) IsValid() bool { func (v DestinationType) Ptr() *DestinationType { return &v } - -type NullableDestinationType struct { - value *DestinationType - isSet bool -} - -func (v NullableDestinationType) Get() *DestinationType { - return v.value -} - -func (v *NullableDestinationType) Set(val *DestinationType) { - v.value = val - v.isSet = true -} - -func (v NullableDestinationType) IsSet() bool { - return v.isSet -} - -func (v *NullableDestinationType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDestinationType(val *DestinationType) *NullableDestinationType { - return &NullableDestinationType{value: val, isSet: true} -} - -func (v NullableDestinationType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDestinationType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_update.go b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_update.go index c02eea90a9..6ed01e9b23 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_update.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_update.go @@ -221,39 +221,3 @@ func (o DestinationUpdate) String() string { out += fmt.Sprintf(" authenticationID=%v\n", o.AuthenticationID) return fmt.Sprintf("DestinationUpdate {\n%s}", out) } - -type NullableDestinationUpdate struct { - value *DestinationUpdate - isSet bool -} - -func (v NullableDestinationUpdate) Get() *DestinationUpdate { - return v.value -} - -func (v *NullableDestinationUpdate) Set(val *DestinationUpdate) { - v.value = val - v.isSet = true -} - -func (v NullableDestinationUpdate) IsSet() bool { - return v.isSet -} - -func (v *NullableDestinationUpdate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDestinationUpdate(val *DestinationUpdate) *NullableDestinationUpdate { - return &NullableDestinationUpdate{value: val, isSet: true} -} - -func (v NullableDestinationUpdate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDestinationUpdate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_update_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_update_response.go index 9a4e2260d6..0662baf4a9 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_destination_update_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_destination_update_response.go @@ -134,39 +134,3 @@ func (o DestinationUpdateResponse) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("DestinationUpdateResponse {\n%s}", out) } - -type NullableDestinationUpdateResponse struct { - value *DestinationUpdateResponse - isSet bool -} - -func (v NullableDestinationUpdateResponse) Get() *DestinationUpdateResponse { - return v.value -} - -func (v *NullableDestinationUpdateResponse) Set(val *DestinationUpdateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDestinationUpdateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDestinationUpdateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDestinationUpdateResponse(val *DestinationUpdateResponse) *NullableDestinationUpdateResponse { - return &NullableDestinationUpdateResponse{value: val, isSet: true} -} - -func (v NullableDestinationUpdateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDestinationUpdateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_docker_image_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_docker_image_type.go index 059ff29442..49783206bc 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_docker_image_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_docker_image_type.go @@ -65,39 +65,3 @@ func (v DockerImageType) IsValid() bool { func (v DockerImageType) Ptr() *DockerImageType { return &v } - -type NullableDockerImageType struct { - value *DockerImageType - isSet bool -} - -func (v NullableDockerImageType) Get() *DockerImageType { - return v.value -} - -func (v *NullableDockerImageType) Set(val *DockerImageType) { - v.value = val - v.isSet = true -} - -func (v NullableDockerImageType) IsSet() bool { - return v.isSet -} - -func (v *NullableDockerImageType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDockerImageType(val *DockerImageType) *NullableDockerImageType { - return &NullableDockerImageType{value: val, isSet: true} -} - -func (v NullableDockerImageType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDockerImageType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_docker_registry.go b/clients/algoliasearch-client-go/algolia/ingestion/model_docker_registry.go index 833a5d596b..4a89afbef6 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_docker_registry.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_docker_registry.go @@ -63,39 +63,3 @@ func (v DockerRegistry) IsValid() bool { func (v DockerRegistry) Ptr() *DockerRegistry { return &v } - -type NullableDockerRegistry struct { - value *DockerRegistry - isSet bool -} - -func (v NullableDockerRegistry) Get() *DockerRegistry { - return v.value -} - -func (v *NullableDockerRegistry) Set(val *DockerRegistry) { - v.value = val - v.isSet = true -} - -func (v NullableDockerRegistry) IsSet() bool { - return v.isSet -} - -func (v *NullableDockerRegistry) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDockerRegistry(val *DockerRegistry) *NullableDockerRegistry { - return &NullableDockerRegistry{value: val, isSet: true} -} - -func (v NullableDockerRegistry) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDockerRegistry) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_docker_source_discover.go b/clients/algoliasearch-client-go/algolia/ingestion/model_docker_source_discover.go index 4206dfa82e..41da652de5 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_docker_source_discover.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_docker_source_discover.go @@ -102,39 +102,3 @@ func (o DockerSourceDiscover) String() string { out += fmt.Sprintf(" createdAt=%v\n", o.CreatedAt) return fmt.Sprintf("DockerSourceDiscover {\n%s}", out) } - -type NullableDockerSourceDiscover struct { - value *DockerSourceDiscover - isSet bool -} - -func (v NullableDockerSourceDiscover) Get() *DockerSourceDiscover { - return v.value -} - -func (v *NullableDockerSourceDiscover) Set(val *DockerSourceDiscover) { - v.value = val - v.isSet = true -} - -func (v NullableDockerSourceDiscover) IsSet() bool { - return v.isSet -} - -func (v *NullableDockerSourceDiscover) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDockerSourceDiscover(val *DockerSourceDiscover) *NullableDockerSourceDiscover { - return &NullableDockerSourceDiscover{value: val, isSet: true} -} - -func (v NullableDockerSourceDiscover) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDockerSourceDiscover) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_docker_source_streams.go b/clients/algoliasearch-client-go/algolia/ingestion/model_docker_source_streams.go index dafc35fc9b..6475917429 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_docker_source_streams.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_docker_source_streams.go @@ -69,39 +69,3 @@ func (o DockerSourceStreams) String() string { out += fmt.Sprintf(" streams=%v\n", o.Streams) return fmt.Sprintf("DockerSourceStreams {\n%s}", out) } - -type NullableDockerSourceStreams struct { - value *DockerSourceStreams - isSet bool -} - -func (v NullableDockerSourceStreams) Get() *DockerSourceStreams { - return v.value -} - -func (v *NullableDockerSourceStreams) Set(val *DockerSourceStreams) { - v.value = val - v.isSet = true -} - -func (v NullableDockerSourceStreams) IsSet() bool { - return v.isSet -} - -func (v *NullableDockerSourceStreams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDockerSourceStreams(val *DockerSourceStreams) *NullableDockerSourceStreams { - return &NullableDockerSourceStreams{value: val, isSet: true} -} - -func (v NullableDockerSourceStreams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDockerSourceStreams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_error_base.go b/clients/algoliasearch-client-go/algolia/ingestion/model_error_base.go index bad14fe66d..5f3a3401fd 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_error_base.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_error_base.go @@ -131,39 +131,3 @@ func (o ErrorBase) String() string { } return fmt.Sprintf("ErrorBase {\n%s}", out) } - -type NullableErrorBase struct { - value *ErrorBase - isSet bool -} - -func (v NullableErrorBase) Get() *ErrorBase { - return v.value -} - -func (v *NullableErrorBase) Set(val *ErrorBase) { - v.value = val - v.isSet = true -} - -func (v NullableErrorBase) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorBase) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorBase(val *ErrorBase) *NullableErrorBase { - return &NullableErrorBase{value: val, isSet: true} -} - -func (v NullableErrorBase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableErrorBase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_event.go b/clients/algoliasearch-client-go/algolia/ingestion/model_event.go index 5e880c259d..38f6ca3616 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_event.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_event.go @@ -322,39 +322,3 @@ func (o Event) String() string { out += fmt.Sprintf(" publishedAt=%v\n", o.PublishedAt) return fmt.Sprintf("Event {\n%s}", out) } - -type NullableEvent struct { - value *Event - isSet bool -} - -func (v NullableEvent) Get() *Event { - return v.value -} - -func (v *NullableEvent) Set(val *Event) { - v.value = val - v.isSet = true -} - -func (v NullableEvent) IsSet() bool { - return v.isSet -} - -func (v *NullableEvent) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEvent(val *Event) *NullableEvent { - return &NullableEvent{value: val, isSet: true} -} - -func (v NullableEvent) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEvent) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_event_sort_keys.go b/clients/algoliasearch-client-go/algolia/ingestion/model_event_sort_keys.go index 74f27ccf57..d414fd698b 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_event_sort_keys.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_event_sort_keys.go @@ -65,39 +65,3 @@ func (v EventSortKeys) IsValid() bool { func (v EventSortKeys) Ptr() *EventSortKeys { return &v } - -type NullableEventSortKeys struct { - value *EventSortKeys - isSet bool -} - -func (v NullableEventSortKeys) Get() *EventSortKeys { - return v.value -} - -func (v *NullableEventSortKeys) Set(val *EventSortKeys) { - v.value = val - v.isSet = true -} - -func (v NullableEventSortKeys) IsSet() bool { - return v.isSet -} - -func (v *NullableEventSortKeys) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEventSortKeys(val *EventSortKeys) *NullableEventSortKeys { - return &NullableEventSortKeys{value: val, isSet: true} -} - -func (v NullableEventSortKeys) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEventSortKeys) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_event_status.go b/clients/algoliasearch-client-go/algolia/ingestion/model_event_status.go index ba703164da..ff61ddc6f9 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_event_status.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_event_status.go @@ -71,39 +71,3 @@ func (v EventStatus) IsValid() bool { func (v EventStatus) Ptr() *EventStatus { return &v } - -type NullableEventStatus struct { - value *EventStatus - isSet bool -} - -func (v NullableEventStatus) Get() *EventStatus { - return v.value -} - -func (v *NullableEventStatus) Set(val *EventStatus) { - v.value = val - v.isSet = true -} - -func (v NullableEventStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableEventStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEventStatus(val *EventStatus) *NullableEventStatus { - return &NullableEventStatus{value: val, isSet: true} -} - -func (v NullableEventStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEventStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_event_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_event_type.go index e73361df52..108a1986ba 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_event_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_event_type.go @@ -67,39 +67,3 @@ func (v EventType) IsValid() bool { func (v EventType) Ptr() *EventType { return &v } - -type NullableEventType struct { - value *EventType - isSet bool -} - -func (v NullableEventType) Get() *EventType { - return v.value -} - -func (v *NullableEventType) Set(val *EventType) { - v.value = val - v.isSet = true -} - -func (v NullableEventType) IsSet() bool { - return v.isSet -} - -func (v *NullableEventType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEventType(val *EventType) *NullableEventType { - return &NullableEventType{value: val, isSet: true} -} - -func (v NullableEventType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEventType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_list_authentications_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_list_authentications_response.go index 94949f017c..cbe282366c 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_list_authentications_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_list_authentications_response.go @@ -100,39 +100,3 @@ func (o ListAuthenticationsResponse) String() string { out += fmt.Sprintf(" pagination=%v\n", o.Pagination) return fmt.Sprintf("ListAuthenticationsResponse {\n%s}", out) } - -type NullableListAuthenticationsResponse struct { - value *ListAuthenticationsResponse - isSet bool -} - -func (v NullableListAuthenticationsResponse) Get() *ListAuthenticationsResponse { - return v.value -} - -func (v *NullableListAuthenticationsResponse) Set(val *ListAuthenticationsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListAuthenticationsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListAuthenticationsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListAuthenticationsResponse(val *ListAuthenticationsResponse) *NullableListAuthenticationsResponse { - return &NullableListAuthenticationsResponse{value: val, isSet: true} -} - -func (v NullableListAuthenticationsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableListAuthenticationsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_list_destinations_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_list_destinations_response.go index 392add8714..305108b360 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_list_destinations_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_list_destinations_response.go @@ -100,39 +100,3 @@ func (o ListDestinationsResponse) String() string { out += fmt.Sprintf(" pagination=%v\n", o.Pagination) return fmt.Sprintf("ListDestinationsResponse {\n%s}", out) } - -type NullableListDestinationsResponse struct { - value *ListDestinationsResponse - isSet bool -} - -func (v NullableListDestinationsResponse) Get() *ListDestinationsResponse { - return v.value -} - -func (v *NullableListDestinationsResponse) Set(val *ListDestinationsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListDestinationsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListDestinationsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListDestinationsResponse(val *ListDestinationsResponse) *NullableListDestinationsResponse { - return &NullableListDestinationsResponse{value: val, isSet: true} -} - -func (v NullableListDestinationsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableListDestinationsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_list_events_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_list_events_response.go index 134531eb52..b3a465e3a2 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_list_events_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_list_events_response.go @@ -131,39 +131,3 @@ func (o ListEventsResponse) String() string { out += fmt.Sprintf(" window=%v\n", o.Window) return fmt.Sprintf("ListEventsResponse {\n%s}", out) } - -type NullableListEventsResponse struct { - value *ListEventsResponse - isSet bool -} - -func (v NullableListEventsResponse) Get() *ListEventsResponse { - return v.value -} - -func (v *NullableListEventsResponse) Set(val *ListEventsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListEventsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListEventsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListEventsResponse(val *ListEventsResponse) *NullableListEventsResponse { - return &NullableListEventsResponse{value: val, isSet: true} -} - -func (v NullableListEventsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableListEventsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_list_sources_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_list_sources_response.go index 1f7104fd84..9db3843fd6 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_list_sources_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_list_sources_response.go @@ -100,39 +100,3 @@ func (o ListSourcesResponse) String() string { out += fmt.Sprintf(" pagination=%v\n", o.Pagination) return fmt.Sprintf("ListSourcesResponse {\n%s}", out) } - -type NullableListSourcesResponse struct { - value *ListSourcesResponse - isSet bool -} - -func (v NullableListSourcesResponse) Get() *ListSourcesResponse { - return v.value -} - -func (v *NullableListSourcesResponse) Set(val *ListSourcesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListSourcesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListSourcesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListSourcesResponse(val *ListSourcesResponse) *NullableListSourcesResponse { - return &NullableListSourcesResponse{value: val, isSet: true} -} - -func (v NullableListSourcesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableListSourcesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_list_tasks_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_list_tasks_response.go index df4d2cefe4..bc948ac40f 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_list_tasks_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_list_tasks_response.go @@ -100,39 +100,3 @@ func (o ListTasksResponse) String() string { out += fmt.Sprintf(" pagination=%v\n", o.Pagination) return fmt.Sprintf("ListTasksResponse {\n%s}", out) } - -type NullableListTasksResponse struct { - value *ListTasksResponse - isSet bool -} - -func (v NullableListTasksResponse) Get() *ListTasksResponse { - return v.value -} - -func (v *NullableListTasksResponse) Set(val *ListTasksResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListTasksResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListTasksResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListTasksResponse(val *ListTasksResponse) *NullableListTasksResponse { - return &NullableListTasksResponse{value: val, isSet: true} -} - -func (v NullableListTasksResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableListTasksResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_field_directive.go b/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_field_directive.go index 28b785f3d0..451a2d1c4e 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_field_directive.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_field_directive.go @@ -102,39 +102,3 @@ func (o MappingFieldDirective) String() string { out += fmt.Sprintf(" value=%v\n", o.Value) return fmt.Sprintf("MappingFieldDirective {\n%s}", out) } - -type NullableMappingFieldDirective struct { - value *MappingFieldDirective - isSet bool -} - -func (v NullableMappingFieldDirective) Get() *MappingFieldDirective { - return v.value -} - -func (v *NullableMappingFieldDirective) Set(val *MappingFieldDirective) { - v.value = val - v.isSet = true -} - -func (v NullableMappingFieldDirective) IsSet() bool { - return v.isSet -} - -func (v *NullableMappingFieldDirective) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMappingFieldDirective(val *MappingFieldDirective) *NullableMappingFieldDirective { - return &NullableMappingFieldDirective{value: val, isSet: true} -} - -func (v NullableMappingFieldDirective) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMappingFieldDirective) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_format_schema.go b/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_format_schema.go index 4830f3fa30..2e7a0c8bd8 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_format_schema.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_format_schema.go @@ -61,39 +61,3 @@ func (v MappingFormatSchema) IsValid() bool { func (v MappingFormatSchema) Ptr() *MappingFormatSchema { return &v } - -type NullableMappingFormatSchema struct { - value *MappingFormatSchema - isSet bool -} - -func (v NullableMappingFormatSchema) Get() *MappingFormatSchema { - return v.value -} - -func (v *NullableMappingFormatSchema) Set(val *MappingFormatSchema) { - v.value = val - v.isSet = true -} - -func (v NullableMappingFormatSchema) IsSet() bool { - return v.isSet -} - -func (v *NullableMappingFormatSchema) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMappingFormatSchema(val *MappingFormatSchema) *NullableMappingFormatSchema { - return &NullableMappingFormatSchema{value: val, isSet: true} -} - -func (v NullableMappingFormatSchema) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMappingFormatSchema) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_input.go index b13c0aae73..d33fa1dcbb 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_input.go @@ -100,39 +100,3 @@ func (o MappingInput) String() string { out += fmt.Sprintf(" actions=%v\n", o.Actions) return fmt.Sprintf("MappingInput {\n%s}", out) } - -type NullableMappingInput struct { - value *MappingInput - isSet bool -} - -func (v NullableMappingInput) Get() *MappingInput { - return v.value -} - -func (v *NullableMappingInput) Set(val *MappingInput) { - v.value = val - v.isSet = true -} - -func (v NullableMappingInput) IsSet() bool { - return v.isSet -} - -func (v *NullableMappingInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMappingInput(val *MappingInput) *NullableMappingInput { - return &NullableMappingInput{value: val, isSet: true} -} - -func (v NullableMappingInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMappingInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_kit_action.go b/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_kit_action.go index eb32cac785..2645a69dee 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_kit_action.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_kit_action.go @@ -183,39 +183,3 @@ func (o MappingKitAction) String() string { out += fmt.Sprintf(" fieldDirectives=%v\n", o.FieldDirectives) return fmt.Sprintf("MappingKitAction {\n%s}", out) } - -type NullableMappingKitAction struct { - value *MappingKitAction - isSet bool -} - -func (v NullableMappingKitAction) Get() *MappingKitAction { - return v.value -} - -func (v *NullableMappingKitAction) Set(val *MappingKitAction) { - v.value = val - v.isSet = true -} - -func (v NullableMappingKitAction) IsSet() bool { - return v.isSet -} - -func (v *NullableMappingKitAction) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMappingKitAction(val *MappingKitAction) *NullableMappingKitAction { - return &NullableMappingKitAction{value: val, isSet: true} -} - -func (v NullableMappingKitAction) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMappingKitAction) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_type_csv.go b/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_type_csv.go index ff7c585e32..2c2d2702f4 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_type_csv.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_mapping_type_csv.go @@ -69,39 +69,3 @@ func (v MappingTypeCSV) IsValid() bool { func (v MappingTypeCSV) Ptr() *MappingTypeCSV { return &v } - -type NullableMappingTypeCSV struct { - value *MappingTypeCSV - isSet bool -} - -func (v NullableMappingTypeCSV) Get() *MappingTypeCSV { - return v.value -} - -func (v *NullableMappingTypeCSV) Set(val *MappingTypeCSV) { - v.value = val - v.isSet = true -} - -func (v NullableMappingTypeCSV) IsSet() bool { - return v.isSet -} - -func (v *NullableMappingTypeCSV) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMappingTypeCSV(val *MappingTypeCSV) *NullableMappingTypeCSV { - return &NullableMappingTypeCSV{value: val, isSet: true} -} - -func (v NullableMappingTypeCSV) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMappingTypeCSV) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_method_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_method_type.go index f7de1973e1..2000ba1c63 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_method_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_method_type.go @@ -63,39 +63,3 @@ func (v MethodType) IsValid() bool { func (v MethodType) Ptr() *MethodType { return &v } - -type NullableMethodType struct { - value *MethodType - isSet bool -} - -func (v NullableMethodType) Get() *MethodType { - return v.value -} - -func (v *NullableMethodType) Set(val *MethodType) { - v.value = val - v.isSet = true -} - -func (v NullableMethodType) IsSet() bool { - return v.isSet -} - -func (v *NullableMethodType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMethodType(val *MethodType) *NullableMethodType { - return &NullableMethodType{value: val, isSet: true} -} - -func (v NullableMethodType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMethodType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_date_utils_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_date_utils_input.go index f3087d47a4..ed9633fb00 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_date_utils_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_date_utils_input.go @@ -151,39 +151,3 @@ func (o OnDemandDateUtilsInput) String() string { out += fmt.Sprintf(" mapping=%v\n", o.Mapping) return fmt.Sprintf("OnDemandDateUtilsInput {\n%s}", out) } - -type NullableOnDemandDateUtilsInput struct { - value *OnDemandDateUtilsInput - isSet bool -} - -func (v NullableOnDemandDateUtilsInput) Get() *OnDemandDateUtilsInput { - return v.value -} - -func (v *NullableOnDemandDateUtilsInput) Set(val *OnDemandDateUtilsInput) { - v.value = val - v.isSet = true -} - -func (v NullableOnDemandDateUtilsInput) IsSet() bool { - return v.isSet -} - -func (v *NullableOnDemandDateUtilsInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOnDemandDateUtilsInput(val *OnDemandDateUtilsInput) *NullableOnDemandDateUtilsInput { - return &NullableOnDemandDateUtilsInput{value: val, isSet: true} -} - -func (v NullableOnDemandDateUtilsInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOnDemandDateUtilsInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger.go b/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger.go index d0d87d49e6..9ee0a5c634 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger.go @@ -119,39 +119,3 @@ func (o OnDemandTrigger) String() string { out += fmt.Sprintf(" lastRun=%v\n", o.LastRun) return fmt.Sprintf("OnDemandTrigger {\n%s}", out) } - -type NullableOnDemandTrigger struct { - value *OnDemandTrigger - isSet bool -} - -func (v NullableOnDemandTrigger) Get() *OnDemandTrigger { - return v.value -} - -func (v *NullableOnDemandTrigger) Set(val *OnDemandTrigger) { - v.value = val - v.isSet = true -} - -func (v NullableOnDemandTrigger) IsSet() bool { - return v.isSet -} - -func (v *NullableOnDemandTrigger) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOnDemandTrigger(val *OnDemandTrigger) *NullableOnDemandTrigger { - return &NullableOnDemandTrigger{value: val, isSet: true} -} - -func (v NullableOnDemandTrigger) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOnDemandTrigger) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger_input.go index 2d7cc95581..bc1e6d2872 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger_input.go @@ -69,39 +69,3 @@ func (o OnDemandTriggerInput) String() string { out += fmt.Sprintf(" type=%v\n", o.Type) return fmt.Sprintf("OnDemandTriggerInput {\n%s}", out) } - -type NullableOnDemandTriggerInput struct { - value *OnDemandTriggerInput - isSet bool -} - -func (v NullableOnDemandTriggerInput) Get() *OnDemandTriggerInput { - return v.value -} - -func (v *NullableOnDemandTriggerInput) Set(val *OnDemandTriggerInput) { - v.value = val - v.isSet = true -} - -func (v NullableOnDemandTriggerInput) IsSet() bool { - return v.isSet -} - -func (v *NullableOnDemandTriggerInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOnDemandTriggerInput(val *OnDemandTriggerInput) *NullableOnDemandTriggerInput { - return &NullableOnDemandTriggerInput{value: val, isSet: true} -} - -func (v NullableOnDemandTriggerInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOnDemandTriggerInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger_type.go index f3f83f11c1..df5daa1c06 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_on_demand_trigger_type.go @@ -61,39 +61,3 @@ func (v OnDemandTriggerType) IsValid() bool { func (v OnDemandTriggerType) Ptr() *OnDemandTriggerType { return &v } - -type NullableOnDemandTriggerType struct { - value *OnDemandTriggerType - isSet bool -} - -func (v NullableOnDemandTriggerType) Get() *OnDemandTriggerType { - return v.value -} - -func (v *NullableOnDemandTriggerType) Set(val *OnDemandTriggerType) { - v.value = val - v.isSet = true -} - -func (v NullableOnDemandTriggerType) IsSet() bool { - return v.isSet -} - -func (v *NullableOnDemandTriggerType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOnDemandTriggerType(val *OnDemandTriggerType) *NullableOnDemandTriggerType { - return &NullableOnDemandTriggerType{value: val, isSet: true} -} - -func (v NullableOnDemandTriggerType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOnDemandTriggerType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_order_keys.go b/clients/algoliasearch-client-go/algolia/ingestion/model_order_keys.go index 93dd58f413..0a575cfa0f 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_order_keys.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_order_keys.go @@ -63,39 +63,3 @@ func (v OrderKeys) IsValid() bool { func (v OrderKeys) Ptr() *OrderKeys { return &v } - -type NullableOrderKeys struct { - value *OrderKeys - isSet bool -} - -func (v NullableOrderKeys) Get() *OrderKeys { - return v.value -} - -func (v *NullableOrderKeys) Set(val *OrderKeys) { - v.value = val - v.isSet = true -} - -func (v NullableOrderKeys) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderKeys) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderKeys(val *OrderKeys) *NullableOrderKeys { - return &NullableOrderKeys{value: val, isSet: true} -} - -func (v NullableOrderKeys) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOrderKeys) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_pagination.go b/clients/algoliasearch-client-go/algolia/ingestion/model_pagination.go index 66ac37f07f..3eea8f295b 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_pagination.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_pagination.go @@ -166,39 +166,3 @@ func (o Pagination) String() string { out += fmt.Sprintf(" itemsPerPage=%v\n", o.ItemsPerPage) return fmt.Sprintf("Pagination {\n%s}", out) } - -type NullablePagination struct { - value *Pagination - isSet bool -} - -func (v NullablePagination) Get() *Pagination { - return v.value -} - -func (v *NullablePagination) Set(val *Pagination) { - v.value = val - v.isSet = true -} - -func (v NullablePagination) IsSet() bool { - return v.isSet -} - -func (v *NullablePagination) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePagination(val *Pagination) *NullablePagination { - return &NullablePagination{value: val, isSet: true} -} - -func (v NullablePagination) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePagination) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_platform.go b/clients/algoliasearch-client-go/algolia/ingestion/model_platform.go index 461796b147..ad83241fe1 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_platform.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_platform.go @@ -65,39 +65,3 @@ func (v Platform) IsValid() bool { func (v Platform) Ptr() *Platform { return &v } - -type NullablePlatform struct { - value *Platform - isSet bool -} - -func (v NullablePlatform) Get() *Platform { - return v.value -} - -func (v *NullablePlatform) Set(val *Platform) { - v.value = val - v.isSet = true -} - -func (v NullablePlatform) IsSet() bool { - return v.isSet -} - -func (v *NullablePlatform) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePlatform(val *Platform) *NullablePlatform { - return &NullablePlatform{value: val, isSet: true} -} - -func (v NullablePlatform) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePlatform) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_platform_none.go b/clients/algoliasearch-client-go/algolia/ingestion/model_platform_none.go index 4720ad13f9..faaf6fd548 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_platform_none.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_platform_none.go @@ -61,39 +61,3 @@ func (v PlatformNone) IsValid() bool { func (v PlatformNone) Ptr() *PlatformNone { return &v } - -type NullablePlatformNone struct { - value *PlatformNone - isSet bool -} - -func (v NullablePlatformNone) Get() *PlatformNone { - return v.value -} - -func (v *NullablePlatformNone) Set(val *PlatformNone) { - v.value = val - v.isSet = true -} - -func (v NullablePlatformNone) IsSet() bool { - return v.isSet -} - -func (v *NullablePlatformNone) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePlatformNone(val *PlatformNone) *NullablePlatformNone { - return &NullablePlatformNone{value: val, isSet: true} -} - -func (v NullablePlatformNone) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePlatformNone) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_platform_with_none.go b/clients/algoliasearch-client-go/algolia/ingestion/model_platform_with_none.go index b22371a88a..dcab94859c 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_platform_with_none.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_platform_with_none.go @@ -94,39 +94,3 @@ func (obj PlatformWithNone) GetActualInstance() any { // all schemas are nil return nil } - -type NullablePlatformWithNone struct { - value *PlatformWithNone - isSet bool -} - -func (v NullablePlatformWithNone) Get() *PlatformWithNone { - return v.value -} - -func (v *NullablePlatformWithNone) Set(val *PlatformWithNone) { - v.value = val - v.isSet = true -} - -func (v NullablePlatformWithNone) IsSet() bool { - return v.isSet -} - -func (v *NullablePlatformWithNone) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePlatformWithNone(val *PlatformWithNone) *NullablePlatformWithNone { - return &NullablePlatformWithNone{value: val, isSet: true} -} - -func (v NullablePlatformWithNone) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePlatformWithNone) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_record_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_record_type.go index 2ad887b2d8..d2f22fb54c 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_record_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_record_type.go @@ -63,39 +63,3 @@ func (v RecordType) IsValid() bool { func (v RecordType) Ptr() *RecordType { return &v } - -type NullableRecordType struct { - value *RecordType - isSet bool -} - -func (v NullableRecordType) Get() *RecordType { - return v.value -} - -func (v *NullableRecordType) Set(val *RecordType) { - v.value = val - v.isSet = true -} - -func (v NullableRecordType) IsSet() bool { - return v.isSet -} - -func (v *NullableRecordType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecordType(val *RecordType) *NullableRecordType { - return &NullableRecordType{value: val, isSet: true} -} - -func (v NullableRecordType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecordType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_run.go b/clients/algoliasearch-client-go/algolia/ingestion/model_run.go index 013ad2f621..07a1b194c6 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_run.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_run.go @@ -544,39 +544,3 @@ func (o Run) String() string { out += fmt.Sprintf(" finishedAt=%v\n", o.FinishedAt) return fmt.Sprintf("Run {\n%s}", out) } - -type NullableRun struct { - value *Run - isSet bool -} - -func (v NullableRun) Get() *Run { - return v.value -} - -func (v *NullableRun) Set(val *Run) { - v.value = val - v.isSet = true -} - -func (v NullableRun) IsSet() bool { - return v.isSet -} - -func (v *NullableRun) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRun(val *Run) *NullableRun { - return &NullableRun{value: val, isSet: true} -} - -func (v NullableRun) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRun) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_run_list_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_run_list_response.go index 896d2350f9..213efddb24 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_run_list_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_run_list_response.go @@ -131,39 +131,3 @@ func (o RunListResponse) String() string { out += fmt.Sprintf(" window=%v\n", o.Window) return fmt.Sprintf("RunListResponse {\n%s}", out) } - -type NullableRunListResponse struct { - value *RunListResponse - isSet bool -} - -func (v NullableRunListResponse) Get() *RunListResponse { - return v.value -} - -func (v *NullableRunListResponse) Set(val *RunListResponse) { - v.value = val - v.isSet = true -} - -func (v NullableRunListResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableRunListResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRunListResponse(val *RunListResponse) *NullableRunListResponse { - return &NullableRunListResponse{value: val, isSet: true} -} - -func (v NullableRunListResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRunListResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_run_outcome.go b/clients/algoliasearch-client-go/algolia/ingestion/model_run_outcome.go index 0ba0f3f724..f49a4dddb0 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_run_outcome.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_run_outcome.go @@ -65,39 +65,3 @@ func (v RunOutcome) IsValid() bool { func (v RunOutcome) Ptr() *RunOutcome { return &v } - -type NullableRunOutcome struct { - value *RunOutcome - isSet bool -} - -func (v NullableRunOutcome) Get() *RunOutcome { - return v.value -} - -func (v *NullableRunOutcome) Set(val *RunOutcome) { - v.value = val - v.isSet = true -} - -func (v NullableRunOutcome) IsSet() bool { - return v.isSet -} - -func (v *NullableRunOutcome) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRunOutcome(val *RunOutcome) *NullableRunOutcome { - return &NullableRunOutcome{value: val, isSet: true} -} - -func (v NullableRunOutcome) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRunOutcome) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_run_progress.go b/clients/algoliasearch-client-go/algolia/ingestion/model_run_progress.go index 31bd7c8497..c8ac62b20b 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_run_progress.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_run_progress.go @@ -131,39 +131,3 @@ func (o RunProgress) String() string { out += fmt.Sprintf(" receivedNbOfEvents=%v\n", o.ReceivedNbOfEvents) return fmt.Sprintf("RunProgress {\n%s}", out) } - -type NullableRunProgress struct { - value *RunProgress - isSet bool -} - -func (v NullableRunProgress) Get() *RunProgress { - return v.value -} - -func (v *NullableRunProgress) Set(val *RunProgress) { - v.value = val - v.isSet = true -} - -func (v NullableRunProgress) IsSet() bool { - return v.isSet -} - -func (v *NullableRunProgress) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRunProgress(val *RunProgress) *NullableRunProgress { - return &NullableRunProgress{value: val, isSet: true} -} - -func (v NullableRunProgress) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRunProgress) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_run_reason_code.go b/clients/algoliasearch-client-go/algolia/ingestion/model_run_reason_code.go index af808e59bc..9eec162ebf 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_run_reason_code.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_run_reason_code.go @@ -73,39 +73,3 @@ func (v RunReasonCode) IsValid() bool { func (v RunReasonCode) Ptr() *RunReasonCode { return &v } - -type NullableRunReasonCode struct { - value *RunReasonCode - isSet bool -} - -func (v NullableRunReasonCode) Get() *RunReasonCode { - return v.value -} - -func (v *NullableRunReasonCode) Set(val *RunReasonCode) { - v.value = val - v.isSet = true -} - -func (v NullableRunReasonCode) IsSet() bool { - return v.isSet -} - -func (v *NullableRunReasonCode) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRunReasonCode(val *RunReasonCode) *NullableRunReasonCode { - return &NullableRunReasonCode{value: val, isSet: true} -} - -func (v NullableRunReasonCode) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRunReasonCode) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_run_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_run_response.go index c8918316e4..8f9493ceeb 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_run_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_run_response.go @@ -102,39 +102,3 @@ func (o RunResponse) String() string { out += fmt.Sprintf(" createdAt=%v\n", o.CreatedAt) return fmt.Sprintf("RunResponse {\n%s}", out) } - -type NullableRunResponse struct { - value *RunResponse - isSet bool -} - -func (v NullableRunResponse) Get() *RunResponse { - return v.value -} - -func (v *NullableRunResponse) Set(val *RunResponse) { - v.value = val - v.isSet = true -} - -func (v NullableRunResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableRunResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRunResponse(val *RunResponse) *NullableRunResponse { - return &NullableRunResponse{value: val, isSet: true} -} - -func (v NullableRunResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRunResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_run_sort_keys.go b/clients/algoliasearch-client-go/algolia/ingestion/model_run_sort_keys.go index 0f4c52e6ab..27499d5a65 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_run_sort_keys.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_run_sort_keys.go @@ -65,39 +65,3 @@ func (v RunSortKeys) IsValid() bool { func (v RunSortKeys) Ptr() *RunSortKeys { return &v } - -type NullableRunSortKeys struct { - value *RunSortKeys - isSet bool -} - -func (v NullableRunSortKeys) Get() *RunSortKeys { - return v.value -} - -func (v *NullableRunSortKeys) Set(val *RunSortKeys) { - v.value = val - v.isSet = true -} - -func (v NullableRunSortKeys) IsSet() bool { - return v.isSet -} - -func (v *NullableRunSortKeys) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRunSortKeys(val *RunSortKeys) *NullableRunSortKeys { - return &NullableRunSortKeys{value: val, isSet: true} -} - -func (v NullableRunSortKeys) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRunSortKeys) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_run_status.go b/clients/algoliasearch-client-go/algolia/ingestion/model_run_status.go index cdf9e07086..e1bc48d99b 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_run_status.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_run_status.go @@ -69,39 +69,3 @@ func (v RunStatus) IsValid() bool { func (v RunStatus) Ptr() *RunStatus { return &v } - -type NullableRunStatus struct { - value *RunStatus - isSet bool -} - -func (v NullableRunStatus) Get() *RunStatus { - return v.value -} - -func (v *NullableRunStatus) Set(val *RunStatus) { - v.value = val - v.isSet = true -} - -func (v NullableRunStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableRunStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRunStatus(val *RunStatus) *NullableRunStatus { - return &NullableRunStatus{value: val, isSet: true} -} - -func (v NullableRunStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRunStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_run_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_run_type.go index b76795cdec..1a96f3d912 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_run_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_run_type.go @@ -65,39 +65,3 @@ func (v RunType) IsValid() bool { func (v RunType) Ptr() *RunType { return &v } - -type NullableRunType struct { - value *RunType - isSet bool -} - -func (v NullableRunType) Get() *RunType { - return v.value -} - -func (v *NullableRunType) Set(val *RunType) { - v.value = val - v.isSet = true -} - -func (v NullableRunType) IsSet() bool { - return v.isSet -} - -func (v *NullableRunType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRunType(val *RunType) *NullableRunType { - return &NullableRunType{value: val, isSet: true} -} - -func (v NullableRunType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRunType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_date_utils_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_date_utils_input.go index 52e04bdb37..626f37d24d 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_date_utils_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_date_utils_input.go @@ -119,39 +119,3 @@ func (o ScheduleDateUtilsInput) String() string { out += fmt.Sprintf(" mapping=%v\n", o.Mapping) return fmt.Sprintf("ScheduleDateUtilsInput {\n%s}", out) } - -type NullableScheduleDateUtilsInput struct { - value *ScheduleDateUtilsInput - isSet bool -} - -func (v NullableScheduleDateUtilsInput) Get() *ScheduleDateUtilsInput { - return v.value -} - -func (v *NullableScheduleDateUtilsInput) Set(val *ScheduleDateUtilsInput) { - v.value = val - v.isSet = true -} - -func (v NullableScheduleDateUtilsInput) IsSet() bool { - return v.isSet -} - -func (v *NullableScheduleDateUtilsInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableScheduleDateUtilsInput(val *ScheduleDateUtilsInput) *NullableScheduleDateUtilsInput { - return &NullableScheduleDateUtilsInput{value: val, isSet: true} -} - -func (v NullableScheduleDateUtilsInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableScheduleDateUtilsInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger.go b/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger.go index 6fb57f046c..2634ae5ca9 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger.go @@ -183,39 +183,3 @@ func (o ScheduleTrigger) String() string { out += fmt.Sprintf(" nextRun=%v\n", o.NextRun) return fmt.Sprintf("ScheduleTrigger {\n%s}", out) } - -type NullableScheduleTrigger struct { - value *ScheduleTrigger - isSet bool -} - -func (v NullableScheduleTrigger) Get() *ScheduleTrigger { - return v.value -} - -func (v *NullableScheduleTrigger) Set(val *ScheduleTrigger) { - v.value = val - v.isSet = true -} - -func (v NullableScheduleTrigger) IsSet() bool { - return v.isSet -} - -func (v *NullableScheduleTrigger) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableScheduleTrigger(val *ScheduleTrigger) *NullableScheduleTrigger { - return &NullableScheduleTrigger{value: val, isSet: true} -} - -func (v NullableScheduleTrigger) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableScheduleTrigger) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger_input.go index 557ae5f94e..476374dbd3 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger_input.go @@ -101,39 +101,3 @@ func (o ScheduleTriggerInput) String() string { out += fmt.Sprintf(" cron=%v\n", o.Cron) return fmt.Sprintf("ScheduleTriggerInput {\n%s}", out) } - -type NullableScheduleTriggerInput struct { - value *ScheduleTriggerInput - isSet bool -} - -func (v NullableScheduleTriggerInput) Get() *ScheduleTriggerInput { - return v.value -} - -func (v *NullableScheduleTriggerInput) Set(val *ScheduleTriggerInput) { - v.value = val - v.isSet = true -} - -func (v NullableScheduleTriggerInput) IsSet() bool { - return v.isSet -} - -func (v *NullableScheduleTriggerInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableScheduleTriggerInput(val *ScheduleTriggerInput) *NullableScheduleTriggerInput { - return &NullableScheduleTriggerInput{value: val, isSet: true} -} - -func (v NullableScheduleTriggerInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableScheduleTriggerInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger_type.go index 206b9397b5..d8da25c5d2 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_schedule_trigger_type.go @@ -61,39 +61,3 @@ func (v ScheduleTriggerType) IsValid() bool { func (v ScheduleTriggerType) Ptr() *ScheduleTriggerType { return &v } - -type NullableScheduleTriggerType struct { - value *ScheduleTriggerType - isSet bool -} - -func (v NullableScheduleTriggerType) Get() *ScheduleTriggerType { - return v.value -} - -func (v *NullableScheduleTriggerType) Set(val *ScheduleTriggerType) { - v.value = val - v.isSet = true -} - -func (v NullableScheduleTriggerType) IsSet() bool { - return v.isSet -} - -func (v *NullableScheduleTriggerType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableScheduleTriggerType(val *ScheduleTriggerType) *NullableScheduleTriggerType { - return &NullableScheduleTriggerType{value: val, isSet: true} -} - -func (v NullableScheduleTriggerType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableScheduleTriggerType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_input.go index 21a798c419..3a30a84729 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_input.go @@ -100,39 +100,3 @@ func (o ShopifyInput) String() string { out += fmt.Sprintf(" market=%v\n", o.Market) return fmt.Sprintf("ShopifyInput {\n%s}", out) } - -type NullableShopifyInput struct { - value *ShopifyInput - isSet bool -} - -func (v NullableShopifyInput) Get() *ShopifyInput { - return v.value -} - -func (v *NullableShopifyInput) Set(val *ShopifyInput) { - v.value = val - v.isSet = true -} - -func (v NullableShopifyInput) IsSet() bool { - return v.isSet -} - -func (v *NullableShopifyInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableShopifyInput(val *ShopifyInput) *NullableShopifyInput { - return &NullableShopifyInput{value: val, isSet: true} -} - -func (v NullableShopifyInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableShopifyInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_market.go b/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_market.go index 55f5e2941c..1bf62b67a5 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_market.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_market.go @@ -131,39 +131,3 @@ func (o ShopifyMarket) String() string { out += fmt.Sprintf(" locales=%v\n", o.Locales) return fmt.Sprintf("ShopifyMarket {\n%s}", out) } - -type NullableShopifyMarket struct { - value *ShopifyMarket - isSet bool -} - -func (v NullableShopifyMarket) Get() *ShopifyMarket { - return v.value -} - -func (v *NullableShopifyMarket) Set(val *ShopifyMarket) { - v.value = val - v.isSet = true -} - -func (v NullableShopifyMarket) IsSet() bool { - return v.isSet -} - -func (v *NullableShopifyMarket) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableShopifyMarket(val *ShopifyMarket) *NullableShopifyMarket { - return &NullableShopifyMarket{value: val, isSet: true} -} - -func (v NullableShopifyMarket) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableShopifyMarket) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_metafield.go b/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_metafield.go index 3caec9dad2..9b7b2637e2 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_metafield.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_shopify_metafield.go @@ -131,39 +131,3 @@ func (o ShopifyMetafield) String() string { out += fmt.Sprintf(" value=%v\n", o.Value) return fmt.Sprintf("ShopifyMetafield {\n%s}", out) } - -type NullableShopifyMetafield struct { - value *ShopifyMetafield - isSet bool -} - -func (v NullableShopifyMetafield) Get() *ShopifyMetafield { - return v.value -} - -func (v *NullableShopifyMetafield) Set(val *ShopifyMetafield) { - v.value = val - v.isSet = true -} - -func (v NullableShopifyMetafield) IsSet() bool { - return v.isSet -} - -func (v *NullableShopifyMetafield) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableShopifyMetafield(val *ShopifyMetafield) *NullableShopifyMetafield { - return &NullableShopifyMetafield{value: val, isSet: true} -} - -func (v NullableShopifyMetafield) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableShopifyMetafield) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source.go index b4f7524853..cf84e3af68 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source.go @@ -290,39 +290,3 @@ func (o Source) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("Source {\n%s}", out) } - -type NullableSource struct { - value *Source - isSet bool -} - -func (v NullableSource) Get() *Source { - return v.value -} - -func (v *NullableSource) Set(val *Source) { - v.value = val - v.isSet = true -} - -func (v NullableSource) IsSet() bool { - return v.isSet -} - -func (v *NullableSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSource(val *Source) *NullableSource { - return &NullableSource{value: val, isSet: true} -} - -func (v NullableSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_big_commerce.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_big_commerce.go index 5761820026..6a05452cbc 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_big_commerce.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_big_commerce.go @@ -251,39 +251,3 @@ func (o SourceBigCommerce) String() string { out += fmt.Sprintf(" variantMetafields=%v\n", o.VariantMetafields) return fmt.Sprintf("SourceBigCommerce {\n%s}", out) } - -type NullableSourceBigCommerce struct { - value *SourceBigCommerce - isSet bool -} - -func (v NullableSourceBigCommerce) Get() *SourceBigCommerce { - return v.value -} - -func (v *NullableSourceBigCommerce) Set(val *SourceBigCommerce) { - v.value = val - v.isSet = true -} - -func (v NullableSourceBigCommerce) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceBigCommerce) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceBigCommerce(val *SourceBigCommerce) *NullableSourceBigCommerce { - return &NullableSourceBigCommerce{value: val, isSet: true} -} - -func (v NullableSourceBigCommerce) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceBigCommerce) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_big_query.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_big_query.go index b76f26480f..4c19191d1a 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_big_query.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_big_query.go @@ -331,39 +331,3 @@ func (o SourceBigQuery) String() string { out += fmt.Sprintf(" uniqueIDColumn=%v\n", o.UniqueIDColumn) return fmt.Sprintf("SourceBigQuery {\n%s}", out) } - -type NullableSourceBigQuery struct { - value *SourceBigQuery - isSet bool -} - -func (v NullableSourceBigQuery) Get() *SourceBigQuery { - return v.value -} - -func (v *NullableSourceBigQuery) Set(val *SourceBigQuery) { - v.value = val - v.isSet = true -} - -func (v NullableSourceBigQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceBigQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceBigQuery(val *SourceBigQuery) *NullableSourceBigQuery { - return &NullableSourceBigQuery{value: val, isSet: true} -} - -func (v NullableSourceBigQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceBigQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_commercetools.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_commercetools.go index 1b09f4108a..02f612ab1b 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_commercetools.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_commercetools.go @@ -283,39 +283,3 @@ func (o SourceCommercetools) String() string { out += fmt.Sprintf(" customFields=%v\n", o.CustomFields) return fmt.Sprintf("SourceCommercetools {\n%s}", out) } - -type NullableSourceCommercetools struct { - value *SourceCommercetools - isSet bool -} - -func (v NullableSourceCommercetools) Get() *SourceCommercetools { - return v.value -} - -func (v *NullableSourceCommercetools) Set(val *SourceCommercetools) { - v.value = val - v.isSet = true -} - -func (v NullableSourceCommercetools) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceCommercetools) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceCommercetools(val *SourceCommercetools) *NullableSourceCommercetools { - return &NullableSourceCommercetools{value: val, isSet: true} -} - -func (v NullableSourceCommercetools) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceCommercetools) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_create.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_create.go index c2491bcc30..6996a3a761 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_create.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_create.go @@ -182,39 +182,3 @@ func (o SourceCreate) String() string { out += fmt.Sprintf(" authenticationID=%v\n", o.AuthenticationID) return fmt.Sprintf("SourceCreate {\n%s}", out) } - -type NullableSourceCreate struct { - value *SourceCreate - isSet bool -} - -func (v NullableSourceCreate) Get() *SourceCreate { - return v.value -} - -func (v *NullableSourceCreate) Set(val *SourceCreate) { - v.value = val - v.isSet = true -} - -func (v NullableSourceCreate) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceCreate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceCreate(val *SourceCreate) *NullableSourceCreate { - return &NullableSourceCreate{value: val, isSet: true} -} - -func (v NullableSourceCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_create_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_create_response.go index c098fcad63..94f6928443 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_create_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_create_response.go @@ -134,39 +134,3 @@ func (o SourceCreateResponse) String() string { out += fmt.Sprintf(" createdAt=%v\n", o.CreatedAt) return fmt.Sprintf("SourceCreateResponse {\n%s}", out) } - -type NullableSourceCreateResponse struct { - value *SourceCreateResponse - isSet bool -} - -func (v NullableSourceCreateResponse) Get() *SourceCreateResponse { - return v.value -} - -func (v *NullableSourceCreateResponse) Set(val *SourceCreateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSourceCreateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceCreateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceCreateResponse(val *SourceCreateResponse) *NullableSourceCreateResponse { - return &NullableSourceCreateResponse{value: val, isSet: true} -} - -func (v NullableSourceCreateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceCreateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_csv.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_csv.go index 2f7083c6ba..4a58e8bbd5 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_csv.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_csv.go @@ -254,39 +254,3 @@ func (o SourceCSV) String() string { out += fmt.Sprintf(" delimiter=%v\n", o.Delimiter) return fmt.Sprintf("SourceCSV {\n%s}", out) } - -type NullableSourceCSV struct { - value *SourceCSV - isSet bool -} - -func (v NullableSourceCSV) Get() *SourceCSV { - return v.value -} - -func (v *NullableSourceCSV) Set(val *SourceCSV) { - v.value = val - v.isSet = true -} - -func (v NullableSourceCSV) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceCSV) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceCSV(val *SourceCSV) *NullableSourceCSV { - return &NullableSourceCSV{value: val, isSet: true} -} - -func (v NullableSourceCSV) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceCSV) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_docker.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_docker.go index e838f9048c..66ca834e1b 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_docker.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_docker.go @@ -214,39 +214,3 @@ func (o SourceDocker) String() string { out += fmt.Sprintf(" configuration=%v\n", o.Configuration) return fmt.Sprintf("SourceDocker {\n%s}", out) } - -type NullableSourceDocker struct { - value *SourceDocker - isSet bool -} - -func (v NullableSourceDocker) Get() *SourceDocker { - return v.value -} - -func (v *NullableSourceDocker) Set(val *SourceDocker) { - v.value = val - v.isSet = true -} - -func (v NullableSourceDocker) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceDocker) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceDocker(val *SourceDocker) *NullableSourceDocker { - return &NullableSourceDocker{value: val, isSet: true} -} - -func (v NullableSourceDocker) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceDocker) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_ga4_big_query_export.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_ga4_big_query_export.go index 4834cdf433..8e8b0c3533 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_ga4_big_query_export.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_ga4_big_query_export.go @@ -134,39 +134,3 @@ func (o SourceGA4BigQueryExport) String() string { out += fmt.Sprintf(" tablePrefix=%v\n", o.TablePrefix) return fmt.Sprintf("SourceGA4BigQueryExport {\n%s}", out) } - -type NullableSourceGA4BigQueryExport struct { - value *SourceGA4BigQueryExport - isSet bool -} - -func (v NullableSourceGA4BigQueryExport) Get() *SourceGA4BigQueryExport { - return v.value -} - -func (v *NullableSourceGA4BigQueryExport) Set(val *SourceGA4BigQueryExport) { - v.value = val - v.isSet = true -} - -func (v NullableSourceGA4BigQueryExport) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceGA4BigQueryExport) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceGA4BigQueryExport(val *SourceGA4BigQueryExport) *NullableSourceGA4BigQueryExport { - return &NullableSourceGA4BigQueryExport{value: val, isSet: true} -} - -func (v NullableSourceGA4BigQueryExport) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceGA4BigQueryExport) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_input.go index 1ef91b4b31..db809222e9 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_input.go @@ -373,39 +373,3 @@ func (obj SourceInput) GetActualInstance() any { // all schemas are nil return nil } - -type NullableSourceInput struct { - value *SourceInput - isSet bool -} - -func (v NullableSourceInput) Get() *SourceInput { - return v.value -} - -func (v *NullableSourceInput) Set(val *SourceInput) { - v.value = val - v.isSet = true -} - -func (v NullableSourceInput) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceInput(val *SourceInput) *NullableSourceInput { - return &NullableSourceInput{value: val, isSet: true} -} - -func (v NullableSourceInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_json.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_json.go index 2c2b39834c..f671f8bf9c 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_json.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_json.go @@ -164,39 +164,3 @@ func (o SourceJSON) String() string { out += fmt.Sprintf(" method=%v\n", o.Method) return fmt.Sprintf("SourceJSON {\n%s}", out) } - -type NullableSourceJSON struct { - value *SourceJSON - isSet bool -} - -func (v NullableSourceJSON) Get() *SourceJSON { - return v.value -} - -func (v *NullableSourceJSON) Set(val *SourceJSON) { - v.value = val - v.isSet = true -} - -func (v NullableSourceJSON) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceJSON) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceJSON(val *SourceJSON) *NullableSourceJSON { - return &NullableSourceJSON{value: val, isSet: true} -} - -func (v NullableSourceJSON) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceJSON) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_search.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_search.go index e33faeb157..a2824efdef 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_search.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_search.go @@ -69,39 +69,3 @@ func (o SourceSearch) String() string { out += fmt.Sprintf(" sourceIDs=%v\n", o.SourceIDs) return fmt.Sprintf("SourceSearch {\n%s}", out) } - -type NullableSourceSearch struct { - value *SourceSearch - isSet bool -} - -func (v NullableSourceSearch) Get() *SourceSearch { - return v.value -} - -func (v *NullableSourceSearch) Set(val *SourceSearch) { - v.value = val - v.isSet = true -} - -func (v NullableSourceSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceSearch(val *SourceSearch) *NullableSourceSearch { - return &NullableSourceSearch{value: val, isSet: true} -} - -func (v NullableSourceSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_shopify.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_shopify.go index aed972356c..bce20215aa 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_shopify.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_shopify.go @@ -390,39 +390,3 @@ func (o SourceShopify) String() string { out += fmt.Sprintf(" shopURL=%v\n", o.ShopURL) return fmt.Sprintf("SourceShopify {\n%s}", out) } - -type NullableSourceShopify struct { - value *SourceShopify - isSet bool -} - -func (v NullableSourceShopify) Get() *SourceShopify { - return v.value -} - -func (v *NullableSourceShopify) Set(val *SourceShopify) { - v.value = val - v.isSet = true -} - -func (v NullableSourceShopify) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceShopify) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceShopify(val *SourceShopify) *NullableSourceShopify { - return &NullableSourceShopify{value: val, isSet: true} -} - -func (v NullableSourceShopify) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceShopify) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_shopify_base.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_shopify_base.go index 8659e9c6bd..9e2ec4ce97 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_shopify_base.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_shopify_base.go @@ -70,39 +70,3 @@ func (o SourceShopifyBase) String() string { out += fmt.Sprintf(" shopURL=%v\n", o.ShopURL) return fmt.Sprintf("SourceShopifyBase {\n%s}", out) } - -type NullableSourceShopifyBase struct { - value *SourceShopifyBase - isSet bool -} - -func (v NullableSourceShopifyBase) Get() *SourceShopifyBase { - return v.value -} - -func (v *NullableSourceShopifyBase) Set(val *SourceShopifyBase) { - v.value = val - v.isSet = true -} - -func (v NullableSourceShopifyBase) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceShopifyBase) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceShopifyBase(val *SourceShopifyBase) *NullableSourceShopifyBase { - return &NullableSourceShopifyBase{value: val, isSet: true} -} - -func (v NullableSourceShopifyBase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceShopifyBase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_sort_keys.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_sort_keys.go index 8abc1c5538..85df0f3a2d 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_sort_keys.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_sort_keys.go @@ -67,39 +67,3 @@ func (v SourceSortKeys) IsValid() bool { func (v SourceSortKeys) Ptr() *SourceSortKeys { return &v } - -type NullableSourceSortKeys struct { - value *SourceSortKeys - isSet bool -} - -func (v NullableSourceSortKeys) Get() *SourceSortKeys { - return v.value -} - -func (v *NullableSourceSortKeys) Set(val *SourceSortKeys) { - v.value = val - v.isSet = true -} - -func (v NullableSourceSortKeys) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceSortKeys) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceSortKeys(val *SourceSortKeys) *NullableSourceSortKeys { - return &NullableSourceSortKeys{value: val, isSet: true} -} - -func (v NullableSourceSortKeys) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceSortKeys) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_type.go index 482f3fbaf6..25473ae562 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_type.go @@ -77,39 +77,3 @@ func (v SourceType) IsValid() bool { func (v SourceType) Ptr() *SourceType { return &v } - -type NullableSourceType struct { - value *SourceType - isSet bool -} - -func (v NullableSourceType) Get() *SourceType { - return v.value -} - -func (v *NullableSourceType) Set(val *SourceType) { - v.value = val - v.isSet = true -} - -func (v NullableSourceType) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceType(val *SourceType) *NullableSourceType { - return &NullableSourceType{value: val, isSet: true} -} - -func (v NullableSourceType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update.go index 680ab60612..67e801368d 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update.go @@ -177,39 +177,3 @@ func (o SourceUpdate) String() string { out += fmt.Sprintf(" authenticationID=%v\n", o.AuthenticationID) return fmt.Sprintf("SourceUpdate {\n%s}", out) } - -type NullableSourceUpdate struct { - value *SourceUpdate - isSet bool -} - -func (v NullableSourceUpdate) Get() *SourceUpdate { - return v.value -} - -func (v *NullableSourceUpdate) Set(val *SourceUpdate) { - v.value = val - v.isSet = true -} - -func (v NullableSourceUpdate) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceUpdate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceUpdate(val *SourceUpdate) *NullableSourceUpdate { - return &NullableSourceUpdate{value: val, isSet: true} -} - -func (v NullableSourceUpdate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceUpdate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_commercetools.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_commercetools.go index c27354ca67..a60f2ac031 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_commercetools.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_commercetools.go @@ -265,39 +265,3 @@ func (o SourceUpdateCommercetools) String() string { out += fmt.Sprintf(" customFields=%v\n", o.CustomFields) return fmt.Sprintf("SourceUpdateCommercetools {\n%s}", out) } - -type NullableSourceUpdateCommercetools struct { - value *SourceUpdateCommercetools - isSet bool -} - -func (v NullableSourceUpdateCommercetools) Get() *SourceUpdateCommercetools { - return v.value -} - -func (v *NullableSourceUpdateCommercetools) Set(val *SourceUpdateCommercetools) { - v.value = val - v.isSet = true -} - -func (v NullableSourceUpdateCommercetools) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceUpdateCommercetools) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceUpdateCommercetools(val *SourceUpdateCommercetools) *NullableSourceUpdateCommercetools { - return &NullableSourceUpdateCommercetools{value: val, isSet: true} -} - -func (v NullableSourceUpdateCommercetools) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceUpdateCommercetools) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_docker.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_docker.go index ce41f03537..38e732d51a 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_docker.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_docker.go @@ -209,39 +209,3 @@ func (o SourceUpdateDocker) String() string { out += fmt.Sprintf(" configuration=%v\n", o.Configuration) return fmt.Sprintf("SourceUpdateDocker {\n%s}", out) } - -type NullableSourceUpdateDocker struct { - value *SourceUpdateDocker - isSet bool -} - -func (v NullableSourceUpdateDocker) Get() *SourceUpdateDocker { - return v.value -} - -func (v *NullableSourceUpdateDocker) Set(val *SourceUpdateDocker) { - v.value = val - v.isSet = true -} - -func (v NullableSourceUpdateDocker) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceUpdateDocker) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceUpdateDocker(val *SourceUpdateDocker) *NullableSourceUpdateDocker { - return &NullableSourceUpdateDocker{value: val, isSet: true} -} - -func (v NullableSourceUpdateDocker) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceUpdateDocker) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_input.go index 5cbfb39cf7..e3ddb73c71 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_input.go @@ -315,39 +315,3 @@ func (obj SourceUpdateInput) GetActualInstance() any { // all schemas are nil return nil } - -type NullableSourceUpdateInput struct { - value *SourceUpdateInput - isSet bool -} - -func (v NullableSourceUpdateInput) Get() *SourceUpdateInput { - return v.value -} - -func (v *NullableSourceUpdateInput) Set(val *SourceUpdateInput) { - v.value = val - v.isSet = true -} - -func (v NullableSourceUpdateInput) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceUpdateInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceUpdateInput(val *SourceUpdateInput) *NullableSourceUpdateInput { - return &NullableSourceUpdateInput{value: val, isSet: true} -} - -func (v NullableSourceUpdateInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceUpdateInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_response.go index f95fb84805..a905e5d4a6 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_response.go @@ -134,39 +134,3 @@ func (o SourceUpdateResponse) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("SourceUpdateResponse {\n%s}", out) } - -type NullableSourceUpdateResponse struct { - value *SourceUpdateResponse - isSet bool -} - -func (v NullableSourceUpdateResponse) Get() *SourceUpdateResponse { - return v.value -} - -func (v *NullableSourceUpdateResponse) Set(val *SourceUpdateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSourceUpdateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceUpdateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceUpdateResponse(val *SourceUpdateResponse) *NullableSourceUpdateResponse { - return &NullableSourceUpdateResponse{value: val, isSet: true} -} - -func (v NullableSourceUpdateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceUpdateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_shopify.go b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_shopify.go index e6388d5283..662b7b5c51 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_shopify.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_source_update_shopify.go @@ -358,39 +358,3 @@ func (o SourceUpdateShopify) String() string { out += fmt.Sprintf(" productNamedTags=%v\n", o.ProductNamedTags) return fmt.Sprintf("SourceUpdateShopify {\n%s}", out) } - -type NullableSourceUpdateShopify struct { - value *SourceUpdateShopify - isSet bool -} - -func (v NullableSourceUpdateShopify) Get() *SourceUpdateShopify { - return v.value -} - -func (v *NullableSourceUpdateShopify) Set(val *SourceUpdateShopify) { - v.value = val - v.isSet = true -} - -func (v NullableSourceUpdateShopify) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceUpdateShopify) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceUpdateShopify(val *SourceUpdateShopify) *NullableSourceUpdateShopify { - return &NullableSourceUpdateShopify{value: val, isSet: true} -} - -func (v NullableSourceUpdateShopify) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceUpdateShopify) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_trigger.go b/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_trigger.go index c026efaec1..bdea8a3bb3 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_trigger.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_trigger.go @@ -69,39 +69,3 @@ func (o StreamingTrigger) String() string { out += fmt.Sprintf(" type=%v\n", o.Type) return fmt.Sprintf("StreamingTrigger {\n%s}", out) } - -type NullableStreamingTrigger struct { - value *StreamingTrigger - isSet bool -} - -func (v NullableStreamingTrigger) Get() *StreamingTrigger { - return v.value -} - -func (v *NullableStreamingTrigger) Set(val *StreamingTrigger) { - v.value = val - v.isSet = true -} - -func (v NullableStreamingTrigger) IsSet() bool { - return v.isSet -} - -func (v *NullableStreamingTrigger) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStreamingTrigger(val *StreamingTrigger) *NullableStreamingTrigger { - return &NullableStreamingTrigger{value: val, isSet: true} -} - -func (v NullableStreamingTrigger) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableStreamingTrigger) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_trigger_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_trigger_type.go index 21c2289f54..914cf8e2a7 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_trigger_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_trigger_type.go @@ -61,39 +61,3 @@ func (v StreamingTriggerType) IsValid() bool { func (v StreamingTriggerType) Ptr() *StreamingTriggerType { return &v } - -type NullableStreamingTriggerType struct { - value *StreamingTriggerType - isSet bool -} - -func (v NullableStreamingTriggerType) Get() *StreamingTriggerType { - return v.value -} - -func (v *NullableStreamingTriggerType) Set(val *StreamingTriggerType) { - v.value = val - v.isSet = true -} - -func (v NullableStreamingTriggerType) IsSet() bool { - return v.isSet -} - -func (v *NullableStreamingTriggerType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStreamingTriggerType(val *StreamingTriggerType) *NullableStreamingTriggerType { - return &NullableStreamingTriggerType{value: val, isSet: true} -} - -func (v NullableStreamingTriggerType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableStreamingTriggerType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_utils_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_utils_input.go index 228da28b75..db2862083e 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_utils_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_streaming_utils_input.go @@ -69,39 +69,3 @@ func (o StreamingUtilsInput) String() string { out += fmt.Sprintf(" mapping=%v\n", o.Mapping) return fmt.Sprintf("StreamingUtilsInput {\n%s}", out) } - -type NullableStreamingUtilsInput struct { - value *StreamingUtilsInput - isSet bool -} - -func (v NullableStreamingUtilsInput) Get() *StreamingUtilsInput { - return v.value -} - -func (v *NullableStreamingUtilsInput) Set(val *StreamingUtilsInput) { - v.value = val - v.isSet = true -} - -func (v NullableStreamingUtilsInput) IsSet() bool { - return v.isSet -} - -func (v *NullableStreamingUtilsInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStreamingUtilsInput(val *StreamingUtilsInput) *NullableStreamingUtilsInput { - return &NullableStreamingUtilsInput{value: val, isSet: true} -} - -func (v NullableStreamingUtilsInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableStreamingUtilsInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_subscription_trigger.go b/clients/algoliasearch-client-go/algolia/ingestion/model_subscription_trigger.go index 7a639bf53e..92eaf189ed 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_subscription_trigger.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_subscription_trigger.go @@ -69,39 +69,3 @@ func (o SubscriptionTrigger) String() string { out += fmt.Sprintf(" type=%v\n", o.Type) return fmt.Sprintf("SubscriptionTrigger {\n%s}", out) } - -type NullableSubscriptionTrigger struct { - value *SubscriptionTrigger - isSet bool -} - -func (v NullableSubscriptionTrigger) Get() *SubscriptionTrigger { - return v.value -} - -func (v *NullableSubscriptionTrigger) Set(val *SubscriptionTrigger) { - v.value = val - v.isSet = true -} - -func (v NullableSubscriptionTrigger) IsSet() bool { - return v.isSet -} - -func (v *NullableSubscriptionTrigger) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSubscriptionTrigger(val *SubscriptionTrigger) *NullableSubscriptionTrigger { - return &NullableSubscriptionTrigger{value: val, isSet: true} -} - -func (v NullableSubscriptionTrigger) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSubscriptionTrigger) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_subscription_trigger_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_subscription_trigger_type.go index bccd9988d6..9bca53f272 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_subscription_trigger_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_subscription_trigger_type.go @@ -61,39 +61,3 @@ func (v SubscriptionTriggerType) IsValid() bool { func (v SubscriptionTriggerType) Ptr() *SubscriptionTriggerType { return &v } - -type NullableSubscriptionTriggerType struct { - value *SubscriptionTriggerType - isSet bool -} - -func (v NullableSubscriptionTriggerType) Get() *SubscriptionTriggerType { - return v.value -} - -func (v *NullableSubscriptionTriggerType) Set(val *SubscriptionTriggerType) { - v.value = val - v.isSet = true -} - -func (v NullableSubscriptionTriggerType) IsSet() bool { - return v.isSet -} - -func (v *NullableSubscriptionTriggerType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSubscriptionTriggerType(val *SubscriptionTriggerType) *NullableSubscriptionTriggerType { - return &NullableSubscriptionTriggerType{value: val, isSet: true} -} - -func (v NullableSubscriptionTriggerType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSubscriptionTriggerType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_task.go b/clients/algoliasearch-client-go/algolia/ingestion/model_task.go index ce4c54e560..cc2657c435 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_task.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_task.go @@ -399,39 +399,3 @@ func (o Task) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("Task {\n%s}", out) } - -type NullableTask struct { - value *Task - isSet bool -} - -func (v NullableTask) Get() *Task { - return v.value -} - -func (v *NullableTask) Set(val *Task) { - v.value = val - v.isSet = true -} - -func (v NullableTask) IsSet() bool { - return v.isSet -} - -func (v *NullableTask) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTask(val *Task) *NullableTask { - return &NullableTask{value: val, isSet: true} -} - -func (v NullableTask) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTask) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_task_create.go b/clients/algoliasearch-client-go/algolia/ingestion/model_task_create.go index e14a42eb53..7330a9ccbb 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_task_create.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_task_create.go @@ -303,39 +303,3 @@ func (o TaskCreate) String() string { out += fmt.Sprintf(" input=%v\n", o.Input) return fmt.Sprintf("TaskCreate {\n%s}", out) } - -type NullableTaskCreate struct { - value *TaskCreate - isSet bool -} - -func (v NullableTaskCreate) Get() *TaskCreate { - return v.value -} - -func (v *NullableTaskCreate) Set(val *TaskCreate) { - v.value = val - v.isSet = true -} - -func (v NullableTaskCreate) IsSet() bool { - return v.isSet -} - -func (v *NullableTaskCreate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaskCreate(val *TaskCreate) *NullableTaskCreate { - return &NullableTaskCreate{value: val, isSet: true} -} - -func (v NullableTaskCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTaskCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_task_create_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_task_create_response.go index 55269a1c60..2f9c1b23ad 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_task_create_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_task_create_response.go @@ -102,39 +102,3 @@ func (o TaskCreateResponse) String() string { out += fmt.Sprintf(" createdAt=%v\n", o.CreatedAt) return fmt.Sprintf("TaskCreateResponse {\n%s}", out) } - -type NullableTaskCreateResponse struct { - value *TaskCreateResponse - isSet bool -} - -func (v NullableTaskCreateResponse) Get() *TaskCreateResponse { - return v.value -} - -func (v *NullableTaskCreateResponse) Set(val *TaskCreateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableTaskCreateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableTaskCreateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaskCreateResponse(val *TaskCreateResponse) *NullableTaskCreateResponse { - return &NullableTaskCreateResponse{value: val, isSet: true} -} - -func (v NullableTaskCreateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTaskCreateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_task_create_trigger.go b/clients/algoliasearch-client-go/algolia/ingestion/model_task_create_trigger.go index 5f66b890b8..6ea5e8acb3 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_task_create_trigger.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_task_create_trigger.go @@ -162,39 +162,3 @@ func (obj TaskCreateTrigger) GetActualInstance() any { // all schemas are nil return nil } - -type NullableTaskCreateTrigger struct { - value *TaskCreateTrigger - isSet bool -} - -func (v NullableTaskCreateTrigger) Get() *TaskCreateTrigger { - return v.value -} - -func (v *NullableTaskCreateTrigger) Set(val *TaskCreateTrigger) { - v.value = val - v.isSet = true -} - -func (v NullableTaskCreateTrigger) IsSet() bool { - return v.isSet -} - -func (v *NullableTaskCreateTrigger) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaskCreateTrigger(val *TaskCreateTrigger) *NullableTaskCreateTrigger { - return &NullableTaskCreateTrigger{value: val, isSet: true} -} - -func (v NullableTaskCreateTrigger) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTaskCreateTrigger) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_task_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_task_input.go index 1c83f523ed..eb0bec2623 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_task_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_task_input.go @@ -162,39 +162,3 @@ func (obj TaskInput) GetActualInstance() any { // all schemas are nil return nil } - -type NullableTaskInput struct { - value *TaskInput - isSet bool -} - -func (v NullableTaskInput) Get() *TaskInput { - return v.value -} - -func (v *NullableTaskInput) Set(val *TaskInput) { - v.value = val - v.isSet = true -} - -func (v NullableTaskInput) IsSet() bool { - return v.isSet -} - -func (v *NullableTaskInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaskInput(val *TaskInput) *NullableTaskInput { - return &NullableTaskInput{value: val, isSet: true} -} - -func (v NullableTaskInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTaskInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_task_search.go b/clients/algoliasearch-client-go/algolia/ingestion/model_task_search.go index f25936ff5f..c48c0b3797 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_task_search.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_task_search.go @@ -69,39 +69,3 @@ func (o TaskSearch) String() string { out += fmt.Sprintf(" taskIDs=%v\n", o.TaskIDs) return fmt.Sprintf("TaskSearch {\n%s}", out) } - -type NullableTaskSearch struct { - value *TaskSearch - isSet bool -} - -func (v NullableTaskSearch) Get() *TaskSearch { - return v.value -} - -func (v *NullableTaskSearch) Set(val *TaskSearch) { - v.value = val - v.isSet = true -} - -func (v NullableTaskSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableTaskSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaskSearch(val *TaskSearch) *NullableTaskSearch { - return &NullableTaskSearch{value: val, isSet: true} -} - -func (v NullableTaskSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTaskSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_task_sort_keys.go b/clients/algoliasearch-client-go/algolia/ingestion/model_task_sort_keys.go index 5b3b2f898f..c2644e68a1 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_task_sort_keys.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_task_sort_keys.go @@ -69,39 +69,3 @@ func (v TaskSortKeys) IsValid() bool { func (v TaskSortKeys) Ptr() *TaskSortKeys { return &v } - -type NullableTaskSortKeys struct { - value *TaskSortKeys - isSet bool -} - -func (v NullableTaskSortKeys) Get() *TaskSortKeys { - return v.value -} - -func (v *NullableTaskSortKeys) Set(val *TaskSortKeys) { - v.value = val - v.isSet = true -} - -func (v NullableTaskSortKeys) IsSet() bool { - return v.isSet -} - -func (v *NullableTaskSortKeys) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaskSortKeys(val *TaskSortKeys) *NullableTaskSortKeys { - return &NullableTaskSortKeys{value: val, isSet: true} -} - -func (v NullableTaskSortKeys) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTaskSortKeys) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_task_update.go b/clients/algoliasearch-client-go/algolia/ingestion/model_task_update.go index 44e2d6d70c..56ab9eafc5 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_task_update.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_task_update.go @@ -266,39 +266,3 @@ func (o TaskUpdate) String() string { out += fmt.Sprintf(" failureThreshold=%v\n", o.FailureThreshold) return fmt.Sprintf("TaskUpdate {\n%s}", out) } - -type NullableTaskUpdate struct { - value *TaskUpdate - isSet bool -} - -func (v NullableTaskUpdate) Get() *TaskUpdate { - return v.value -} - -func (v *NullableTaskUpdate) Set(val *TaskUpdate) { - v.value = val - v.isSet = true -} - -func (v NullableTaskUpdate) IsSet() bool { - return v.isSet -} - -func (v *NullableTaskUpdate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaskUpdate(val *TaskUpdate) *NullableTaskUpdate { - return &NullableTaskUpdate{value: val, isSet: true} -} - -func (v NullableTaskUpdate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTaskUpdate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_task_update_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_task_update_response.go index 40495d8900..4f5c44602b 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_task_update_response.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_task_update_response.go @@ -102,39 +102,3 @@ func (o TaskUpdateResponse) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("TaskUpdateResponse {\n%s}", out) } - -type NullableTaskUpdateResponse struct { - value *TaskUpdateResponse - isSet bool -} - -func (v NullableTaskUpdateResponse) Get() *TaskUpdateResponse { - return v.value -} - -func (v *NullableTaskUpdateResponse) Set(val *TaskUpdateResponse) { - v.value = val - v.isSet = true -} - -func (v NullableTaskUpdateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableTaskUpdateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaskUpdateResponse(val *TaskUpdateResponse) *NullableTaskUpdateResponse { - return &NullableTaskUpdateResponse{value: val, isSet: true} -} - -func (v NullableTaskUpdateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTaskUpdateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_trigger.go b/clients/algoliasearch-client-go/algolia/ingestion/model_trigger.go index 24efce1de4..f60dd16a07 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_trigger.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_trigger.go @@ -162,39 +162,3 @@ func (obj Trigger) GetActualInstance() any { // all schemas are nil return nil } - -type NullableTrigger struct { - value *Trigger - isSet bool -} - -func (v NullableTrigger) Get() *Trigger { - return v.value -} - -func (v *NullableTrigger) Set(val *Trigger) { - v.value = val - v.isSet = true -} - -func (v NullableTrigger) IsSet() bool { - return v.isSet -} - -func (v *NullableTrigger) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTrigger(val *Trigger) *NullableTrigger { - return &NullableTrigger{value: val, isSet: true} -} - -func (v NullableTrigger) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTrigger) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_trigger_type.go b/clients/algoliasearch-client-go/algolia/ingestion/model_trigger_type.go index b88002d965..0cd3e3a89b 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_trigger_type.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_trigger_type.go @@ -67,39 +67,3 @@ func (v TriggerType) IsValid() bool { func (v TriggerType) Ptr() *TriggerType { return &v } - -type NullableTriggerType struct { - value *TriggerType - isSet bool -} - -func (v NullableTriggerType) Get() *TriggerType { - return v.value -} - -func (v *NullableTriggerType) Set(val *TriggerType) { - v.value = val - v.isSet = true -} - -func (v NullableTriggerType) IsSet() bool { - return v.isSet -} - -func (v *NullableTriggerType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTriggerType(val *TriggerType) *NullableTriggerType { - return &NullableTriggerType{value: val, isSet: true} -} - -func (v NullableTriggerType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTriggerType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_trigger_update_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_trigger_update_input.go index 23801d34f1..2c5dae794e 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_trigger_update_input.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_trigger_update_input.go @@ -70,39 +70,3 @@ func (o TriggerUpdateInput) String() string { out += fmt.Sprintf(" cron=%v\n", o.Cron) return fmt.Sprintf("TriggerUpdateInput {\n%s}", out) } - -type NullableTriggerUpdateInput struct { - value *TriggerUpdateInput - isSet bool -} - -func (v NullableTriggerUpdateInput) Get() *TriggerUpdateInput { - return v.value -} - -func (v *NullableTriggerUpdateInput) Set(val *TriggerUpdateInput) { - v.value = val - v.isSet = true -} - -func (v NullableTriggerUpdateInput) IsSet() bool { - return v.isSet -} - -func (v *NullableTriggerUpdateInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTriggerUpdateInput(val *TriggerUpdateInput) *NullableTriggerUpdateInput { - return &NullableTriggerUpdateInput{value: val, isSet: true} -} - -func (v NullableTriggerUpdateInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTriggerUpdateInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_window.go b/clients/algoliasearch-client-go/algolia/ingestion/model_window.go index 5eeac085a6..df01c9131c 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_window.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_window.go @@ -102,39 +102,3 @@ func (o Window) String() string { out += fmt.Sprintf(" endDate=%v\n", o.EndDate) return fmt.Sprintf("Window {\n%s}", out) } - -type NullableWindow struct { - value *Window - isSet bool -} - -func (v NullableWindow) Get() *Window { - return v.value -} - -func (v *NullableWindow) Set(val *Window) { - v.value = val - v.isSet = true -} - -func (v NullableWindow) IsSet() bool { - return v.isSet -} - -func (v *NullableWindow) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWindow(val *Window) *NullableWindow { - return &NullableWindow{value: val, isSet: true} -} - -func (v NullableWindow) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableWindow) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_add_to_cart_event.go b/clients/algoliasearch-client-go/algolia/insights/model_add_to_cart_event.go index dea0c835d1..f5905f857b 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_add_to_cart_event.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_add_to_cart_event.go @@ -61,39 +61,3 @@ func (v AddToCartEvent) IsValid() bool { func (v AddToCartEvent) Ptr() *AddToCartEvent { return &v } - -type NullableAddToCartEvent struct { - value *AddToCartEvent - isSet bool -} - -func (v NullableAddToCartEvent) Get() *AddToCartEvent { - return v.value -} - -func (v *NullableAddToCartEvent) Set(val *AddToCartEvent) { - v.value = val - v.isSet = true -} - -func (v NullableAddToCartEvent) IsSet() bool { - return v.isSet -} - -func (v *NullableAddToCartEvent) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAddToCartEvent(val *AddToCartEvent) *NullableAddToCartEvent { - return &NullableAddToCartEvent{value: val, isSet: true} -} - -func (v NullableAddToCartEvent) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAddToCartEvent) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_added_to_cart_object_ids.go b/clients/algoliasearch-client-go/algolia/insights/model_added_to_cart_object_ids.go index 9f31c9757c..9aeb78bdc1 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_added_to_cart_object_ids.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_added_to_cart_object_ids.go @@ -457,39 +457,3 @@ func (o AddedToCartObjectIDs) String() string { out += fmt.Sprintf(" value=%v\n", o.Value) return fmt.Sprintf("AddedToCartObjectIDs {\n%s}", out) } - -type NullableAddedToCartObjectIDs struct { - value *AddedToCartObjectIDs - isSet bool -} - -func (v NullableAddedToCartObjectIDs) Get() *AddedToCartObjectIDs { - return v.value -} - -func (v *NullableAddedToCartObjectIDs) Set(val *AddedToCartObjectIDs) { - v.value = val - v.isSet = true -} - -func (v NullableAddedToCartObjectIDs) IsSet() bool { - return v.isSet -} - -func (v *NullableAddedToCartObjectIDs) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAddedToCartObjectIDs(val *AddedToCartObjectIDs) *NullableAddedToCartObjectIDs { - return &NullableAddedToCartObjectIDs{value: val, isSet: true} -} - -func (v NullableAddedToCartObjectIDs) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAddedToCartObjectIDs) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_added_to_cart_object_ids_after_search.go b/clients/algoliasearch-client-go/algolia/insights/model_added_to_cart_object_ids_after_search.go index 50e643b2b2..8bd0d73098 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_added_to_cart_object_ids_after_search.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_added_to_cart_object_ids_after_search.go @@ -489,39 +489,3 @@ func (o AddedToCartObjectIDsAfterSearch) String() string { out += fmt.Sprintf(" value=%v\n", o.Value) return fmt.Sprintf("AddedToCartObjectIDsAfterSearch {\n%s}", out) } - -type NullableAddedToCartObjectIDsAfterSearch struct { - value *AddedToCartObjectIDsAfterSearch - isSet bool -} - -func (v NullableAddedToCartObjectIDsAfterSearch) Get() *AddedToCartObjectIDsAfterSearch { - return v.value -} - -func (v *NullableAddedToCartObjectIDsAfterSearch) Set(val *AddedToCartObjectIDsAfterSearch) { - v.value = val - v.isSet = true -} - -func (v NullableAddedToCartObjectIDsAfterSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableAddedToCartObjectIDsAfterSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAddedToCartObjectIDsAfterSearch(val *AddedToCartObjectIDsAfterSearch) *NullableAddedToCartObjectIDsAfterSearch { - return &NullableAddedToCartObjectIDsAfterSearch{value: val, isSet: true} -} - -func (v NullableAddedToCartObjectIDsAfterSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAddedToCartObjectIDsAfterSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_click_event.go b/clients/algoliasearch-client-go/algolia/insights/model_click_event.go index 97bb5e6ab0..897c27c688 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_click_event.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_click_event.go @@ -61,39 +61,3 @@ func (v ClickEvent) IsValid() bool { func (v ClickEvent) Ptr() *ClickEvent { return &v } - -type NullableClickEvent struct { - value *ClickEvent - isSet bool -} - -func (v NullableClickEvent) Get() *ClickEvent { - return v.value -} - -func (v *NullableClickEvent) Set(val *ClickEvent) { - v.value = val - v.isSet = true -} - -func (v NullableClickEvent) IsSet() bool { - return v.isSet -} - -func (v *NullableClickEvent) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableClickEvent(val *ClickEvent) *NullableClickEvent { - return &NullableClickEvent{value: val, isSet: true} -} - -func (v NullableClickEvent) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableClickEvent) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_clicked_filters.go b/clients/algoliasearch-client-go/algolia/insights/model_clicked_filters.go index 6f31918e31..0e05d4307c 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_clicked_filters.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_clicked_filters.go @@ -292,39 +292,3 @@ func (o ClickedFilters) String() string { out += fmt.Sprintf(" timestamp=%v\n", o.Timestamp) return fmt.Sprintf("ClickedFilters {\n%s}", out) } - -type NullableClickedFilters struct { - value *ClickedFilters - isSet bool -} - -func (v NullableClickedFilters) Get() *ClickedFilters { - return v.value -} - -func (v *NullableClickedFilters) Set(val *ClickedFilters) { - v.value = val - v.isSet = true -} - -func (v NullableClickedFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableClickedFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableClickedFilters(val *ClickedFilters) *NullableClickedFilters { - return &NullableClickedFilters{value: val, isSet: true} -} - -func (v NullableClickedFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableClickedFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_clicked_object_ids.go b/clients/algoliasearch-client-go/algolia/insights/model_clicked_object_ids.go index 71942df4c1..15bea25f56 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_clicked_object_ids.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_clicked_object_ids.go @@ -292,39 +292,3 @@ func (o ClickedObjectIDs) String() string { out += fmt.Sprintf(" timestamp=%v\n", o.Timestamp) return fmt.Sprintf("ClickedObjectIDs {\n%s}", out) } - -type NullableClickedObjectIDs struct { - value *ClickedObjectIDs - isSet bool -} - -func (v NullableClickedObjectIDs) Get() *ClickedObjectIDs { - return v.value -} - -func (v *NullableClickedObjectIDs) Set(val *ClickedObjectIDs) { - v.value = val - v.isSet = true -} - -func (v NullableClickedObjectIDs) IsSet() bool { - return v.isSet -} - -func (v *NullableClickedObjectIDs) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableClickedObjectIDs(val *ClickedObjectIDs) *NullableClickedObjectIDs { - return &NullableClickedObjectIDs{value: val, isSet: true} -} - -func (v NullableClickedObjectIDs) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableClickedObjectIDs) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_clicked_object_ids_after_search.go b/clients/algoliasearch-client-go/algolia/insights/model_clicked_object_ids_after_search.go index d68f122e92..2a4f6f1c0c 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_clicked_object_ids_after_search.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_clicked_object_ids_after_search.go @@ -356,39 +356,3 @@ func (o ClickedObjectIDsAfterSearch) String() string { out += fmt.Sprintf(" timestamp=%v\n", o.Timestamp) return fmt.Sprintf("ClickedObjectIDsAfterSearch {\n%s}", out) } - -type NullableClickedObjectIDsAfterSearch struct { - value *ClickedObjectIDsAfterSearch - isSet bool -} - -func (v NullableClickedObjectIDsAfterSearch) Get() *ClickedObjectIDsAfterSearch { - return v.value -} - -func (v *NullableClickedObjectIDsAfterSearch) Set(val *ClickedObjectIDsAfterSearch) { - v.value = val - v.isSet = true -} - -func (v NullableClickedObjectIDsAfterSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableClickedObjectIDsAfterSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableClickedObjectIDsAfterSearch(val *ClickedObjectIDsAfterSearch) *NullableClickedObjectIDsAfterSearch { - return &NullableClickedObjectIDsAfterSearch{value: val, isSet: true} -} - -func (v NullableClickedObjectIDsAfterSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableClickedObjectIDsAfterSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_conversion_event.go b/clients/algoliasearch-client-go/algolia/insights/model_conversion_event.go index 927677e707..71a6d2d1d4 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_conversion_event.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_conversion_event.go @@ -61,39 +61,3 @@ func (v ConversionEvent) IsValid() bool { func (v ConversionEvent) Ptr() *ConversionEvent { return &v } - -type NullableConversionEvent struct { - value *ConversionEvent - isSet bool -} - -func (v NullableConversionEvent) Get() *ConversionEvent { - return v.value -} - -func (v *NullableConversionEvent) Set(val *ConversionEvent) { - v.value = val - v.isSet = true -} - -func (v NullableConversionEvent) IsSet() bool { - return v.isSet -} - -func (v *NullableConversionEvent) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConversionEvent(val *ConversionEvent) *NullableConversionEvent { - return &NullableConversionEvent{value: val, isSet: true} -} - -func (v NullableConversionEvent) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableConversionEvent) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_converted_filters.go b/clients/algoliasearch-client-go/algolia/insights/model_converted_filters.go index 491f5ef61c..11ea67315b 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_converted_filters.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_converted_filters.go @@ -292,39 +292,3 @@ func (o ConvertedFilters) String() string { out += fmt.Sprintf(" timestamp=%v\n", o.Timestamp) return fmt.Sprintf("ConvertedFilters {\n%s}", out) } - -type NullableConvertedFilters struct { - value *ConvertedFilters - isSet bool -} - -func (v NullableConvertedFilters) Get() *ConvertedFilters { - return v.value -} - -func (v *NullableConvertedFilters) Set(val *ConvertedFilters) { - v.value = val - v.isSet = true -} - -func (v NullableConvertedFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableConvertedFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConvertedFilters(val *ConvertedFilters) *NullableConvertedFilters { - return &NullableConvertedFilters{value: val, isSet: true} -} - -func (v NullableConvertedFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableConvertedFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_converted_object_ids.go b/clients/algoliasearch-client-go/algolia/insights/model_converted_object_ids.go index c8b6b93e1c..200b8ef25a 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_converted_object_ids.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_converted_object_ids.go @@ -292,39 +292,3 @@ func (o ConvertedObjectIDs) String() string { out += fmt.Sprintf(" timestamp=%v\n", o.Timestamp) return fmt.Sprintf("ConvertedObjectIDs {\n%s}", out) } - -type NullableConvertedObjectIDs struct { - value *ConvertedObjectIDs - isSet bool -} - -func (v NullableConvertedObjectIDs) Get() *ConvertedObjectIDs { - return v.value -} - -func (v *NullableConvertedObjectIDs) Set(val *ConvertedObjectIDs) { - v.value = val - v.isSet = true -} - -func (v NullableConvertedObjectIDs) IsSet() bool { - return v.isSet -} - -func (v *NullableConvertedObjectIDs) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConvertedObjectIDs(val *ConvertedObjectIDs) *NullableConvertedObjectIDs { - return &NullableConvertedObjectIDs{value: val, isSet: true} -} - -func (v NullableConvertedObjectIDs) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableConvertedObjectIDs) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_converted_object_ids_after_search.go b/clients/algoliasearch-client-go/algolia/insights/model_converted_object_ids_after_search.go index ac1b3aaa54..62e3f87c47 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_converted_object_ids_after_search.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_converted_object_ids_after_search.go @@ -324,39 +324,3 @@ func (o ConvertedObjectIDsAfterSearch) String() string { out += fmt.Sprintf(" timestamp=%v\n", o.Timestamp) return fmt.Sprintf("ConvertedObjectIDsAfterSearch {\n%s}", out) } - -type NullableConvertedObjectIDsAfterSearch struct { - value *ConvertedObjectIDsAfterSearch - isSet bool -} - -func (v NullableConvertedObjectIDsAfterSearch) Get() *ConvertedObjectIDsAfterSearch { - return v.value -} - -func (v *NullableConvertedObjectIDsAfterSearch) Set(val *ConvertedObjectIDsAfterSearch) { - v.value = val - v.isSet = true -} - -func (v NullableConvertedObjectIDsAfterSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableConvertedObjectIDsAfterSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConvertedObjectIDsAfterSearch(val *ConvertedObjectIDsAfterSearch) *NullableConvertedObjectIDsAfterSearch { - return &NullableConvertedObjectIDsAfterSearch{value: val, isSet: true} -} - -func (v NullableConvertedObjectIDsAfterSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableConvertedObjectIDsAfterSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_discount.go b/clients/algoliasearch-client-go/algolia/insights/model_discount.go index 4d16060a4d..7f5178e81d 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_discount.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_discount.go @@ -94,39 +94,3 @@ func (obj Discount) GetActualInstance() any { // all schemas are nil return nil } - -type NullableDiscount struct { - value *Discount - isSet bool -} - -func (v NullableDiscount) Get() *Discount { - return v.value -} - -func (v *NullableDiscount) Set(val *Discount) { - v.value = val - v.isSet = true -} - -func (v NullableDiscount) IsSet() bool { - return v.isSet -} - -func (v *NullableDiscount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDiscount(val *Discount) *NullableDiscount { - return &NullableDiscount{value: val, isSet: true} -} - -func (v NullableDiscount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDiscount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_error_base.go b/clients/algoliasearch-client-go/algolia/insights/model_error_base.go index 47cfcfbb5f..10073fed30 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_error_base.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_error_base.go @@ -131,39 +131,3 @@ func (o ErrorBase) String() string { } return fmt.Sprintf("ErrorBase {\n%s}", out) } - -type NullableErrorBase struct { - value *ErrorBase - isSet bool -} - -func (v NullableErrorBase) Get() *ErrorBase { - return v.value -} - -func (v *NullableErrorBase) Set(val *ErrorBase) { - v.value = val - v.isSet = true -} - -func (v NullableErrorBase) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorBase) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorBase(val *ErrorBase) *NullableErrorBase { - return &NullableErrorBase{value: val, isSet: true} -} - -func (v NullableErrorBase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableErrorBase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_events_items.go b/clients/algoliasearch-client-go/algolia/insights/model_events_items.go index 8c3364d5ec..89c5cf4ce1 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_events_items.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_events_items.go @@ -748,39 +748,3 @@ func (obj EventsItems) GetActualInstance() any { // all schemas are nil return nil } - -type NullableEventsItems struct { - value *EventsItems - isSet bool -} - -func (v NullableEventsItems) Get() *EventsItems { - return v.value -} - -func (v *NullableEventsItems) Set(val *EventsItems) { - v.value = val - v.isSet = true -} - -func (v NullableEventsItems) IsSet() bool { - return v.isSet -} - -func (v *NullableEventsItems) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEventsItems(val *EventsItems) *NullableEventsItems { - return &NullableEventsItems{value: val, isSet: true} -} - -func (v NullableEventsItems) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEventsItems) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_events_response.go b/clients/algoliasearch-client-go/algolia/insights/model_events_response.go index 56ed275473..81d4a57a4b 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_events_response.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_events_response.go @@ -133,39 +133,3 @@ func (o EventsResponse) String() string { out += fmt.Sprintf(" status=%v\n", o.Status) return fmt.Sprintf("EventsResponse {\n%s}", out) } - -type NullableEventsResponse struct { - value *EventsResponse - isSet bool -} - -func (v NullableEventsResponse) Get() *EventsResponse { - return v.value -} - -func (v *NullableEventsResponse) Set(val *EventsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableEventsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableEventsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEventsResponse(val *EventsResponse) *NullableEventsResponse { - return &NullableEventsResponse{value: val, isSet: true} -} - -func (v NullableEventsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEventsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_insights_events.go b/clients/algoliasearch-client-go/algolia/insights/model_insights_events.go index 8edbdc37e9..5d4a31d878 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_insights_events.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_insights_events.go @@ -70,39 +70,3 @@ func (o InsightsEvents) String() string { out += fmt.Sprintf(" events=%v\n", o.Events) return fmt.Sprintf("InsightsEvents {\n%s}", out) } - -type NullableInsightsEvents struct { - value *InsightsEvents - isSet bool -} - -func (v NullableInsightsEvents) Get() *InsightsEvents { - return v.value -} - -func (v *NullableInsightsEvents) Set(val *InsightsEvents) { - v.value = val - v.isSet = true -} - -func (v NullableInsightsEvents) IsSet() bool { - return v.isSet -} - -func (v *NullableInsightsEvents) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInsightsEvents(val *InsightsEvents) *NullableInsightsEvents { - return &NullableInsightsEvents{value: val, isSet: true} -} - -func (v NullableInsightsEvents) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableInsightsEvents) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_object_data.go b/clients/algoliasearch-client-go/algolia/insights/model_object_data.go index f981038cb0..bc98cb0763 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_object_data.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_object_data.go @@ -176,39 +176,3 @@ func (o ObjectData) String() string { out += fmt.Sprintf(" discount=%v\n", o.Discount) return fmt.Sprintf("ObjectData {\n%s}", out) } - -type NullableObjectData struct { - value *ObjectData - isSet bool -} - -func (v NullableObjectData) Get() *ObjectData { - return v.value -} - -func (v *NullableObjectData) Set(val *ObjectData) { - v.value = val - v.isSet = true -} - -func (v NullableObjectData) IsSet() bool { - return v.isSet -} - -func (v *NullableObjectData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableObjectData(val *ObjectData) *NullableObjectData { - return &NullableObjectData{value: val, isSet: true} -} - -func (v NullableObjectData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableObjectData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_object_data_after_search.go b/clients/algoliasearch-client-go/algolia/insights/model_object_data_after_search.go index 1d3b430abd..b58f1f9e43 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_object_data_after_search.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_object_data_after_search.go @@ -221,39 +221,3 @@ func (o ObjectDataAfterSearch) String() string { out += fmt.Sprintf(" discount=%v\n", o.Discount) return fmt.Sprintf("ObjectDataAfterSearch {\n%s}", out) } - -type NullableObjectDataAfterSearch struct { - value *ObjectDataAfterSearch - isSet bool -} - -func (v NullableObjectDataAfterSearch) Get() *ObjectDataAfterSearch { - return v.value -} - -func (v *NullableObjectDataAfterSearch) Set(val *ObjectDataAfterSearch) { - v.value = val - v.isSet = true -} - -func (v NullableObjectDataAfterSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableObjectDataAfterSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableObjectDataAfterSearch(val *ObjectDataAfterSearch) *NullableObjectDataAfterSearch { - return &NullableObjectDataAfterSearch{value: val, isSet: true} -} - -func (v NullableObjectDataAfterSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableObjectDataAfterSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_price.go b/clients/algoliasearch-client-go/algolia/insights/model_price.go index 7d04c403e5..bb63a79a2a 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_price.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_price.go @@ -94,39 +94,3 @@ func (obj Price) GetActualInstance() any { // all schemas are nil return nil } - -type NullablePrice struct { - value *Price - isSet bool -} - -func (v NullablePrice) Get() *Price { - return v.value -} - -func (v *NullablePrice) Set(val *Price) { - v.value = val - v.isSet = true -} - -func (v NullablePrice) IsSet() bool { - return v.isSet -} - -func (v *NullablePrice) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePrice(val *Price) *NullablePrice { - return &NullablePrice{value: val, isSet: true} -} - -func (v NullablePrice) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePrice) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_purchase_event.go b/clients/algoliasearch-client-go/algolia/insights/model_purchase_event.go index e4a703883a..5efa13c4ac 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_purchase_event.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_purchase_event.go @@ -61,39 +61,3 @@ func (v PurchaseEvent) IsValid() bool { func (v PurchaseEvent) Ptr() *PurchaseEvent { return &v } - -type NullablePurchaseEvent struct { - value *PurchaseEvent - isSet bool -} - -func (v NullablePurchaseEvent) Get() *PurchaseEvent { - return v.value -} - -func (v *NullablePurchaseEvent) Set(val *PurchaseEvent) { - v.value = val - v.isSet = true -} - -func (v NullablePurchaseEvent) IsSet() bool { - return v.isSet -} - -func (v *NullablePurchaseEvent) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePurchaseEvent(val *PurchaseEvent) *NullablePurchaseEvent { - return &NullablePurchaseEvent{value: val, isSet: true} -} - -func (v NullablePurchaseEvent) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePurchaseEvent) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_purchased_object_ids.go b/clients/algoliasearch-client-go/algolia/insights/model_purchased_object_ids.go index 2d8dc610e2..66046cb304 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_purchased_object_ids.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_purchased_object_ids.go @@ -457,39 +457,3 @@ func (o PurchasedObjectIDs) String() string { out += fmt.Sprintf(" value=%v\n", o.Value) return fmt.Sprintf("PurchasedObjectIDs {\n%s}", out) } - -type NullablePurchasedObjectIDs struct { - value *PurchasedObjectIDs - isSet bool -} - -func (v NullablePurchasedObjectIDs) Get() *PurchasedObjectIDs { - return v.value -} - -func (v *NullablePurchasedObjectIDs) Set(val *PurchasedObjectIDs) { - v.value = val - v.isSet = true -} - -func (v NullablePurchasedObjectIDs) IsSet() bool { - return v.isSet -} - -func (v *NullablePurchasedObjectIDs) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePurchasedObjectIDs(val *PurchasedObjectIDs) *NullablePurchasedObjectIDs { - return &NullablePurchasedObjectIDs{value: val, isSet: true} -} - -func (v NullablePurchasedObjectIDs) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePurchasedObjectIDs) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_purchased_object_ids_after_search.go b/clients/algoliasearch-client-go/algolia/insights/model_purchased_object_ids_after_search.go index 2c6406e9b1..00536a2469 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_purchased_object_ids_after_search.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_purchased_object_ids_after_search.go @@ -444,39 +444,3 @@ func (o PurchasedObjectIDsAfterSearch) String() string { out += fmt.Sprintf(" value=%v\n", o.Value) return fmt.Sprintf("PurchasedObjectIDsAfterSearch {\n%s}", out) } - -type NullablePurchasedObjectIDsAfterSearch struct { - value *PurchasedObjectIDsAfterSearch - isSet bool -} - -func (v NullablePurchasedObjectIDsAfterSearch) Get() *PurchasedObjectIDsAfterSearch { - return v.value -} - -func (v *NullablePurchasedObjectIDsAfterSearch) Set(val *PurchasedObjectIDsAfterSearch) { - v.value = val - v.isSet = true -} - -func (v NullablePurchasedObjectIDsAfterSearch) IsSet() bool { - return v.isSet -} - -func (v *NullablePurchasedObjectIDsAfterSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePurchasedObjectIDsAfterSearch(val *PurchasedObjectIDsAfterSearch) *NullablePurchasedObjectIDsAfterSearch { - return &NullablePurchasedObjectIDsAfterSearch{value: val, isSet: true} -} - -func (v NullablePurchasedObjectIDsAfterSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePurchasedObjectIDsAfterSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_value.go b/clients/algoliasearch-client-go/algolia/insights/model_value.go index 0587a6b5aa..2dbb7745ab 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_value.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_value.go @@ -94,39 +94,3 @@ func (obj Value) GetActualInstance() any { // all schemas are nil return nil } - -type NullableValue struct { - value *Value - isSet bool -} - -func (v NullableValue) Get() *Value { - return v.value -} - -func (v *NullableValue) Set(val *Value) { - v.value = val - v.isSet = true -} - -func (v NullableValue) IsSet() bool { - return v.isSet -} - -func (v *NullableValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableValue(val *Value) *NullableValue { - return &NullableValue{value: val, isSet: true} -} - -func (v NullableValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_view_event.go b/clients/algoliasearch-client-go/algolia/insights/model_view_event.go index cf32d8ef5d..da5585b1b8 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_view_event.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_view_event.go @@ -61,39 +61,3 @@ func (v ViewEvent) IsValid() bool { func (v ViewEvent) Ptr() *ViewEvent { return &v } - -type NullableViewEvent struct { - value *ViewEvent - isSet bool -} - -func (v NullableViewEvent) Get() *ViewEvent { - return v.value -} - -func (v *NullableViewEvent) Set(val *ViewEvent) { - v.value = val - v.isSet = true -} - -func (v NullableViewEvent) IsSet() bool { - return v.isSet -} - -func (v *NullableViewEvent) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableViewEvent(val *ViewEvent) *NullableViewEvent { - return &NullableViewEvent{value: val, isSet: true} -} - -func (v NullableViewEvent) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableViewEvent) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_viewed_filters.go b/clients/algoliasearch-client-go/algolia/insights/model_viewed_filters.go index 6697334520..16949a2693 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_viewed_filters.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_viewed_filters.go @@ -292,39 +292,3 @@ func (o ViewedFilters) String() string { out += fmt.Sprintf(" timestamp=%v\n", o.Timestamp) return fmt.Sprintf("ViewedFilters {\n%s}", out) } - -type NullableViewedFilters struct { - value *ViewedFilters - isSet bool -} - -func (v NullableViewedFilters) Get() *ViewedFilters { - return v.value -} - -func (v *NullableViewedFilters) Set(val *ViewedFilters) { - v.value = val - v.isSet = true -} - -func (v NullableViewedFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableViewedFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableViewedFilters(val *ViewedFilters) *NullableViewedFilters { - return &NullableViewedFilters{value: val, isSet: true} -} - -func (v NullableViewedFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableViewedFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/insights/model_viewed_object_ids.go b/clients/algoliasearch-client-go/algolia/insights/model_viewed_object_ids.go index ba2e3f41f1..698929bf80 100644 --- a/clients/algoliasearch-client-go/algolia/insights/model_viewed_object_ids.go +++ b/clients/algoliasearch-client-go/algolia/insights/model_viewed_object_ids.go @@ -292,39 +292,3 @@ func (o ViewedObjectIDs) String() string { out += fmt.Sprintf(" timestamp=%v\n", o.Timestamp) return fmt.Sprintf("ViewedObjectIDs {\n%s}", out) } - -type NullableViewedObjectIDs struct { - value *ViewedObjectIDs - isSet bool -} - -func (v NullableViewedObjectIDs) Get() *ViewedObjectIDs { - return v.value -} - -func (v *NullableViewedObjectIDs) Set(val *ViewedObjectIDs) { - v.value = val - v.isSet = true -} - -func (v NullableViewedObjectIDs) IsSet() bool { - return v.isSet -} - -func (v *NullableViewedObjectIDs) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableViewedObjectIDs(val *ViewedObjectIDs) *NullableViewedObjectIDs { - return &NullableViewedObjectIDs{value: val, isSet: true} -} - -func (v NullableViewedObjectIDs) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableViewedObjectIDs) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_error_base.go b/clients/algoliasearch-client-go/algolia/monitoring/model_error_base.go index 81fdbaa775..3ae62bbe7c 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_error_base.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_error_base.go @@ -131,39 +131,3 @@ func (o ErrorBase) String() string { } return fmt.Sprintf("ErrorBase {\n%s}", out) } - -type NullableErrorBase struct { - value *ErrorBase - isSet bool -} - -func (v NullableErrorBase) Get() *ErrorBase { - return v.value -} - -func (v *NullableErrorBase) Set(val *ErrorBase) { - v.value = val - v.isSet = true -} - -func (v NullableErrorBase) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorBase) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorBase(val *ErrorBase) *NullableErrorBase { - return &NullableErrorBase{value: val, isSet: true} -} - -func (v NullableErrorBase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableErrorBase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_get_servers_403_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_get_servers_403_response.go index c5cee59367..00d093bd69 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_get_servers_403_response.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_get_servers_403_response.go @@ -87,39 +87,3 @@ func (o GetServers403Response) String() string { out += fmt.Sprintf(" reason=%v\n", o.Reason) return fmt.Sprintf("GetServers403Response {\n%s}", out) } - -type NullableGetServers403Response struct { - value *GetServers403Response - isSet bool -} - -func (v NullableGetServers403Response) Get() *GetServers403Response { - return v.value -} - -func (v *NullableGetServers403Response) Set(val *GetServers403Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetServers403Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetServers403Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetServers403Response(val *GetServers403Response) *NullableGetServers403Response { - return &NullableGetServers403Response{value: val, isSet: true} -} - -func (v NullableGetServers403Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetServers403Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_incident.go b/clients/algoliasearch-client-go/algolia/monitoring/model_incident.go index 5b95eb8fd4..d50f24a637 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_incident.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_incident.go @@ -132,39 +132,3 @@ func (o Incident) String() string { out += fmt.Sprintf(" status=%v\n", o.Status) return fmt.Sprintf("Incident {\n%s}", out) } - -type NullableIncident struct { - value *Incident - isSet bool -} - -func (v NullableIncident) Get() *Incident { - return v.value -} - -func (v *NullableIncident) Set(val *Incident) { - v.value = val - v.isSet = true -} - -func (v NullableIncident) IsSet() bool { - return v.isSet -} - -func (v *NullableIncident) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIncident(val *Incident) *NullableIncident { - return &NullableIncident{value: val, isSet: true} -} - -func (v NullableIncident) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableIncident) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_inner.go b/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_inner.go index c61865b175..3c886b0ca9 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_inner.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_inner.go @@ -132,39 +132,3 @@ func (o IncidentsInner) String() string { out += fmt.Sprintf(" v=%v\n", o.V) return fmt.Sprintf("IncidentsInner {\n%s}", out) } - -type NullableIncidentsInner struct { - value *IncidentsInner - isSet bool -} - -func (v NullableIncidentsInner) Get() *IncidentsInner { - return v.value -} - -func (v *NullableIncidentsInner) Set(val *IncidentsInner) { - v.value = val - v.isSet = true -} - -func (v NullableIncidentsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableIncidentsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIncidentsInner(val *IncidentsInner) *NullableIncidentsInner { - return &NullableIncidentsInner{value: val, isSet: true} -} - -func (v NullableIncidentsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableIncidentsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_response.go index fde4baddf2..386e69bcc8 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_response.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_response.go @@ -87,39 +87,3 @@ func (o IncidentsResponse) String() string { out += fmt.Sprintf(" incidents=%v\n", o.Incidents) return fmt.Sprintf("IncidentsResponse {\n%s}", out) } - -type NullableIncidentsResponse struct { - value *IncidentsResponse - isSet bool -} - -func (v NullableIncidentsResponse) Get() *IncidentsResponse { - return v.value -} - -func (v *NullableIncidentsResponse) Set(val *IncidentsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableIncidentsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableIncidentsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIncidentsResponse(val *IncidentsResponse) *NullableIncidentsResponse { - return &NullableIncidentsResponse{value: val, isSet: true} -} - -func (v NullableIncidentsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableIncidentsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response.go index b954d598b6..cbbfc595d6 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response.go @@ -87,39 +87,3 @@ func (o IndexingTimeResponse) String() string { out += fmt.Sprintf(" metrics=%v\n", o.Metrics) return fmt.Sprintf("IndexingTimeResponse {\n%s}", out) } - -type NullableIndexingTimeResponse struct { - value *IndexingTimeResponse - isSet bool -} - -func (v NullableIndexingTimeResponse) Get() *IndexingTimeResponse { - return v.value -} - -func (v *NullableIndexingTimeResponse) Set(val *IndexingTimeResponse) { - v.value = val - v.isSet = true -} - -func (v NullableIndexingTimeResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableIndexingTimeResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIndexingTimeResponse(val *IndexingTimeResponse) *NullableIndexingTimeResponse { - return &NullableIndexingTimeResponse{value: val, isSet: true} -} - -func (v NullableIndexingTimeResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableIndexingTimeResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response_metrics.go b/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response_metrics.go index cdf0278e95..da7be54790 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response_metrics.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response_metrics.go @@ -87,39 +87,3 @@ func (o IndexingTimeResponseMetrics) String() string { out += fmt.Sprintf(" indexing=%v\n", o.Indexing) return fmt.Sprintf("IndexingTimeResponseMetrics {\n%s}", out) } - -type NullableIndexingTimeResponseMetrics struct { - value *IndexingTimeResponseMetrics - isSet bool -} - -func (v NullableIndexingTimeResponseMetrics) Get() *IndexingTimeResponseMetrics { - return v.value -} - -func (v *NullableIndexingTimeResponseMetrics) Set(val *IndexingTimeResponseMetrics) { - v.value = val - v.isSet = true -} - -func (v NullableIndexingTimeResponseMetrics) IsSet() bool { - return v.isSet -} - -func (v *NullableIndexingTimeResponseMetrics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIndexingTimeResponseMetrics(val *IndexingTimeResponseMetrics) *NullableIndexingTimeResponseMetrics { - return &NullableIndexingTimeResponseMetrics{value: val, isSet: true} -} - -func (v NullableIndexingTimeResponseMetrics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableIndexingTimeResponseMetrics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response.go index c65feecd82..a8f7be25df 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response.go @@ -87,39 +87,3 @@ func (o InfrastructureResponse) String() string { out += fmt.Sprintf(" metrics=%v\n", o.Metrics) return fmt.Sprintf("InfrastructureResponse {\n%s}", out) } - -type NullableInfrastructureResponse struct { - value *InfrastructureResponse - isSet bool -} - -func (v NullableInfrastructureResponse) Get() *InfrastructureResponse { - return v.value -} - -func (v *NullableInfrastructureResponse) Set(val *InfrastructureResponse) { - v.value = val - v.isSet = true -} - -func (v NullableInfrastructureResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableInfrastructureResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInfrastructureResponse(val *InfrastructureResponse) *NullableInfrastructureResponse { - return &NullableInfrastructureResponse{value: val, isSet: true} -} - -func (v NullableInfrastructureResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableInfrastructureResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response_metrics.go b/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response_metrics.go index 951c690b23..8ef5630924 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response_metrics.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response_metrics.go @@ -268,39 +268,3 @@ func (o InfrastructureResponseMetrics) String() string { out += fmt.Sprintf(" avg_build_time=%v\n", o.AvgBuildTime) return fmt.Sprintf("InfrastructureResponseMetrics {\n%s}", out) } - -type NullableInfrastructureResponseMetrics struct { - value *InfrastructureResponseMetrics - isSet bool -} - -func (v NullableInfrastructureResponseMetrics) Get() *InfrastructureResponseMetrics { - return v.value -} - -func (v *NullableInfrastructureResponseMetrics) Set(val *InfrastructureResponseMetrics) { - v.value = val - v.isSet = true -} - -func (v NullableInfrastructureResponseMetrics) IsSet() bool { - return v.isSet -} - -func (v *NullableInfrastructureResponseMetrics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInfrastructureResponseMetrics(val *InfrastructureResponseMetrics) *NullableInfrastructureResponseMetrics { - return &NullableInfrastructureResponseMetrics{value: val, isSet: true} -} - -func (v NullableInfrastructureResponseMetrics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableInfrastructureResponseMetrics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_inventory_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_inventory_response.go index 92fed0a995..191f244bff 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_inventory_response.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_inventory_response.go @@ -87,39 +87,3 @@ func (o InventoryResponse) String() string { out += fmt.Sprintf(" inventory=%v\n", o.Inventory) return fmt.Sprintf("InventoryResponse {\n%s}", out) } - -type NullableInventoryResponse struct { - value *InventoryResponse - isSet bool -} - -func (v NullableInventoryResponse) Get() *InventoryResponse { - return v.value -} - -func (v *NullableInventoryResponse) Set(val *InventoryResponse) { - v.value = val - v.isSet = true -} - -func (v NullableInventoryResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableInventoryResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInventoryResponse(val *InventoryResponse) *NullableInventoryResponse { - return &NullableInventoryResponse{value: val, isSet: true} -} - -func (v NullableInventoryResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableInventoryResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response.go index 02fe338fc7..b46ef1fea6 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response.go @@ -87,39 +87,3 @@ func (o LatencyResponse) String() string { out += fmt.Sprintf(" metrics=%v\n", o.Metrics) return fmt.Sprintf("LatencyResponse {\n%s}", out) } - -type NullableLatencyResponse struct { - value *LatencyResponse - isSet bool -} - -func (v NullableLatencyResponse) Get() *LatencyResponse { - return v.value -} - -func (v *NullableLatencyResponse) Set(val *LatencyResponse) { - v.value = val - v.isSet = true -} - -func (v NullableLatencyResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableLatencyResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLatencyResponse(val *LatencyResponse) *NullableLatencyResponse { - return &NullableLatencyResponse{value: val, isSet: true} -} - -func (v NullableLatencyResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableLatencyResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response_metrics.go b/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response_metrics.go index f30d5adfa5..3cb60e8601 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response_metrics.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response_metrics.go @@ -87,39 +87,3 @@ func (o LatencyResponseMetrics) String() string { out += fmt.Sprintf(" latency=%v\n", o.Latency) return fmt.Sprintf("LatencyResponseMetrics {\n%s}", out) } - -type NullableLatencyResponseMetrics struct { - value *LatencyResponseMetrics - isSet bool -} - -func (v NullableLatencyResponseMetrics) Get() *LatencyResponseMetrics { - return v.value -} - -func (v *NullableLatencyResponseMetrics) Set(val *LatencyResponseMetrics) { - v.value = val - v.isSet = true -} - -func (v NullableLatencyResponseMetrics) IsSet() bool { - return v.isSet -} - -func (v *NullableLatencyResponseMetrics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLatencyResponseMetrics(val *LatencyResponseMetrics) *NullableLatencyResponseMetrics { - return &NullableLatencyResponseMetrics{value: val, isSet: true} -} - -func (v NullableLatencyResponseMetrics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableLatencyResponseMetrics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_metric.go b/clients/algoliasearch-client-go/algolia/monitoring/model_metric.go index cdb07974af..f7457abbbb 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_metric.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_metric.go @@ -71,39 +71,3 @@ func (v Metric) IsValid() bool { func (v Metric) Ptr() *Metric { return &v } - -type NullableMetric struct { - value *Metric - isSet bool -} - -func (v NullableMetric) Get() *Metric { - return v.value -} - -func (v *NullableMetric) Set(val *Metric) { - v.value = val - v.isSet = true -} - -func (v NullableMetric) IsSet() bool { - return v.isSet -} - -func (v *NullableMetric) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetric(val *Metric) *NullableMetric { - return &NullableMetric{value: val, isSet: true} -} - -func (v NullableMetric) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMetric) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_period.go b/clients/algoliasearch-client-go/algolia/monitoring/model_period.go index 1aeba3766d..45226b84fa 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_period.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_period.go @@ -69,39 +69,3 @@ func (v Period) IsValid() bool { func (v Period) Ptr() *Period { return &v } - -type NullablePeriod struct { - value *Period - isSet bool -} - -func (v NullablePeriod) Get() *Period { - return v.value -} - -func (v *NullablePeriod) Set(val *Period) { - v.value = val - v.isSet = true -} - -func (v NullablePeriod) IsSet() bool { - return v.isSet -} - -func (v *NullablePeriod) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePeriod(val *Period) *NullablePeriod { - return &NullablePeriod{value: val, isSet: true} -} - -func (v NullablePeriod) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePeriod) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_probes_metric.go b/clients/algoliasearch-client-go/algolia/monitoring/model_probes_metric.go index 27dfff08f5..31df446f06 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_probes_metric.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_probes_metric.go @@ -133,39 +133,3 @@ func (o ProbesMetric) String() string { out += fmt.Sprintf(" v=%v\n", o.V) return fmt.Sprintf("ProbesMetric {\n%s}", out) } - -type NullableProbesMetric struct { - value *ProbesMetric - isSet bool -} - -func (v NullableProbesMetric) Get() *ProbesMetric { - return v.value -} - -func (v *NullableProbesMetric) Set(val *ProbesMetric) { - v.value = val - v.isSet = true -} - -func (v NullableProbesMetric) IsSet() bool { - return v.isSet -} - -func (v *NullableProbesMetric) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProbesMetric(val *ProbesMetric) *NullableProbesMetric { - return &NullableProbesMetric{value: val, isSet: true} -} - -func (v NullableProbesMetric) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableProbesMetric) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_region.go b/clients/algoliasearch-client-go/algolia/monitoring/model_region.go index a922ad1f43..31f69640c7 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_region.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_region.go @@ -89,39 +89,3 @@ func (v Region) IsValid() bool { func (v Region) Ptr() *Region { return &v } - -type NullableRegion struct { - value *Region - isSet bool -} - -func (v NullableRegion) Get() *Region { - return v.value -} - -func (v *NullableRegion) Set(val *Region) { - v.value = val - v.isSet = true -} - -func (v NullableRegion) IsSet() bool { - return v.isSet -} - -func (v *NullableRegion) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRegion(val *Region) *NullableRegion { - return &NullableRegion{value: val, isSet: true} -} - -func (v NullableRegion) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRegion) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_server.go b/clients/algoliasearch-client-go/algolia/monitoring/model_server.go index 2a179fea17..67e87897fc 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_server.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_server.go @@ -359,39 +359,3 @@ func (o Server) String() string { out += fmt.Sprintf(" type=%v\n", o.Type) return fmt.Sprintf("Server {\n%s}", out) } - -type NullableServer struct { - value *Server - isSet bool -} - -func (v NullableServer) Get() *Server { - return v.value -} - -func (v *NullableServer) Set(val *Server) { - v.value = val - v.isSet = true -} - -func (v NullableServer) IsSet() bool { - return v.isSet -} - -func (v *NullableServer) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServer(val *Server) *NullableServer { - return &NullableServer{value: val, isSet: true} -} - -func (v NullableServer) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableServer) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_server_status.go b/clients/algoliasearch-client-go/algolia/monitoring/model_server_status.go index 4cceaf572b..a16954ecbf 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_server_status.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_server_status.go @@ -61,39 +61,3 @@ func (v ServerStatus) IsValid() bool { func (v ServerStatus) Ptr() *ServerStatus { return &v } - -type NullableServerStatus struct { - value *ServerStatus - isSet bool -} - -func (v NullableServerStatus) Get() *ServerStatus { - return v.value -} - -func (v *NullableServerStatus) Set(val *ServerStatus) { - v.value = val - v.isSet = true -} - -func (v NullableServerStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableServerStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServerStatus(val *ServerStatus) *NullableServerStatus { - return &NullableServerStatus{value: val, isSet: true} -} - -func (v NullableServerStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableServerStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_status.go b/clients/algoliasearch-client-go/algolia/monitoring/model_status.go index 6f4699ea68..e2db5bcd53 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_status.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_status.go @@ -67,39 +67,3 @@ func (v Status) IsValid() bool { func (v Status) Ptr() *Status { return &v } - -type NullableStatus struct { - value *Status - isSet bool -} - -func (v NullableStatus) Get() *Status { - return v.value -} - -func (v *NullableStatus) Set(val *Status) { - v.value = val - v.isSet = true -} - -func (v NullableStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStatus(val *Status) *NullableStatus { - return &NullableStatus{value: val, isSet: true} -} - -func (v NullableStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_status_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_status_response.go index fceeb549c9..3fc35be55d 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_status_response.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_status_response.go @@ -87,39 +87,3 @@ func (o StatusResponse) String() string { out += fmt.Sprintf(" status=%v\n", o.Status) return fmt.Sprintf("StatusResponse {\n%s}", out) } - -type NullableStatusResponse struct { - value *StatusResponse - isSet bool -} - -func (v NullableStatusResponse) Get() *StatusResponse { - return v.value -} - -func (v *NullableStatusResponse) Set(val *StatusResponse) { - v.value = val - v.isSet = true -} - -func (v NullableStatusResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableStatusResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStatusResponse(val *StatusResponse) *NullableStatusResponse { - return &NullableStatusResponse{value: val, isSet: true} -} - -func (v NullableStatusResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableStatusResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_time_inner.go b/clients/algoliasearch-client-go/algolia/monitoring/model_time_inner.go index c76ad3d64f..5eefc38494 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_time_inner.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_time_inner.go @@ -133,39 +133,3 @@ func (o TimeInner) String() string { out += fmt.Sprintf(" v=%v\n", o.V) return fmt.Sprintf("TimeInner {\n%s}", out) } - -type NullableTimeInner struct { - value *TimeInner - isSet bool -} - -func (v NullableTimeInner) Get() *TimeInner { - return v.value -} - -func (v *NullableTimeInner) Set(val *TimeInner) { - v.value = val - v.isSet = true -} - -func (v NullableTimeInner) IsSet() bool { - return v.isSet -} - -func (v *NullableTimeInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTimeInner(val *TimeInner) *NullableTimeInner { - return &NullableTimeInner{value: val, isSet: true} -} - -func (v NullableTimeInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTimeInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_type.go b/clients/algoliasearch-client-go/algolia/monitoring/model_type.go index 7489bf40e5..dc5658bd8c 100644 --- a/clients/algoliasearch-client-go/algolia/monitoring/model_type.go +++ b/clients/algoliasearch-client-go/algolia/monitoring/model_type.go @@ -61,39 +61,3 @@ func (v Type) IsValid() bool { func (v Type) Ptr() *Type { return &v } - -type NullableType struct { - value *Type - isSet bool -} - -func (v NullableType) Get() *Type { - return v.value -} - -func (v *NullableType) Set(val *Type) { - v.value = val - v.isSet = true -} - -func (v NullableType) IsSet() bool { - return v.isSet -} - -func (v *NullableType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableType(val *Type) *NullableType { - return &NullableType{value: val, isSet: true} -} - -func (v NullableType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/personalization/model_delete_user_profile_response.go b/clients/algoliasearch-client-go/algolia/personalization/model_delete_user_profile_response.go index da4b5b42b3..ca5805c825 100644 --- a/clients/algoliasearch-client-go/algolia/personalization/model_delete_user_profile_response.go +++ b/clients/algoliasearch-client-go/algolia/personalization/model_delete_user_profile_response.go @@ -102,39 +102,3 @@ func (o DeleteUserProfileResponse) String() string { out += fmt.Sprintf(" deletedUntil=%v\n", o.DeletedUntil) return fmt.Sprintf("DeleteUserProfileResponse {\n%s}", out) } - -type NullableDeleteUserProfileResponse struct { - value *DeleteUserProfileResponse - isSet bool -} - -func (v NullableDeleteUserProfileResponse) Get() *DeleteUserProfileResponse { - return v.value -} - -func (v *NullableDeleteUserProfileResponse) Set(val *DeleteUserProfileResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDeleteUserProfileResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDeleteUserProfileResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeleteUserProfileResponse(val *DeleteUserProfileResponse) *NullableDeleteUserProfileResponse { - return &NullableDeleteUserProfileResponse{value: val, isSet: true} -} - -func (v NullableDeleteUserProfileResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDeleteUserProfileResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/personalization/model_error_base.go b/clients/algoliasearch-client-go/algolia/personalization/model_error_base.go index 309a0b4426..233b4db83a 100644 --- a/clients/algoliasearch-client-go/algolia/personalization/model_error_base.go +++ b/clients/algoliasearch-client-go/algolia/personalization/model_error_base.go @@ -131,39 +131,3 @@ func (o ErrorBase) String() string { } return fmt.Sprintf("ErrorBase {\n%s}", out) } - -type NullableErrorBase struct { - value *ErrorBase - isSet bool -} - -func (v NullableErrorBase) Get() *ErrorBase { - return v.value -} - -func (v *NullableErrorBase) Set(val *ErrorBase) { - v.value = val - v.isSet = true -} - -func (v NullableErrorBase) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorBase) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorBase(val *ErrorBase) *NullableErrorBase { - return &NullableErrorBase{value: val, isSet: true} -} - -func (v NullableErrorBase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableErrorBase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/personalization/model_event_scoring.go b/clients/algoliasearch-client-go/algolia/personalization/model_event_scoring.go index a4a9879665..463eadee79 100644 --- a/clients/algoliasearch-client-go/algolia/personalization/model_event_scoring.go +++ b/clients/algoliasearch-client-go/algolia/personalization/model_event_scoring.go @@ -133,39 +133,3 @@ func (o EventScoring) String() string { out += fmt.Sprintf(" eventType=%v\n", o.EventType) return fmt.Sprintf("EventScoring {\n%s}", out) } - -type NullableEventScoring struct { - value *EventScoring - isSet bool -} - -func (v NullableEventScoring) Get() *EventScoring { - return v.value -} - -func (v *NullableEventScoring) Set(val *EventScoring) { - v.value = val - v.isSet = true -} - -func (v NullableEventScoring) IsSet() bool { - return v.isSet -} - -func (v *NullableEventScoring) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEventScoring(val *EventScoring) *NullableEventScoring { - return &NullableEventScoring{value: val, isSet: true} -} - -func (v NullableEventScoring) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEventScoring) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/personalization/model_event_type.go b/clients/algoliasearch-client-go/algolia/personalization/model_event_type.go index 122524b007..74e9b3ffba 100644 --- a/clients/algoliasearch-client-go/algolia/personalization/model_event_type.go +++ b/clients/algoliasearch-client-go/algolia/personalization/model_event_type.go @@ -65,39 +65,3 @@ func (v EventType) IsValid() bool { func (v EventType) Ptr() *EventType { return &v } - -type NullableEventType struct { - value *EventType - isSet bool -} - -func (v NullableEventType) Get() *EventType { - return v.value -} - -func (v *NullableEventType) Set(val *EventType) { - v.value = val - v.isSet = true -} - -func (v NullableEventType) IsSet() bool { - return v.isSet -} - -func (v *NullableEventType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEventType(val *EventType) *NullableEventType { - return &NullableEventType{value: val, isSet: true} -} - -func (v NullableEventType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEventType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/personalization/model_facet_scoring.go b/clients/algoliasearch-client-go/algolia/personalization/model_facet_scoring.go index fac4cbc664..c76832db2a 100644 --- a/clients/algoliasearch-client-go/algolia/personalization/model_facet_scoring.go +++ b/clients/algoliasearch-client-go/algolia/personalization/model_facet_scoring.go @@ -102,39 +102,3 @@ func (o FacetScoring) String() string { out += fmt.Sprintf(" facetName=%v\n", o.FacetName) return fmt.Sprintf("FacetScoring {\n%s}", out) } - -type NullableFacetScoring struct { - value *FacetScoring - isSet bool -} - -func (v NullableFacetScoring) Get() *FacetScoring { - return v.value -} - -func (v *NullableFacetScoring) Set(val *FacetScoring) { - v.value = val - v.isSet = true -} - -func (v NullableFacetScoring) IsSet() bool { - return v.isSet -} - -func (v *NullableFacetScoring) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFacetScoring(val *FacetScoring) *NullableFacetScoring { - return &NullableFacetScoring{value: val, isSet: true} -} - -func (v NullableFacetScoring) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFacetScoring) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/personalization/model_get_user_token_response.go b/clients/algoliasearch-client-go/algolia/personalization/model_get_user_token_response.go index 4287e7e2ef..10bfe223be 100644 --- a/clients/algoliasearch-client-go/algolia/personalization/model_get_user_token_response.go +++ b/clients/algoliasearch-client-go/algolia/personalization/model_get_user_token_response.go @@ -134,39 +134,3 @@ func (o GetUserTokenResponse) String() string { out += fmt.Sprintf(" scores=%v\n", o.Scores) return fmt.Sprintf("GetUserTokenResponse {\n%s}", out) } - -type NullableGetUserTokenResponse struct { - value *GetUserTokenResponse - isSet bool -} - -func (v NullableGetUserTokenResponse) Get() *GetUserTokenResponse { - return v.value -} - -func (v *NullableGetUserTokenResponse) Set(val *GetUserTokenResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetUserTokenResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUserTokenResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUserTokenResponse(val *GetUserTokenResponse) *NullableGetUserTokenResponse { - return &NullableGetUserTokenResponse{value: val, isSet: true} -} - -func (v NullableGetUserTokenResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetUserTokenResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/personalization/model_personalization_strategy_params.go b/clients/algoliasearch-client-go/algolia/personalization/model_personalization_strategy_params.go index 967bb73c96..8c24c14795 100644 --- a/clients/algoliasearch-client-go/algolia/personalization/model_personalization_strategy_params.go +++ b/clients/algoliasearch-client-go/algolia/personalization/model_personalization_strategy_params.go @@ -134,39 +134,3 @@ func (o PersonalizationStrategyParams) String() string { out += fmt.Sprintf(" personalizationImpact=%v\n", o.PersonalizationImpact) return fmt.Sprintf("PersonalizationStrategyParams {\n%s}", out) } - -type NullablePersonalizationStrategyParams struct { - value *PersonalizationStrategyParams - isSet bool -} - -func (v NullablePersonalizationStrategyParams) Get() *PersonalizationStrategyParams { - return v.value -} - -func (v *NullablePersonalizationStrategyParams) Set(val *PersonalizationStrategyParams) { - v.value = val - v.isSet = true -} - -func (v NullablePersonalizationStrategyParams) IsSet() bool { - return v.isSet -} - -func (v *NullablePersonalizationStrategyParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePersonalizationStrategyParams(val *PersonalizationStrategyParams) *NullablePersonalizationStrategyParams { - return &NullablePersonalizationStrategyParams{value: val, isSet: true} -} - -func (v NullablePersonalizationStrategyParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePersonalizationStrategyParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/personalization/model_set_personalization_strategy_response.go b/clients/algoliasearch-client-go/algolia/personalization/model_set_personalization_strategy_response.go index 76306775f1..e6fa33f4e3 100644 --- a/clients/algoliasearch-client-go/algolia/personalization/model_set_personalization_strategy_response.go +++ b/clients/algoliasearch-client-go/algolia/personalization/model_set_personalization_strategy_response.go @@ -70,39 +70,3 @@ func (o SetPersonalizationStrategyResponse) String() string { out += fmt.Sprintf(" message=%v\n", o.Message) return fmt.Sprintf("SetPersonalizationStrategyResponse {\n%s}", out) } - -type NullableSetPersonalizationStrategyResponse struct { - value *SetPersonalizationStrategyResponse - isSet bool -} - -func (v NullableSetPersonalizationStrategyResponse) Get() *SetPersonalizationStrategyResponse { - return v.value -} - -func (v *NullableSetPersonalizationStrategyResponse) Set(val *SetPersonalizationStrategyResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSetPersonalizationStrategyResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSetPersonalizationStrategyResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSetPersonalizationStrategyResponse(val *SetPersonalizationStrategyResponse) *NullableSetPersonalizationStrategyResponse { - return &NullableSetPersonalizationStrategyResponse{value: val, isSet: true} -} - -func (v NullableSetPersonalizationStrategyResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSetPersonalizationStrategyResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_app_id.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_app_id.go index eb8a414075..dfecda1624 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_app_id.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_app_id.go @@ -88,39 +88,3 @@ func (o AppID) String() string { out += fmt.Sprintf(" appID=%v\n", o.AppID) return fmt.Sprintf("AppID {\n%s}", out) } - -type NullableAppID struct { - value *AppID - isSet bool -} - -func (v NullableAppID) Get() *AppID { - return v.value -} - -func (v *NullableAppID) Set(val *AppID) { - v.value = val - v.isSet = true -} - -func (v NullableAppID) IsSet() bool { - return v.isSet -} - -func (v *NullableAppID) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAppID(val *AppID) *NullableAppID { - return &NullableAppID{value: val, isSet: true} -} - -func (v NullableAppID) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAppID) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_base_response.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_base_response.go index 64826cdbd3..7be959ff9a 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_base_response.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_base_response.go @@ -133,39 +133,3 @@ func (o BaseResponse) String() string { out += fmt.Sprintf(" message=%v\n", o.Message) return fmt.Sprintf("BaseResponse {\n%s}", out) } - -type NullableBaseResponse struct { - value *BaseResponse - isSet bool -} - -func (v NullableBaseResponse) Get() *BaseResponse { - return v.value -} - -func (v *NullableBaseResponse) Set(val *BaseResponse) { - v.value = val - v.isSet = true -} - -func (v NullableBaseResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseResponse(val *BaseResponse) *NullableBaseResponse { - return &NullableBaseResponse{value: val, isSet: true} -} - -func (v NullableBaseResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBaseResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_error_base.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_error_base.go index a60363e41a..c8dd8cc727 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_error_base.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_error_base.go @@ -131,39 +131,3 @@ func (o ErrorBase) String() string { } return fmt.Sprintf("ErrorBase {\n%s}", out) } - -type NullableErrorBase struct { - value *ErrorBase - isSet bool -} - -func (v NullableErrorBase) Get() *ErrorBase { - return v.value -} - -func (v *NullableErrorBase) Set(val *ErrorBase) { - v.value = val - v.isSet = true -} - -func (v NullableErrorBase) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorBase) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorBase(val *ErrorBase) *NullableErrorBase { - return &NullableErrorBase{value: val, isSet: true} -} - -func (v NullableErrorBase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableErrorBase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_facet.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_facet.go index 7a78f55f35..6aaa6958c7 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_facet.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_facet.go @@ -133,39 +133,3 @@ func (o Facet) String() string { out += fmt.Sprintf(" amount=%v\n", o.Amount) return fmt.Sprintf("Facet {\n%s}", out) } - -type NullableFacet struct { - value *Facet - isSet bool -} - -func (v NullableFacet) Get() *Facet { - return v.value -} - -func (v *NullableFacet) Set(val *Facet) { - v.value = val - v.isSet = true -} - -func (v NullableFacet) IsSet() bool { - return v.isSet -} - -func (v *NullableFacet) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFacet(val *Facet) *NullableFacet { - return &NullableFacet{value: val, isSet: true} -} - -func (v NullableFacet) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFacet) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_config_status_200_response.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_config_status_200_response.go index 1c9c3d549e..fcc4bbbf41 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_config_status_200_response.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_config_status_200_response.go @@ -268,39 +268,3 @@ func (o GetConfigStatus200Response) String() string { out += fmt.Sprintf(" lastSuccessfulBuildDuration=%v\n", o.LastSuccessfulBuildDuration) return fmt.Sprintf("GetConfigStatus200Response {\n%s}", out) } - -type NullableGetConfigStatus200Response struct { - value *GetConfigStatus200Response - isSet bool -} - -func (v NullableGetConfigStatus200Response) Get() *GetConfigStatus200Response { - return v.value -} - -func (v *NullableGetConfigStatus200Response) Set(val *GetConfigStatus200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetConfigStatus200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetConfigStatus200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetConfigStatus200Response(val *GetConfigStatus200Response) *NullableGetConfigStatus200Response { - return &NullableGetConfigStatus200Response{value: val, isSet: true} -} - -func (v NullableGetConfigStatus200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetConfigStatus200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_log_file_200_response.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_log_file_200_response.go index 306c41b67c..64503ed9f0 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_log_file_200_response.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_log_file_200_response.go @@ -222,39 +222,3 @@ func (o GetLogFile200Response) String() string { out += fmt.Sprintf(" contextLevel=%v\n", o.ContextLevel) return fmt.Sprintf("GetLogFile200Response {\n%s}", out) } - -type NullableGetLogFile200Response struct { - value *GetLogFile200Response - isSet bool -} - -func (v NullableGetLogFile200Response) Get() *GetLogFile200Response { - return v.value -} - -func (v *NullableGetLogFile200Response) Set(val *GetLogFile200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetLogFile200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetLogFile200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetLogFile200Response(val *GetLogFile200Response) *NullableGetLogFile200Response { - return &NullableGetLogFile200Response{value: val, isSet: true} -} - -func (v NullableGetLogFile200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetLogFile200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_languages.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_languages.go index a6ce7272c2..830e25bd01 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_languages.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_languages.go @@ -94,39 +94,3 @@ func (obj Languages) GetActualInstance() any { // all schemas are nil return nil } - -type NullableLanguages struct { - value *Languages - isSet bool -} - -func (v NullableLanguages) Get() *Languages { - return v.value -} - -func (v *NullableLanguages) Set(val *Languages) { - v.value = val - v.isSet = true -} - -func (v NullableLanguages) IsSet() bool { - return v.isSet -} - -func (v *NullableLanguages) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLanguages(val *Languages) *NullableLanguages { - return &NullableLanguages{value: val, isSet: true} -} - -func (v NullableLanguages) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableLanguages) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_log_level.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_log_level.go index 34219a55ba..585579730f 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_log_level.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_log_level.go @@ -65,39 +65,3 @@ func (v LogLevel) IsValid() bool { func (v LogLevel) Ptr() *LogLevel { return &v } - -type NullableLogLevel struct { - value *LogLevel - isSet bool -} - -func (v NullableLogLevel) Get() *LogLevel { - return v.value -} - -func (v *NullableLogLevel) Set(val *LogLevel) { - v.value = val - v.isSet = true -} - -func (v NullableLogLevel) IsSet() bool { - return v.isSet -} - -func (v *NullableLogLevel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLogLevel(val *LogLevel) *NullableLogLevel { - return &NullableLogLevel{value: val, isSet: true} -} - -func (v NullableLogLevel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableLogLevel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration.go index 6eac4aa569..1253c33156 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration.go @@ -254,39 +254,3 @@ func (o QuerySuggestionsConfiguration) String() string { out += fmt.Sprintf(" allowSpecialCharacters=%v\n", o.AllowSpecialCharacters) return fmt.Sprintf("QuerySuggestionsConfiguration {\n%s}", out) } - -type NullableQuerySuggestionsConfiguration struct { - value *QuerySuggestionsConfiguration - isSet bool -} - -func (v NullableQuerySuggestionsConfiguration) Get() *QuerySuggestionsConfiguration { - return v.value -} - -func (v *NullableQuerySuggestionsConfiguration) Set(val *QuerySuggestionsConfiguration) { - v.value = val - v.isSet = true -} - -func (v NullableQuerySuggestionsConfiguration) IsSet() bool { - return v.isSet -} - -func (v *NullableQuerySuggestionsConfiguration) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableQuerySuggestionsConfiguration(val *QuerySuggestionsConfiguration) *NullableQuerySuggestionsConfiguration { - return &NullableQuerySuggestionsConfiguration{value: val, isSet: true} -} - -func (v NullableQuerySuggestionsConfiguration) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableQuerySuggestionsConfiguration) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration_response.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration_response.go index a4e3a2b1c3..66a8f2eb55 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration_response.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration_response.go @@ -262,39 +262,3 @@ func (o QuerySuggestionsConfigurationResponse) String() string { out += fmt.Sprintf(" allowSpecialCharacters=%v\n", o.AllowSpecialCharacters) return fmt.Sprintf("QuerySuggestionsConfigurationResponse {\n%s}", out) } - -type NullableQuerySuggestionsConfigurationResponse struct { - value *QuerySuggestionsConfigurationResponse - isSet bool -} - -func (v NullableQuerySuggestionsConfigurationResponse) Get() *QuerySuggestionsConfigurationResponse { - return v.value -} - -func (v *NullableQuerySuggestionsConfigurationResponse) Set(val *QuerySuggestionsConfigurationResponse) { - v.value = val - v.isSet = true -} - -func (v NullableQuerySuggestionsConfigurationResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableQuerySuggestionsConfigurationResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableQuerySuggestionsConfigurationResponse(val *QuerySuggestionsConfigurationResponse) *NullableQuerySuggestionsConfigurationResponse { - return &NullableQuerySuggestionsConfigurationResponse{value: val, isSet: true} -} - -func (v NullableQuerySuggestionsConfigurationResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableQuerySuggestionsConfigurationResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration_with_index.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration_with_index.go index 730b20338a..e7d6d19e9e 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration_with_index.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_query_suggestions_configuration_with_index.go @@ -286,39 +286,3 @@ func (o QuerySuggestionsConfigurationWithIndex) String() string { out += fmt.Sprintf(" indexName=%v\n", o.IndexName) return fmt.Sprintf("QuerySuggestionsConfigurationWithIndex {\n%s}", out) } - -type NullableQuerySuggestionsConfigurationWithIndex struct { - value *QuerySuggestionsConfigurationWithIndex - isSet bool -} - -func (v NullableQuerySuggestionsConfigurationWithIndex) Get() *QuerySuggestionsConfigurationWithIndex { - return v.value -} - -func (v *NullableQuerySuggestionsConfigurationWithIndex) Set(val *QuerySuggestionsConfigurationWithIndex) { - v.value = val - v.isSet = true -} - -func (v NullableQuerySuggestionsConfigurationWithIndex) IsSet() bool { - return v.isSet -} - -func (v *NullableQuerySuggestionsConfigurationWithIndex) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableQuerySuggestionsConfigurationWithIndex(val *QuerySuggestionsConfigurationWithIndex) *NullableQuerySuggestionsConfigurationWithIndex { - return &NullableQuerySuggestionsConfigurationWithIndex{value: val, isSet: true} -} - -func (v NullableQuerySuggestionsConfigurationWithIndex) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableQuerySuggestionsConfigurationWithIndex) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_source_index.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_source_index.go index c8a7e3182e..015598d1fc 100644 --- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_source_index.go +++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_source_index.go @@ -390,39 +390,3 @@ func (o SourceIndex) String() string { out += fmt.Sprintf(" external=%v\n", o.External) return fmt.Sprintf("SourceIndex {\n%s}", out) } - -type NullableSourceIndex struct { - value *SourceIndex - isSet bool -} - -func (v NullableSourceIndex) Get() *SourceIndex { - return v.value -} - -func (v *NullableSourceIndex) Set(val *SourceIndex) { - v.value = val - v.isSet = true -} - -func (v NullableSourceIndex) IsSet() bool { - return v.isSet -} - -func (v *NullableSourceIndex) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSourceIndex(val *SourceIndex) *NullableSourceIndex { - return &NullableSourceIndex{value: val, isSet: true} -} - -func (v NullableSourceIndex) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSourceIndex) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_advanced_syntax_features.go b/clients/algoliasearch-client-go/algolia/recommend/model_advanced_syntax_features.go index e93f1fe23a..eccc011cfd 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_advanced_syntax_features.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_advanced_syntax_features.go @@ -63,39 +63,3 @@ func (v AdvancedSyntaxFeatures) IsValid() bool { func (v AdvancedSyntaxFeatures) Ptr() *AdvancedSyntaxFeatures { return &v } - -type NullableAdvancedSyntaxFeatures struct { - value *AdvancedSyntaxFeatures - isSet bool -} - -func (v NullableAdvancedSyntaxFeatures) Get() *AdvancedSyntaxFeatures { - return v.value -} - -func (v *NullableAdvancedSyntaxFeatures) Set(val *AdvancedSyntaxFeatures) { - v.value = val - v.isSet = true -} - -func (v NullableAdvancedSyntaxFeatures) IsSet() bool { - return v.isSet -} - -func (v *NullableAdvancedSyntaxFeatures) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAdvancedSyntaxFeatures(val *AdvancedSyntaxFeatures) *NullableAdvancedSyntaxFeatures { - return &NullableAdvancedSyntaxFeatures{value: val, isSet: true} -} - -func (v NullableAdvancedSyntaxFeatures) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAdvancedSyntaxFeatures) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_alternatives_as_exact.go b/clients/algoliasearch-client-go/algolia/recommend/model_alternatives_as_exact.go index f23e9a5719..ff1fad4315 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_alternatives_as_exact.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_alternatives_as_exact.go @@ -65,39 +65,3 @@ func (v AlternativesAsExact) IsValid() bool { func (v AlternativesAsExact) Ptr() *AlternativesAsExact { return &v } - -type NullableAlternativesAsExact struct { - value *AlternativesAsExact - isSet bool -} - -func (v NullableAlternativesAsExact) Get() *AlternativesAsExact { - return v.value -} - -func (v *NullableAlternativesAsExact) Set(val *AlternativesAsExact) { - v.value = val - v.isSet = true -} - -func (v NullableAlternativesAsExact) IsSet() bool { - return v.isSet -} - -func (v *NullableAlternativesAsExact) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAlternativesAsExact(val *AlternativesAsExact) *NullableAlternativesAsExact { - return &NullableAlternativesAsExact{value: val, isSet: true} -} - -func (v NullableAlternativesAsExact) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAlternativesAsExact) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_around_precision.go b/clients/algoliasearch-client-go/algolia/recommend/model_around_precision.go index 2a1bb28bb1..505d693b83 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_around_precision.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_around_precision.go @@ -94,39 +94,3 @@ func (obj AroundPrecision) GetActualInstance() any { // all schemas are nil return nil } - -type NullableAroundPrecision struct { - value *AroundPrecision - isSet bool -} - -func (v NullableAroundPrecision) Get() *AroundPrecision { - return v.value -} - -func (v *NullableAroundPrecision) Set(val *AroundPrecision) { - v.value = val - v.isSet = true -} - -func (v NullableAroundPrecision) IsSet() bool { - return v.isSet -} - -func (v *NullableAroundPrecision) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAroundPrecision(val *AroundPrecision) *NullableAroundPrecision { - return &NullableAroundPrecision{value: val, isSet: true} -} - -func (v NullableAroundPrecision) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAroundPrecision) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_around_precision_from_value_inner.go b/clients/algoliasearch-client-go/algolia/recommend/model_around_precision_from_value_inner.go index 3d48291f1c..09e0c473df 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_around_precision_from_value_inner.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_around_precision_from_value_inner.go @@ -133,39 +133,3 @@ func (o AroundPrecisionFromValueInner) String() string { out += fmt.Sprintf(" value=%v\n", o.Value) return fmt.Sprintf("AroundPrecisionFromValueInner {\n%s}", out) } - -type NullableAroundPrecisionFromValueInner struct { - value *AroundPrecisionFromValueInner - isSet bool -} - -func (v NullableAroundPrecisionFromValueInner) Get() *AroundPrecisionFromValueInner { - return v.value -} - -func (v *NullableAroundPrecisionFromValueInner) Set(val *AroundPrecisionFromValueInner) { - v.value = val - v.isSet = true -} - -func (v NullableAroundPrecisionFromValueInner) IsSet() bool { - return v.isSet -} - -func (v *NullableAroundPrecisionFromValueInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAroundPrecisionFromValueInner(val *AroundPrecisionFromValueInner) *NullableAroundPrecisionFromValueInner { - return &NullableAroundPrecisionFromValueInner{value: val, isSet: true} -} - -func (v NullableAroundPrecisionFromValueInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAroundPrecisionFromValueInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_around_radius.go b/clients/algoliasearch-client-go/algolia/recommend/model_around_radius.go index b944fa237c..954e1fb55e 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_around_radius.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_around_radius.go @@ -94,39 +94,3 @@ func (obj AroundRadius) GetActualInstance() any { // all schemas are nil return nil } - -type NullableAroundRadius struct { - value *AroundRadius - isSet bool -} - -func (v NullableAroundRadius) Get() *AroundRadius { - return v.value -} - -func (v *NullableAroundRadius) Set(val *AroundRadius) { - v.value = val - v.isSet = true -} - -func (v NullableAroundRadius) IsSet() bool { - return v.isSet -} - -func (v *NullableAroundRadius) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAroundRadius(val *AroundRadius) *NullableAroundRadius { - return &NullableAroundRadius{value: val, isSet: true} -} - -func (v NullableAroundRadius) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAroundRadius) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_around_radius_all.go b/clients/algoliasearch-client-go/algolia/recommend/model_around_radius_all.go index 87a14f219f..4d7b3df393 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_around_radius_all.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_around_radius_all.go @@ -61,39 +61,3 @@ func (v AroundRadiusAll) IsValid() bool { func (v AroundRadiusAll) Ptr() *AroundRadiusAll { return &v } - -type NullableAroundRadiusAll struct { - value *AroundRadiusAll - isSet bool -} - -func (v NullableAroundRadiusAll) Get() *AroundRadiusAll { - return v.value -} - -func (v *NullableAroundRadiusAll) Set(val *AroundRadiusAll) { - v.value = val - v.isSet = true -} - -func (v NullableAroundRadiusAll) IsSet() bool { - return v.isSet -} - -func (v *NullableAroundRadiusAll) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAroundRadiusAll(val *AroundRadiusAll) *NullableAroundRadiusAll { - return &NullableAroundRadiusAll{value: val, isSet: true} -} - -func (v NullableAroundRadiusAll) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAroundRadiusAll) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_auto_facet_filter.go b/clients/algoliasearch-client-go/algolia/recommend/model_auto_facet_filter.go index 39e3acf14c..d11bee37c9 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_auto_facet_filter.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_auto_facet_filter.go @@ -133,39 +133,3 @@ func (o AutoFacetFilter) String() string { out += fmt.Sprintf(" negative=%v\n", o.Negative) return fmt.Sprintf("AutoFacetFilter {\n%s}", out) } - -type NullableAutoFacetFilter struct { - value *AutoFacetFilter - isSet bool -} - -func (v NullableAutoFacetFilter) Get() *AutoFacetFilter { - return v.value -} - -func (v *NullableAutoFacetFilter) Set(val *AutoFacetFilter) { - v.value = val - v.isSet = true -} - -func (v NullableAutoFacetFilter) IsSet() bool { - return v.isSet -} - -func (v *NullableAutoFacetFilter) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAutoFacetFilter(val *AutoFacetFilter) *NullableAutoFacetFilter { - return &NullableAutoFacetFilter{value: val, isSet: true} -} - -func (v NullableAutoFacetFilter) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAutoFacetFilter) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_base_recommend_request.go b/clients/algoliasearch-client-go/algolia/recommend/model_base_recommend_request.go index e407791aa0..9c9a72c434 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_base_recommend_request.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_base_recommend_request.go @@ -196,39 +196,3 @@ func (o BaseRecommendRequest) String() string { out += fmt.Sprintf(" queryParameters=%v\n", o.QueryParameters) return fmt.Sprintf("BaseRecommendRequest {\n%s}", out) } - -type NullableBaseRecommendRequest struct { - value *BaseRecommendRequest - isSet bool -} - -func (v NullableBaseRecommendRequest) Get() *BaseRecommendRequest { - return v.value -} - -func (v *NullableBaseRecommendRequest) Set(val *BaseRecommendRequest) { - v.value = val - v.isSet = true -} - -func (v NullableBaseRecommendRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseRecommendRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseRecommendRequest(val *BaseRecommendRequest) *NullableBaseRecommendRequest { - return &NullableBaseRecommendRequest{value: val, isSet: true} -} - -func (v NullableBaseRecommendRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBaseRecommendRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_base_search_params.go b/clients/algoliasearch-client-go/algolia/recommend/model_base_search_params.go index 6dbd0fe9e4..68f01d7f36 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_base_search_params.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_base_search_params.go @@ -1477,39 +1477,3 @@ func (o BaseSearchParams) String() string { out += fmt.Sprintf(" enableABTest=%v\n", o.EnableABTest) return fmt.Sprintf("BaseSearchParams {\n%s}", out) } - -type NullableBaseSearchParams struct { - value *BaseSearchParams - isSet bool -} - -func (v NullableBaseSearchParams) Get() *BaseSearchParams { - return v.value -} - -func (v *NullableBaseSearchParams) Set(val *BaseSearchParams) { - v.value = val - v.isSet = true -} - -func (v NullableBaseSearchParams) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseSearchParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseSearchParams(val *BaseSearchParams) *NullableBaseSearchParams { - return &NullableBaseSearchParams{value: val, isSet: true} -} - -func (v NullableBaseSearchParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBaseSearchParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_base_search_params_without_query.go b/clients/algoliasearch-client-go/algolia/recommend/model_base_search_params_without_query.go index bed032b213..f482e7813a 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_base_search_params_without_query.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_base_search_params_without_query.go @@ -1432,39 +1432,3 @@ func (o BaseSearchParamsWithoutQuery) String() string { out += fmt.Sprintf(" enableABTest=%v\n", o.EnableABTest) return fmt.Sprintf("BaseSearchParamsWithoutQuery {\n%s}", out) } - -type NullableBaseSearchParamsWithoutQuery struct { - value *BaseSearchParamsWithoutQuery - isSet bool -} - -func (v NullableBaseSearchParamsWithoutQuery) Get() *BaseSearchParamsWithoutQuery { - return v.value -} - -func (v *NullableBaseSearchParamsWithoutQuery) Set(val *BaseSearchParamsWithoutQuery) { - v.value = val - v.isSet = true -} - -func (v NullableBaseSearchParamsWithoutQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseSearchParamsWithoutQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseSearchParamsWithoutQuery(val *BaseSearchParamsWithoutQuery) *NullableBaseSearchParamsWithoutQuery { - return &NullableBaseSearchParamsWithoutQuery{value: val, isSet: true} -} - -func (v NullableBaseSearchParamsWithoutQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBaseSearchParamsWithoutQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_base_search_response.go b/clients/algoliasearch-client-go/algolia/recommend/model_base_search_response.go index e17acd44e4..19d1c77ca8 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_base_search_response.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_base_search_response.go @@ -1318,39 +1318,3 @@ func (o BaseSearchResponse) String() string { } return fmt.Sprintf("BaseSearchResponse {\n%s}", out) } - -type NullableBaseSearchResponse struct { - value *BaseSearchResponse - isSet bool -} - -func (v NullableBaseSearchResponse) Get() *BaseSearchResponse { - return v.value -} - -func (v *NullableBaseSearchResponse) Set(val *BaseSearchResponse) { - v.value = val - v.isSet = true -} - -func (v NullableBaseSearchResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseSearchResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseSearchResponse(val *BaseSearchResponse) *NullableBaseSearchResponse { - return &NullableBaseSearchResponse{value: val, isSet: true} -} - -func (v NullableBaseSearchResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBaseSearchResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_bought_together_query.go b/clients/algoliasearch-client-go/algolia/recommend/model_bought_together_query.go index 1180b7e556..c6003a0b68 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_bought_together_query.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_bought_together_query.go @@ -259,39 +259,3 @@ func (o BoughtTogetherQuery) String() string { out += fmt.Sprintf(" objectID=%v\n", o.ObjectID) return fmt.Sprintf("BoughtTogetherQuery {\n%s}", out) } - -type NullableBoughtTogetherQuery struct { - value *BoughtTogetherQuery - isSet bool -} - -func (v NullableBoughtTogetherQuery) Get() *BoughtTogetherQuery { - return v.value -} - -func (v *NullableBoughtTogetherQuery) Set(val *BoughtTogetherQuery) { - v.value = val - v.isSet = true -} - -func (v NullableBoughtTogetherQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableBoughtTogetherQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBoughtTogetherQuery(val *BoughtTogetherQuery) *NullableBoughtTogetherQuery { - return &NullableBoughtTogetherQuery{value: val, isSet: true} -} - -func (v NullableBoughtTogetherQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBoughtTogetherQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_condition.go b/clients/algoliasearch-client-go/algolia/recommend/model_condition.go index 10a4b143a1..1991740ce2 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_condition.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_condition.go @@ -133,39 +133,3 @@ func (o Condition) String() string { out += fmt.Sprintf(" context=%v\n", o.Context) return fmt.Sprintf("Condition {\n%s}", out) } - -type NullableCondition struct { - value *Condition - isSet bool -} - -func (v NullableCondition) Get() *Condition { - return v.value -} - -func (v *NullableCondition) Set(val *Condition) { - v.value = val - v.isSet = true -} - -func (v NullableCondition) IsSet() bool { - return v.isSet -} - -func (v *NullableCondition) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCondition(val *Condition) *NullableCondition { - return &NullableCondition{value: val, isSet: true} -} - -func (v NullableCondition) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableCondition) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_consequence.go b/clients/algoliasearch-client-go/algolia/recommend/model_consequence.go index 8dac0402b8..aadbbbe7fe 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_consequence.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_consequence.go @@ -177,39 +177,3 @@ func (o Consequence) String() string { out += fmt.Sprintf(" params=%v\n", o.Params) return fmt.Sprintf("Consequence {\n%s}", out) } - -type NullableConsequence struct { - value *Consequence - isSet bool -} - -func (v NullableConsequence) Get() *Consequence { - return v.value -} - -func (v *NullableConsequence) Set(val *Consequence) { - v.value = val - v.isSet = true -} - -func (v NullableConsequence) IsSet() bool { - return v.isSet -} - -func (v *NullableConsequence) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConsequence(val *Consequence) *NullableConsequence { - return &NullableConsequence{value: val, isSet: true} -} - -func (v NullableConsequence) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableConsequence) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_deleted_at_response.go b/clients/algoliasearch-client-go/algolia/recommend/model_deleted_at_response.go index 13710bd3f3..76a81eaeb7 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_deleted_at_response.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_deleted_at_response.go @@ -102,39 +102,3 @@ func (o DeletedAtResponse) String() string { out += fmt.Sprintf(" deletedAt=%v\n", o.DeletedAt) return fmt.Sprintf("DeletedAtResponse {\n%s}", out) } - -type NullableDeletedAtResponse struct { - value *DeletedAtResponse - isSet bool -} - -func (v NullableDeletedAtResponse) Get() *DeletedAtResponse { - return v.value -} - -func (v *NullableDeletedAtResponse) Set(val *DeletedAtResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDeletedAtResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDeletedAtResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeletedAtResponse(val *DeletedAtResponse) *NullableDeletedAtResponse { - return &NullableDeletedAtResponse{value: val, isSet: true} -} - -func (v NullableDeletedAtResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDeletedAtResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_distinct.go b/clients/algoliasearch-client-go/algolia/recommend/model_distinct.go index f7897758f1..9c5a2eeda6 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_distinct.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_distinct.go @@ -94,39 +94,3 @@ func (obj Distinct) GetActualInstance() any { // all schemas are nil return nil } - -type NullableDistinct struct { - value *Distinct - isSet bool -} - -func (v NullableDistinct) Get() *Distinct { - return v.value -} - -func (v *NullableDistinct) Set(val *Distinct) { - v.value = val - v.isSet = true -} - -func (v NullableDistinct) IsSet() bool { - return v.isSet -} - -func (v *NullableDistinct) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDistinct(val *Distinct) *NullableDistinct { - return &NullableDistinct{value: val, isSet: true} -} - -func (v NullableDistinct) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDistinct) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_error_base.go b/clients/algoliasearch-client-go/algolia/recommend/model_error_base.go index 302a9611f7..3269e38e29 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_error_base.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_error_base.go @@ -131,39 +131,3 @@ func (o ErrorBase) String() string { } return fmt.Sprintf("ErrorBase {\n%s}", out) } - -type NullableErrorBase struct { - value *ErrorBase - isSet bool -} - -func (v NullableErrorBase) Get() *ErrorBase { - return v.value -} - -func (v *NullableErrorBase) Set(val *ErrorBase) { - v.value = val - v.isSet = true -} - -func (v NullableErrorBase) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorBase) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorBase(val *ErrorBase) *NullableErrorBase { - return &NullableErrorBase{value: val, isSet: true} -} - -func (v NullableErrorBase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableErrorBase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_exact_on_single_word_query.go b/clients/algoliasearch-client-go/algolia/recommend/model_exact_on_single_word_query.go index 41789ee8a9..9a02fe5f49 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_exact_on_single_word_query.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_exact_on_single_word_query.go @@ -65,39 +65,3 @@ func (v ExactOnSingleWordQuery) IsValid() bool { func (v ExactOnSingleWordQuery) Ptr() *ExactOnSingleWordQuery { return &v } - -type NullableExactOnSingleWordQuery struct { - value *ExactOnSingleWordQuery - isSet bool -} - -func (v NullableExactOnSingleWordQuery) Get() *ExactOnSingleWordQuery { - return v.value -} - -func (v *NullableExactOnSingleWordQuery) Set(val *ExactOnSingleWordQuery) { - v.value = val - v.isSet = true -} - -func (v NullableExactOnSingleWordQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableExactOnSingleWordQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExactOnSingleWordQuery(val *ExactOnSingleWordQuery) *NullableExactOnSingleWordQuery { - return &NullableExactOnSingleWordQuery{value: val, isSet: true} -} - -func (v NullableExactOnSingleWordQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableExactOnSingleWordQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_exhaustive.go b/clients/algoliasearch-client-go/algolia/recommend/model_exhaustive.go index 612e29bb67..bd844a6e79 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_exhaustive.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_exhaustive.go @@ -268,39 +268,3 @@ func (o Exhaustive) String() string { out += fmt.Sprintf(" typo=%v\n", o.Typo) return fmt.Sprintf("Exhaustive {\n%s}", out) } - -type NullableExhaustive struct { - value *Exhaustive - isSet bool -} - -func (v NullableExhaustive) Get() *Exhaustive { - return v.value -} - -func (v *NullableExhaustive) Set(val *Exhaustive) { - v.value = val - v.isSet = true -} - -func (v NullableExhaustive) IsSet() bool { - return v.isSet -} - -func (v *NullableExhaustive) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExhaustive(val *Exhaustive) *NullableExhaustive { - return &NullableExhaustive{value: val, isSet: true} -} - -func (v NullableExhaustive) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableExhaustive) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_facet_filters.go b/clients/algoliasearch-client-go/algolia/recommend/model_facet_filters.go index 0672efd09b..0ab8e03812 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_facet_filters.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_facet_filters.go @@ -94,39 +94,3 @@ func (obj FacetFilters) GetActualInstance() any { // all schemas are nil return nil } - -type NullableFacetFilters struct { - value *FacetFilters - isSet bool -} - -func (v NullableFacetFilters) Get() *FacetFilters { - return v.value -} - -func (v *NullableFacetFilters) Set(val *FacetFilters) { - v.value = val - v.isSet = true -} - -func (v NullableFacetFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableFacetFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFacetFilters(val *FacetFilters) *NullableFacetFilters { - return &NullableFacetFilters{value: val, isSet: true} -} - -func (v NullableFacetFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFacetFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_facet_ordering.go b/clients/algoliasearch-client-go/algolia/recommend/model_facet_ordering.go index fc5f299044..a5a8fd2f48 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_facet_ordering.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_facet_ordering.go @@ -132,39 +132,3 @@ func (o FacetOrdering) String() string { out += fmt.Sprintf(" values=%v\n", o.Values) return fmt.Sprintf("FacetOrdering {\n%s}", out) } - -type NullableFacetOrdering struct { - value *FacetOrdering - isSet bool -} - -func (v NullableFacetOrdering) Get() *FacetOrdering { - return v.value -} - -func (v *NullableFacetOrdering) Set(val *FacetOrdering) { - v.value = val - v.isSet = true -} - -func (v NullableFacetOrdering) IsSet() bool { - return v.isSet -} - -func (v *NullableFacetOrdering) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFacetOrdering(val *FacetOrdering) *NullableFacetOrdering { - return &NullableFacetOrdering{value: val, isSet: true} -} - -func (v NullableFacetOrdering) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFacetOrdering) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_facets.go b/clients/algoliasearch-client-go/algolia/recommend/model_facets.go index ea15877ff3..2dbdb148c6 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_facets.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_facets.go @@ -88,39 +88,3 @@ func (o Facets) String() string { out += fmt.Sprintf(" order=%v\n", o.Order) return fmt.Sprintf("Facets {\n%s}", out) } - -type NullableFacets struct { - value *Facets - isSet bool -} - -func (v NullableFacets) Get() *Facets { - return v.value -} - -func (v *NullableFacets) Set(val *Facets) { - v.value = val - v.isSet = true -} - -func (v NullableFacets) IsSet() bool { - return v.isSet -} - -func (v *NullableFacets) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFacets(val *Facets) *NullableFacets { - return &NullableFacets{value: val, isSet: true} -} - -func (v NullableFacets) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFacets) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_facets_stats.go b/clients/algoliasearch-client-go/algolia/recommend/model_facets_stats.go index 68e41ee44c..bd303a2e9b 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_facets_stats.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_facets_stats.go @@ -223,39 +223,3 @@ func (o FacetsStats) String() string { out += fmt.Sprintf(" sum=%v\n", o.Sum) return fmt.Sprintf("FacetsStats {\n%s}", out) } - -type NullableFacetsStats struct { - value *FacetsStats - isSet bool -} - -func (v NullableFacetsStats) Get() *FacetsStats { - return v.value -} - -func (v *NullableFacetsStats) Set(val *FacetsStats) { - v.value = val - v.isSet = true -} - -func (v NullableFacetsStats) IsSet() bool { - return v.isSet -} - -func (v *NullableFacetsStats) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFacetsStats(val *FacetsStats) *NullableFacetsStats { - return &NullableFacetsStats{value: val, isSet: true} -} - -func (v NullableFacetsStats) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFacetsStats) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_fallback_params.go b/clients/algoliasearch-client-go/algolia/recommend/model_fallback_params.go index 19d7a9252c..d0b68152f5 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_fallback_params.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_fallback_params.go @@ -4,6 +4,8 @@ package recommend import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // FallbackParams struct for FallbackParams. @@ -141,8 +143,8 @@ type FallbackParams struct { AttributeCriteriaComputedByMinProximity *bool `json:"attributeCriteriaComputedByMinProximity,omitempty"` RenderingContent *RenderingContent `json:"renderingContent,omitempty"` // Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. - EnableReRanking *bool `json:"enableReRanking,omitempty"` - ReRankingApplyFilter NullableReRankingApplyFilter `json:"reRankingApplyFilter,omitempty"` + EnableReRanking *bool `json:"enableReRanking,omitempty"` + ReRankingApplyFilter utils.Nullable[ReRankingApplyFilter] `json:"reRankingApplyFilter,omitempty"` } type FallbackParamsOption func(f *FallbackParams) @@ -597,7 +599,7 @@ func WithFallbackParamsEnableReRanking(val bool) FallbackParamsOption { } } -func WithFallbackParamsReRankingApplyFilter(val NullableReRankingApplyFilter) FallbackParamsOption { +func WithFallbackParamsReRankingApplyFilter(val utils.Nullable[ReRankingApplyFilter]) FallbackParamsOption { return func(f *FallbackParams) { f.ReRankingApplyFilter = val } @@ -3123,7 +3125,7 @@ func (o *FallbackParams) HasReRankingApplyFilter() bool { return false } -// SetReRankingApplyFilter gets a reference to the given NullableReRankingApplyFilter and assigns it to the ReRankingApplyFilter field. +// SetReRankingApplyFilter gets a reference to the given utils.Nullable[ReRankingApplyFilter] and assigns it to the ReRankingApplyFilter field. func (o *FallbackParams) SetReRankingApplyFilter(v *ReRankingApplyFilter) *FallbackParams { o.ReRankingApplyFilter.Set(v) return o @@ -3457,39 +3459,3 @@ func (o FallbackParams) String() string { out += fmt.Sprintf(" reRankingApplyFilter=%v\n", o.ReRankingApplyFilter) return fmt.Sprintf("FallbackParams {\n%s}", out) } - -type NullableFallbackParams struct { - value *FallbackParams - isSet bool -} - -func (v NullableFallbackParams) Get() *FallbackParams { - return v.value -} - -func (v *NullableFallbackParams) Set(val *FallbackParams) { - v.value = val - v.isSet = true -} - -func (v NullableFallbackParams) IsSet() bool { - return v.isSet -} - -func (v *NullableFallbackParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFallbackParams(val *FallbackParams) *NullableFallbackParams { - return &NullableFallbackParams{value: val, isSet: true} -} - -func (v NullableFallbackParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFallbackParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_fbt_model.go b/clients/algoliasearch-client-go/algolia/recommend/model_fbt_model.go index c24dcedfdf..de899abc18 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_fbt_model.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_fbt_model.go @@ -61,39 +61,3 @@ func (v FbtModel) IsValid() bool { func (v FbtModel) Ptr() *FbtModel { return &v } - -type NullableFbtModel struct { - value *FbtModel - isSet bool -} - -func (v NullableFbtModel) Get() *FbtModel { - return v.value -} - -func (v *NullableFbtModel) Set(val *FbtModel) { - v.value = val - v.isSet = true -} - -func (v NullableFbtModel) IsSet() bool { - return v.isSet -} - -func (v *NullableFbtModel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFbtModel(val *FbtModel) *NullableFbtModel { - return &NullableFbtModel{value: val, isSet: true} -} - -func (v NullableFbtModel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFbtModel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_frequently_bought_together.go b/clients/algoliasearch-client-go/algolia/recommend/model_frequently_bought_together.go index f9e7051455..0f8d488e5f 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_frequently_bought_together.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_frequently_bought_together.go @@ -101,39 +101,3 @@ func (o FrequentlyBoughtTogether) String() string { out += fmt.Sprintf(" objectID=%v\n", o.ObjectID) return fmt.Sprintf("FrequentlyBoughtTogether {\n%s}", out) } - -type NullableFrequentlyBoughtTogether struct { - value *FrequentlyBoughtTogether - isSet bool -} - -func (v NullableFrequentlyBoughtTogether) Get() *FrequentlyBoughtTogether { - return v.value -} - -func (v *NullableFrequentlyBoughtTogether) Set(val *FrequentlyBoughtTogether) { - v.value = val - v.isSet = true -} - -func (v NullableFrequentlyBoughtTogether) IsSet() bool { - return v.isSet -} - -func (v *NullableFrequentlyBoughtTogether) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFrequentlyBoughtTogether(val *FrequentlyBoughtTogether) *NullableFrequentlyBoughtTogether { - return &NullableFrequentlyBoughtTogether{value: val, isSet: true} -} - -func (v NullableFrequentlyBoughtTogether) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFrequentlyBoughtTogether) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_get_recommend_task_response.go b/clients/algoliasearch-client-go/algolia/recommend/model_get_recommend_task_response.go index 23a90003b4..98d58d3c72 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_get_recommend_task_response.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_get_recommend_task_response.go @@ -69,39 +69,3 @@ func (o GetRecommendTaskResponse) String() string { out += fmt.Sprintf(" status=%v\n", o.Status) return fmt.Sprintf("GetRecommendTaskResponse {\n%s}", out) } - -type NullableGetRecommendTaskResponse struct { - value *GetRecommendTaskResponse - isSet bool -} - -func (v NullableGetRecommendTaskResponse) Get() *GetRecommendTaskResponse { - return v.value -} - -func (v *NullableGetRecommendTaskResponse) Set(val *GetRecommendTaskResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetRecommendTaskResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRecommendTaskResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRecommendTaskResponse(val *GetRecommendTaskResponse) *NullableGetRecommendTaskResponse { - return &NullableGetRecommendTaskResponse{value: val, isSet: true} -} - -func (v NullableGetRecommendTaskResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetRecommendTaskResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_get_recommendations_params.go b/clients/algoliasearch-client-go/algolia/recommend/model_get_recommendations_params.go index be568f01be..64eb7c90e2 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_get_recommendations_params.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_get_recommendations_params.go @@ -70,39 +70,3 @@ func (o GetRecommendationsParams) String() string { out += fmt.Sprintf(" requests=%v\n", o.Requests) return fmt.Sprintf("GetRecommendationsParams {\n%s}", out) } - -type NullableGetRecommendationsParams struct { - value *GetRecommendationsParams - isSet bool -} - -func (v NullableGetRecommendationsParams) Get() *GetRecommendationsParams { - return v.value -} - -func (v *NullableGetRecommendationsParams) Set(val *GetRecommendationsParams) { - v.value = val - v.isSet = true -} - -func (v NullableGetRecommendationsParams) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRecommendationsParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRecommendationsParams(val *GetRecommendationsParams) *NullableGetRecommendationsParams { - return &NullableGetRecommendationsParams{value: val, isSet: true} -} - -func (v NullableGetRecommendationsParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetRecommendationsParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_get_recommendations_response.go b/clients/algoliasearch-client-go/algolia/recommend/model_get_recommendations_response.go index 23887a0adf..16bd866bf8 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_get_recommendations_response.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_get_recommendations_response.go @@ -87,39 +87,3 @@ func (o GetRecommendationsResponse) String() string { out += fmt.Sprintf(" results=%v\n", o.Results) return fmt.Sprintf("GetRecommendationsResponse {\n%s}", out) } - -type NullableGetRecommendationsResponse struct { - value *GetRecommendationsResponse - isSet bool -} - -func (v NullableGetRecommendationsResponse) Get() *GetRecommendationsResponse { - return v.value -} - -func (v *NullableGetRecommendationsResponse) Set(val *GetRecommendationsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetRecommendationsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetRecommendationsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetRecommendationsResponse(val *GetRecommendationsResponse) *NullableGetRecommendationsResponse { - return &NullableGetRecommendationsResponse{value: val, isSet: true} -} - -func (v NullableGetRecommendationsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetRecommendationsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_hide_consequence_object.go b/clients/algoliasearch-client-go/algolia/recommend/model_hide_consequence_object.go index b4e5a07e89..af4fd0878a 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_hide_consequence_object.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_hide_consequence_object.go @@ -88,39 +88,3 @@ func (o HideConsequenceObject) String() string { out += fmt.Sprintf(" objectID=%v\n", o.ObjectID) return fmt.Sprintf("HideConsequenceObject {\n%s}", out) } - -type NullableHideConsequenceObject struct { - value *HideConsequenceObject - isSet bool -} - -func (v NullableHideConsequenceObject) Get() *HideConsequenceObject { - return v.value -} - -func (v *NullableHideConsequenceObject) Set(val *HideConsequenceObject) { - v.value = val - v.isSet = true -} - -func (v NullableHideConsequenceObject) IsSet() bool { - return v.isSet -} - -func (v *NullableHideConsequenceObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHideConsequenceObject(val *HideConsequenceObject) *NullableHideConsequenceObject { - return &NullableHideConsequenceObject{value: val, isSet: true} -} - -func (v NullableHideConsequenceObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableHideConsequenceObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_highlight_result.go b/clients/algoliasearch-client-go/algolia/recommend/model_highlight_result.go index 0ff8f415fd..d7833f5ad7 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_highlight_result.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_highlight_result.go @@ -128,39 +128,3 @@ func (obj HighlightResult) GetActualInstance() any { // all schemas are nil return nil } - -type NullableHighlightResult struct { - value *HighlightResult - isSet bool -} - -func (v NullableHighlightResult) Get() *HighlightResult { - return v.value -} - -func (v *NullableHighlightResult) Set(val *HighlightResult) { - v.value = val - v.isSet = true -} - -func (v NullableHighlightResult) IsSet() bool { - return v.isSet -} - -func (v *NullableHighlightResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHighlightResult(val *HighlightResult) *NullableHighlightResult { - return &NullableHighlightResult{value: val, isSet: true} -} - -func (v NullableHighlightResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableHighlightResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_highlight_result_option.go b/clients/algoliasearch-client-go/algolia/recommend/model_highlight_result_option.go index 800b1e6999..8c1ede735a 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_highlight_result_option.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_highlight_result_option.go @@ -183,39 +183,3 @@ func (o HighlightResultOption) String() string { out += fmt.Sprintf(" fullyHighlighted=%v\n", o.FullyHighlighted) return fmt.Sprintf("HighlightResultOption {\n%s}", out) } - -type NullableHighlightResultOption struct { - value *HighlightResultOption - isSet bool -} - -func (v NullableHighlightResultOption) Get() *HighlightResultOption { - return v.value -} - -func (v *NullableHighlightResultOption) Set(val *HighlightResultOption) { - v.value = val - v.isSet = true -} - -func (v NullableHighlightResultOption) IsSet() bool { - return v.isSet -} - -func (v *NullableHighlightResultOption) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHighlightResultOption(val *HighlightResultOption) *NullableHighlightResultOption { - return &NullableHighlightResultOption{value: val, isSet: true} -} - -func (v NullableHighlightResultOption) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableHighlightResultOption) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_ignore_plurals.go b/clients/algoliasearch-client-go/algolia/recommend/model_ignore_plurals.go index c8ca519028..69e2506765 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_ignore_plurals.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_ignore_plurals.go @@ -94,39 +94,3 @@ func (obj IgnorePlurals) GetActualInstance() any { // all schemas are nil return nil } - -type NullableIgnorePlurals struct { - value *IgnorePlurals - isSet bool -} - -func (v NullableIgnorePlurals) Get() *IgnorePlurals { - return v.value -} - -func (v *NullableIgnorePlurals) Set(val *IgnorePlurals) { - v.value = val - v.isSet = true -} - -func (v NullableIgnorePlurals) IsSet() bool { - return v.isSet -} - -func (v *NullableIgnorePlurals) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIgnorePlurals(val *IgnorePlurals) *NullableIgnorePlurals { - return &NullableIgnorePlurals{value: val, isSet: true} -} - -func (v NullableIgnorePlurals) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableIgnorePlurals) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_index_settings_as_search_params.go b/clients/algoliasearch-client-go/algolia/recommend/model_index_settings_as_search_params.go index 0d993ffe2e..5ac65c31a7 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_index_settings_as_search_params.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_index_settings_as_search_params.go @@ -4,6 +4,8 @@ package recommend import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // IndexSettingsAsSearchParams struct for IndexSettingsAsSearchParams. @@ -83,8 +85,8 @@ type IndexSettingsAsSearchParams struct { AttributeCriteriaComputedByMinProximity *bool `json:"attributeCriteriaComputedByMinProximity,omitempty"` RenderingContent *RenderingContent `json:"renderingContent,omitempty"` // Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. - EnableReRanking *bool `json:"enableReRanking,omitempty"` - ReRankingApplyFilter NullableReRankingApplyFilter `json:"reRankingApplyFilter,omitempty"` + EnableReRanking *bool `json:"enableReRanking,omitempty"` + ReRankingApplyFilter utils.Nullable[ReRankingApplyFilter] `json:"reRankingApplyFilter,omitempty"` } type IndexSettingsAsSearchParamsOption func(f *IndexSettingsAsSearchParams) @@ -347,7 +349,7 @@ func WithIndexSettingsAsSearchParamsEnableReRanking(val bool) IndexSettingsAsSea } } -func WithIndexSettingsAsSearchParamsReRankingApplyFilter(val NullableReRankingApplyFilter) IndexSettingsAsSearchParamsOption { +func WithIndexSettingsAsSearchParamsReRankingApplyFilter(val utils.Nullable[ReRankingApplyFilter]) IndexSettingsAsSearchParamsOption { return func(f *IndexSettingsAsSearchParams) { f.ReRankingApplyFilter = val } @@ -1817,7 +1819,7 @@ func (o *IndexSettingsAsSearchParams) HasReRankingApplyFilter() bool { return false } -// SetReRankingApplyFilter gets a reference to the given NullableReRankingApplyFilter and assigns it to the ReRankingApplyFilter field. +// SetReRankingApplyFilter gets a reference to the given utils.Nullable[ReRankingApplyFilter] and assigns it to the ReRankingApplyFilter field. func (o *IndexSettingsAsSearchParams) SetReRankingApplyFilter(v *ReRankingApplyFilter) *IndexSettingsAsSearchParams { o.ReRankingApplyFilter.Set(v) return o @@ -2023,39 +2025,3 @@ func (o IndexSettingsAsSearchParams) String() string { out += fmt.Sprintf(" reRankingApplyFilter=%v\n", o.ReRankingApplyFilter) return fmt.Sprintf("IndexSettingsAsSearchParams {\n%s}", out) } - -type NullableIndexSettingsAsSearchParams struct { - value *IndexSettingsAsSearchParams - isSet bool -} - -func (v NullableIndexSettingsAsSearchParams) Get() *IndexSettingsAsSearchParams { - return v.value -} - -func (v *NullableIndexSettingsAsSearchParams) Set(val *IndexSettingsAsSearchParams) { - v.value = val - v.isSet = true -} - -func (v NullableIndexSettingsAsSearchParams) IsSet() bool { - return v.isSet -} - -func (v *NullableIndexSettingsAsSearchParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIndexSettingsAsSearchParams(val *IndexSettingsAsSearchParams) *NullableIndexSettingsAsSearchParams { - return &NullableIndexSettingsAsSearchParams{value: val, isSet: true} -} - -func (v NullableIndexSettingsAsSearchParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableIndexSettingsAsSearchParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar.go b/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar.go index 3ec542a19a..bfb5ab8b69 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar.go @@ -150,39 +150,3 @@ func (o LookingSimilar) String() string { out += fmt.Sprintf(" fallbackParameters=%v\n", o.FallbackParameters) return fmt.Sprintf("LookingSimilar {\n%s}", out) } - -type NullableLookingSimilar struct { - value *LookingSimilar - isSet bool -} - -func (v NullableLookingSimilar) Get() *LookingSimilar { - return v.value -} - -func (v *NullableLookingSimilar) Set(val *LookingSimilar) { - v.value = val - v.isSet = true -} - -func (v NullableLookingSimilar) IsSet() bool { - return v.isSet -} - -func (v *NullableLookingSimilar) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLookingSimilar(val *LookingSimilar) *NullableLookingSimilar { - return &NullableLookingSimilar{value: val, isSet: true} -} - -func (v NullableLookingSimilar) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableLookingSimilar) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar_model.go b/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar_model.go index 18de3e161a..3e3c99ad9f 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar_model.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar_model.go @@ -61,39 +61,3 @@ func (v LookingSimilarModel) IsValid() bool { func (v LookingSimilarModel) Ptr() *LookingSimilarModel { return &v } - -type NullableLookingSimilarModel struct { - value *LookingSimilarModel - isSet bool -} - -func (v NullableLookingSimilarModel) Get() *LookingSimilarModel { - return v.value -} - -func (v *NullableLookingSimilarModel) Set(val *LookingSimilarModel) { - v.value = val - v.isSet = true -} - -func (v NullableLookingSimilarModel) IsSet() bool { - return v.isSet -} - -func (v *NullableLookingSimilarModel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLookingSimilarModel(val *LookingSimilarModel) *NullableLookingSimilarModel { - return &NullableLookingSimilarModel{value: val, isSet: true} -} - -func (v NullableLookingSimilarModel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableLookingSimilarModel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar_query.go b/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar_query.go index 4a93f6d7a4..3b2258b0eb 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar_query.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_looking_similar_query.go @@ -303,39 +303,3 @@ func (o LookingSimilarQuery) String() string { out += fmt.Sprintf(" fallbackParameters=%v\n", o.FallbackParameters) return fmt.Sprintf("LookingSimilarQuery {\n%s}", out) } - -type NullableLookingSimilarQuery struct { - value *LookingSimilarQuery - isSet bool -} - -func (v NullableLookingSimilarQuery) Get() *LookingSimilarQuery { - return v.value -} - -func (v *NullableLookingSimilarQuery) Set(val *LookingSimilarQuery) { - v.value = val - v.isSet = true -} - -func (v NullableLookingSimilarQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableLookingSimilarQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLookingSimilarQuery(val *LookingSimilarQuery) *NullableLookingSimilarQuery { - return &NullableLookingSimilarQuery{value: val, isSet: true} -} - -func (v NullableLookingSimilarQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableLookingSimilarQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_match_level.go b/clients/algoliasearch-client-go/algolia/recommend/model_match_level.go index 49d183eb40..d8a721c432 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_match_level.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_match_level.go @@ -65,39 +65,3 @@ func (v MatchLevel) IsValid() bool { func (v MatchLevel) Ptr() *MatchLevel { return &v } - -type NullableMatchLevel struct { - value *MatchLevel - isSet bool -} - -func (v NullableMatchLevel) Get() *MatchLevel { - return v.value -} - -func (v *NullableMatchLevel) Set(val *MatchLevel) { - v.value = val - v.isSet = true -} - -func (v NullableMatchLevel) IsSet() bool { - return v.isSet -} - -func (v *NullableMatchLevel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMatchLevel(val *MatchLevel) *NullableMatchLevel { - return &NullableMatchLevel{value: val, isSet: true} -} - -func (v NullableMatchLevel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMatchLevel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_matched_geo_location.go b/clients/algoliasearch-client-go/algolia/recommend/model_matched_geo_location.go index 05a9477d51..ebee902c17 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_matched_geo_location.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_matched_geo_location.go @@ -178,39 +178,3 @@ func (o MatchedGeoLocation) String() string { out += fmt.Sprintf(" distance=%v\n", o.Distance) return fmt.Sprintf("MatchedGeoLocation {\n%s}", out) } - -type NullableMatchedGeoLocation struct { - value *MatchedGeoLocation - isSet bool -} - -func (v NullableMatchedGeoLocation) Get() *MatchedGeoLocation { - return v.value -} - -func (v *NullableMatchedGeoLocation) Set(val *MatchedGeoLocation) { - v.value = val - v.isSet = true -} - -func (v NullableMatchedGeoLocation) IsSet() bool { - return v.isSet -} - -func (v *NullableMatchedGeoLocation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMatchedGeoLocation(val *MatchedGeoLocation) *NullableMatchedGeoLocation { - return &NullableMatchedGeoLocation{value: val, isSet: true} -} - -func (v NullableMatchedGeoLocation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMatchedGeoLocation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_mode.go b/clients/algoliasearch-client-go/algolia/recommend/model_mode.go index cf92e427ae..cb205d0e7a 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_mode.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_mode.go @@ -63,39 +63,3 @@ func (v Mode) IsValid() bool { func (v Mode) Ptr() *Mode { return &v } - -type NullableMode struct { - value *Mode - isSet bool -} - -func (v NullableMode) Get() *Mode { - return v.value -} - -func (v *NullableMode) Set(val *Mode) { - v.value = val - v.isSet = true -} - -func (v NullableMode) IsSet() bool { - return v.isSet -} - -func (v *NullableMode) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMode(val *Mode) *NullableMode { - return &NullableMode{value: val, isSet: true} -} - -func (v NullableMode) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMode) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_numeric_filters.go b/clients/algoliasearch-client-go/algolia/recommend/model_numeric_filters.go index 3b3d7d1f2c..c3094d3068 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_numeric_filters.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_numeric_filters.go @@ -94,39 +94,3 @@ func (obj NumericFilters) GetActualInstance() any { // all schemas are nil return nil } - -type NullableNumericFilters struct { - value *NumericFilters - isSet bool -} - -func (v NullableNumericFilters) Get() *NumericFilters { - return v.value -} - -func (v *NullableNumericFilters) Set(val *NumericFilters) { - v.value = val - v.isSet = true -} - -func (v NullableNumericFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableNumericFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableNumericFilters(val *NumericFilters) *NullableNumericFilters { - return &NullableNumericFilters{value: val, isSet: true} -} - -func (v NullableNumericFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableNumericFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_optional_filters.go b/clients/algoliasearch-client-go/algolia/recommend/model_optional_filters.go index de8de8aafe..5b5b3b3465 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_optional_filters.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_optional_filters.go @@ -94,39 +94,3 @@ func (obj OptionalFilters) GetActualInstance() any { // all schemas are nil return nil } - -type NullableOptionalFilters struct { - value *OptionalFilters - isSet bool -} - -func (v NullableOptionalFilters) Get() *OptionalFilters { - return v.value -} - -func (v *NullableOptionalFilters) Set(val *OptionalFilters) { - v.value = val - v.isSet = true -} - -func (v NullableOptionalFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableOptionalFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOptionalFilters(val *OptionalFilters) *NullableOptionalFilters { - return &NullableOptionalFilters{value: val, isSet: true} -} - -func (v NullableOptionalFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOptionalFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_params_consequence.go b/clients/algoliasearch-client-go/algolia/recommend/model_params_consequence.go index f2c8a6f45f..613cb09cb1 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_params_consequence.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_params_consequence.go @@ -178,39 +178,3 @@ func (o ParamsConsequence) String() string { out += fmt.Sprintf(" optionalFilters=%v\n", o.OptionalFilters) return fmt.Sprintf("ParamsConsequence {\n%s}", out) } - -type NullableParamsConsequence struct { - value *ParamsConsequence - isSet bool -} - -func (v NullableParamsConsequence) Get() *ParamsConsequence { - return v.value -} - -func (v *NullableParamsConsequence) Set(val *ParamsConsequence) { - v.value = val - v.isSet = true -} - -func (v NullableParamsConsequence) IsSet() bool { - return v.isSet -} - -func (v *NullableParamsConsequence) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableParamsConsequence(val *ParamsConsequence) *NullableParamsConsequence { - return &NullableParamsConsequence{value: val, isSet: true} -} - -func (v NullableParamsConsequence) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableParamsConsequence) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_personalization.go b/clients/algoliasearch-client-go/algolia/recommend/model_personalization.go index 3297c78438..70b79bdced 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_personalization.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_personalization.go @@ -178,39 +178,3 @@ func (o Personalization) String() string { out += fmt.Sprintf(" score=%v\n", o.Score) return fmt.Sprintf("Personalization {\n%s}", out) } - -type NullablePersonalization struct { - value *Personalization - isSet bool -} - -func (v NullablePersonalization) Get() *Personalization { - return v.value -} - -func (v *NullablePersonalization) Set(val *Personalization) { - v.value = val - v.isSet = true -} - -func (v NullablePersonalization) IsSet() bool { - return v.isSet -} - -func (v *NullablePersonalization) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePersonalization(val *Personalization) *NullablePersonalization { - return &NullablePersonalization{value: val, isSet: true} -} - -func (v NullablePersonalization) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePersonalization) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_promote_consequence_object.go b/clients/algoliasearch-client-go/algolia/recommend/model_promote_consequence_object.go index d5434f7c5b..cb66c393c3 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_promote_consequence_object.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_promote_consequence_object.go @@ -133,39 +133,3 @@ func (o PromoteConsequenceObject) String() string { out += fmt.Sprintf(" position=%v\n", o.Position) return fmt.Sprintf("PromoteConsequenceObject {\n%s}", out) } - -type NullablePromoteConsequenceObject struct { - value *PromoteConsequenceObject - isSet bool -} - -func (v NullablePromoteConsequenceObject) Get() *PromoteConsequenceObject { - return v.value -} - -func (v *NullablePromoteConsequenceObject) Set(val *PromoteConsequenceObject) { - v.value = val - v.isSet = true -} - -func (v NullablePromoteConsequenceObject) IsSet() bool { - return v.isSet -} - -func (v *NullablePromoteConsequenceObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePromoteConsequenceObject(val *PromoteConsequenceObject) *NullablePromoteConsequenceObject { - return &NullablePromoteConsequenceObject{value: val, isSet: true} -} - -func (v NullablePromoteConsequenceObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePromoteConsequenceObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_query_type.go b/clients/algoliasearch-client-go/algolia/recommend/model_query_type.go index 9ae22a7021..a816e9c073 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_query_type.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_query_type.go @@ -65,39 +65,3 @@ func (v QueryType) IsValid() bool { func (v QueryType) Ptr() *QueryType { return &v } - -type NullableQueryType struct { - value *QueryType - isSet bool -} - -func (v NullableQueryType) Get() *QueryType { - return v.value -} - -func (v *NullableQueryType) Set(val *QueryType) { - v.value = val - v.isSet = true -} - -func (v NullableQueryType) IsSet() bool { - return v.isSet -} - -func (v *NullableQueryType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableQueryType(val *QueryType) *NullableQueryType { - return &NullableQueryType{value: val, isSet: true} -} - -func (v NullableQueryType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableQueryType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_ranking_info.go b/clients/algoliasearch-client-go/algolia/recommend/model_ranking_info.go index 8b6ce31dae..6eaabdcb68 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_ranking_info.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_ranking_info.go @@ -561,39 +561,3 @@ func (o RankingInfo) String() string { out += fmt.Sprintf(" promotedByReRanking=%v\n", o.PromotedByReRanking) return fmt.Sprintf("RankingInfo {\n%s}", out) } - -type NullableRankingInfo struct { - value *RankingInfo - isSet bool -} - -func (v NullableRankingInfo) Get() *RankingInfo { - return v.value -} - -func (v *NullableRankingInfo) Set(val *RankingInfo) { - v.value = val - v.isSet = true -} - -func (v NullableRankingInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableRankingInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRankingInfo(val *RankingInfo) *NullableRankingInfo { - return &NullableRankingInfo{value: val, isSet: true} -} - -func (v NullableRankingInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRankingInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_re_ranking_apply_filter.go b/clients/algoliasearch-client-go/algolia/recommend/model_re_ranking_apply_filter.go index 045ac15bbc..7861dbd1bf 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_re_ranking_apply_filter.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_re_ranking_apply_filter.go @@ -94,39 +94,3 @@ func (obj ReRankingApplyFilter) GetActualInstance() any { // all schemas are nil return nil } - -type NullableReRankingApplyFilter struct { - value *ReRankingApplyFilter - isSet bool -} - -func (v NullableReRankingApplyFilter) Get() *ReRankingApplyFilter { - return v.value -} - -func (v *NullableReRankingApplyFilter) Set(val *ReRankingApplyFilter) { - v.value = val - v.isSet = true -} - -func (v NullableReRankingApplyFilter) IsSet() bool { - return v.isSet -} - -func (v *NullableReRankingApplyFilter) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableReRankingApplyFilter(val *ReRankingApplyFilter) *NullableReRankingApplyFilter { - return &NullableReRankingApplyFilter{value: val, isSet: true} -} - -func (v NullableReRankingApplyFilter) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableReRankingApplyFilter) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_hit.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommend_hit.go index f3557d2c0b..25101229d1 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_hit.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommend_hit.go @@ -334,39 +334,3 @@ func (o RecommendHit) String() string { } return fmt.Sprintf("RecommendHit {\n%s}", out) } - -type NullableRecommendHit struct { - value *RecommendHit - isSet bool -} - -func (v NullableRecommendHit) Get() *RecommendHit { - return v.value -} - -func (v *NullableRecommendHit) Set(val *RecommendHit) { - v.value = val - v.isSet = true -} - -func (v NullableRecommendHit) IsSet() bool { - return v.isSet -} - -func (v *NullableRecommendHit) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecommendHit(val *RecommendHit) *NullableRecommendHit { - return &NullableRecommendHit{value: val, isSet: true} -} - -func (v NullableRecommendHit) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecommendHit) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_models.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommend_models.go index ca21232a70..ebc86acc8d 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_models.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommend_models.go @@ -67,39 +67,3 @@ func (v RecommendModels) IsValid() bool { func (v RecommendModels) Ptr() *RecommendModels { return &v } - -type NullableRecommendModels struct { - value *RecommendModels - isSet bool -} - -func (v NullableRecommendModels) Get() *RecommendModels { - return v.value -} - -func (v *NullableRecommendModels) Set(val *RecommendModels) { - v.value = val - v.isSet = true -} - -func (v NullableRecommendModels) IsSet() bool { - return v.isSet -} - -func (v *NullableRecommendModels) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecommendModels(val *RecommendModels) *NullableRecommendModels { - return &NullableRecommendModels{value: val, isSet: true} -} - -func (v NullableRecommendModels) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecommendModels) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule.go index 8ef9179396..901821eaaf 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule.go @@ -310,39 +310,3 @@ func (o RecommendRule) String() string { out += fmt.Sprintf(" enabled=%v\n", o.Enabled) return fmt.Sprintf("RecommendRule {\n%s}", out) } - -type NullableRecommendRule struct { - value *RecommendRule - isSet bool -} - -func (v NullableRecommendRule) Get() *RecommendRule { - return v.value -} - -func (v *NullableRecommendRule) Set(val *RecommendRule) { - v.value = val - v.isSet = true -} - -func (v NullableRecommendRule) IsSet() bool { - return v.isSet -} - -func (v *NullableRecommendRule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecommendRule(val *RecommendRule) *NullableRecommendRule { - return &NullableRecommendRule{value: val, isSet: true} -} - -func (v NullableRecommendRule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecommendRule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule__metadata.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule__metadata.go index 73c733a808..8bb2c5f362 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule__metadata.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule__metadata.go @@ -88,39 +88,3 @@ func (o RecommendRuleMetadata) String() string { out += fmt.Sprintf(" lastUpdate=%v\n", o.LastUpdate) return fmt.Sprintf("RecommendRuleMetadata {\n%s}", out) } - -type NullableRecommendRuleMetadata struct { - value *RecommendRuleMetadata - isSet bool -} - -func (v NullableRecommendRuleMetadata) Get() *RecommendRuleMetadata { - return v.value -} - -func (v *NullableRecommendRuleMetadata) Set(val *RecommendRuleMetadata) { - v.value = val - v.isSet = true -} - -func (v NullableRecommendRuleMetadata) IsSet() bool { - return v.isSet -} - -func (v *NullableRecommendRuleMetadata) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecommendRuleMetadata(val *RecommendRuleMetadata) *NullableRecommendRuleMetadata { - return &NullableRecommendRuleMetadata{value: val, isSet: true} -} - -func (v NullableRecommendRuleMetadata) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecommendRuleMetadata) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_hit.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_hit.go index 8bd64d4f44..e0917ae073 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_hit.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_hit.go @@ -94,39 +94,3 @@ func (obj RecommendationsHit) GetActualInstance() any { // all schemas are nil return nil } - -type NullableRecommendationsHit struct { - value *RecommendationsHit - isSet bool -} - -func (v NullableRecommendationsHit) Get() *RecommendationsHit { - return v.value -} - -func (v *NullableRecommendationsHit) Set(val *RecommendationsHit) { - v.value = val - v.isSet = true -} - -func (v NullableRecommendationsHit) IsSet() bool { - return v.isSet -} - -func (v *NullableRecommendationsHit) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecommendationsHit(val *RecommendationsHit) *NullableRecommendationsHit { - return &NullableRecommendationsHit{value: val, isSet: true} -} - -func (v NullableRecommendationsHit) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecommendationsHit) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_hits.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_hits.go index 572f76d9e3..c26b68751e 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_hits.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_hits.go @@ -69,39 +69,3 @@ func (o RecommendationsHits) String() string { out += fmt.Sprintf(" hits=%v\n", o.Hits) return fmt.Sprintf("RecommendationsHits {\n%s}", out) } - -type NullableRecommendationsHits struct { - value *RecommendationsHits - isSet bool -} - -func (v NullableRecommendationsHits) Get() *RecommendationsHits { - return v.value -} - -func (v *NullableRecommendationsHits) Set(val *RecommendationsHits) { - v.value = val - v.isSet = true -} - -func (v NullableRecommendationsHits) IsSet() bool { - return v.isSet -} - -func (v *NullableRecommendationsHits) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecommendationsHits(val *RecommendationsHits) *NullableRecommendationsHits { - return &NullableRecommendationsHits{value: val, isSet: true} -} - -func (v NullableRecommendationsHits) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecommendationsHits) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_request.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_request.go index 875400a332..21d63b1cb3 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_request.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_request.go @@ -230,39 +230,3 @@ func (obj RecommendationsRequest) GetActualInstance() any { // all schemas are nil return nil } - -type NullableRecommendationsRequest struct { - value *RecommendationsRequest - isSet bool -} - -func (v NullableRecommendationsRequest) Get() *RecommendationsRequest { - return v.value -} - -func (v *NullableRecommendationsRequest) Set(val *RecommendationsRequest) { - v.value = val - v.isSet = true -} - -func (v NullableRecommendationsRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableRecommendationsRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecommendationsRequest(val *RecommendationsRequest) *NullableRecommendationsRequest { - return &NullableRecommendationsRequest{value: val, isSet: true} -} - -func (v NullableRecommendationsRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecommendationsRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_results.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_results.go index ef806bfc7c..1181f30722 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_results.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommendations_results.go @@ -1278,39 +1278,3 @@ func (o RecommendationsResults) String() string { out += fmt.Sprintf(" hits=%v\n", o.Hits) return fmt.Sprintf("RecommendationsResults {\n%s}", out) } - -type NullableRecommendationsResults struct { - value *RecommendationsResults - isSet bool -} - -func (v NullableRecommendationsResults) Get() *RecommendationsResults { - return v.value -} - -func (v *NullableRecommendationsResults) Set(val *RecommendationsResults) { - v.value = val - v.isSet = true -} - -func (v NullableRecommendationsResults) IsSet() bool { - return v.isSet -} - -func (v *NullableRecommendationsResults) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecommendationsResults(val *RecommendationsResults) *NullableRecommendationsResults { - return &NullableRecommendationsResults{value: val, isSet: true} -} - -func (v NullableRecommendationsResults) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecommendationsResults) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you.go index 3e5bae32a0..1c2c21e854 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you.go @@ -118,39 +118,3 @@ func (o RecommendedForYou) String() string { out += fmt.Sprintf(" fallbackParameters=%v\n", o.FallbackParameters) return fmt.Sprintf("RecommendedForYou {\n%s}", out) } - -type NullableRecommendedForYou struct { - value *RecommendedForYou - isSet bool -} - -func (v NullableRecommendedForYou) Get() *RecommendedForYou { - return v.value -} - -func (v *NullableRecommendedForYou) Set(val *RecommendedForYou) { - v.value = val - v.isSet = true -} - -func (v NullableRecommendedForYou) IsSet() bool { - return v.isSet -} - -func (v *NullableRecommendedForYou) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecommendedForYou(val *RecommendedForYou) *NullableRecommendedForYou { - return &NullableRecommendedForYou{value: val, isSet: true} -} - -func (v NullableRecommendedForYou) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecommendedForYou) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you_model.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you_model.go index 4d09f89471..9d590d2a00 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you_model.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you_model.go @@ -61,39 +61,3 @@ func (v RecommendedForYouModel) IsValid() bool { func (v RecommendedForYouModel) Ptr() *RecommendedForYouModel { return &v } - -type NullableRecommendedForYouModel struct { - value *RecommendedForYouModel - isSet bool -} - -func (v NullableRecommendedForYouModel) Get() *RecommendedForYouModel { - return v.value -} - -func (v *NullableRecommendedForYouModel) Set(val *RecommendedForYouModel) { - v.value = val - v.isSet = true -} - -func (v NullableRecommendedForYouModel) IsSet() bool { - return v.isSet -} - -func (v *NullableRecommendedForYouModel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecommendedForYouModel(val *RecommendedForYouModel) *NullableRecommendedForYouModel { - return &NullableRecommendedForYouModel{value: val, isSet: true} -} - -func (v NullableRecommendedForYouModel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecommendedForYouModel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you_query.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you_query.go index eebe19096e..a0205b9573 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you_query.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommended_for_you_query.go @@ -271,39 +271,3 @@ func (o RecommendedForYouQuery) String() string { out += fmt.Sprintf(" fallbackParameters=%v\n", o.FallbackParameters) return fmt.Sprintf("RecommendedForYouQuery {\n%s}", out) } - -type NullableRecommendedForYouQuery struct { - value *RecommendedForYouQuery - isSet bool -} - -func (v NullableRecommendedForYouQuery) Get() *RecommendedForYouQuery { - return v.value -} - -func (v *NullableRecommendedForYouQuery) Set(val *RecommendedForYouQuery) { - v.value = val - v.isSet = true -} - -func (v NullableRecommendedForYouQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableRecommendedForYouQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRecommendedForYouQuery(val *RecommendedForYouQuery) *NullableRecommendedForYouQuery { - return &NullableRecommendedForYouQuery{value: val, isSet: true} -} - -func (v NullableRecommendedForYouQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRecommendedForYouQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_redirect.go b/clients/algoliasearch-client-go/algolia/recommend/model_redirect.go index 91f20e706a..bcddedd1f2 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_redirect.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_redirect.go @@ -87,39 +87,3 @@ func (o Redirect) String() string { out += fmt.Sprintf(" index=%v\n", o.Index) return fmt.Sprintf("Redirect {\n%s}", out) } - -type NullableRedirect struct { - value *Redirect - isSet bool -} - -func (v NullableRedirect) Get() *Redirect { - return v.value -} - -func (v *NullableRedirect) Set(val *Redirect) { - v.value = val - v.isSet = true -} - -func (v NullableRedirect) IsSet() bool { - return v.isSet -} - -func (v *NullableRedirect) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRedirect(val *Redirect) *NullableRedirect { - return &NullableRedirect{value: val, isSet: true} -} - -func (v NullableRedirect) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRedirect) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata.go b/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata.go index fa8cd83f0b..5478e4b18e 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata.go @@ -197,39 +197,3 @@ func (o RedirectRuleIndexMetadata) String() string { out += fmt.Sprintf(" data=%v\n", o.Data) return fmt.Sprintf("RedirectRuleIndexMetadata {\n%s}", out) } - -type NullableRedirectRuleIndexMetadata struct { - value *RedirectRuleIndexMetadata - isSet bool -} - -func (v NullableRedirectRuleIndexMetadata) Get() *RedirectRuleIndexMetadata { - return v.value -} - -func (v *NullableRedirectRuleIndexMetadata) Set(val *RedirectRuleIndexMetadata) { - v.value = val - v.isSet = true -} - -func (v NullableRedirectRuleIndexMetadata) IsSet() bool { - return v.isSet -} - -func (v *NullableRedirectRuleIndexMetadata) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRedirectRuleIndexMetadata(val *RedirectRuleIndexMetadata) *NullableRedirectRuleIndexMetadata { - return &NullableRedirectRuleIndexMetadata{value: val, isSet: true} -} - -func (v NullableRedirectRuleIndexMetadata) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRedirectRuleIndexMetadata) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata_data.go b/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata_data.go index 05f20a8b32..78653b2e4f 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata_data.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata_data.go @@ -69,39 +69,3 @@ func (o RedirectRuleIndexMetadataData) String() string { out += fmt.Sprintf(" ruleObjectID=%v\n", o.RuleObjectID) return fmt.Sprintf("RedirectRuleIndexMetadataData {\n%s}", out) } - -type NullableRedirectRuleIndexMetadataData struct { - value *RedirectRuleIndexMetadataData - isSet bool -} - -func (v NullableRedirectRuleIndexMetadataData) Get() *RedirectRuleIndexMetadataData { - return v.value -} - -func (v *NullableRedirectRuleIndexMetadataData) Set(val *RedirectRuleIndexMetadataData) { - v.value = val - v.isSet = true -} - -func (v NullableRedirectRuleIndexMetadataData) IsSet() bool { - return v.isSet -} - -func (v *NullableRedirectRuleIndexMetadataData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRedirectRuleIndexMetadataData(val *RedirectRuleIndexMetadataData) *NullableRedirectRuleIndexMetadataData { - return &NullableRedirectRuleIndexMetadataData{value: val, isSet: true} -} - -func (v NullableRedirectRuleIndexMetadataData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRedirectRuleIndexMetadataData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_related_model.go b/clients/algoliasearch-client-go/algolia/recommend/model_related_model.go index 371f223a2e..b7aff60510 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_related_model.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_related_model.go @@ -61,39 +61,3 @@ func (v RelatedModel) IsValid() bool { func (v RelatedModel) Ptr() *RelatedModel { return &v } - -type NullableRelatedModel struct { - value *RelatedModel - isSet bool -} - -func (v NullableRelatedModel) Get() *RelatedModel { - return v.value -} - -func (v *NullableRelatedModel) Set(val *RelatedModel) { - v.value = val - v.isSet = true -} - -func (v NullableRelatedModel) IsSet() bool { - return v.isSet -} - -func (v *NullableRelatedModel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRelatedModel(val *RelatedModel) *NullableRelatedModel { - return &NullableRelatedModel{value: val, isSet: true} -} - -func (v NullableRelatedModel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRelatedModel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_related_products.go b/clients/algoliasearch-client-go/algolia/recommend/model_related_products.go index fe22cfed94..cc5639b21f 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_related_products.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_related_products.go @@ -150,39 +150,3 @@ func (o RelatedProducts) String() string { out += fmt.Sprintf(" fallbackParameters=%v\n", o.FallbackParameters) return fmt.Sprintf("RelatedProducts {\n%s}", out) } - -type NullableRelatedProducts struct { - value *RelatedProducts - isSet bool -} - -func (v NullableRelatedProducts) Get() *RelatedProducts { - return v.value -} - -func (v *NullableRelatedProducts) Set(val *RelatedProducts) { - v.value = val - v.isSet = true -} - -func (v NullableRelatedProducts) IsSet() bool { - return v.isSet -} - -func (v *NullableRelatedProducts) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRelatedProducts(val *RelatedProducts) *NullableRelatedProducts { - return &NullableRelatedProducts{value: val, isSet: true} -} - -func (v NullableRelatedProducts) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRelatedProducts) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_related_query.go b/clients/algoliasearch-client-go/algolia/recommend/model_related_query.go index 08ac99af0d..ecfc6e355b 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_related_query.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_related_query.go @@ -303,39 +303,3 @@ func (o RelatedQuery) String() string { out += fmt.Sprintf(" fallbackParameters=%v\n", o.FallbackParameters) return fmt.Sprintf("RelatedQuery {\n%s}", out) } - -type NullableRelatedQuery struct { - value *RelatedQuery - isSet bool -} - -func (v NullableRelatedQuery) Get() *RelatedQuery { - return v.value -} - -func (v *NullableRelatedQuery) Set(val *RelatedQuery) { - v.value = val - v.isSet = true -} - -func (v NullableRelatedQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableRelatedQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRelatedQuery(val *RelatedQuery) *NullableRelatedQuery { - return &NullableRelatedQuery{value: val, isSet: true} -} - -func (v NullableRelatedQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRelatedQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_remove_stop_words.go b/clients/algoliasearch-client-go/algolia/recommend/model_remove_stop_words.go index 5f69427740..3271c311d0 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_remove_stop_words.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_remove_stop_words.go @@ -94,39 +94,3 @@ func (obj RemoveStopWords) GetActualInstance() any { // all schemas are nil return nil } - -type NullableRemoveStopWords struct { - value *RemoveStopWords - isSet bool -} - -func (v NullableRemoveStopWords) Get() *RemoveStopWords { - return v.value -} - -func (v *NullableRemoveStopWords) Set(val *RemoveStopWords) { - v.value = val - v.isSet = true -} - -func (v NullableRemoveStopWords) IsSet() bool { - return v.isSet -} - -func (v *NullableRemoveStopWords) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRemoveStopWords(val *RemoveStopWords) *NullableRemoveStopWords { - return &NullableRemoveStopWords{value: val, isSet: true} -} - -func (v NullableRemoveStopWords) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRemoveStopWords) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_remove_words_if_no_results.go b/clients/algoliasearch-client-go/algolia/recommend/model_remove_words_if_no_results.go index ff39803779..3aa4760181 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_remove_words_if_no_results.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_remove_words_if_no_results.go @@ -67,39 +67,3 @@ func (v RemoveWordsIfNoResults) IsValid() bool { func (v RemoveWordsIfNoResults) Ptr() *RemoveWordsIfNoResults { return &v } - -type NullableRemoveWordsIfNoResults struct { - value *RemoveWordsIfNoResults - isSet bool -} - -func (v NullableRemoveWordsIfNoResults) Get() *RemoveWordsIfNoResults { - return v.value -} - -func (v *NullableRemoveWordsIfNoResults) Set(val *RemoveWordsIfNoResults) { - v.value = val - v.isSet = true -} - -func (v NullableRemoveWordsIfNoResults) IsSet() bool { - return v.isSet -} - -func (v *NullableRemoveWordsIfNoResults) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRemoveWordsIfNoResults(val *RemoveWordsIfNoResults) *NullableRemoveWordsIfNoResults { - return &NullableRemoveWordsIfNoResults{value: val, isSet: true} -} - -func (v NullableRemoveWordsIfNoResults) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRemoveWordsIfNoResults) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_rendering_content.go b/clients/algoliasearch-client-go/algolia/recommend/model_rendering_content.go index 7c2acb294a..ec79b3167a 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_rendering_content.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_rendering_content.go @@ -87,39 +87,3 @@ func (o RenderingContent) String() string { out += fmt.Sprintf(" facetOrdering=%v\n", o.FacetOrdering) return fmt.Sprintf("RenderingContent {\n%s}", out) } - -type NullableRenderingContent struct { - value *RenderingContent - isSet bool -} - -func (v NullableRenderingContent) Get() *RenderingContent { - return v.value -} - -func (v *NullableRenderingContent) Set(val *RenderingContent) { - v.value = val - v.isSet = true -} - -func (v NullableRenderingContent) IsSet() bool { - return v.isSet -} - -func (v *NullableRenderingContent) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRenderingContent(val *RenderingContent) *NullableRenderingContent { - return &NullableRenderingContent{value: val, isSet: true} -} - -func (v NullableRenderingContent) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRenderingContent) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_search_params.go b/clients/algoliasearch-client-go/algolia/recommend/model_search_params.go index 0610319cf2..95ae3b1f1e 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_search_params.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_search_params.go @@ -4,6 +4,8 @@ package recommend import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // SearchParams struct for SearchParams. @@ -141,8 +143,8 @@ type SearchParams struct { AttributeCriteriaComputedByMinProximity *bool `json:"attributeCriteriaComputedByMinProximity,omitempty"` RenderingContent *RenderingContent `json:"renderingContent,omitempty"` // Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. - EnableReRanking *bool `json:"enableReRanking,omitempty"` - ReRankingApplyFilter NullableReRankingApplyFilter `json:"reRankingApplyFilter,omitempty"` + EnableReRanking *bool `json:"enableReRanking,omitempty"` + ReRankingApplyFilter utils.Nullable[ReRankingApplyFilter] `json:"reRankingApplyFilter,omitempty"` } type SearchParamsOption func(f *SearchParams) @@ -597,7 +599,7 @@ func WithSearchParamsEnableReRanking(val bool) SearchParamsOption { } } -func WithSearchParamsReRankingApplyFilter(val NullableReRankingApplyFilter) SearchParamsOption { +func WithSearchParamsReRankingApplyFilter(val utils.Nullable[ReRankingApplyFilter]) SearchParamsOption { return func(f *SearchParams) { f.ReRankingApplyFilter = val } @@ -3123,7 +3125,7 @@ func (o *SearchParams) HasReRankingApplyFilter() bool { return false } -// SetReRankingApplyFilter gets a reference to the given NullableReRankingApplyFilter and assigns it to the ReRankingApplyFilter field. +// SetReRankingApplyFilter gets a reference to the given utils.Nullable[ReRankingApplyFilter] and assigns it to the ReRankingApplyFilter field. func (o *SearchParams) SetReRankingApplyFilter(v *ReRankingApplyFilter) *SearchParams { o.ReRankingApplyFilter.Set(v) return o @@ -3457,39 +3459,3 @@ func (o SearchParams) String() string { out += fmt.Sprintf(" reRankingApplyFilter=%v\n", o.ReRankingApplyFilter) return fmt.Sprintf("SearchParams {\n%s}", out) } - -type NullableSearchParams struct { - value *SearchParams - isSet bool -} - -func (v NullableSearchParams) Get() *SearchParams { - return v.value -} - -func (v *NullableSearchParams) Set(val *SearchParams) { - v.value = val - v.isSet = true -} - -func (v NullableSearchParams) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchParams(val *SearchParams) *NullableSearchParams { - return &NullableSearchParams{value: val, isSet: true} -} - -func (v NullableSearchParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_search_params_object.go b/clients/algoliasearch-client-go/algolia/recommend/model_search_params_object.go index 4b1cfe6a29..655611b7dd 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_search_params_object.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_search_params_object.go @@ -4,6 +4,8 @@ package recommend import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // SearchParamsObject Each parameter value, including the `query` must not be larger than 512 bytes. @@ -141,8 +143,8 @@ type SearchParamsObject struct { AttributeCriteriaComputedByMinProximity *bool `json:"attributeCriteriaComputedByMinProximity,omitempty"` RenderingContent *RenderingContent `json:"renderingContent,omitempty"` // Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. - EnableReRanking *bool `json:"enableReRanking,omitempty"` - ReRankingApplyFilter NullableReRankingApplyFilter `json:"reRankingApplyFilter,omitempty"` + EnableReRanking *bool `json:"enableReRanking,omitempty"` + ReRankingApplyFilter utils.Nullable[ReRankingApplyFilter] `json:"reRankingApplyFilter,omitempty"` } type SearchParamsObjectOption func(f *SearchParamsObject) @@ -597,7 +599,7 @@ func WithSearchParamsObjectEnableReRanking(val bool) SearchParamsObjectOption { } } -func WithSearchParamsObjectReRankingApplyFilter(val NullableReRankingApplyFilter) SearchParamsObjectOption { +func WithSearchParamsObjectReRankingApplyFilter(val utils.Nullable[ReRankingApplyFilter]) SearchParamsObjectOption { return func(f *SearchParamsObject) { f.ReRankingApplyFilter = val } @@ -3123,7 +3125,7 @@ func (o *SearchParamsObject) HasReRankingApplyFilter() bool { return false } -// SetReRankingApplyFilter gets a reference to the given NullableReRankingApplyFilter and assigns it to the ReRankingApplyFilter field. +// SetReRankingApplyFilter gets a reference to the given utils.Nullable[ReRankingApplyFilter] and assigns it to the ReRankingApplyFilter field. func (o *SearchParamsObject) SetReRankingApplyFilter(v *ReRankingApplyFilter) *SearchParamsObject { o.ReRankingApplyFilter.Set(v) return o @@ -3457,39 +3459,3 @@ func (o SearchParamsObject) String() string { out += fmt.Sprintf(" reRankingApplyFilter=%v\n", o.ReRankingApplyFilter) return fmt.Sprintf("SearchParamsObject {\n%s}", out) } - -type NullableSearchParamsObject struct { - value *SearchParamsObject - isSet bool -} - -func (v NullableSearchParamsObject) Get() *SearchParamsObject { - return v.value -} - -func (v *NullableSearchParamsObject) Set(val *SearchParamsObject) { - v.value = val - v.isSet = true -} - -func (v NullableSearchParamsObject) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchParamsObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchParamsObject(val *SearchParamsObject) *NullableSearchParamsObject { - return &NullableSearchParamsObject{value: val, isSet: true} -} - -func (v NullableSearchParamsObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchParamsObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_search_params_query.go b/clients/algoliasearch-client-go/algolia/recommend/model_search_params_query.go index d96dda883f..59d6adb754 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_search_params_query.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_search_params_query.go @@ -88,39 +88,3 @@ func (o SearchParamsQuery) String() string { out += fmt.Sprintf(" query=%v\n", o.Query) return fmt.Sprintf("SearchParamsQuery {\n%s}", out) } - -type NullableSearchParamsQuery struct { - value *SearchParamsQuery - isSet bool -} - -func (v NullableSearchParamsQuery) Get() *SearchParamsQuery { - return v.value -} - -func (v *NullableSearchParamsQuery) Set(val *SearchParamsQuery) { - v.value = val - v.isSet = true -} - -func (v NullableSearchParamsQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchParamsQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchParamsQuery(val *SearchParamsQuery) *NullableSearchParamsQuery { - return &NullableSearchParamsQuery{value: val, isSet: true} -} - -func (v NullableSearchParamsQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchParamsQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_search_recommend_rules_params.go b/clients/algoliasearch-client-go/algolia/recommend/model_search_recommend_rules_params.go index 319398b22a..cd4cafc2f9 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_search_recommend_rules_params.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_search_recommend_rules_params.go @@ -403,39 +403,3 @@ func (o SearchRecommendRulesParams) String() string { out += fmt.Sprintf(" maxValuesPerFacet=%v\n", o.MaxValuesPerFacet) return fmt.Sprintf("SearchRecommendRulesParams {\n%s}", out) } - -type NullableSearchRecommendRulesParams struct { - value *SearchRecommendRulesParams - isSet bool -} - -func (v NullableSearchRecommendRulesParams) Get() *SearchRecommendRulesParams { - return v.value -} - -func (v *NullableSearchRecommendRulesParams) Set(val *SearchRecommendRulesParams) { - v.value = val - v.isSet = true -} - -func (v NullableSearchRecommendRulesParams) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchRecommendRulesParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchRecommendRulesParams(val *SearchRecommendRulesParams) *NullableSearchRecommendRulesParams { - return &NullableSearchRecommendRulesParams{value: val, isSet: true} -} - -func (v NullableSearchRecommendRulesParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchRecommendRulesParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_search_recommend_rules_response.go b/clients/algoliasearch-client-go/algolia/recommend/model_search_recommend_rules_response.go index b83a1c4e63..002db8f2f7 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_search_recommend_rules_response.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_search_recommend_rules_response.go @@ -166,39 +166,3 @@ func (o SearchRecommendRulesResponse) String() string { out += fmt.Sprintf(" nbPages=%v\n", o.NbPages) return fmt.Sprintf("SearchRecommendRulesResponse {\n%s}", out) } - -type NullableSearchRecommendRulesResponse struct { - value *SearchRecommendRulesResponse - isSet bool -} - -func (v NullableSearchRecommendRulesResponse) Get() *SearchRecommendRulesResponse { - return v.value -} - -func (v *NullableSearchRecommendRulesResponse) Set(val *SearchRecommendRulesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSearchRecommendRulesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchRecommendRulesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchRecommendRulesResponse(val *SearchRecommendRulesResponse) *NullableSearchRecommendRulesResponse { - return &NullableSearchRecommendRulesResponse{value: val, isSet: true} -} - -func (v NullableSearchRecommendRulesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchRecommendRulesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_semantic_search.go b/clients/algoliasearch-client-go/algolia/recommend/model_semantic_search.go index c0b0758346..0d1b93f390 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_semantic_search.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_semantic_search.go @@ -89,39 +89,3 @@ func (o SemanticSearch) String() string { out += fmt.Sprintf(" eventSources=%v\n", o.EventSources) return fmt.Sprintf("SemanticSearch {\n%s}", out) } - -type NullableSemanticSearch struct { - value *SemanticSearch - isSet bool -} - -func (v NullableSemanticSearch) Get() *SemanticSearch { - return v.value -} - -func (v *NullableSemanticSearch) Set(val *SemanticSearch) { - v.value = val - v.isSet = true -} - -func (v NullableSemanticSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableSemanticSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSemanticSearch(val *SemanticSearch) *NullableSemanticSearch { - return &NullableSemanticSearch{value: val, isSet: true} -} - -func (v NullableSemanticSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSemanticSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_snippet_result.go b/clients/algoliasearch-client-go/algolia/recommend/model_snippet_result.go index 96c8ab2bc1..4f6f2f3f8e 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_snippet_result.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_snippet_result.go @@ -128,39 +128,3 @@ func (obj SnippetResult) GetActualInstance() any { // all schemas are nil return nil } - -type NullableSnippetResult struct { - value *SnippetResult - isSet bool -} - -func (v NullableSnippetResult) Get() *SnippetResult { - return v.value -} - -func (v *NullableSnippetResult) Set(val *SnippetResult) { - v.value = val - v.isSet = true -} - -func (v NullableSnippetResult) IsSet() bool { - return v.isSet -} - -func (v *NullableSnippetResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSnippetResult(val *SnippetResult) *NullableSnippetResult { - return &NullableSnippetResult{value: val, isSet: true} -} - -func (v NullableSnippetResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSnippetResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_snippet_result_option.go b/clients/algoliasearch-client-go/algolia/recommend/model_snippet_result_option.go index ebf17eb6d9..42a9c14b43 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_snippet_result_option.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_snippet_result_option.go @@ -101,39 +101,3 @@ func (o SnippetResultOption) String() string { out += fmt.Sprintf(" matchLevel=%v\n", o.MatchLevel) return fmt.Sprintf("SnippetResultOption {\n%s}", out) } - -type NullableSnippetResultOption struct { - value *SnippetResultOption - isSet bool -} - -func (v NullableSnippetResultOption) Get() *SnippetResultOption { - return v.value -} - -func (v *NullableSnippetResultOption) Set(val *SnippetResultOption) { - v.value = val - v.isSet = true -} - -func (v NullableSnippetResultOption) IsSet() bool { - return v.isSet -} - -func (v *NullableSnippetResultOption) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSnippetResultOption(val *SnippetResultOption) *NullableSnippetResultOption { - return &NullableSnippetResultOption{value: val, isSet: true} -} - -func (v NullableSnippetResultOption) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSnippetResultOption) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_sort_remaining_by.go b/clients/algoliasearch-client-go/algolia/recommend/model_sort_remaining_by.go index f1e7b32bbb..11646aab1b 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_sort_remaining_by.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_sort_remaining_by.go @@ -65,39 +65,3 @@ func (v SortRemainingBy) IsValid() bool { func (v SortRemainingBy) Ptr() *SortRemainingBy { return &v } - -type NullableSortRemainingBy struct { - value *SortRemainingBy - isSet bool -} - -func (v NullableSortRemainingBy) Get() *SortRemainingBy { - return v.value -} - -func (v *NullableSortRemainingBy) Set(val *SortRemainingBy) { - v.value = val - v.isSet = true -} - -func (v NullableSortRemainingBy) IsSet() bool { - return v.isSet -} - -func (v *NullableSortRemainingBy) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSortRemainingBy(val *SortRemainingBy) *NullableSortRemainingBy { - return &NullableSortRemainingBy{value: val, isSet: true} -} - -func (v NullableSortRemainingBy) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSortRemainingBy) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_supported_language.go b/clients/algoliasearch-client-go/algolia/recommend/model_supported_language.go index a95b1579dd..0b010f3806 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_supported_language.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_supported_language.go @@ -195,39 +195,3 @@ func (v SupportedLanguage) IsValid() bool { func (v SupportedLanguage) Ptr() *SupportedLanguage { return &v } - -type NullableSupportedLanguage struct { - value *SupportedLanguage - isSet bool -} - -func (v NullableSupportedLanguage) Get() *SupportedLanguage { - return v.value -} - -func (v *NullableSupportedLanguage) Set(val *SupportedLanguage) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedLanguage) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedLanguage) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedLanguage(val *SupportedLanguage) *NullableSupportedLanguage { - return &NullableSupportedLanguage{value: val, isSet: true} -} - -func (v NullableSupportedLanguage) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSupportedLanguage) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_tag_filters.go b/clients/algoliasearch-client-go/algolia/recommend/model_tag_filters.go index 1ea0dfaa76..9f8bdd6e8f 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_tag_filters.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_tag_filters.go @@ -94,39 +94,3 @@ func (obj TagFilters) GetActualInstance() any { // all schemas are nil return nil } - -type NullableTagFilters struct { - value *TagFilters - isSet bool -} - -func (v NullableTagFilters) Get() *TagFilters { - return v.value -} - -func (v *NullableTagFilters) Set(val *TagFilters) { - v.value = val - v.isSet = true -} - -func (v NullableTagFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableTagFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTagFilters(val *TagFilters) *NullableTagFilters { - return &NullableTagFilters{value: val, isSet: true} -} - -func (v NullableTagFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTagFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_task_status.go b/clients/algoliasearch-client-go/algolia/recommend/model_task_status.go index 28a44eec68..8e16e6ad7e 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_task_status.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_task_status.go @@ -63,39 +63,3 @@ func (v TaskStatus) IsValid() bool { func (v TaskStatus) Ptr() *TaskStatus { return &v } - -type NullableTaskStatus struct { - value *TaskStatus - isSet bool -} - -func (v NullableTaskStatus) Get() *TaskStatus { - return v.value -} - -func (v *NullableTaskStatus) Set(val *TaskStatus) { - v.value = val - v.isSet = true -} - -func (v NullableTaskStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableTaskStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaskStatus(val *TaskStatus) *NullableTaskStatus { - return &NullableTaskStatus{value: val, isSet: true} -} - -func (v NullableTaskStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTaskStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_trending_facet_hit.go b/clients/algoliasearch-client-go/algolia/recommend/model_trending_facet_hit.go index f584938c7a..ae7642b2f3 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_trending_facet_hit.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_trending_facet_hit.go @@ -134,39 +134,3 @@ func (o TrendingFacetHit) String() string { out += fmt.Sprintf(" facetValue=%v\n", o.FacetValue) return fmt.Sprintf("TrendingFacetHit {\n%s}", out) } - -type NullableTrendingFacetHit struct { - value *TrendingFacetHit - isSet bool -} - -func (v NullableTrendingFacetHit) Get() *TrendingFacetHit { - return v.value -} - -func (v *NullableTrendingFacetHit) Set(val *TrendingFacetHit) { - v.value = val - v.isSet = true -} - -func (v NullableTrendingFacetHit) IsSet() bool { - return v.isSet -} - -func (v *NullableTrendingFacetHit) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTrendingFacetHit(val *TrendingFacetHit) *NullableTrendingFacetHit { - return &NullableTrendingFacetHit{value: val, isSet: true} -} - -func (v NullableTrendingFacetHit) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTrendingFacetHit) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets.go b/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets.go index 998377c0f9..c2f82f88ae 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets.go @@ -152,39 +152,3 @@ func (o TrendingFacets) String() string { out += fmt.Sprintf(" fallbackParameters=%v\n", o.FallbackParameters) return fmt.Sprintf("TrendingFacets {\n%s}", out) } - -type NullableTrendingFacets struct { - value *TrendingFacets - isSet bool -} - -func (v NullableTrendingFacets) Get() *TrendingFacets { - return v.value -} - -func (v *NullableTrendingFacets) Set(val *TrendingFacets) { - v.value = val - v.isSet = true -} - -func (v NullableTrendingFacets) IsSet() bool { - return v.isSet -} - -func (v *NullableTrendingFacets) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTrendingFacets(val *TrendingFacets) *NullableTrendingFacets { - return &NullableTrendingFacets{value: val, isSet: true} -} - -func (v NullableTrendingFacets) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTrendingFacets) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets_model.go b/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets_model.go index 6ca3c50e5e..031d416473 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets_model.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets_model.go @@ -61,39 +61,3 @@ func (v TrendingFacetsModel) IsValid() bool { func (v TrendingFacetsModel) Ptr() *TrendingFacetsModel { return &v } - -type NullableTrendingFacetsModel struct { - value *TrendingFacetsModel - isSet bool -} - -func (v NullableTrendingFacetsModel) Get() *TrendingFacetsModel { - return v.value -} - -func (v *NullableTrendingFacetsModel) Set(val *TrendingFacetsModel) { - v.value = val - v.isSet = true -} - -func (v NullableTrendingFacetsModel) IsSet() bool { - return v.isSet -} - -func (v *NullableTrendingFacetsModel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTrendingFacetsModel(val *TrendingFacetsModel) *NullableTrendingFacetsModel { - return &NullableTrendingFacetsModel{value: val, isSet: true} -} - -func (v NullableTrendingFacetsModel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTrendingFacetsModel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets_query.go b/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets_query.go index 4ae1d0254b..c91cce2111 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets_query.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_trending_facets_query.go @@ -305,39 +305,3 @@ func (o TrendingFacetsQuery) String() string { out += fmt.Sprintf(" fallbackParameters=%v\n", o.FallbackParameters) return fmt.Sprintf("TrendingFacetsQuery {\n%s}", out) } - -type NullableTrendingFacetsQuery struct { - value *TrendingFacetsQuery - isSet bool -} - -func (v NullableTrendingFacetsQuery) Get() *TrendingFacetsQuery { - return v.value -} - -func (v *NullableTrendingFacetsQuery) Set(val *TrendingFacetsQuery) { - v.value = val - v.isSet = true -} - -func (v NullableTrendingFacetsQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableTrendingFacetsQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTrendingFacetsQuery(val *TrendingFacetsQuery) *NullableTrendingFacetsQuery { - return &NullableTrendingFacetsQuery{value: val, isSet: true} -} - -func (v NullableTrendingFacetsQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTrendingFacetsQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_trending_items.go b/clients/algoliasearch-client-go/algolia/recommend/model_trending_items.go index b3b1b8102c..7a04634c50 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_trending_items.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_trending_items.go @@ -182,39 +182,3 @@ func (o TrendingItems) String() string { out += fmt.Sprintf(" fallbackParameters=%v\n", o.FallbackParameters) return fmt.Sprintf("TrendingItems {\n%s}", out) } - -type NullableTrendingItems struct { - value *TrendingItems - isSet bool -} - -func (v NullableTrendingItems) Get() *TrendingItems { - return v.value -} - -func (v *NullableTrendingItems) Set(val *TrendingItems) { - v.value = val - v.isSet = true -} - -func (v NullableTrendingItems) IsSet() bool { - return v.isSet -} - -func (v *NullableTrendingItems) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTrendingItems(val *TrendingItems) *NullableTrendingItems { - return &NullableTrendingItems{value: val, isSet: true} -} - -func (v NullableTrendingItems) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTrendingItems) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_trending_items_model.go b/clients/algoliasearch-client-go/algolia/recommend/model_trending_items_model.go index 87e12adfc3..c727480863 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_trending_items_model.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_trending_items_model.go @@ -61,39 +61,3 @@ func (v TrendingItemsModel) IsValid() bool { func (v TrendingItemsModel) Ptr() *TrendingItemsModel { return &v } - -type NullableTrendingItemsModel struct { - value *TrendingItemsModel - isSet bool -} - -func (v NullableTrendingItemsModel) Get() *TrendingItemsModel { - return v.value -} - -func (v *NullableTrendingItemsModel) Set(val *TrendingItemsModel) { - v.value = val - v.isSet = true -} - -func (v NullableTrendingItemsModel) IsSet() bool { - return v.isSet -} - -func (v *NullableTrendingItemsModel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTrendingItemsModel(val *TrendingItemsModel) *NullableTrendingItemsModel { - return &NullableTrendingItemsModel{value: val, isSet: true} -} - -func (v NullableTrendingItemsModel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTrendingItemsModel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_trending_items_query.go b/clients/algoliasearch-client-go/algolia/recommend/model_trending_items_query.go index e56e5f7b90..ccce85979c 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_trending_items_query.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_trending_items_query.go @@ -335,39 +335,3 @@ func (o TrendingItemsQuery) String() string { out += fmt.Sprintf(" fallbackParameters=%v\n", o.FallbackParameters) return fmt.Sprintf("TrendingItemsQuery {\n%s}", out) } - -type NullableTrendingItemsQuery struct { - value *TrendingItemsQuery - isSet bool -} - -func (v NullableTrendingItemsQuery) Get() *TrendingItemsQuery { - return v.value -} - -func (v *NullableTrendingItemsQuery) Set(val *TrendingItemsQuery) { - v.value = val - v.isSet = true -} - -func (v NullableTrendingItemsQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableTrendingItemsQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTrendingItemsQuery(val *TrendingItemsQuery) *NullableTrendingItemsQuery { - return &NullableTrendingItemsQuery{value: val, isSet: true} -} - -func (v NullableTrendingItemsQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTrendingItemsQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_typo_tolerance.go b/clients/algoliasearch-client-go/algolia/recommend/model_typo_tolerance.go index 8a9af5b692..fdc5cbb7e4 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_typo_tolerance.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_typo_tolerance.go @@ -94,39 +94,3 @@ func (obj TypoTolerance) GetActualInstance() any { // all schemas are nil return nil } - -type NullableTypoTolerance struct { - value *TypoTolerance - isSet bool -} - -func (v NullableTypoTolerance) Get() *TypoTolerance { - return v.value -} - -func (v *NullableTypoTolerance) Set(val *TypoTolerance) { - v.value = val - v.isSet = true -} - -func (v NullableTypoTolerance) IsSet() bool { - return v.isSet -} - -func (v *NullableTypoTolerance) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTypoTolerance(val *TypoTolerance) *NullableTypoTolerance { - return &NullableTypoTolerance{value: val, isSet: true} -} - -func (v NullableTypoTolerance) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTypoTolerance) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_typo_tolerance_enum.go b/clients/algoliasearch-client-go/algolia/recommend/model_typo_tolerance_enum.go index 30308f600d..51b25e1674 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_typo_tolerance_enum.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_typo_tolerance_enum.go @@ -63,39 +63,3 @@ func (v TypoToleranceEnum) IsValid() bool { func (v TypoToleranceEnum) Ptr() *TypoToleranceEnum { return &v } - -type NullableTypoToleranceEnum struct { - value *TypoToleranceEnum - isSet bool -} - -func (v NullableTypoToleranceEnum) Get() *TypoToleranceEnum { - return v.value -} - -func (v *NullableTypoToleranceEnum) Set(val *TypoToleranceEnum) { - v.value = val - v.isSet = true -} - -func (v NullableTypoToleranceEnum) IsSet() bool { - return v.isSet -} - -func (v *NullableTypoToleranceEnum) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTypoToleranceEnum(val *TypoToleranceEnum) *NullableTypoToleranceEnum { - return &NullableTypoToleranceEnum{value: val, isSet: true} -} - -func (v NullableTypoToleranceEnum) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTypoToleranceEnum) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_value.go b/clients/algoliasearch-client-go/algolia/recommend/model_value.go index b0c387cc45..025da1d9e3 100644 --- a/clients/algoliasearch-client-go/algolia/recommend/model_value.go +++ b/clients/algoliasearch-client-go/algolia/recommend/model_value.go @@ -132,39 +132,3 @@ func (o Value) String() string { out += fmt.Sprintf(" sortRemainingBy=%v\n", o.SortRemainingBy) return fmt.Sprintf("Value {\n%s}", out) } - -type NullableValue struct { - value *Value - isSet bool -} - -func (v NullableValue) Get() *Value { - return v.value -} - -func (v *NullableValue) Set(val *Value) { - v.value = val - v.isSet = true -} - -func (v NullableValue) IsSet() bool { - return v.isSet -} - -func (v *NullableValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableValue(val *Value) *NullableValue { - return &NullableValue{value: val, isSet: true} -} - -func (v NullableValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_acl.go b/clients/algoliasearch-client-go/algolia/search/model_acl.go index 19030b853e..d2795c1076 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_acl.go +++ b/clients/algoliasearch-client-go/algolia/search/model_acl.go @@ -89,39 +89,3 @@ func (v Acl) IsValid() bool { func (v Acl) Ptr() *Acl { return &v } - -type NullableAcl struct { - value *Acl - isSet bool -} - -func (v NullableAcl) Get() *Acl { - return v.value -} - -func (v *NullableAcl) Set(val *Acl) { - v.value = val - v.isSet = true -} - -func (v NullableAcl) IsSet() bool { - return v.isSet -} - -func (v *NullableAcl) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAcl(val *Acl) *NullableAcl { - return &NullableAcl{value: val, isSet: true} -} - -func (v NullableAcl) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAcl) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_action.go b/clients/algoliasearch-client-go/algolia/search/model_action.go index 010ffd9c72..5370300342 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_action.go +++ b/clients/algoliasearch-client-go/algolia/search/model_action.go @@ -73,39 +73,3 @@ func (v Action) IsValid() bool { func (v Action) Ptr() *Action { return &v } - -type NullableAction struct { - value *Action - isSet bool -} - -func (v NullableAction) Get() *Action { - return v.value -} - -func (v *NullableAction) Set(val *Action) { - v.value = val - v.isSet = true -} - -func (v NullableAction) IsSet() bool { - return v.isSet -} - -func (v *NullableAction) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAction(val *Action) *NullableAction { - return &NullableAction{value: val, isSet: true} -} - -func (v NullableAction) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAction) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_add_api_key_response.go b/clients/algoliasearch-client-go/algolia/search/model_add_api_key_response.go index 0879bfa6dd..d1b0e2bc86 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_add_api_key_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_add_api_key_response.go @@ -102,39 +102,3 @@ func (o AddApiKeyResponse) String() string { out += fmt.Sprintf(" createdAt=%v\n", o.CreatedAt) return fmt.Sprintf("AddApiKeyResponse {\n%s}", out) } - -type NullableAddApiKeyResponse struct { - value *AddApiKeyResponse - isSet bool -} - -func (v NullableAddApiKeyResponse) Get() *AddApiKeyResponse { - return v.value -} - -func (v *NullableAddApiKeyResponse) Set(val *AddApiKeyResponse) { - v.value = val - v.isSet = true -} - -func (v NullableAddApiKeyResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableAddApiKeyResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAddApiKeyResponse(val *AddApiKeyResponse) *NullableAddApiKeyResponse { - return &NullableAddApiKeyResponse{value: val, isSet: true} -} - -func (v NullableAddApiKeyResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAddApiKeyResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_advanced_syntax_features.go b/clients/algoliasearch-client-go/algolia/search/model_advanced_syntax_features.go index c896dff670..b16f782f1c 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_advanced_syntax_features.go +++ b/clients/algoliasearch-client-go/algolia/search/model_advanced_syntax_features.go @@ -63,39 +63,3 @@ func (v AdvancedSyntaxFeatures) IsValid() bool { func (v AdvancedSyntaxFeatures) Ptr() *AdvancedSyntaxFeatures { return &v } - -type NullableAdvancedSyntaxFeatures struct { - value *AdvancedSyntaxFeatures - isSet bool -} - -func (v NullableAdvancedSyntaxFeatures) Get() *AdvancedSyntaxFeatures { - return v.value -} - -func (v *NullableAdvancedSyntaxFeatures) Set(val *AdvancedSyntaxFeatures) { - v.value = val - v.isSet = true -} - -func (v NullableAdvancedSyntaxFeatures) IsSet() bool { - return v.isSet -} - -func (v *NullableAdvancedSyntaxFeatures) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAdvancedSyntaxFeatures(val *AdvancedSyntaxFeatures) *NullableAdvancedSyntaxFeatures { - return &NullableAdvancedSyntaxFeatures{value: val, isSet: true} -} - -func (v NullableAdvancedSyntaxFeatures) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAdvancedSyntaxFeatures) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_alternatives_as_exact.go b/clients/algoliasearch-client-go/algolia/search/model_alternatives_as_exact.go index 4e0d200a69..c261c7a767 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_alternatives_as_exact.go +++ b/clients/algoliasearch-client-go/algolia/search/model_alternatives_as_exact.go @@ -65,39 +65,3 @@ func (v AlternativesAsExact) IsValid() bool { func (v AlternativesAsExact) Ptr() *AlternativesAsExact { return &v } - -type NullableAlternativesAsExact struct { - value *AlternativesAsExact - isSet bool -} - -func (v NullableAlternativesAsExact) Get() *AlternativesAsExact { - return v.value -} - -func (v *NullableAlternativesAsExact) Set(val *AlternativesAsExact) { - v.value = val - v.isSet = true -} - -func (v NullableAlternativesAsExact) IsSet() bool { - return v.isSet -} - -func (v *NullableAlternativesAsExact) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAlternativesAsExact(val *AlternativesAsExact) *NullableAlternativesAsExact { - return &NullableAlternativesAsExact{value: val, isSet: true} -} - -func (v NullableAlternativesAsExact) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAlternativesAsExact) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_anchoring.go b/clients/algoliasearch-client-go/algolia/search/model_anchoring.go index 075c036924..c044534396 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_anchoring.go +++ b/clients/algoliasearch-client-go/algolia/search/model_anchoring.go @@ -67,39 +67,3 @@ func (v Anchoring) IsValid() bool { func (v Anchoring) Ptr() *Anchoring { return &v } - -type NullableAnchoring struct { - value *Anchoring - isSet bool -} - -func (v NullableAnchoring) Get() *Anchoring { - return v.value -} - -func (v *NullableAnchoring) Set(val *Anchoring) { - v.value = val - v.isSet = true -} - -func (v NullableAnchoring) IsSet() bool { - return v.isSet -} - -func (v *NullableAnchoring) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnchoring(val *Anchoring) *NullableAnchoring { - return &NullableAnchoring{value: val, isSet: true} -} - -func (v NullableAnchoring) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAnchoring) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_api_key.go b/clients/algoliasearch-client-go/algolia/search/model_api_key.go index b2b9525379..b5095fa8f0 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_api_key.go +++ b/clients/algoliasearch-client-go/algolia/search/model_api_key.go @@ -390,39 +390,3 @@ func (o ApiKey) String() string { out += fmt.Sprintf(" validity=%v\n", o.Validity) return fmt.Sprintf("ApiKey {\n%s}", out) } - -type NullableApiKey struct { - value *ApiKey - isSet bool -} - -func (v NullableApiKey) Get() *ApiKey { - return v.value -} - -func (v *NullableApiKey) Set(val *ApiKey) { - v.value = val - v.isSet = true -} - -func (v NullableApiKey) IsSet() bool { - return v.isSet -} - -func (v *NullableApiKey) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiKey(val *ApiKey) *NullableApiKey { - return &NullableApiKey{value: val, isSet: true} -} - -func (v NullableApiKey) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableApiKey) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_api_key_operation.go b/clients/algoliasearch-client-go/algolia/search/model_api_key_operation.go index 4c6d7cad3e..7301f32884 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_api_key_operation.go +++ b/clients/algoliasearch-client-go/algolia/search/model_api_key_operation.go @@ -65,39 +65,3 @@ func (v ApiKeyOperation) IsValid() bool { func (v ApiKeyOperation) Ptr() *ApiKeyOperation { return &v } - -type NullableApiKeyOperation struct { - value *ApiKeyOperation - isSet bool -} - -func (v NullableApiKeyOperation) Get() *ApiKeyOperation { - return v.value -} - -func (v *NullableApiKeyOperation) Set(val *ApiKeyOperation) { - v.value = val - v.isSet = true -} - -func (v NullableApiKeyOperation) IsSet() bool { - return v.isSet -} - -func (v *NullableApiKeyOperation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiKeyOperation(val *ApiKeyOperation) *NullableApiKeyOperation { - return &NullableApiKeyOperation{value: val, isSet: true} -} - -func (v NullableApiKeyOperation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableApiKeyOperation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_around_precision.go b/clients/algoliasearch-client-go/algolia/search/model_around_precision.go index 69ac6bc383..cbd2a081b3 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_around_precision.go +++ b/clients/algoliasearch-client-go/algolia/search/model_around_precision.go @@ -94,39 +94,3 @@ func (obj AroundPrecision) GetActualInstance() any { // all schemas are nil return nil } - -type NullableAroundPrecision struct { - value *AroundPrecision - isSet bool -} - -func (v NullableAroundPrecision) Get() *AroundPrecision { - return v.value -} - -func (v *NullableAroundPrecision) Set(val *AroundPrecision) { - v.value = val - v.isSet = true -} - -func (v NullableAroundPrecision) IsSet() bool { - return v.isSet -} - -func (v *NullableAroundPrecision) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAroundPrecision(val *AroundPrecision) *NullableAroundPrecision { - return &NullableAroundPrecision{value: val, isSet: true} -} - -func (v NullableAroundPrecision) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAroundPrecision) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_around_precision_from_value_inner.go b/clients/algoliasearch-client-go/algolia/search/model_around_precision_from_value_inner.go index d3cbd87973..634e3ff205 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_around_precision_from_value_inner.go +++ b/clients/algoliasearch-client-go/algolia/search/model_around_precision_from_value_inner.go @@ -133,39 +133,3 @@ func (o AroundPrecisionFromValueInner) String() string { out += fmt.Sprintf(" value=%v\n", o.Value) return fmt.Sprintf("AroundPrecisionFromValueInner {\n%s}", out) } - -type NullableAroundPrecisionFromValueInner struct { - value *AroundPrecisionFromValueInner - isSet bool -} - -func (v NullableAroundPrecisionFromValueInner) Get() *AroundPrecisionFromValueInner { - return v.value -} - -func (v *NullableAroundPrecisionFromValueInner) Set(val *AroundPrecisionFromValueInner) { - v.value = val - v.isSet = true -} - -func (v NullableAroundPrecisionFromValueInner) IsSet() bool { - return v.isSet -} - -func (v *NullableAroundPrecisionFromValueInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAroundPrecisionFromValueInner(val *AroundPrecisionFromValueInner) *NullableAroundPrecisionFromValueInner { - return &NullableAroundPrecisionFromValueInner{value: val, isSet: true} -} - -func (v NullableAroundPrecisionFromValueInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAroundPrecisionFromValueInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_around_radius.go b/clients/algoliasearch-client-go/algolia/search/model_around_radius.go index 9e2cecd339..1897e53e27 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_around_radius.go +++ b/clients/algoliasearch-client-go/algolia/search/model_around_radius.go @@ -94,39 +94,3 @@ func (obj AroundRadius) GetActualInstance() any { // all schemas are nil return nil } - -type NullableAroundRadius struct { - value *AroundRadius - isSet bool -} - -func (v NullableAroundRadius) Get() *AroundRadius { - return v.value -} - -func (v *NullableAroundRadius) Set(val *AroundRadius) { - v.value = val - v.isSet = true -} - -func (v NullableAroundRadius) IsSet() bool { - return v.isSet -} - -func (v *NullableAroundRadius) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAroundRadius(val *AroundRadius) *NullableAroundRadius { - return &NullableAroundRadius{value: val, isSet: true} -} - -func (v NullableAroundRadius) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAroundRadius) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_around_radius_all.go b/clients/algoliasearch-client-go/algolia/search/model_around_radius_all.go index 5457b69e36..1345dd2c71 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_around_radius_all.go +++ b/clients/algoliasearch-client-go/algolia/search/model_around_radius_all.go @@ -61,39 +61,3 @@ func (v AroundRadiusAll) IsValid() bool { func (v AroundRadiusAll) Ptr() *AroundRadiusAll { return &v } - -type NullableAroundRadiusAll struct { - value *AroundRadiusAll - isSet bool -} - -func (v NullableAroundRadiusAll) Get() *AroundRadiusAll { - return v.value -} - -func (v *NullableAroundRadiusAll) Set(val *AroundRadiusAll) { - v.value = val - v.isSet = true -} - -func (v NullableAroundRadiusAll) IsSet() bool { - return v.isSet -} - -func (v *NullableAroundRadiusAll) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAroundRadiusAll(val *AroundRadiusAll) *NullableAroundRadiusAll { - return &NullableAroundRadiusAll{value: val, isSet: true} -} - -func (v NullableAroundRadiusAll) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAroundRadiusAll) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_assign_user_id_params.go b/clients/algoliasearch-client-go/algolia/search/model_assign_user_id_params.go index 670b71244b..87dad91b30 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_assign_user_id_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_assign_user_id_params.go @@ -70,39 +70,3 @@ func (o AssignUserIdParams) String() string { out += fmt.Sprintf(" cluster=%v\n", o.Cluster) return fmt.Sprintf("AssignUserIdParams {\n%s}", out) } - -type NullableAssignUserIdParams struct { - value *AssignUserIdParams - isSet bool -} - -func (v NullableAssignUserIdParams) Get() *AssignUserIdParams { - return v.value -} - -func (v *NullableAssignUserIdParams) Set(val *AssignUserIdParams) { - v.value = val - v.isSet = true -} - -func (v NullableAssignUserIdParams) IsSet() bool { - return v.isSet -} - -func (v *NullableAssignUserIdParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAssignUserIdParams(val *AssignUserIdParams) *NullableAssignUserIdParams { - return &NullableAssignUserIdParams{value: val, isSet: true} -} - -func (v NullableAssignUserIdParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAssignUserIdParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_attribute_to_update.go b/clients/algoliasearch-client-go/algolia/search/model_attribute_to_update.go index 1fb2fce8dd..889a503af9 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_attribute_to_update.go +++ b/clients/algoliasearch-client-go/algolia/search/model_attribute_to_update.go @@ -94,39 +94,3 @@ func (obj AttributeToUpdate) GetActualInstance() any { // all schemas are nil return nil } - -type NullableAttributeToUpdate struct { - value *AttributeToUpdate - isSet bool -} - -func (v NullableAttributeToUpdate) Get() *AttributeToUpdate { - return v.value -} - -func (v *NullableAttributeToUpdate) Set(val *AttributeToUpdate) { - v.value = val - v.isSet = true -} - -func (v NullableAttributeToUpdate) IsSet() bool { - return v.isSet -} - -func (v *NullableAttributeToUpdate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAttributeToUpdate(val *AttributeToUpdate) *NullableAttributeToUpdate { - return &NullableAttributeToUpdate{value: val, isSet: true} -} - -func (v NullableAttributeToUpdate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAttributeToUpdate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_automatic_facet_filter.go b/clients/algoliasearch-client-go/algolia/search/model_automatic_facet_filter.go index fb96881685..538d7d8ab1 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_automatic_facet_filter.go +++ b/clients/algoliasearch-client-go/algolia/search/model_automatic_facet_filter.go @@ -165,39 +165,3 @@ func (o AutomaticFacetFilter) String() string { out += fmt.Sprintf(" disjunctive=%v\n", o.Disjunctive) return fmt.Sprintf("AutomaticFacetFilter {\n%s}", out) } - -type NullableAutomaticFacetFilter struct { - value *AutomaticFacetFilter - isSet bool -} - -func (v NullableAutomaticFacetFilter) Get() *AutomaticFacetFilter { - return v.value -} - -func (v *NullableAutomaticFacetFilter) Set(val *AutomaticFacetFilter) { - v.value = val - v.isSet = true -} - -func (v NullableAutomaticFacetFilter) IsSet() bool { - return v.isSet -} - -func (v *NullableAutomaticFacetFilter) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAutomaticFacetFilter(val *AutomaticFacetFilter) *NullableAutomaticFacetFilter { - return &NullableAutomaticFacetFilter{value: val, isSet: true} -} - -func (v NullableAutomaticFacetFilter) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAutomaticFacetFilter) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_automatic_facet_filters.go b/clients/algoliasearch-client-go/algolia/search/model_automatic_facet_filters.go index 58a9e087ca..8d4399792d 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_automatic_facet_filters.go +++ b/clients/algoliasearch-client-go/algolia/search/model_automatic_facet_filters.go @@ -94,39 +94,3 @@ func (obj AutomaticFacetFilters) GetActualInstance() any { // all schemas are nil return nil } - -type NullableAutomaticFacetFilters struct { - value *AutomaticFacetFilters - isSet bool -} - -func (v NullableAutomaticFacetFilters) Get() *AutomaticFacetFilters { - return v.value -} - -func (v *NullableAutomaticFacetFilters) Set(val *AutomaticFacetFilters) { - v.value = val - v.isSet = true -} - -func (v NullableAutomaticFacetFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableAutomaticFacetFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAutomaticFacetFilters(val *AutomaticFacetFilters) *NullableAutomaticFacetFilters { - return &NullableAutomaticFacetFilters{value: val, isSet: true} -} - -func (v NullableAutomaticFacetFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableAutomaticFacetFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_base_get_api_key_response.go b/clients/algoliasearch-client-go/algolia/search/model_base_get_api_key_response.go index cee4c5bf0c..1eb9f91c11 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_base_get_api_key_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_base_get_api_key_response.go @@ -120,39 +120,3 @@ func (o BaseGetApiKeyResponse) String() string { out += fmt.Sprintf(" createdAt=%v\n", o.CreatedAt) return fmt.Sprintf("BaseGetApiKeyResponse {\n%s}", out) } - -type NullableBaseGetApiKeyResponse struct { - value *BaseGetApiKeyResponse - isSet bool -} - -func (v NullableBaseGetApiKeyResponse) Get() *BaseGetApiKeyResponse { - return v.value -} - -func (v *NullableBaseGetApiKeyResponse) Set(val *BaseGetApiKeyResponse) { - v.value = val - v.isSet = true -} - -func (v NullableBaseGetApiKeyResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseGetApiKeyResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseGetApiKeyResponse(val *BaseGetApiKeyResponse) *NullableBaseGetApiKeyResponse { - return &NullableBaseGetApiKeyResponse{value: val, isSet: true} -} - -func (v NullableBaseGetApiKeyResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBaseGetApiKeyResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_base_index_settings.go b/clients/algoliasearch-client-go/algolia/search/model_base_index_settings.go index 9ae746e789..27c4767551 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_base_index_settings.go +++ b/clients/algoliasearch-client-go/algolia/search/model_base_index_settings.go @@ -808,39 +808,3 @@ func (o BaseIndexSettings) String() string { out += fmt.Sprintf(" attributeForDistinct=%v\n", o.AttributeForDistinct) return fmt.Sprintf("BaseIndexSettings {\n%s}", out) } - -type NullableBaseIndexSettings struct { - value *BaseIndexSettings - isSet bool -} - -func (v NullableBaseIndexSettings) Get() *BaseIndexSettings { - return v.value -} - -func (v *NullableBaseIndexSettings) Set(val *BaseIndexSettings) { - v.value = val - v.isSet = true -} - -func (v NullableBaseIndexSettings) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseIndexSettings) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseIndexSettings(val *BaseIndexSettings) *NullableBaseIndexSettings { - return &NullableBaseIndexSettings{value: val, isSet: true} -} - -func (v NullableBaseIndexSettings) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBaseIndexSettings) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_base_search_params.go b/clients/algoliasearch-client-go/algolia/search/model_base_search_params.go index cd91cefbe2..a43c1fed2e 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_base_search_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_base_search_params.go @@ -1477,39 +1477,3 @@ func (o BaseSearchParams) String() string { out += fmt.Sprintf(" enableABTest=%v\n", o.EnableABTest) return fmt.Sprintf("BaseSearchParams {\n%s}", out) } - -type NullableBaseSearchParams struct { - value *BaseSearchParams - isSet bool -} - -func (v NullableBaseSearchParams) Get() *BaseSearchParams { - return v.value -} - -func (v *NullableBaseSearchParams) Set(val *BaseSearchParams) { - v.value = val - v.isSet = true -} - -func (v NullableBaseSearchParams) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseSearchParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseSearchParams(val *BaseSearchParams) *NullableBaseSearchParams { - return &NullableBaseSearchParams{value: val, isSet: true} -} - -func (v NullableBaseSearchParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBaseSearchParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_base_search_params_without_query.go b/clients/algoliasearch-client-go/algolia/search/model_base_search_params_without_query.go index cfd113ff1b..814ad6b063 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_base_search_params_without_query.go +++ b/clients/algoliasearch-client-go/algolia/search/model_base_search_params_without_query.go @@ -1432,39 +1432,3 @@ func (o BaseSearchParamsWithoutQuery) String() string { out += fmt.Sprintf(" enableABTest=%v\n", o.EnableABTest) return fmt.Sprintf("BaseSearchParamsWithoutQuery {\n%s}", out) } - -type NullableBaseSearchParamsWithoutQuery struct { - value *BaseSearchParamsWithoutQuery - isSet bool -} - -func (v NullableBaseSearchParamsWithoutQuery) Get() *BaseSearchParamsWithoutQuery { - return v.value -} - -func (v *NullableBaseSearchParamsWithoutQuery) Set(val *BaseSearchParamsWithoutQuery) { - v.value = val - v.isSet = true -} - -func (v NullableBaseSearchParamsWithoutQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseSearchParamsWithoutQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseSearchParamsWithoutQuery(val *BaseSearchParamsWithoutQuery) *NullableBaseSearchParamsWithoutQuery { - return &NullableBaseSearchParamsWithoutQuery{value: val, isSet: true} -} - -func (v NullableBaseSearchParamsWithoutQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBaseSearchParamsWithoutQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_base_search_response.go b/clients/algoliasearch-client-go/algolia/search/model_base_search_response.go index dfadba7992..14d6f0e13e 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_base_search_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_base_search_response.go @@ -1318,39 +1318,3 @@ func (o BaseSearchResponse) String() string { } return fmt.Sprintf("BaseSearchResponse {\n%s}", out) } - -type NullableBaseSearchResponse struct { - value *BaseSearchResponse - isSet bool -} - -func (v NullableBaseSearchResponse) Get() *BaseSearchResponse { - return v.value -} - -func (v *NullableBaseSearchResponse) Set(val *BaseSearchResponse) { - v.value = val - v.isSet = true -} - -func (v NullableBaseSearchResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseSearchResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseSearchResponse(val *BaseSearchResponse) *NullableBaseSearchResponse { - return &NullableBaseSearchResponse{value: val, isSet: true} -} - -func (v NullableBaseSearchResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBaseSearchResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_batch_assign_user_ids_params.go b/clients/algoliasearch-client-go/algolia/search/model_batch_assign_user_ids_params.go index bbd8b3ecc9..a688de5b12 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_batch_assign_user_ids_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_batch_assign_user_ids_params.go @@ -102,39 +102,3 @@ func (o BatchAssignUserIdsParams) String() string { out += fmt.Sprintf(" users=%v\n", o.Users) return fmt.Sprintf("BatchAssignUserIdsParams {\n%s}", out) } - -type NullableBatchAssignUserIdsParams struct { - value *BatchAssignUserIdsParams - isSet bool -} - -func (v NullableBatchAssignUserIdsParams) Get() *BatchAssignUserIdsParams { - return v.value -} - -func (v *NullableBatchAssignUserIdsParams) Set(val *BatchAssignUserIdsParams) { - v.value = val - v.isSet = true -} - -func (v NullableBatchAssignUserIdsParams) IsSet() bool { - return v.isSet -} - -func (v *NullableBatchAssignUserIdsParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBatchAssignUserIdsParams(val *BatchAssignUserIdsParams) *NullableBatchAssignUserIdsParams { - return &NullableBatchAssignUserIdsParams{value: val, isSet: true} -} - -func (v NullableBatchAssignUserIdsParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBatchAssignUserIdsParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_batch_dictionary_entries_params.go b/clients/algoliasearch-client-go/algolia/search/model_batch_dictionary_entries_params.go index 3141aea3c1..8d57f1876b 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_batch_dictionary_entries_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_batch_dictionary_entries_params.go @@ -120,39 +120,3 @@ func (o BatchDictionaryEntriesParams) String() string { out += fmt.Sprintf(" requests=%v\n", o.Requests) return fmt.Sprintf("BatchDictionaryEntriesParams {\n%s}", out) } - -type NullableBatchDictionaryEntriesParams struct { - value *BatchDictionaryEntriesParams - isSet bool -} - -func (v NullableBatchDictionaryEntriesParams) Get() *BatchDictionaryEntriesParams { - return v.value -} - -func (v *NullableBatchDictionaryEntriesParams) Set(val *BatchDictionaryEntriesParams) { - v.value = val - v.isSet = true -} - -func (v NullableBatchDictionaryEntriesParams) IsSet() bool { - return v.isSet -} - -func (v *NullableBatchDictionaryEntriesParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBatchDictionaryEntriesParams(val *BatchDictionaryEntriesParams) *NullableBatchDictionaryEntriesParams { - return &NullableBatchDictionaryEntriesParams{value: val, isSet: true} -} - -func (v NullableBatchDictionaryEntriesParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBatchDictionaryEntriesParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_batch_dictionary_entries_request.go b/clients/algoliasearch-client-go/algolia/search/model_batch_dictionary_entries_request.go index 1076808c4b..c2213a0ef8 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_batch_dictionary_entries_request.go +++ b/clients/algoliasearch-client-go/algolia/search/model_batch_dictionary_entries_request.go @@ -100,39 +100,3 @@ func (o BatchDictionaryEntriesRequest) String() string { out += fmt.Sprintf(" body=%v\n", o.Body) return fmt.Sprintf("BatchDictionaryEntriesRequest {\n%s}", out) } - -type NullableBatchDictionaryEntriesRequest struct { - value *BatchDictionaryEntriesRequest - isSet bool -} - -func (v NullableBatchDictionaryEntriesRequest) Get() *BatchDictionaryEntriesRequest { - return v.value -} - -func (v *NullableBatchDictionaryEntriesRequest) Set(val *BatchDictionaryEntriesRequest) { - v.value = val - v.isSet = true -} - -func (v NullableBatchDictionaryEntriesRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableBatchDictionaryEntriesRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBatchDictionaryEntriesRequest(val *BatchDictionaryEntriesRequest) *NullableBatchDictionaryEntriesRequest { - return &NullableBatchDictionaryEntriesRequest{value: val, isSet: true} -} - -func (v NullableBatchDictionaryEntriesRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBatchDictionaryEntriesRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_batch_params.go b/clients/algoliasearch-client-go/algolia/search/model_batch_params.go index fe2469e626..eb2735dabd 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_batch_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_batch_params.go @@ -69,39 +69,3 @@ func (o BatchParams) String() string { out += fmt.Sprintf(" requests=%v\n", o.Requests) return fmt.Sprintf("BatchParams {\n%s}", out) } - -type NullableBatchParams struct { - value *BatchParams - isSet bool -} - -func (v NullableBatchParams) Get() *BatchParams { - return v.value -} - -func (v *NullableBatchParams) Set(val *BatchParams) { - v.value = val - v.isSet = true -} - -func (v NullableBatchParams) IsSet() bool { - return v.isSet -} - -func (v *NullableBatchParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBatchParams(val *BatchParams) *NullableBatchParams { - return &NullableBatchParams{value: val, isSet: true} -} - -func (v NullableBatchParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBatchParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_batch_request.go b/clients/algoliasearch-client-go/algolia/search/model_batch_request.go index b9e20d7ec3..059448602d 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_batch_request.go +++ b/clients/algoliasearch-client-go/algolia/search/model_batch_request.go @@ -101,39 +101,3 @@ func (o BatchRequest) String() string { out += fmt.Sprintf(" body=%v\n", o.Body) return fmt.Sprintf("BatchRequest {\n%s}", out) } - -type NullableBatchRequest struct { - value *BatchRequest - isSet bool -} - -func (v NullableBatchRequest) Get() *BatchRequest { - return v.value -} - -func (v *NullableBatchRequest) Set(val *BatchRequest) { - v.value = val - v.isSet = true -} - -func (v NullableBatchRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableBatchRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBatchRequest(val *BatchRequest) *NullableBatchRequest { - return &NullableBatchRequest{value: val, isSet: true} -} - -func (v NullableBatchRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBatchRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_batch_response.go b/clients/algoliasearch-client-go/algolia/search/model_batch_response.go index cfb839f2c4..94369ad767 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_batch_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_batch_response.go @@ -102,39 +102,3 @@ func (o BatchResponse) String() string { out += fmt.Sprintf(" objectIDs=%v\n", o.ObjectIDs) return fmt.Sprintf("BatchResponse {\n%s}", out) } - -type NullableBatchResponse struct { - value *BatchResponse - isSet bool -} - -func (v NullableBatchResponse) Get() *BatchResponse { - return v.value -} - -func (v *NullableBatchResponse) Set(val *BatchResponse) { - v.value = val - v.isSet = true -} - -func (v NullableBatchResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableBatchResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBatchResponse(val *BatchResponse) *NullableBatchResponse { - return &NullableBatchResponse{value: val, isSet: true} -} - -func (v NullableBatchResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBatchResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_batch_write_params.go b/clients/algoliasearch-client-go/algolia/search/model_batch_write_params.go index 00c0f6f312..e03a22f3bf 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_batch_write_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_batch_write_params.go @@ -69,39 +69,3 @@ func (o BatchWriteParams) String() string { out += fmt.Sprintf(" requests=%v\n", o.Requests) return fmt.Sprintf("BatchWriteParams {\n%s}", out) } - -type NullableBatchWriteParams struct { - value *BatchWriteParams - isSet bool -} - -func (v NullableBatchWriteParams) Get() *BatchWriteParams { - return v.value -} - -func (v *NullableBatchWriteParams) Set(val *BatchWriteParams) { - v.value = val - v.isSet = true -} - -func (v NullableBatchWriteParams) IsSet() bool { - return v.isSet -} - -func (v *NullableBatchWriteParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBatchWriteParams(val *BatchWriteParams) *NullableBatchWriteParams { - return &NullableBatchWriteParams{value: val, isSet: true} -} - -func (v NullableBatchWriteParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBatchWriteParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_browse_params.go b/clients/algoliasearch-client-go/algolia/search/model_browse_params.go index cea031b814..9a028a8517 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_browse_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_browse_params.go @@ -116,39 +116,3 @@ func (obj BrowseParams) GetActualInstance() any { // all schemas are nil return nil } - -type NullableBrowseParams struct { - value *BrowseParams - isSet bool -} - -func (v NullableBrowseParams) Get() *BrowseParams { - return v.value -} - -func (v *NullableBrowseParams) Set(val *BrowseParams) { - v.value = val - v.isSet = true -} - -func (v NullableBrowseParams) IsSet() bool { - return v.isSet -} - -func (v *NullableBrowseParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBrowseParams(val *BrowseParams) *NullableBrowseParams { - return &NullableBrowseParams{value: val, isSet: true} -} - -func (v NullableBrowseParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBrowseParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_browse_params_object.go b/clients/algoliasearch-client-go/algolia/search/model_browse_params_object.go index 98e6cdd379..839c96639c 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_browse_params_object.go +++ b/clients/algoliasearch-client-go/algolia/search/model_browse_params_object.go @@ -4,6 +4,8 @@ package search import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // BrowseParamsObject struct for BrowseParamsObject. @@ -141,8 +143,8 @@ type BrowseParamsObject struct { AttributeCriteriaComputedByMinProximity *bool `json:"attributeCriteriaComputedByMinProximity,omitempty"` RenderingContent *RenderingContent `json:"renderingContent,omitempty"` // Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. - EnableReRanking *bool `json:"enableReRanking,omitempty"` - ReRankingApplyFilter NullableReRankingApplyFilter `json:"reRankingApplyFilter,omitempty"` + EnableReRanking *bool `json:"enableReRanking,omitempty"` + ReRankingApplyFilter utils.Nullable[ReRankingApplyFilter] `json:"reRankingApplyFilter,omitempty"` // Cursor to get the next page of the response. The parameter must match the value returned in the response of a previous request. The last page of the response does not return a `cursor` attribute. Cursor *string `json:"cursor,omitempty"` } @@ -599,7 +601,7 @@ func WithBrowseParamsObjectEnableReRanking(val bool) BrowseParamsObjectOption { } } -func WithBrowseParamsObjectReRankingApplyFilter(val NullableReRankingApplyFilter) BrowseParamsObjectOption { +func WithBrowseParamsObjectReRankingApplyFilter(val utils.Nullable[ReRankingApplyFilter]) BrowseParamsObjectOption { return func(f *BrowseParamsObject) { f.ReRankingApplyFilter = val } @@ -3131,7 +3133,7 @@ func (o *BrowseParamsObject) HasReRankingApplyFilter() bool { return false } -// SetReRankingApplyFilter gets a reference to the given NullableReRankingApplyFilter and assigns it to the ReRankingApplyFilter field. +// SetReRankingApplyFilter gets a reference to the given utils.Nullable[ReRankingApplyFilter] and assigns it to the ReRankingApplyFilter field. func (o *BrowseParamsObject) SetReRankingApplyFilter(v *ReRankingApplyFilter) *BrowseParamsObject { o.ReRankingApplyFilter.Set(v) return o @@ -3502,39 +3504,3 @@ func (o BrowseParamsObject) String() string { out += fmt.Sprintf(" cursor=%v\n", o.Cursor) return fmt.Sprintf("BrowseParamsObject {\n%s}", out) } - -type NullableBrowseParamsObject struct { - value *BrowseParamsObject - isSet bool -} - -func (v NullableBrowseParamsObject) Get() *BrowseParamsObject { - return v.value -} - -func (v *NullableBrowseParamsObject) Set(val *BrowseParamsObject) { - v.value = val - v.isSet = true -} - -func (v NullableBrowseParamsObject) IsSet() bool { - return v.isSet -} - -func (v *NullableBrowseParamsObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBrowseParamsObject(val *BrowseParamsObject) *NullableBrowseParamsObject { - return &NullableBrowseParamsObject{value: val, isSet: true} -} - -func (v NullableBrowseParamsObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBrowseParamsObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_browse_response.go b/clients/algoliasearch-client-go/algolia/search/model_browse_response.go index 1bb5c0da21..59e35a208c 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_browse_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_browse_response.go @@ -1388,39 +1388,3 @@ func (o BrowseResponse) String() string { out += fmt.Sprintf(" cursor=%v\n", o.Cursor) return fmt.Sprintf("BrowseResponse {\n%s}", out) } - -type NullableBrowseResponse struct { - value *BrowseResponse - isSet bool -} - -func (v NullableBrowseResponse) Get() *BrowseResponse { - return v.value -} - -func (v *NullableBrowseResponse) Set(val *BrowseResponse) { - v.value = val - v.isSet = true -} - -func (v NullableBrowseResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableBrowseResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBrowseResponse(val *BrowseResponse) *NullableBrowseResponse { - return &NullableBrowseResponse{value: val, isSet: true} -} - -func (v NullableBrowseResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBrowseResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_built_in_operation.go b/clients/algoliasearch-client-go/algolia/search/model_built_in_operation.go index 92808f67b7..5c95646d8c 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_built_in_operation.go +++ b/clients/algoliasearch-client-go/algolia/search/model_built_in_operation.go @@ -101,39 +101,3 @@ func (o BuiltInOperation) String() string { out += fmt.Sprintf(" value=%v\n", o.Value) return fmt.Sprintf("BuiltInOperation {\n%s}", out) } - -type NullableBuiltInOperation struct { - value *BuiltInOperation - isSet bool -} - -func (v NullableBuiltInOperation) Get() *BuiltInOperation { - return v.value -} - -func (v *NullableBuiltInOperation) Set(val *BuiltInOperation) { - v.value = val - v.isSet = true -} - -func (v NullableBuiltInOperation) IsSet() bool { - return v.isSet -} - -func (v *NullableBuiltInOperation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBuiltInOperation(val *BuiltInOperation) *NullableBuiltInOperation { - return &NullableBuiltInOperation{value: val, isSet: true} -} - -func (v NullableBuiltInOperation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBuiltInOperation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_built_in_operation_type.go b/clients/algoliasearch-client-go/algolia/search/model_built_in_operation_type.go index 85c65ec143..2484b37413 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_built_in_operation_type.go +++ b/clients/algoliasearch-client-go/algolia/search/model_built_in_operation_type.go @@ -73,39 +73,3 @@ func (v BuiltInOperationType) IsValid() bool { func (v BuiltInOperationType) Ptr() *BuiltInOperationType { return &v } - -type NullableBuiltInOperationType struct { - value *BuiltInOperationType - isSet bool -} - -func (v NullableBuiltInOperationType) Get() *BuiltInOperationType { - return v.value -} - -func (v *NullableBuiltInOperationType) Set(val *BuiltInOperationType) { - v.value = val - v.isSet = true -} - -func (v NullableBuiltInOperationType) IsSet() bool { - return v.isSet -} - -func (v *NullableBuiltInOperationType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBuiltInOperationType(val *BuiltInOperationType) *NullableBuiltInOperationType { - return &NullableBuiltInOperationType{value: val, isSet: true} -} - -func (v NullableBuiltInOperationType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableBuiltInOperationType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_condition.go b/clients/algoliasearch-client-go/algolia/search/model_condition.go index b1fcb837d1..d56b4c6c09 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_condition.go +++ b/clients/algoliasearch-client-go/algolia/search/model_condition.go @@ -267,39 +267,3 @@ func (o Condition) String() string { out += fmt.Sprintf(" filters=%v\n", o.Filters) return fmt.Sprintf("Condition {\n%s}", out) } - -type NullableCondition struct { - value *Condition - isSet bool -} - -func (v NullableCondition) Get() *Condition { - return v.value -} - -func (v *NullableCondition) Set(val *Condition) { - v.value = val - v.isSet = true -} - -func (v NullableCondition) IsSet() bool { - return v.isSet -} - -func (v *NullableCondition) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCondition(val *Condition) *NullableCondition { - return &NullableCondition{value: val, isSet: true} -} - -func (v NullableCondition) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableCondition) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_consequence.go b/clients/algoliasearch-client-go/algolia/search/model_consequence.go index ef2017093c..4fc06a9e8f 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_consequence.go +++ b/clients/algoliasearch-client-go/algolia/search/model_consequence.go @@ -268,39 +268,3 @@ func (o Consequence) String() string { out += fmt.Sprintf(" userData=%v\n", o.UserData) return fmt.Sprintf("Consequence {\n%s}", out) } - -type NullableConsequence struct { - value *Consequence - isSet bool -} - -func (v NullableConsequence) Get() *Consequence { - return v.value -} - -func (v *NullableConsequence) Set(val *Consequence) { - v.value = val - v.isSet = true -} - -func (v NullableConsequence) IsSet() bool { - return v.isSet -} - -func (v *NullableConsequence) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConsequence(val *Consequence) *NullableConsequence { - return &NullableConsequence{value: val, isSet: true} -} - -func (v NullableConsequence) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableConsequence) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_consequence_hide.go b/clients/algoliasearch-client-go/algolia/search/model_consequence_hide.go index ab6c7a5667..bddf650a17 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_consequence_hide.go +++ b/clients/algoliasearch-client-go/algolia/search/model_consequence_hide.go @@ -70,39 +70,3 @@ func (o ConsequenceHide) String() string { out += fmt.Sprintf(" objectID=%v\n", o.ObjectID) return fmt.Sprintf("ConsequenceHide {\n%s}", out) } - -type NullableConsequenceHide struct { - value *ConsequenceHide - isSet bool -} - -func (v NullableConsequenceHide) Get() *ConsequenceHide { - return v.value -} - -func (v *NullableConsequenceHide) Set(val *ConsequenceHide) { - v.value = val - v.isSet = true -} - -func (v NullableConsequenceHide) IsSet() bool { - return v.isSet -} - -func (v *NullableConsequenceHide) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConsequenceHide(val *ConsequenceHide) *NullableConsequenceHide { - return &NullableConsequenceHide{value: val, isSet: true} -} - -func (v NullableConsequenceHide) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableConsequenceHide) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_consequence_params.go b/clients/algoliasearch-client-go/algolia/search/model_consequence_params.go index 4d4339d775..e146122099 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_consequence_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_consequence_params.go @@ -4,6 +4,8 @@ package search import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // ConsequenceParams struct for ConsequenceParams. @@ -139,11 +141,11 @@ type ConsequenceParams struct { AttributeCriteriaComputedByMinProximity *bool `json:"attributeCriteriaComputedByMinProximity,omitempty"` RenderingContent *RenderingContent `json:"renderingContent,omitempty"` // Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. - EnableReRanking *bool `json:"enableReRanking,omitempty"` - ReRankingApplyFilter NullableReRankingApplyFilter `json:"reRankingApplyFilter,omitempty"` - Query *ConsequenceQuery `json:"query,omitempty"` - AutomaticFacetFilters *AutomaticFacetFilters `json:"automaticFacetFilters,omitempty"` - AutomaticOptionalFacetFilters *AutomaticFacetFilters `json:"automaticOptionalFacetFilters,omitempty"` + EnableReRanking *bool `json:"enableReRanking,omitempty"` + ReRankingApplyFilter utils.Nullable[ReRankingApplyFilter] `json:"reRankingApplyFilter,omitempty"` + Query *ConsequenceQuery `json:"query,omitempty"` + AutomaticFacetFilters *AutomaticFacetFilters `json:"automaticFacetFilters,omitempty"` + AutomaticOptionalFacetFilters *AutomaticFacetFilters `json:"automaticOptionalFacetFilters,omitempty"` } type ConsequenceParamsOption func(f *ConsequenceParams) @@ -592,7 +594,7 @@ func WithConsequenceParamsEnableReRanking(val bool) ConsequenceParamsOption { } } -func WithConsequenceParamsReRankingApplyFilter(val NullableReRankingApplyFilter) ConsequenceParamsOption { +func WithConsequenceParamsReRankingApplyFilter(val utils.Nullable[ReRankingApplyFilter]) ConsequenceParamsOption { return func(f *ConsequenceParams) { f.ReRankingApplyFilter = val } @@ -3103,7 +3105,7 @@ func (o *ConsequenceParams) HasReRankingApplyFilter() bool { return false } -// SetReRankingApplyFilter gets a reference to the given NullableReRankingApplyFilter and assigns it to the ReRankingApplyFilter field. +// SetReRankingApplyFilter gets a reference to the given utils.Nullable[ReRankingApplyFilter] and assigns it to the ReRankingApplyFilter field. func (o *ConsequenceParams) SetReRankingApplyFilter(v *ReRankingApplyFilter) *ConsequenceParams { o.ReRankingApplyFilter.Set(v) return o @@ -3544,39 +3546,3 @@ func (o ConsequenceParams) String() string { out += fmt.Sprintf(" automaticOptionalFacetFilters=%v\n", o.AutomaticOptionalFacetFilters) return fmt.Sprintf("ConsequenceParams {\n%s}", out) } - -type NullableConsequenceParams struct { - value *ConsequenceParams - isSet bool -} - -func (v NullableConsequenceParams) Get() *ConsequenceParams { - return v.value -} - -func (v *NullableConsequenceParams) Set(val *ConsequenceParams) { - v.value = val - v.isSet = true -} - -func (v NullableConsequenceParams) IsSet() bool { - return v.isSet -} - -func (v *NullableConsequenceParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConsequenceParams(val *ConsequenceParams) *NullableConsequenceParams { - return &NullableConsequenceParams{value: val, isSet: true} -} - -func (v NullableConsequenceParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableConsequenceParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_consequence_query.go b/clients/algoliasearch-client-go/algolia/search/model_consequence_query.go index fc90ceea18..959fe34664 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_consequence_query.go +++ b/clients/algoliasearch-client-go/algolia/search/model_consequence_query.go @@ -94,39 +94,3 @@ func (obj ConsequenceQuery) GetActualInstance() any { // all schemas are nil return nil } - -type NullableConsequenceQuery struct { - value *ConsequenceQuery - isSet bool -} - -func (v NullableConsequenceQuery) Get() *ConsequenceQuery { - return v.value -} - -func (v *NullableConsequenceQuery) Set(val *ConsequenceQuery) { - v.value = val - v.isSet = true -} - -func (v NullableConsequenceQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableConsequenceQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConsequenceQuery(val *ConsequenceQuery) *NullableConsequenceQuery { - return &NullableConsequenceQuery{value: val, isSet: true} -} - -func (v NullableConsequenceQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableConsequenceQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_consequence_query_object.go b/clients/algoliasearch-client-go/algolia/search/model_consequence_query_object.go index 9bee57f1cf..a898bac20a 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_consequence_query_object.go +++ b/clients/algoliasearch-client-go/algolia/search/model_consequence_query_object.go @@ -133,39 +133,3 @@ func (o ConsequenceQueryObject) String() string { out += fmt.Sprintf(" edits=%v\n", o.Edits) return fmt.Sprintf("ConsequenceQueryObject {\n%s}", out) } - -type NullableConsequenceQueryObject struct { - value *ConsequenceQueryObject - isSet bool -} - -func (v NullableConsequenceQueryObject) Get() *ConsequenceQueryObject { - return v.value -} - -func (v *NullableConsequenceQueryObject) Set(val *ConsequenceQueryObject) { - v.value = val - v.isSet = true -} - -func (v NullableConsequenceQueryObject) IsSet() bool { - return v.isSet -} - -func (v *NullableConsequenceQueryObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConsequenceQueryObject(val *ConsequenceQueryObject) *NullableConsequenceQueryObject { - return &NullableConsequenceQueryObject{value: val, isSet: true} -} - -func (v NullableConsequenceQueryObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableConsequenceQueryObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_created_at_response.go b/clients/algoliasearch-client-go/algolia/search/model_created_at_response.go index 3134d1f7d0..78add691df 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_created_at_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_created_at_response.go @@ -70,39 +70,3 @@ func (o CreatedAtResponse) String() string { out += fmt.Sprintf(" createdAt=%v\n", o.CreatedAt) return fmt.Sprintf("CreatedAtResponse {\n%s}", out) } - -type NullableCreatedAtResponse struct { - value *CreatedAtResponse - isSet bool -} - -func (v NullableCreatedAtResponse) Get() *CreatedAtResponse { - return v.value -} - -func (v *NullableCreatedAtResponse) Set(val *CreatedAtResponse) { - v.value = val - v.isSet = true -} - -func (v NullableCreatedAtResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableCreatedAtResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreatedAtResponse(val *CreatedAtResponse) *NullableCreatedAtResponse { - return &NullableCreatedAtResponse{value: val, isSet: true} -} - -func (v NullableCreatedAtResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableCreatedAtResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_cursor.go b/clients/algoliasearch-client-go/algolia/search/model_cursor.go index 7b284c14fd..514dffaaca 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_cursor.go +++ b/clients/algoliasearch-client-go/algolia/search/model_cursor.go @@ -88,39 +88,3 @@ func (o Cursor) String() string { out += fmt.Sprintf(" cursor=%v\n", o.Cursor) return fmt.Sprintf("Cursor {\n%s}", out) } - -type NullableCursor struct { - value *Cursor - isSet bool -} - -func (v NullableCursor) Get() *Cursor { - return v.value -} - -func (v *NullableCursor) Set(val *Cursor) { - v.value = val - v.isSet = true -} - -func (v NullableCursor) IsSet() bool { - return v.isSet -} - -func (v *NullableCursor) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCursor(val *Cursor) *NullableCursor { - return &NullableCursor{value: val, isSet: true} -} - -func (v NullableCursor) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableCursor) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_delete_api_key_response.go b/clients/algoliasearch-client-go/algolia/search/model_delete_api_key_response.go index e2119598ad..2d6fd40a9d 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_delete_api_key_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_delete_api_key_response.go @@ -70,39 +70,3 @@ func (o DeleteApiKeyResponse) String() string { out += fmt.Sprintf(" deletedAt=%v\n", o.DeletedAt) return fmt.Sprintf("DeleteApiKeyResponse {\n%s}", out) } - -type NullableDeleteApiKeyResponse struct { - value *DeleteApiKeyResponse - isSet bool -} - -func (v NullableDeleteApiKeyResponse) Get() *DeleteApiKeyResponse { - return v.value -} - -func (v *NullableDeleteApiKeyResponse) Set(val *DeleteApiKeyResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDeleteApiKeyResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDeleteApiKeyResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeleteApiKeyResponse(val *DeleteApiKeyResponse) *NullableDeleteApiKeyResponse { - return &NullableDeleteApiKeyResponse{value: val, isSet: true} -} - -func (v NullableDeleteApiKeyResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDeleteApiKeyResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_delete_by_params.go b/clients/algoliasearch-client-go/algolia/search/model_delete_by_params.go index 6a67b4d5d3..43a90c5b4d 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_delete_by_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_delete_by_params.go @@ -399,39 +399,3 @@ func (o DeleteByParams) String() string { out += fmt.Sprintf(" insidePolygon=%v\n", o.InsidePolygon) return fmt.Sprintf("DeleteByParams {\n%s}", out) } - -type NullableDeleteByParams struct { - value *DeleteByParams - isSet bool -} - -func (v NullableDeleteByParams) Get() *DeleteByParams { - return v.value -} - -func (v *NullableDeleteByParams) Set(val *DeleteByParams) { - v.value = val - v.isSet = true -} - -func (v NullableDeleteByParams) IsSet() bool { - return v.isSet -} - -func (v *NullableDeleteByParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeleteByParams(val *DeleteByParams) *NullableDeleteByParams { - return &NullableDeleteByParams{value: val, isSet: true} -} - -func (v NullableDeleteByParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDeleteByParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_delete_source_response.go b/clients/algoliasearch-client-go/algolia/search/model_delete_source_response.go index 0490710832..ae1ae4dbd2 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_delete_source_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_delete_source_response.go @@ -70,39 +70,3 @@ func (o DeleteSourceResponse) String() string { out += fmt.Sprintf(" deletedAt=%v\n", o.DeletedAt) return fmt.Sprintf("DeleteSourceResponse {\n%s}", out) } - -type NullableDeleteSourceResponse struct { - value *DeleteSourceResponse - isSet bool -} - -func (v NullableDeleteSourceResponse) Get() *DeleteSourceResponse { - return v.value -} - -func (v *NullableDeleteSourceResponse) Set(val *DeleteSourceResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDeleteSourceResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDeleteSourceResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeleteSourceResponse(val *DeleteSourceResponse) *NullableDeleteSourceResponse { - return &NullableDeleteSourceResponse{value: val, isSet: true} -} - -func (v NullableDeleteSourceResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDeleteSourceResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_deleted_at_response.go b/clients/algoliasearch-client-go/algolia/search/model_deleted_at_response.go index 424eb063c5..5678a69b24 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_deleted_at_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_deleted_at_response.go @@ -102,39 +102,3 @@ func (o DeletedAtResponse) String() string { out += fmt.Sprintf(" deletedAt=%v\n", o.DeletedAt) return fmt.Sprintf("DeletedAtResponse {\n%s}", out) } - -type NullableDeletedAtResponse struct { - value *DeletedAtResponse - isSet bool -} - -func (v NullableDeletedAtResponse) Get() *DeletedAtResponse { - return v.value -} - -func (v *NullableDeletedAtResponse) Set(val *DeletedAtResponse) { - v.value = val - v.isSet = true -} - -func (v NullableDeletedAtResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableDeletedAtResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeletedAtResponse(val *DeletedAtResponse) *NullableDeletedAtResponse { - return &NullableDeletedAtResponse{value: val, isSet: true} -} - -func (v NullableDeletedAtResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDeletedAtResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_dictionary_action.go b/clients/algoliasearch-client-go/algolia/search/model_dictionary_action.go index 5f9828687d..4869093854 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_dictionary_action.go +++ b/clients/algoliasearch-client-go/algolia/search/model_dictionary_action.go @@ -63,39 +63,3 @@ func (v DictionaryAction) IsValid() bool { func (v DictionaryAction) Ptr() *DictionaryAction { return &v } - -type NullableDictionaryAction struct { - value *DictionaryAction - isSet bool -} - -func (v NullableDictionaryAction) Get() *DictionaryAction { - return v.value -} - -func (v *NullableDictionaryAction) Set(val *DictionaryAction) { - v.value = val - v.isSet = true -} - -func (v NullableDictionaryAction) IsSet() bool { - return v.isSet -} - -func (v *NullableDictionaryAction) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDictionaryAction(val *DictionaryAction) *NullableDictionaryAction { - return &NullableDictionaryAction{value: val, isSet: true} -} - -func (v NullableDictionaryAction) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDictionaryAction) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_dictionary_entry.go b/clients/algoliasearch-client-go/algolia/search/model_dictionary_entry.go index 722ce7b5e3..20d0e26128 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_dictionary_entry.go +++ b/clients/algoliasearch-client-go/algolia/search/model_dictionary_entry.go @@ -334,39 +334,3 @@ func (o DictionaryEntry) String() string { } return fmt.Sprintf("DictionaryEntry {\n%s}", out) } - -type NullableDictionaryEntry struct { - value *DictionaryEntry - isSet bool -} - -func (v NullableDictionaryEntry) Get() *DictionaryEntry { - return v.value -} - -func (v *NullableDictionaryEntry) Set(val *DictionaryEntry) { - v.value = val - v.isSet = true -} - -func (v NullableDictionaryEntry) IsSet() bool { - return v.isSet -} - -func (v *NullableDictionaryEntry) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDictionaryEntry(val *DictionaryEntry) *NullableDictionaryEntry { - return &NullableDictionaryEntry{value: val, isSet: true} -} - -func (v NullableDictionaryEntry) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDictionaryEntry) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_dictionary_entry_state.go b/clients/algoliasearch-client-go/algolia/search/model_dictionary_entry_state.go index 0cef0ef9be..47be43b336 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_dictionary_entry_state.go +++ b/clients/algoliasearch-client-go/algolia/search/model_dictionary_entry_state.go @@ -63,39 +63,3 @@ func (v DictionaryEntryState) IsValid() bool { func (v DictionaryEntryState) Ptr() *DictionaryEntryState { return &v } - -type NullableDictionaryEntryState struct { - value *DictionaryEntryState - isSet bool -} - -func (v NullableDictionaryEntryState) Get() *DictionaryEntryState { - return v.value -} - -func (v *NullableDictionaryEntryState) Set(val *DictionaryEntryState) { - v.value = val - v.isSet = true -} - -func (v NullableDictionaryEntryState) IsSet() bool { - return v.isSet -} - -func (v *NullableDictionaryEntryState) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDictionaryEntryState(val *DictionaryEntryState) *NullableDictionaryEntryState { - return &NullableDictionaryEntryState{value: val, isSet: true} -} - -func (v NullableDictionaryEntryState) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDictionaryEntryState) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_dictionary_language.go b/clients/algoliasearch-client-go/algolia/search/model_dictionary_language.go index e14ec22a9e..37c3886f18 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_dictionary_language.go +++ b/clients/algoliasearch-client-go/algolia/search/model_dictionary_language.go @@ -88,39 +88,3 @@ func (o DictionaryLanguage) String() string { out += fmt.Sprintf(" nbCustomEntries=%v\n", o.NbCustomEntries) return fmt.Sprintf("DictionaryLanguage {\n%s}", out) } - -type NullableDictionaryLanguage struct { - value *DictionaryLanguage - isSet bool -} - -func (v NullableDictionaryLanguage) Get() *DictionaryLanguage { - return v.value -} - -func (v *NullableDictionaryLanguage) Set(val *DictionaryLanguage) { - v.value = val - v.isSet = true -} - -func (v NullableDictionaryLanguage) IsSet() bool { - return v.isSet -} - -func (v *NullableDictionaryLanguage) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDictionaryLanguage(val *DictionaryLanguage) *NullableDictionaryLanguage { - return &NullableDictionaryLanguage{value: val, isSet: true} -} - -func (v NullableDictionaryLanguage) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDictionaryLanguage) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_dictionary_settings_params.go b/clients/algoliasearch-client-go/algolia/search/model_dictionary_settings_params.go index 44bda05186..f69b8c3984 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_dictionary_settings_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_dictionary_settings_params.go @@ -69,39 +69,3 @@ func (o DictionarySettingsParams) String() string { out += fmt.Sprintf(" disableStandardEntries=%v\n", o.DisableStandardEntries) return fmt.Sprintf("DictionarySettingsParams {\n%s}", out) } - -type NullableDictionarySettingsParams struct { - value *DictionarySettingsParams - isSet bool -} - -func (v NullableDictionarySettingsParams) Get() *DictionarySettingsParams { - return v.value -} - -func (v *NullableDictionarySettingsParams) Set(val *DictionarySettingsParams) { - v.value = val - v.isSet = true -} - -func (v NullableDictionarySettingsParams) IsSet() bool { - return v.isSet -} - -func (v *NullableDictionarySettingsParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDictionarySettingsParams(val *DictionarySettingsParams) *NullableDictionarySettingsParams { - return &NullableDictionarySettingsParams{value: val, isSet: true} -} - -func (v NullableDictionarySettingsParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDictionarySettingsParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_dictionary_type.go b/clients/algoliasearch-client-go/algolia/search/model_dictionary_type.go index 837696d2b0..0c87ac3136 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_dictionary_type.go +++ b/clients/algoliasearch-client-go/algolia/search/model_dictionary_type.go @@ -65,39 +65,3 @@ func (v DictionaryType) IsValid() bool { func (v DictionaryType) Ptr() *DictionaryType { return &v } - -type NullableDictionaryType struct { - value *DictionaryType - isSet bool -} - -func (v NullableDictionaryType) Get() *DictionaryType { - return v.value -} - -func (v *NullableDictionaryType) Set(val *DictionaryType) { - v.value = val - v.isSet = true -} - -func (v NullableDictionaryType) IsSet() bool { - return v.isSet -} - -func (v *NullableDictionaryType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDictionaryType(val *DictionaryType) *NullableDictionaryType { - return &NullableDictionaryType{value: val, isSet: true} -} - -func (v NullableDictionaryType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDictionaryType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_distinct.go b/clients/algoliasearch-client-go/algolia/search/model_distinct.go index 7b249f68a4..9ae8f9802d 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_distinct.go +++ b/clients/algoliasearch-client-go/algolia/search/model_distinct.go @@ -94,39 +94,3 @@ func (obj Distinct) GetActualInstance() any { // all schemas are nil return nil } - -type NullableDistinct struct { - value *Distinct - isSet bool -} - -func (v NullableDistinct) Get() *Distinct { - return v.value -} - -func (v *NullableDistinct) Set(val *Distinct) { - v.value = val - v.isSet = true -} - -func (v NullableDistinct) IsSet() bool { - return v.isSet -} - -func (v *NullableDistinct) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDistinct(val *Distinct) *NullableDistinct { - return &NullableDistinct{value: val, isSet: true} -} - -func (v NullableDistinct) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableDistinct) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_edit.go b/clients/algoliasearch-client-go/algolia/search/model_edit.go index 12fa5d3b86..9bd7c934d9 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_edit.go +++ b/clients/algoliasearch-client-go/algolia/search/model_edit.go @@ -177,39 +177,3 @@ func (o Edit) String() string { out += fmt.Sprintf(" insert=%v\n", o.Insert) return fmt.Sprintf("Edit {\n%s}", out) } - -type NullableEdit struct { - value *Edit - isSet bool -} - -func (v NullableEdit) Get() *Edit { - return v.value -} - -func (v *NullableEdit) Set(val *Edit) { - v.value = val - v.isSet = true -} - -func (v NullableEdit) IsSet() bool { - return v.isSet -} - -func (v *NullableEdit) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEdit(val *Edit) *NullableEdit { - return &NullableEdit{value: val, isSet: true} -} - -func (v NullableEdit) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEdit) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_edit_type.go b/clients/algoliasearch-client-go/algolia/search/model_edit_type.go index 9f0306498a..fb6dc250c0 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_edit_type.go +++ b/clients/algoliasearch-client-go/algolia/search/model_edit_type.go @@ -63,39 +63,3 @@ func (v EditType) IsValid() bool { func (v EditType) Ptr() *EditType { return &v } - -type NullableEditType struct { - value *EditType - isSet bool -} - -func (v NullableEditType) Get() *EditType { - return v.value -} - -func (v *NullableEditType) Set(val *EditType) { - v.value = val - v.isSet = true -} - -func (v NullableEditType) IsSet() bool { - return v.isSet -} - -func (v *NullableEditType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEditType(val *EditType) *NullableEditType { - return &NullableEditType{value: val, isSet: true} -} - -func (v NullableEditType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableEditType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_error_base.go b/clients/algoliasearch-client-go/algolia/search/model_error_base.go index 51d6145f2d..04e6c79e79 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_error_base.go +++ b/clients/algoliasearch-client-go/algolia/search/model_error_base.go @@ -131,39 +131,3 @@ func (o ErrorBase) String() string { } return fmt.Sprintf("ErrorBase {\n%s}", out) } - -type NullableErrorBase struct { - value *ErrorBase - isSet bool -} - -func (v NullableErrorBase) Get() *ErrorBase { - return v.value -} - -func (v *NullableErrorBase) Set(val *ErrorBase) { - v.value = val - v.isSet = true -} - -func (v NullableErrorBase) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorBase) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorBase(val *ErrorBase) *NullableErrorBase { - return &NullableErrorBase{value: val, isSet: true} -} - -func (v NullableErrorBase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableErrorBase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_exact_on_single_word_query.go b/clients/algoliasearch-client-go/algolia/search/model_exact_on_single_word_query.go index 13adb3bd21..4037606e67 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_exact_on_single_word_query.go +++ b/clients/algoliasearch-client-go/algolia/search/model_exact_on_single_word_query.go @@ -65,39 +65,3 @@ func (v ExactOnSingleWordQuery) IsValid() bool { func (v ExactOnSingleWordQuery) Ptr() *ExactOnSingleWordQuery { return &v } - -type NullableExactOnSingleWordQuery struct { - value *ExactOnSingleWordQuery - isSet bool -} - -func (v NullableExactOnSingleWordQuery) Get() *ExactOnSingleWordQuery { - return v.value -} - -func (v *NullableExactOnSingleWordQuery) Set(val *ExactOnSingleWordQuery) { - v.value = val - v.isSet = true -} - -func (v NullableExactOnSingleWordQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableExactOnSingleWordQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExactOnSingleWordQuery(val *ExactOnSingleWordQuery) *NullableExactOnSingleWordQuery { - return &NullableExactOnSingleWordQuery{value: val, isSet: true} -} - -func (v NullableExactOnSingleWordQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableExactOnSingleWordQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_exhaustive.go b/clients/algoliasearch-client-go/algolia/search/model_exhaustive.go index d3575691af..ef6fff1bc7 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_exhaustive.go +++ b/clients/algoliasearch-client-go/algolia/search/model_exhaustive.go @@ -268,39 +268,3 @@ func (o Exhaustive) String() string { out += fmt.Sprintf(" typo=%v\n", o.Typo) return fmt.Sprintf("Exhaustive {\n%s}", out) } - -type NullableExhaustive struct { - value *Exhaustive - isSet bool -} - -func (v NullableExhaustive) Get() *Exhaustive { - return v.value -} - -func (v *NullableExhaustive) Set(val *Exhaustive) { - v.value = val - v.isSet = true -} - -func (v NullableExhaustive) IsSet() bool { - return v.isSet -} - -func (v *NullableExhaustive) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExhaustive(val *Exhaustive) *NullableExhaustive { - return &NullableExhaustive{value: val, isSet: true} -} - -func (v NullableExhaustive) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableExhaustive) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_facet_filters.go b/clients/algoliasearch-client-go/algolia/search/model_facet_filters.go index ed2ebeed16..79ef4f8c86 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_facet_filters.go +++ b/clients/algoliasearch-client-go/algolia/search/model_facet_filters.go @@ -94,39 +94,3 @@ func (obj FacetFilters) GetActualInstance() any { // all schemas are nil return nil } - -type NullableFacetFilters struct { - value *FacetFilters - isSet bool -} - -func (v NullableFacetFilters) Get() *FacetFilters { - return v.value -} - -func (v *NullableFacetFilters) Set(val *FacetFilters) { - v.value = val - v.isSet = true -} - -func (v NullableFacetFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableFacetFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFacetFilters(val *FacetFilters) *NullableFacetFilters { - return &NullableFacetFilters{value: val, isSet: true} -} - -func (v NullableFacetFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFacetFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_facet_hits.go b/clients/algoliasearch-client-go/algolia/search/model_facet_hits.go index aa447501d9..633999e936 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_facet_hits.go +++ b/clients/algoliasearch-client-go/algolia/search/model_facet_hits.go @@ -134,39 +134,3 @@ func (o FacetHits) String() string { out += fmt.Sprintf(" count=%v\n", o.Count) return fmt.Sprintf("FacetHits {\n%s}", out) } - -type NullableFacetHits struct { - value *FacetHits - isSet bool -} - -func (v NullableFacetHits) Get() *FacetHits { - return v.value -} - -func (v *NullableFacetHits) Set(val *FacetHits) { - v.value = val - v.isSet = true -} - -func (v NullableFacetHits) IsSet() bool { - return v.isSet -} - -func (v *NullableFacetHits) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFacetHits(val *FacetHits) *NullableFacetHits { - return &NullableFacetHits{value: val, isSet: true} -} - -func (v NullableFacetHits) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFacetHits) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_facet_ordering.go b/clients/algoliasearch-client-go/algolia/search/model_facet_ordering.go index 98452f669b..338f8139d8 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_facet_ordering.go +++ b/clients/algoliasearch-client-go/algolia/search/model_facet_ordering.go @@ -132,39 +132,3 @@ func (o FacetOrdering) String() string { out += fmt.Sprintf(" values=%v\n", o.Values) return fmt.Sprintf("FacetOrdering {\n%s}", out) } - -type NullableFacetOrdering struct { - value *FacetOrdering - isSet bool -} - -func (v NullableFacetOrdering) Get() *FacetOrdering { - return v.value -} - -func (v *NullableFacetOrdering) Set(val *FacetOrdering) { - v.value = val - v.isSet = true -} - -func (v NullableFacetOrdering) IsSet() bool { - return v.isSet -} - -func (v *NullableFacetOrdering) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFacetOrdering(val *FacetOrdering) *NullableFacetOrdering { - return &NullableFacetOrdering{value: val, isSet: true} -} - -func (v NullableFacetOrdering) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFacetOrdering) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_facets.go b/clients/algoliasearch-client-go/algolia/search/model_facets.go index a71a6595f7..bd4883b5fa 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_facets.go +++ b/clients/algoliasearch-client-go/algolia/search/model_facets.go @@ -88,39 +88,3 @@ func (o Facets) String() string { out += fmt.Sprintf(" order=%v\n", o.Order) return fmt.Sprintf("Facets {\n%s}", out) } - -type NullableFacets struct { - value *Facets - isSet bool -} - -func (v NullableFacets) Get() *Facets { - return v.value -} - -func (v *NullableFacets) Set(val *Facets) { - v.value = val - v.isSet = true -} - -func (v NullableFacets) IsSet() bool { - return v.isSet -} - -func (v *NullableFacets) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFacets(val *Facets) *NullableFacets { - return &NullableFacets{value: val, isSet: true} -} - -func (v NullableFacets) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFacets) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_facets_stats.go b/clients/algoliasearch-client-go/algolia/search/model_facets_stats.go index 3f98fe31c5..4bb21eea15 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_facets_stats.go +++ b/clients/algoliasearch-client-go/algolia/search/model_facets_stats.go @@ -223,39 +223,3 @@ func (o FacetsStats) String() string { out += fmt.Sprintf(" sum=%v\n", o.Sum) return fmt.Sprintf("FacetsStats {\n%s}", out) } - -type NullableFacetsStats struct { - value *FacetsStats - isSet bool -} - -func (v NullableFacetsStats) Get() *FacetsStats { - return v.value -} - -func (v *NullableFacetsStats) Set(val *FacetsStats) { - v.value = val - v.isSet = true -} - -func (v NullableFacetsStats) IsSet() bool { - return v.isSet -} - -func (v *NullableFacetsStats) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFacetsStats(val *FacetsStats) *NullableFacetsStats { - return &NullableFacetsStats{value: val, isSet: true} -} - -func (v NullableFacetsStats) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFacetsStats) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_fetched_index.go b/clients/algoliasearch-client-go/algolia/search/model_fetched_index.go index 3cb9ab2baa..a3edd6c5ba 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_fetched_index.go +++ b/clients/algoliasearch-client-go/algolia/search/model_fetched_index.go @@ -421,39 +421,3 @@ func (o FetchedIndex) String() string { out += fmt.Sprintf(" replicas=%v\n", o.Replicas) return fmt.Sprintf("FetchedIndex {\n%s}", out) } - -type NullableFetchedIndex struct { - value *FetchedIndex - isSet bool -} - -func (v NullableFetchedIndex) Get() *FetchedIndex { - return v.value -} - -func (v *NullableFetchedIndex) Set(val *FetchedIndex) { - v.value = val - v.isSet = true -} - -func (v NullableFetchedIndex) IsSet() bool { - return v.isSet -} - -func (v *NullableFetchedIndex) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFetchedIndex(val *FetchedIndex) *NullableFetchedIndex { - return &NullableFetchedIndex{value: val, isSet: true} -} - -func (v NullableFetchedIndex) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableFetchedIndex) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_get_api_key_response.go b/clients/algoliasearch-client-go/algolia/search/model_get_api_key_response.go index e37f852d02..2b945ae20b 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_get_api_key_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_get_api_key_response.go @@ -467,39 +467,3 @@ func (o GetApiKeyResponse) String() string { out += fmt.Sprintf(" validity=%v\n", o.Validity) return fmt.Sprintf("GetApiKeyResponse {\n%s}", out) } - -type NullableGetApiKeyResponse struct { - value *GetApiKeyResponse - isSet bool -} - -func (v NullableGetApiKeyResponse) Get() *GetApiKeyResponse { - return v.value -} - -func (v *NullableGetApiKeyResponse) Set(val *GetApiKeyResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetApiKeyResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetApiKeyResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetApiKeyResponse(val *GetApiKeyResponse) *NullableGetApiKeyResponse { - return &NullableGetApiKeyResponse{value: val, isSet: true} -} - -func (v NullableGetApiKeyResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetApiKeyResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_get_dictionary_settings_response.go b/clients/algoliasearch-client-go/algolia/search/model_get_dictionary_settings_response.go index e43f633bbd..f5e7a9a9db 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_get_dictionary_settings_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_get_dictionary_settings_response.go @@ -69,39 +69,3 @@ func (o GetDictionarySettingsResponse) String() string { out += fmt.Sprintf(" disableStandardEntries=%v\n", o.DisableStandardEntries) return fmt.Sprintf("GetDictionarySettingsResponse {\n%s}", out) } - -type NullableGetDictionarySettingsResponse struct { - value *GetDictionarySettingsResponse - isSet bool -} - -func (v NullableGetDictionarySettingsResponse) Get() *GetDictionarySettingsResponse { - return v.value -} - -func (v *NullableGetDictionarySettingsResponse) Set(val *GetDictionarySettingsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetDictionarySettingsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetDictionarySettingsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetDictionarySettingsResponse(val *GetDictionarySettingsResponse) *NullableGetDictionarySettingsResponse { - return &NullableGetDictionarySettingsResponse{value: val, isSet: true} -} - -func (v NullableGetDictionarySettingsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetDictionarySettingsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_get_logs_response.go b/clients/algoliasearch-client-go/algolia/search/model_get_logs_response.go index faa962b58d..7f6629bf7f 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_get_logs_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_get_logs_response.go @@ -69,39 +69,3 @@ func (o GetLogsResponse) String() string { out += fmt.Sprintf(" logs=%v\n", o.Logs) return fmt.Sprintf("GetLogsResponse {\n%s}", out) } - -type NullableGetLogsResponse struct { - value *GetLogsResponse - isSet bool -} - -func (v NullableGetLogsResponse) Get() *GetLogsResponse { - return v.value -} - -func (v *NullableGetLogsResponse) Set(val *GetLogsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetLogsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetLogsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetLogsResponse(val *GetLogsResponse) *NullableGetLogsResponse { - return &NullableGetLogsResponse{value: val, isSet: true} -} - -func (v NullableGetLogsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetLogsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_get_objects_params.go b/clients/algoliasearch-client-go/algolia/search/model_get_objects_params.go index f994e0e8f5..41fd695b3d 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_get_objects_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_get_objects_params.go @@ -69,39 +69,3 @@ func (o GetObjectsParams) String() string { out += fmt.Sprintf(" requests=%v\n", o.Requests) return fmt.Sprintf("GetObjectsParams {\n%s}", out) } - -type NullableGetObjectsParams struct { - value *GetObjectsParams - isSet bool -} - -func (v NullableGetObjectsParams) Get() *GetObjectsParams { - return v.value -} - -func (v *NullableGetObjectsParams) Set(val *GetObjectsParams) { - v.value = val - v.isSet = true -} - -func (v NullableGetObjectsParams) IsSet() bool { - return v.isSet -} - -func (v *NullableGetObjectsParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetObjectsParams(val *GetObjectsParams) *NullableGetObjectsParams { - return &NullableGetObjectsParams{value: val, isSet: true} -} - -func (v NullableGetObjectsParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetObjectsParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_get_objects_request.go b/clients/algoliasearch-client-go/algolia/search/model_get_objects_request.go index 8a138b66b4..1ea1ba253b 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_get_objects_request.go +++ b/clients/algoliasearch-client-go/algolia/search/model_get_objects_request.go @@ -152,39 +152,3 @@ func (o GetObjectsRequest) String() string { out += fmt.Sprintf(" indexName=%v\n", o.IndexName) return fmt.Sprintf("GetObjectsRequest {\n%s}", out) } - -type NullableGetObjectsRequest struct { - value *GetObjectsRequest - isSet bool -} - -func (v NullableGetObjectsRequest) Get() *GetObjectsRequest { - return v.value -} - -func (v *NullableGetObjectsRequest) Set(val *GetObjectsRequest) { - v.value = val - v.isSet = true -} - -func (v NullableGetObjectsRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableGetObjectsRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetObjectsRequest(val *GetObjectsRequest) *NullableGetObjectsRequest { - return &NullableGetObjectsRequest{value: val, isSet: true} -} - -func (v NullableGetObjectsRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetObjectsRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_get_objects_response.go b/clients/algoliasearch-client-go/algolia/search/model_get_objects_response.go index 09cb5a5af6..1c96b6be51 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_get_objects_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_get_objects_response.go @@ -70,39 +70,3 @@ func (o GetObjectsResponse) String() string { out += fmt.Sprintf(" results=%v\n", o.Results) return fmt.Sprintf("GetObjectsResponse {\n%s}", out) } - -type NullableGetObjectsResponse struct { - value *GetObjectsResponse - isSet bool -} - -func (v NullableGetObjectsResponse) Get() *GetObjectsResponse { - return v.value -} - -func (v *NullableGetObjectsResponse) Set(val *GetObjectsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetObjectsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetObjectsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetObjectsResponse(val *GetObjectsResponse) *NullableGetObjectsResponse { - return &NullableGetObjectsResponse{value: val, isSet: true} -} - -func (v NullableGetObjectsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetObjectsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_get_task_response.go b/clients/algoliasearch-client-go/algolia/search/model_get_task_response.go index 2141ac73d6..47554be662 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_get_task_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_get_task_response.go @@ -69,39 +69,3 @@ func (o GetTaskResponse) String() string { out += fmt.Sprintf(" status=%v\n", o.Status) return fmt.Sprintf("GetTaskResponse {\n%s}", out) } - -type NullableGetTaskResponse struct { - value *GetTaskResponse - isSet bool -} - -func (v NullableGetTaskResponse) Get() *GetTaskResponse { - return v.value -} - -func (v *NullableGetTaskResponse) Set(val *GetTaskResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetTaskResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTaskResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTaskResponse(val *GetTaskResponse) *NullableGetTaskResponse { - return &NullableGetTaskResponse{value: val, isSet: true} -} - -func (v NullableGetTaskResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTaskResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_get_top_user_ids_response.go b/clients/algoliasearch-client-go/algolia/search/model_get_top_user_ids_response.go index 73ec260d77..2b704e2a06 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_get_top_user_ids_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_get_top_user_ids_response.go @@ -70,39 +70,3 @@ func (o GetTopUserIdsResponse) String() string { out += fmt.Sprintf(" topUsers=%v\n", o.TopUsers) return fmt.Sprintf("GetTopUserIdsResponse {\n%s}", out) } - -type NullableGetTopUserIdsResponse struct { - value *GetTopUserIdsResponse - isSet bool -} - -func (v NullableGetTopUserIdsResponse) Get() *GetTopUserIdsResponse { - return v.value -} - -func (v *NullableGetTopUserIdsResponse) Set(val *GetTopUserIdsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetTopUserIdsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTopUserIdsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTopUserIdsResponse(val *GetTopUserIdsResponse) *NullableGetTopUserIdsResponse { - return &NullableGetTopUserIdsResponse{value: val, isSet: true} -} - -func (v NullableGetTopUserIdsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetTopUserIdsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_has_pending_mappings_response.go b/clients/algoliasearch-client-go/algolia/search/model_has_pending_mappings_response.go index bafabfba56..7731b750a6 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_has_pending_mappings_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_has_pending_mappings_response.go @@ -120,39 +120,3 @@ func (o HasPendingMappingsResponse) String() string { out += fmt.Sprintf(" clusters=%v\n", o.Clusters) return fmt.Sprintf("HasPendingMappingsResponse {\n%s}", out) } - -type NullableHasPendingMappingsResponse struct { - value *HasPendingMappingsResponse - isSet bool -} - -func (v NullableHasPendingMappingsResponse) Get() *HasPendingMappingsResponse { - return v.value -} - -func (v *NullableHasPendingMappingsResponse) Set(val *HasPendingMappingsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableHasPendingMappingsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableHasPendingMappingsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHasPendingMappingsResponse(val *HasPendingMappingsResponse) *NullableHasPendingMappingsResponse { - return &NullableHasPendingMappingsResponse{value: val, isSet: true} -} - -func (v NullableHasPendingMappingsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableHasPendingMappingsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_highlight_result.go b/clients/algoliasearch-client-go/algolia/search/model_highlight_result.go index aea9a1f9b2..4ad69f676b 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_highlight_result.go +++ b/clients/algoliasearch-client-go/algolia/search/model_highlight_result.go @@ -128,39 +128,3 @@ func (obj HighlightResult) GetActualInstance() any { // all schemas are nil return nil } - -type NullableHighlightResult struct { - value *HighlightResult - isSet bool -} - -func (v NullableHighlightResult) Get() *HighlightResult { - return v.value -} - -func (v *NullableHighlightResult) Set(val *HighlightResult) { - v.value = val - v.isSet = true -} - -func (v NullableHighlightResult) IsSet() bool { - return v.isSet -} - -func (v *NullableHighlightResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHighlightResult(val *HighlightResult) *NullableHighlightResult { - return &NullableHighlightResult{value: val, isSet: true} -} - -func (v NullableHighlightResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableHighlightResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_highlight_result_option.go b/clients/algoliasearch-client-go/algolia/search/model_highlight_result_option.go index 9ffcbd43c1..3e7a34ea36 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_highlight_result_option.go +++ b/clients/algoliasearch-client-go/algolia/search/model_highlight_result_option.go @@ -183,39 +183,3 @@ func (o HighlightResultOption) String() string { out += fmt.Sprintf(" fullyHighlighted=%v\n", o.FullyHighlighted) return fmt.Sprintf("HighlightResultOption {\n%s}", out) } - -type NullableHighlightResultOption struct { - value *HighlightResultOption - isSet bool -} - -func (v NullableHighlightResultOption) Get() *HighlightResultOption { - return v.value -} - -func (v *NullableHighlightResultOption) Set(val *HighlightResultOption) { - v.value = val - v.isSet = true -} - -func (v NullableHighlightResultOption) IsSet() bool { - return v.isSet -} - -func (v *NullableHighlightResultOption) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHighlightResultOption(val *HighlightResultOption) *NullableHighlightResultOption { - return &NullableHighlightResultOption{value: val, isSet: true} -} - -func (v NullableHighlightResultOption) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableHighlightResultOption) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_hit.go b/clients/algoliasearch-client-go/algolia/search/model_hit.go index be1322fab0..811d282eef 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_hit.go +++ b/clients/algoliasearch-client-go/algolia/search/model_hit.go @@ -301,39 +301,3 @@ func (o Hit) String() string { } return fmt.Sprintf("Hit {\n%s}", out) } - -type NullableHit struct { - value *Hit - isSet bool -} - -func (v NullableHit) Get() *Hit { - return v.value -} - -func (v *NullableHit) Set(val *Hit) { - v.value = val - v.isSet = true -} - -func (v NullableHit) IsSet() bool { - return v.isSet -} - -func (v *NullableHit) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHit(val *Hit) *NullableHit { - return &NullableHit{value: val, isSet: true} -} - -func (v NullableHit) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableHit) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_ignore_plurals.go b/clients/algoliasearch-client-go/algolia/search/model_ignore_plurals.go index ba1b452c08..633581b7f2 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_ignore_plurals.go +++ b/clients/algoliasearch-client-go/algolia/search/model_ignore_plurals.go @@ -94,39 +94,3 @@ func (obj IgnorePlurals) GetActualInstance() any { // all schemas are nil return nil } - -type NullableIgnorePlurals struct { - value *IgnorePlurals - isSet bool -} - -func (v NullableIgnorePlurals) Get() *IgnorePlurals { - return v.value -} - -func (v *NullableIgnorePlurals) Set(val *IgnorePlurals) { - v.value = val - v.isSet = true -} - -func (v NullableIgnorePlurals) IsSet() bool { - return v.isSet -} - -func (v *NullableIgnorePlurals) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIgnorePlurals(val *IgnorePlurals) *NullableIgnorePlurals { - return &NullableIgnorePlurals{value: val, isSet: true} -} - -func (v NullableIgnorePlurals) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableIgnorePlurals) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_index_settings.go b/clients/algoliasearch-client-go/algolia/search/model_index_settings.go index 70097be3cf..459e728822 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_index_settings.go +++ b/clients/algoliasearch-client-go/algolia/search/model_index_settings.go @@ -4,6 +4,8 @@ package search import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // IndexSettings Index settings. @@ -117,8 +119,8 @@ type IndexSettings struct { AttributeCriteriaComputedByMinProximity *bool `json:"attributeCriteriaComputedByMinProximity,omitempty"` RenderingContent *RenderingContent `json:"renderingContent,omitempty"` // Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. - EnableReRanking *bool `json:"enableReRanking,omitempty"` - ReRankingApplyFilter NullableReRankingApplyFilter `json:"reRankingApplyFilter,omitempty"` + EnableReRanking *bool `json:"enableReRanking,omitempty"` + ReRankingApplyFilter utils.Nullable[ReRankingApplyFilter] `json:"reRankingApplyFilter,omitempty"` } type IndexSettingsOption func(f *IndexSettings) @@ -483,7 +485,7 @@ func WithIndexSettingsEnableReRanking(val bool) IndexSettingsOption { } } -func WithIndexSettingsReRankingApplyFilter(val NullableReRankingApplyFilter) IndexSettingsOption { +func WithIndexSettingsReRankingApplyFilter(val utils.Nullable[ReRankingApplyFilter]) IndexSettingsOption { return func(f *IndexSettings) { f.ReRankingApplyFilter = val } @@ -2514,7 +2516,7 @@ func (o *IndexSettings) HasReRankingApplyFilter() bool { return false } -// SetReRankingApplyFilter gets a reference to the given NullableReRankingApplyFilter and assigns it to the ReRankingApplyFilter field. +// SetReRankingApplyFilter gets a reference to the given utils.Nullable[ReRankingApplyFilter] and assigns it to the ReRankingApplyFilter field. func (o *IndexSettings) SetReRankingApplyFilter(v *ReRankingApplyFilter) *IndexSettings { o.ReRankingApplyFilter.Set(v) return o @@ -2788,39 +2790,3 @@ func (o IndexSettings) String() string { out += fmt.Sprintf(" reRankingApplyFilter=%v\n", o.ReRankingApplyFilter) return fmt.Sprintf("IndexSettings {\n%s}", out) } - -type NullableIndexSettings struct { - value *IndexSettings - isSet bool -} - -func (v NullableIndexSettings) Get() *IndexSettings { - return v.value -} - -func (v *NullableIndexSettings) Set(val *IndexSettings) { - v.value = val - v.isSet = true -} - -func (v NullableIndexSettings) IsSet() bool { - return v.isSet -} - -func (v *NullableIndexSettings) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIndexSettings(val *IndexSettings) *NullableIndexSettings { - return &NullableIndexSettings{value: val, isSet: true} -} - -func (v NullableIndexSettings) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableIndexSettings) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_index_settings_as_search_params.go b/clients/algoliasearch-client-go/algolia/search/model_index_settings_as_search_params.go index afd9faa165..0bf3cb416b 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_index_settings_as_search_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_index_settings_as_search_params.go @@ -4,6 +4,8 @@ package search import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // IndexSettingsAsSearchParams struct for IndexSettingsAsSearchParams. @@ -83,8 +85,8 @@ type IndexSettingsAsSearchParams struct { AttributeCriteriaComputedByMinProximity *bool `json:"attributeCriteriaComputedByMinProximity,omitempty"` RenderingContent *RenderingContent `json:"renderingContent,omitempty"` // Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. - EnableReRanking *bool `json:"enableReRanking,omitempty"` - ReRankingApplyFilter NullableReRankingApplyFilter `json:"reRankingApplyFilter,omitempty"` + EnableReRanking *bool `json:"enableReRanking,omitempty"` + ReRankingApplyFilter utils.Nullable[ReRankingApplyFilter] `json:"reRankingApplyFilter,omitempty"` } type IndexSettingsAsSearchParamsOption func(f *IndexSettingsAsSearchParams) @@ -347,7 +349,7 @@ func WithIndexSettingsAsSearchParamsEnableReRanking(val bool) IndexSettingsAsSea } } -func WithIndexSettingsAsSearchParamsReRankingApplyFilter(val NullableReRankingApplyFilter) IndexSettingsAsSearchParamsOption { +func WithIndexSettingsAsSearchParamsReRankingApplyFilter(val utils.Nullable[ReRankingApplyFilter]) IndexSettingsAsSearchParamsOption { return func(f *IndexSettingsAsSearchParams) { f.ReRankingApplyFilter = val } @@ -1817,7 +1819,7 @@ func (o *IndexSettingsAsSearchParams) HasReRankingApplyFilter() bool { return false } -// SetReRankingApplyFilter gets a reference to the given NullableReRankingApplyFilter and assigns it to the ReRankingApplyFilter field. +// SetReRankingApplyFilter gets a reference to the given utils.Nullable[ReRankingApplyFilter] and assigns it to the ReRankingApplyFilter field. func (o *IndexSettingsAsSearchParams) SetReRankingApplyFilter(v *ReRankingApplyFilter) *IndexSettingsAsSearchParams { o.ReRankingApplyFilter.Set(v) return o @@ -2023,39 +2025,3 @@ func (o IndexSettingsAsSearchParams) String() string { out += fmt.Sprintf(" reRankingApplyFilter=%v\n", o.ReRankingApplyFilter) return fmt.Sprintf("IndexSettingsAsSearchParams {\n%s}", out) } - -type NullableIndexSettingsAsSearchParams struct { - value *IndexSettingsAsSearchParams - isSet bool -} - -func (v NullableIndexSettingsAsSearchParams) Get() *IndexSettingsAsSearchParams { - return v.value -} - -func (v *NullableIndexSettingsAsSearchParams) Set(val *IndexSettingsAsSearchParams) { - v.value = val - v.isSet = true -} - -func (v NullableIndexSettingsAsSearchParams) IsSet() bool { - return v.isSet -} - -func (v *NullableIndexSettingsAsSearchParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIndexSettingsAsSearchParams(val *IndexSettingsAsSearchParams) *NullableIndexSettingsAsSearchParams { - return &NullableIndexSettingsAsSearchParams{value: val, isSet: true} -} - -func (v NullableIndexSettingsAsSearchParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableIndexSettingsAsSearchParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_languages.go b/clients/algoliasearch-client-go/algolia/search/model_languages.go index 9c99913b97..3508b81b00 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_languages.go +++ b/clients/algoliasearch-client-go/algolia/search/model_languages.go @@ -4,20 +4,22 @@ package search import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // Languages Dictionary language. type Languages struct { - Plurals NullableDictionaryLanguage `json:"plurals"` - Stopwords NullableDictionaryLanguage `json:"stopwords"` - Compounds NullableDictionaryLanguage `json:"compounds"` + Plurals utils.Nullable[DictionaryLanguage] `json:"plurals"` + Stopwords utils.Nullable[DictionaryLanguage] `json:"stopwords"` + Compounds utils.Nullable[DictionaryLanguage] `json:"compounds"` } // NewLanguages instantiates a new Languages object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewLanguages(plurals NullableDictionaryLanguage, stopwords NullableDictionaryLanguage, compounds NullableDictionaryLanguage) *Languages { +func NewLanguages(plurals utils.Nullable[DictionaryLanguage], stopwords utils.Nullable[DictionaryLanguage], compounds utils.Nullable[DictionaryLanguage]) *Languages { this := &Languages{} this.Plurals = plurals this.Stopwords = stopwords @@ -137,39 +139,3 @@ func (o Languages) String() string { out += fmt.Sprintf(" compounds=%v\n", o.Compounds) return fmt.Sprintf("Languages {\n%s}", out) } - -type NullableLanguages struct { - value *Languages - isSet bool -} - -func (v NullableLanguages) Get() *Languages { - return v.value -} - -func (v *NullableLanguages) Set(val *Languages) { - v.value = val - v.isSet = true -} - -func (v NullableLanguages) IsSet() bool { - return v.isSet -} - -func (v *NullableLanguages) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLanguages(val *Languages) *NullableLanguages { - return &NullableLanguages{value: val, isSet: true} -} - -func (v NullableLanguages) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableLanguages) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_list_api_keys_response.go b/clients/algoliasearch-client-go/algolia/search/model_list_api_keys_response.go index a617d9af47..2a17905a6d 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_list_api_keys_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_list_api_keys_response.go @@ -70,39 +70,3 @@ func (o ListApiKeysResponse) String() string { out += fmt.Sprintf(" keys=%v\n", o.Keys) return fmt.Sprintf("ListApiKeysResponse {\n%s}", out) } - -type NullableListApiKeysResponse struct { - value *ListApiKeysResponse - isSet bool -} - -func (v NullableListApiKeysResponse) Get() *ListApiKeysResponse { - return v.value -} - -func (v *NullableListApiKeysResponse) Set(val *ListApiKeysResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListApiKeysResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListApiKeysResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListApiKeysResponse(val *ListApiKeysResponse) *NullableListApiKeysResponse { - return &NullableListApiKeysResponse{value: val, isSet: true} -} - -func (v NullableListApiKeysResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableListApiKeysResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_list_clusters_response.go b/clients/algoliasearch-client-go/algolia/search/model_list_clusters_response.go index a976251f40..6dbd11f076 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_list_clusters_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_list_clusters_response.go @@ -70,39 +70,3 @@ func (o ListClustersResponse) String() string { out += fmt.Sprintf(" topUsers=%v\n", o.TopUsers) return fmt.Sprintf("ListClustersResponse {\n%s}", out) } - -type NullableListClustersResponse struct { - value *ListClustersResponse - isSet bool -} - -func (v NullableListClustersResponse) Get() *ListClustersResponse { - return v.value -} - -func (v *NullableListClustersResponse) Set(val *ListClustersResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListClustersResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListClustersResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListClustersResponse(val *ListClustersResponse) *NullableListClustersResponse { - return &NullableListClustersResponse{value: val, isSet: true} -} - -func (v NullableListClustersResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableListClustersResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_list_indices_response.go b/clients/algoliasearch-client-go/algolia/search/model_list_indices_response.go index dcfbc764e7..0b70ff5adb 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_list_indices_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_list_indices_response.go @@ -120,39 +120,3 @@ func (o ListIndicesResponse) String() string { out += fmt.Sprintf(" nbPages=%v\n", o.NbPages) return fmt.Sprintf("ListIndicesResponse {\n%s}", out) } - -type NullableListIndicesResponse struct { - value *ListIndicesResponse - isSet bool -} - -func (v NullableListIndicesResponse) Get() *ListIndicesResponse { - return v.value -} - -func (v *NullableListIndicesResponse) Set(val *ListIndicesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListIndicesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListIndicesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListIndicesResponse(val *ListIndicesResponse) *NullableListIndicesResponse { - return &NullableListIndicesResponse{value: val, isSet: true} -} - -func (v NullableListIndicesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableListIndicesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_list_user_ids_response.go b/clients/algoliasearch-client-go/algolia/search/model_list_user_ids_response.go index 0abbdce323..bfcae4872c 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_list_user_ids_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_list_user_ids_response.go @@ -70,39 +70,3 @@ func (o ListUserIdsResponse) String() string { out += fmt.Sprintf(" userIDs=%v\n", o.UserIDs) return fmt.Sprintf("ListUserIdsResponse {\n%s}", out) } - -type NullableListUserIdsResponse struct { - value *ListUserIdsResponse - isSet bool -} - -func (v NullableListUserIdsResponse) Get() *ListUserIdsResponse { - return v.value -} - -func (v *NullableListUserIdsResponse) Set(val *ListUserIdsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListUserIdsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListUserIdsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListUserIdsResponse(val *ListUserIdsResponse) *NullableListUserIdsResponse { - return &NullableListUserIdsResponse{value: val, isSet: true} -} - -func (v NullableListUserIdsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableListUserIdsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_log.go b/clients/algoliasearch-client-go/algolia/search/model_log.go index 6f4b9e460c..b494224ed4 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_log.go +++ b/clients/algoliasearch-client-go/algolia/search/model_log.go @@ -575,39 +575,3 @@ func (o Log) String() string { out += fmt.Sprintf(" inner_queries=%v\n", o.InnerQueries) return fmt.Sprintf("Log {\n%s}", out) } - -type NullableLog struct { - value *Log - isSet bool -} - -func (v NullableLog) Get() *Log { - return v.value -} - -func (v *NullableLog) Set(val *Log) { - v.value = val - v.isSet = true -} - -func (v NullableLog) IsSet() bool { - return v.isSet -} - -func (v *NullableLog) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLog(val *Log) *NullableLog { - return &NullableLog{value: val, isSet: true} -} - -func (v NullableLog) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableLog) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_log_query.go b/clients/algoliasearch-client-go/algolia/search/model_log_query.go index 8d847afcea..e45f34d310 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_log_query.go +++ b/clients/algoliasearch-client-go/algolia/search/model_log_query.go @@ -178,39 +178,3 @@ func (o LogQuery) String() string { out += fmt.Sprintf(" query_id=%v\n", o.QueryId) return fmt.Sprintf("LogQuery {\n%s}", out) } - -type NullableLogQuery struct { - value *LogQuery - isSet bool -} - -func (v NullableLogQuery) Get() *LogQuery { - return v.value -} - -func (v *NullableLogQuery) Set(val *LogQuery) { - v.value = val - v.isSet = true -} - -func (v NullableLogQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableLogQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLogQuery(val *LogQuery) *NullableLogQuery { - return &NullableLogQuery{value: val, isSet: true} -} - -func (v NullableLogQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableLogQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_log_type.go b/clients/algoliasearch-client-go/algolia/search/model_log_type.go index e0a8e4251a..1f5ea61bb1 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_log_type.go +++ b/clients/algoliasearch-client-go/algolia/search/model_log_type.go @@ -67,39 +67,3 @@ func (v LogType) IsValid() bool { func (v LogType) Ptr() *LogType { return &v } - -type NullableLogType struct { - value *LogType - isSet bool -} - -func (v NullableLogType) Get() *LogType { - return v.value -} - -func (v *NullableLogType) Set(val *LogType) { - v.value = val - v.isSet = true -} - -func (v NullableLogType) IsSet() bool { - return v.isSet -} - -func (v *NullableLogType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLogType(val *LogType) *NullableLogType { - return &NullableLogType{value: val, isSet: true} -} - -func (v NullableLogType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableLogType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_match_level.go b/clients/algoliasearch-client-go/algolia/search/model_match_level.go index 99c75b1e90..6a324ce51f 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_match_level.go +++ b/clients/algoliasearch-client-go/algolia/search/model_match_level.go @@ -65,39 +65,3 @@ func (v MatchLevel) IsValid() bool { func (v MatchLevel) Ptr() *MatchLevel { return &v } - -type NullableMatchLevel struct { - value *MatchLevel - isSet bool -} - -func (v NullableMatchLevel) Get() *MatchLevel { - return v.value -} - -func (v *NullableMatchLevel) Set(val *MatchLevel) { - v.value = val - v.isSet = true -} - -func (v NullableMatchLevel) IsSet() bool { - return v.isSet -} - -func (v *NullableMatchLevel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMatchLevel(val *MatchLevel) *NullableMatchLevel { - return &NullableMatchLevel{value: val, isSet: true} -} - -func (v NullableMatchLevel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMatchLevel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_matched_geo_location.go b/clients/algoliasearch-client-go/algolia/search/model_matched_geo_location.go index a0b0d76d51..6139c74be9 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_matched_geo_location.go +++ b/clients/algoliasearch-client-go/algolia/search/model_matched_geo_location.go @@ -178,39 +178,3 @@ func (o MatchedGeoLocation) String() string { out += fmt.Sprintf(" distance=%v\n", o.Distance) return fmt.Sprintf("MatchedGeoLocation {\n%s}", out) } - -type NullableMatchedGeoLocation struct { - value *MatchedGeoLocation - isSet bool -} - -func (v NullableMatchedGeoLocation) Get() *MatchedGeoLocation { - return v.value -} - -func (v *NullableMatchedGeoLocation) Set(val *MatchedGeoLocation) { - v.value = val - v.isSet = true -} - -func (v NullableMatchedGeoLocation) IsSet() bool { - return v.isSet -} - -func (v *NullableMatchedGeoLocation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMatchedGeoLocation(val *MatchedGeoLocation) *NullableMatchedGeoLocation { - return &NullableMatchedGeoLocation{value: val, isSet: true} -} - -func (v NullableMatchedGeoLocation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMatchedGeoLocation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_mode.go b/clients/algoliasearch-client-go/algolia/search/model_mode.go index a9e1119b35..83a908a67c 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_mode.go +++ b/clients/algoliasearch-client-go/algolia/search/model_mode.go @@ -63,39 +63,3 @@ func (v Mode) IsValid() bool { func (v Mode) Ptr() *Mode { return &v } - -type NullableMode struct { - value *Mode - isSet bool -} - -func (v NullableMode) Get() *Mode { - return v.value -} - -func (v *NullableMode) Set(val *Mode) { - v.value = val - v.isSet = true -} - -func (v NullableMode) IsSet() bool { - return v.isSet -} - -func (v *NullableMode) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMode(val *Mode) *NullableMode { - return &NullableMode{value: val, isSet: true} -} - -func (v NullableMode) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMode) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_multiple_batch_request.go b/clients/algoliasearch-client-go/algolia/search/model_multiple_batch_request.go index ded3c318fa..dddf0ac905 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_multiple_batch_request.go +++ b/clients/algoliasearch-client-go/algolia/search/model_multiple_batch_request.go @@ -133,39 +133,3 @@ func (o MultipleBatchRequest) String() string { out += fmt.Sprintf(" indexName=%v\n", o.IndexName) return fmt.Sprintf("MultipleBatchRequest {\n%s}", out) } - -type NullableMultipleBatchRequest struct { - value *MultipleBatchRequest - isSet bool -} - -func (v NullableMultipleBatchRequest) Get() *MultipleBatchRequest { - return v.value -} - -func (v *NullableMultipleBatchRequest) Set(val *MultipleBatchRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMultipleBatchRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMultipleBatchRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMultipleBatchRequest(val *MultipleBatchRequest) *NullableMultipleBatchRequest { - return &NullableMultipleBatchRequest{value: val, isSet: true} -} - -func (v NullableMultipleBatchRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMultipleBatchRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_multiple_batch_response.go b/clients/algoliasearch-client-go/algolia/search/model_multiple_batch_response.go index efbcd2eb99..efb1968de2 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_multiple_batch_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_multiple_batch_response.go @@ -102,39 +102,3 @@ func (o MultipleBatchResponse) String() string { out += fmt.Sprintf(" objectIDs=%v\n", o.ObjectIDs) return fmt.Sprintf("MultipleBatchResponse {\n%s}", out) } - -type NullableMultipleBatchResponse struct { - value *MultipleBatchResponse - isSet bool -} - -func (v NullableMultipleBatchResponse) Get() *MultipleBatchResponse { - return v.value -} - -func (v *NullableMultipleBatchResponse) Set(val *MultipleBatchResponse) { - v.value = val - v.isSet = true -} - -func (v NullableMultipleBatchResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableMultipleBatchResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMultipleBatchResponse(val *MultipleBatchResponse) *NullableMultipleBatchResponse { - return &NullableMultipleBatchResponse{value: val, isSet: true} -} - -func (v NullableMultipleBatchResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableMultipleBatchResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_numeric_filters.go b/clients/algoliasearch-client-go/algolia/search/model_numeric_filters.go index efd89cc9c0..9c093324eb 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_numeric_filters.go +++ b/clients/algoliasearch-client-go/algolia/search/model_numeric_filters.go @@ -94,39 +94,3 @@ func (obj NumericFilters) GetActualInstance() any { // all schemas are nil return nil } - -type NullableNumericFilters struct { - value *NumericFilters - isSet bool -} - -func (v NullableNumericFilters) Get() *NumericFilters { - return v.value -} - -func (v *NullableNumericFilters) Set(val *NumericFilters) { - v.value = val - v.isSet = true -} - -func (v NullableNumericFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableNumericFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableNumericFilters(val *NumericFilters) *NullableNumericFilters { - return &NullableNumericFilters{value: val, isSet: true} -} - -func (v NullableNumericFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableNumericFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_operation_index_params.go b/clients/algoliasearch-client-go/algolia/search/model_operation_index_params.go index f1cb316228..bb6abea9b3 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_operation_index_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_operation_index_params.go @@ -151,39 +151,3 @@ func (o OperationIndexParams) String() string { out += fmt.Sprintf(" scope=%v\n", o.Scope) return fmt.Sprintf("OperationIndexParams {\n%s}", out) } - -type NullableOperationIndexParams struct { - value *OperationIndexParams - isSet bool -} - -func (v NullableOperationIndexParams) Get() *OperationIndexParams { - return v.value -} - -func (v *NullableOperationIndexParams) Set(val *OperationIndexParams) { - v.value = val - v.isSet = true -} - -func (v NullableOperationIndexParams) IsSet() bool { - return v.isSet -} - -func (v *NullableOperationIndexParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOperationIndexParams(val *OperationIndexParams) *NullableOperationIndexParams { - return &NullableOperationIndexParams{value: val, isSet: true} -} - -func (v NullableOperationIndexParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOperationIndexParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_operation_type.go b/clients/algoliasearch-client-go/algolia/search/model_operation_type.go index 9a056587df..bfe79a36b6 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_operation_type.go +++ b/clients/algoliasearch-client-go/algolia/search/model_operation_type.go @@ -63,39 +63,3 @@ func (v OperationType) IsValid() bool { func (v OperationType) Ptr() *OperationType { return &v } - -type NullableOperationType struct { - value *OperationType - isSet bool -} - -func (v NullableOperationType) Get() *OperationType { - return v.value -} - -func (v *NullableOperationType) Set(val *OperationType) { - v.value = val - v.isSet = true -} - -func (v NullableOperationType) IsSet() bool { - return v.isSet -} - -func (v *NullableOperationType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOperationType(val *OperationType) *NullableOperationType { - return &NullableOperationType{value: val, isSet: true} -} - -func (v NullableOperationType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOperationType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_optional_filters.go b/clients/algoliasearch-client-go/algolia/search/model_optional_filters.go index 6f16fc57d6..4e7df08743 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_optional_filters.go +++ b/clients/algoliasearch-client-go/algolia/search/model_optional_filters.go @@ -94,39 +94,3 @@ func (obj OptionalFilters) GetActualInstance() any { // all schemas are nil return nil } - -type NullableOptionalFilters struct { - value *OptionalFilters - isSet bool -} - -func (v NullableOptionalFilters) Get() *OptionalFilters { - return v.value -} - -func (v *NullableOptionalFilters) Set(val *OptionalFilters) { - v.value = val - v.isSet = true -} - -func (v NullableOptionalFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableOptionalFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOptionalFilters(val *OptionalFilters) *NullableOptionalFilters { - return &NullableOptionalFilters{value: val, isSet: true} -} - -func (v NullableOptionalFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableOptionalFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_params.go b/clients/algoliasearch-client-go/algolia/search/model_params.go index 8a73a3cb3a..f36ee0cd5d 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_params.go @@ -219,39 +219,3 @@ func (o Params) String() string { out += fmt.Sprintf(" renderingContent=%v\n", o.RenderingContent) return fmt.Sprintf("Params {\n%s}", out) } - -type NullableParams struct { - value *Params - isSet bool -} - -func (v NullableParams) Get() *Params { - return v.value -} - -func (v *NullableParams) Set(val *Params) { - v.value = val - v.isSet = true -} - -func (v NullableParams) IsSet() bool { - return v.isSet -} - -func (v *NullableParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableParams(val *Params) *NullableParams { - return &NullableParams{value: val, isSet: true} -} - -func (v NullableParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_personalization.go b/clients/algoliasearch-client-go/algolia/search/model_personalization.go index 1d752f71b7..4d380e8b4d 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_personalization.go +++ b/clients/algoliasearch-client-go/algolia/search/model_personalization.go @@ -178,39 +178,3 @@ func (o Personalization) String() string { out += fmt.Sprintf(" score=%v\n", o.Score) return fmt.Sprintf("Personalization {\n%s}", out) } - -type NullablePersonalization struct { - value *Personalization - isSet bool -} - -func (v NullablePersonalization) Get() *Personalization { - return v.value -} - -func (v *NullablePersonalization) Set(val *Personalization) { - v.value = val - v.isSet = true -} - -func (v NullablePersonalization) IsSet() bool { - return v.isSet -} - -func (v *NullablePersonalization) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePersonalization(val *Personalization) *NullablePersonalization { - return &NullablePersonalization{value: val, isSet: true} -} - -func (v NullablePersonalization) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePersonalization) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_promote.go b/clients/algoliasearch-client-go/algolia/search/model_promote.go index 447685b74c..ac4807ee68 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_promote.go +++ b/clients/algoliasearch-client-go/algolia/search/model_promote.go @@ -94,39 +94,3 @@ func (obj Promote) GetActualInstance() any { // all schemas are nil return nil } - -type NullablePromote struct { - value *Promote - isSet bool -} - -func (v NullablePromote) Get() *Promote { - return v.value -} - -func (v *NullablePromote) Set(val *Promote) { - v.value = val - v.isSet = true -} - -func (v NullablePromote) IsSet() bool { - return v.isSet -} - -func (v *NullablePromote) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePromote(val *Promote) *NullablePromote { - return &NullablePromote{value: val, isSet: true} -} - -func (v NullablePromote) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePromote) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_promote_object_id.go b/clients/algoliasearch-client-go/algolia/search/model_promote_object_id.go index e208a1c214..e540977cf5 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_promote_object_id.go +++ b/clients/algoliasearch-client-go/algolia/search/model_promote_object_id.go @@ -102,39 +102,3 @@ func (o PromoteObjectID) String() string { out += fmt.Sprintf(" position=%v\n", o.Position) return fmt.Sprintf("PromoteObjectID {\n%s}", out) } - -type NullablePromoteObjectID struct { - value *PromoteObjectID - isSet bool -} - -func (v NullablePromoteObjectID) Get() *PromoteObjectID { - return v.value -} - -func (v *NullablePromoteObjectID) Set(val *PromoteObjectID) { - v.value = val - v.isSet = true -} - -func (v NullablePromoteObjectID) IsSet() bool { - return v.isSet -} - -func (v *NullablePromoteObjectID) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePromoteObjectID(val *PromoteObjectID) *NullablePromoteObjectID { - return &NullablePromoteObjectID{value: val, isSet: true} -} - -func (v NullablePromoteObjectID) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePromoteObjectID) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_promote_object_ids.go b/clients/algoliasearch-client-go/algolia/search/model_promote_object_ids.go index 8aeca8a467..c159b99060 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_promote_object_ids.go +++ b/clients/algoliasearch-client-go/algolia/search/model_promote_object_ids.go @@ -102,39 +102,3 @@ func (o PromoteObjectIDs) String() string { out += fmt.Sprintf(" position=%v\n", o.Position) return fmt.Sprintf("PromoteObjectIDs {\n%s}", out) } - -type NullablePromoteObjectIDs struct { - value *PromoteObjectIDs - isSet bool -} - -func (v NullablePromoteObjectIDs) Get() *PromoteObjectIDs { - return v.value -} - -func (v *NullablePromoteObjectIDs) Set(val *PromoteObjectIDs) { - v.value = val - v.isSet = true -} - -func (v NullablePromoteObjectIDs) IsSet() bool { - return v.isSet -} - -func (v *NullablePromoteObjectIDs) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePromoteObjectIDs(val *PromoteObjectIDs) *NullablePromoteObjectIDs { - return &NullablePromoteObjectIDs{value: val, isSet: true} -} - -func (v NullablePromoteObjectIDs) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullablePromoteObjectIDs) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_query_type.go b/clients/algoliasearch-client-go/algolia/search/model_query_type.go index 90723b4006..298fe3b4e4 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_query_type.go +++ b/clients/algoliasearch-client-go/algolia/search/model_query_type.go @@ -65,39 +65,3 @@ func (v QueryType) IsValid() bool { func (v QueryType) Ptr() *QueryType { return &v } - -type NullableQueryType struct { - value *QueryType - isSet bool -} - -func (v NullableQueryType) Get() *QueryType { - return v.value -} - -func (v *NullableQueryType) Set(val *QueryType) { - v.value = val - v.isSet = true -} - -func (v NullableQueryType) IsSet() bool { - return v.isSet -} - -func (v *NullableQueryType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableQueryType(val *QueryType) *NullableQueryType { - return &NullableQueryType{value: val, isSet: true} -} - -func (v NullableQueryType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableQueryType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_ranking_info.go b/clients/algoliasearch-client-go/algolia/search/model_ranking_info.go index 2d7d5c3d3c..3664a6797a 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_ranking_info.go +++ b/clients/algoliasearch-client-go/algolia/search/model_ranking_info.go @@ -561,39 +561,3 @@ func (o RankingInfo) String() string { out += fmt.Sprintf(" promotedByReRanking=%v\n", o.PromotedByReRanking) return fmt.Sprintf("RankingInfo {\n%s}", out) } - -type NullableRankingInfo struct { - value *RankingInfo - isSet bool -} - -func (v NullableRankingInfo) Get() *RankingInfo { - return v.value -} - -func (v *NullableRankingInfo) Set(val *RankingInfo) { - v.value = val - v.isSet = true -} - -func (v NullableRankingInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableRankingInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRankingInfo(val *RankingInfo) *NullableRankingInfo { - return &NullableRankingInfo{value: val, isSet: true} -} - -func (v NullableRankingInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRankingInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_re_ranking_apply_filter.go b/clients/algoliasearch-client-go/algolia/search/model_re_ranking_apply_filter.go index 152eb05e92..fb44a06e96 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_re_ranking_apply_filter.go +++ b/clients/algoliasearch-client-go/algolia/search/model_re_ranking_apply_filter.go @@ -94,39 +94,3 @@ func (obj ReRankingApplyFilter) GetActualInstance() any { // all schemas are nil return nil } - -type NullableReRankingApplyFilter struct { - value *ReRankingApplyFilter - isSet bool -} - -func (v NullableReRankingApplyFilter) Get() *ReRankingApplyFilter { - return v.value -} - -func (v *NullableReRankingApplyFilter) Set(val *ReRankingApplyFilter) { - v.value = val - v.isSet = true -} - -func (v NullableReRankingApplyFilter) IsSet() bool { - return v.isSet -} - -func (v *NullableReRankingApplyFilter) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableReRankingApplyFilter(val *ReRankingApplyFilter) *NullableReRankingApplyFilter { - return &NullableReRankingApplyFilter{value: val, isSet: true} -} - -func (v NullableReRankingApplyFilter) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableReRankingApplyFilter) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_redirect.go b/clients/algoliasearch-client-go/algolia/search/model_redirect.go index e4d00bf826..23d8938eda 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_redirect.go +++ b/clients/algoliasearch-client-go/algolia/search/model_redirect.go @@ -87,39 +87,3 @@ func (o Redirect) String() string { out += fmt.Sprintf(" index=%v\n", o.Index) return fmt.Sprintf("Redirect {\n%s}", out) } - -type NullableRedirect struct { - value *Redirect - isSet bool -} - -func (v NullableRedirect) Get() *Redirect { - return v.value -} - -func (v *NullableRedirect) Set(val *Redirect) { - v.value = val - v.isSet = true -} - -func (v NullableRedirect) IsSet() bool { - return v.isSet -} - -func (v *NullableRedirect) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRedirect(val *Redirect) *NullableRedirect { - return &NullableRedirect{value: val, isSet: true} -} - -func (v NullableRedirect) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRedirect) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata.go b/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata.go index 5fdf073935..9b79ead396 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata.go +++ b/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata.go @@ -197,39 +197,3 @@ func (o RedirectRuleIndexMetadata) String() string { out += fmt.Sprintf(" data=%v\n", o.Data) return fmt.Sprintf("RedirectRuleIndexMetadata {\n%s}", out) } - -type NullableRedirectRuleIndexMetadata struct { - value *RedirectRuleIndexMetadata - isSet bool -} - -func (v NullableRedirectRuleIndexMetadata) Get() *RedirectRuleIndexMetadata { - return v.value -} - -func (v *NullableRedirectRuleIndexMetadata) Set(val *RedirectRuleIndexMetadata) { - v.value = val - v.isSet = true -} - -func (v NullableRedirectRuleIndexMetadata) IsSet() bool { - return v.isSet -} - -func (v *NullableRedirectRuleIndexMetadata) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRedirectRuleIndexMetadata(val *RedirectRuleIndexMetadata) *NullableRedirectRuleIndexMetadata { - return &NullableRedirectRuleIndexMetadata{value: val, isSet: true} -} - -func (v NullableRedirectRuleIndexMetadata) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRedirectRuleIndexMetadata) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata_data.go b/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata_data.go index 4b33733c47..8f31322ac6 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata_data.go +++ b/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata_data.go @@ -69,39 +69,3 @@ func (o RedirectRuleIndexMetadataData) String() string { out += fmt.Sprintf(" ruleObjectID=%v\n", o.RuleObjectID) return fmt.Sprintf("RedirectRuleIndexMetadataData {\n%s}", out) } - -type NullableRedirectRuleIndexMetadataData struct { - value *RedirectRuleIndexMetadataData - isSet bool -} - -func (v NullableRedirectRuleIndexMetadataData) Get() *RedirectRuleIndexMetadataData { - return v.value -} - -func (v *NullableRedirectRuleIndexMetadataData) Set(val *RedirectRuleIndexMetadataData) { - v.value = val - v.isSet = true -} - -func (v NullableRedirectRuleIndexMetadataData) IsSet() bool { - return v.isSet -} - -func (v *NullableRedirectRuleIndexMetadataData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRedirectRuleIndexMetadataData(val *RedirectRuleIndexMetadataData) *NullableRedirectRuleIndexMetadataData { - return &NullableRedirectRuleIndexMetadataData{value: val, isSet: true} -} - -func (v NullableRedirectRuleIndexMetadataData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRedirectRuleIndexMetadataData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_remove_stop_words.go b/clients/algoliasearch-client-go/algolia/search/model_remove_stop_words.go index 957f4900ed..059147bff4 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_remove_stop_words.go +++ b/clients/algoliasearch-client-go/algolia/search/model_remove_stop_words.go @@ -94,39 +94,3 @@ func (obj RemoveStopWords) GetActualInstance() any { // all schemas are nil return nil } - -type NullableRemoveStopWords struct { - value *RemoveStopWords - isSet bool -} - -func (v NullableRemoveStopWords) Get() *RemoveStopWords { - return v.value -} - -func (v *NullableRemoveStopWords) Set(val *RemoveStopWords) { - v.value = val - v.isSet = true -} - -func (v NullableRemoveStopWords) IsSet() bool { - return v.isSet -} - -func (v *NullableRemoveStopWords) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRemoveStopWords(val *RemoveStopWords) *NullableRemoveStopWords { - return &NullableRemoveStopWords{value: val, isSet: true} -} - -func (v NullableRemoveStopWords) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRemoveStopWords) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_remove_user_id_response.go b/clients/algoliasearch-client-go/algolia/search/model_remove_user_id_response.go index 73c149746d..1d0455d0b0 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_remove_user_id_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_remove_user_id_response.go @@ -70,39 +70,3 @@ func (o RemoveUserIdResponse) String() string { out += fmt.Sprintf(" deletedAt=%v\n", o.DeletedAt) return fmt.Sprintf("RemoveUserIdResponse {\n%s}", out) } - -type NullableRemoveUserIdResponse struct { - value *RemoveUserIdResponse - isSet bool -} - -func (v NullableRemoveUserIdResponse) Get() *RemoveUserIdResponse { - return v.value -} - -func (v *NullableRemoveUserIdResponse) Set(val *RemoveUserIdResponse) { - v.value = val - v.isSet = true -} - -func (v NullableRemoveUserIdResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableRemoveUserIdResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRemoveUserIdResponse(val *RemoveUserIdResponse) *NullableRemoveUserIdResponse { - return &NullableRemoveUserIdResponse{value: val, isSet: true} -} - -func (v NullableRemoveUserIdResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRemoveUserIdResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_remove_words_if_no_results.go b/clients/algoliasearch-client-go/algolia/search/model_remove_words_if_no_results.go index 297fd6e23e..6d4196747b 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_remove_words_if_no_results.go +++ b/clients/algoliasearch-client-go/algolia/search/model_remove_words_if_no_results.go @@ -67,39 +67,3 @@ func (v RemoveWordsIfNoResults) IsValid() bool { func (v RemoveWordsIfNoResults) Ptr() *RemoveWordsIfNoResults { return &v } - -type NullableRemoveWordsIfNoResults struct { - value *RemoveWordsIfNoResults - isSet bool -} - -func (v NullableRemoveWordsIfNoResults) Get() *RemoveWordsIfNoResults { - return v.value -} - -func (v *NullableRemoveWordsIfNoResults) Set(val *RemoveWordsIfNoResults) { - v.value = val - v.isSet = true -} - -func (v NullableRemoveWordsIfNoResults) IsSet() bool { - return v.isSet -} - -func (v *NullableRemoveWordsIfNoResults) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRemoveWordsIfNoResults(val *RemoveWordsIfNoResults) *NullableRemoveWordsIfNoResults { - return &NullableRemoveWordsIfNoResults{value: val, isSet: true} -} - -func (v NullableRemoveWordsIfNoResults) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRemoveWordsIfNoResults) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_rendering_content.go b/clients/algoliasearch-client-go/algolia/search/model_rendering_content.go index 6f9abe9231..e580c60584 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_rendering_content.go +++ b/clients/algoliasearch-client-go/algolia/search/model_rendering_content.go @@ -87,39 +87,3 @@ func (o RenderingContent) String() string { out += fmt.Sprintf(" facetOrdering=%v\n", o.FacetOrdering) return fmt.Sprintf("RenderingContent {\n%s}", out) } - -type NullableRenderingContent struct { - value *RenderingContent - isSet bool -} - -func (v NullableRenderingContent) Get() *RenderingContent { - return v.value -} - -func (v *NullableRenderingContent) Set(val *RenderingContent) { - v.value = val - v.isSet = true -} - -func (v NullableRenderingContent) IsSet() bool { - return v.isSet -} - -func (v *NullableRenderingContent) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRenderingContent(val *RenderingContent) *NullableRenderingContent { - return &NullableRenderingContent{value: val, isSet: true} -} - -func (v NullableRenderingContent) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRenderingContent) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_replace_all_objects_response.go b/clients/algoliasearch-client-go/algolia/search/model_replace_all_objects_response.go index 089cca5c58..b19b2ef100 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_replace_all_objects_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_replace_all_objects_response.go @@ -132,39 +132,3 @@ func (o ReplaceAllObjectsResponse) String() string { out += fmt.Sprintf(" moveOperationResponse=%v\n", o.MoveOperationResponse) return fmt.Sprintf("ReplaceAllObjectsResponse {\n%s}", out) } - -type NullableReplaceAllObjectsResponse struct { - value *ReplaceAllObjectsResponse - isSet bool -} - -func (v NullableReplaceAllObjectsResponse) Get() *ReplaceAllObjectsResponse { - return v.value -} - -func (v *NullableReplaceAllObjectsResponse) Set(val *ReplaceAllObjectsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableReplaceAllObjectsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableReplaceAllObjectsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableReplaceAllObjectsResponse(val *ReplaceAllObjectsResponse) *NullableReplaceAllObjectsResponse { - return &NullableReplaceAllObjectsResponse{value: val, isSet: true} -} - -func (v NullableReplaceAllObjectsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableReplaceAllObjectsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_replace_source_response.go b/clients/algoliasearch-client-go/algolia/search/model_replace_source_response.go index 0185764f8a..715119c1ea 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_replace_source_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_replace_source_response.go @@ -70,39 +70,3 @@ func (o ReplaceSourceResponse) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("ReplaceSourceResponse {\n%s}", out) } - -type NullableReplaceSourceResponse struct { - value *ReplaceSourceResponse - isSet bool -} - -func (v NullableReplaceSourceResponse) Get() *ReplaceSourceResponse { - return v.value -} - -func (v *NullableReplaceSourceResponse) Set(val *ReplaceSourceResponse) { - v.value = val - v.isSet = true -} - -func (v NullableReplaceSourceResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableReplaceSourceResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableReplaceSourceResponse(val *ReplaceSourceResponse) *NullableReplaceSourceResponse { - return &NullableReplaceSourceResponse{value: val, isSet: true} -} - -func (v NullableReplaceSourceResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableReplaceSourceResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_rule.go b/clients/algoliasearch-client-go/algolia/search/model_rule.go index c36c8fc137..26dd3d0351 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_rule.go +++ b/clients/algoliasearch-client-go/algolia/search/model_rule.go @@ -299,39 +299,3 @@ func (o Rule) String() string { out += fmt.Sprintf(" validity=%v\n", o.Validity) return fmt.Sprintf("Rule {\n%s}", out) } - -type NullableRule struct { - value *Rule - isSet bool -} - -func (v NullableRule) Get() *Rule { - return v.value -} - -func (v *NullableRule) Set(val *Rule) { - v.value = val - v.isSet = true -} - -func (v NullableRule) IsSet() bool { - return v.isSet -} - -func (v *NullableRule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRule(val *Rule) *NullableRule { - return &NullableRule{value: val, isSet: true} -} - -func (v NullableRule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableRule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_save_object_response.go b/clients/algoliasearch-client-go/algolia/search/model_save_object_response.go index 04ee970daf..5e5b2a6735 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_save_object_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_save_object_response.go @@ -152,39 +152,3 @@ func (o SaveObjectResponse) String() string { out += fmt.Sprintf(" objectID=%v\n", o.ObjectID) return fmt.Sprintf("SaveObjectResponse {\n%s}", out) } - -type NullableSaveObjectResponse struct { - value *SaveObjectResponse - isSet bool -} - -func (v NullableSaveObjectResponse) Get() *SaveObjectResponse { - return v.value -} - -func (v *NullableSaveObjectResponse) Set(val *SaveObjectResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSaveObjectResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSaveObjectResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSaveObjectResponse(val *SaveObjectResponse) *NullableSaveObjectResponse { - return &NullableSaveObjectResponse{value: val, isSet: true} -} - -func (v NullableSaveObjectResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSaveObjectResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_save_synonym_response.go b/clients/algoliasearch-client-go/algolia/search/model_save_synonym_response.go index 6d1aca2e98..d3381d8e7f 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_save_synonym_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_save_synonym_response.go @@ -134,39 +134,3 @@ func (o SaveSynonymResponse) String() string { out += fmt.Sprintf(" id=%v\n", o.Id) return fmt.Sprintf("SaveSynonymResponse {\n%s}", out) } - -type NullableSaveSynonymResponse struct { - value *SaveSynonymResponse - isSet bool -} - -func (v NullableSaveSynonymResponse) Get() *SaveSynonymResponse { - return v.value -} - -func (v *NullableSaveSynonymResponse) Set(val *SaveSynonymResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSaveSynonymResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSaveSynonymResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSaveSynonymResponse(val *SaveSynonymResponse) *NullableSaveSynonymResponse { - return &NullableSaveSynonymResponse{value: val, isSet: true} -} - -func (v NullableSaveSynonymResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSaveSynonymResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_scope_type.go b/clients/algoliasearch-client-go/algolia/search/model_scope_type.go index 3ebce68161..2083d893dd 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_scope_type.go +++ b/clients/algoliasearch-client-go/algolia/search/model_scope_type.go @@ -65,39 +65,3 @@ func (v ScopeType) IsValid() bool { func (v ScopeType) Ptr() *ScopeType { return &v } - -type NullableScopeType struct { - value *ScopeType - isSet bool -} - -func (v NullableScopeType) Get() *ScopeType { - return v.value -} - -func (v *NullableScopeType) Set(val *ScopeType) { - v.value = val - v.isSet = true -} - -func (v NullableScopeType) IsSet() bool { - return v.isSet -} - -func (v *NullableScopeType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableScopeType(val *ScopeType) *NullableScopeType { - return &NullableScopeType{value: val, isSet: true} -} - -func (v NullableScopeType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableScopeType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_dictionary_entries_params.go b/clients/algoliasearch-client-go/algolia/search/model_search_dictionary_entries_params.go index 9e385b4a93..0b2b56de1c 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_dictionary_entries_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_dictionary_entries_params.go @@ -209,39 +209,3 @@ func (o SearchDictionaryEntriesParams) String() string { out += fmt.Sprintf(" language=%v\n", o.Language) return fmt.Sprintf("SearchDictionaryEntriesParams {\n%s}", out) } - -type NullableSearchDictionaryEntriesParams struct { - value *SearchDictionaryEntriesParams - isSet bool -} - -func (v NullableSearchDictionaryEntriesParams) Get() *SearchDictionaryEntriesParams { - return v.value -} - -func (v *NullableSearchDictionaryEntriesParams) Set(val *SearchDictionaryEntriesParams) { - v.value = val - v.isSet = true -} - -func (v NullableSearchDictionaryEntriesParams) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchDictionaryEntriesParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchDictionaryEntriesParams(val *SearchDictionaryEntriesParams) *NullableSearchDictionaryEntriesParams { - return &NullableSearchDictionaryEntriesParams{value: val, isSet: true} -} - -func (v NullableSearchDictionaryEntriesParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchDictionaryEntriesParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_dictionary_entries_response.go b/clients/algoliasearch-client-go/algolia/search/model_search_dictionary_entries_response.go index aee9c05eb5..2fa8fa0673 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_dictionary_entries_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_dictionary_entries_response.go @@ -166,39 +166,3 @@ func (o SearchDictionaryEntriesResponse) String() string { out += fmt.Sprintf(" nbPages=%v\n", o.NbPages) return fmt.Sprintf("SearchDictionaryEntriesResponse {\n%s}", out) } - -type NullableSearchDictionaryEntriesResponse struct { - value *SearchDictionaryEntriesResponse - isSet bool -} - -func (v NullableSearchDictionaryEntriesResponse) Get() *SearchDictionaryEntriesResponse { - return v.value -} - -func (v *NullableSearchDictionaryEntriesResponse) Set(val *SearchDictionaryEntriesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSearchDictionaryEntriesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchDictionaryEntriesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchDictionaryEntriesResponse(val *SearchDictionaryEntriesResponse) *NullableSearchDictionaryEntriesResponse { - return &NullableSearchDictionaryEntriesResponse{value: val, isSet: true} -} - -func (v NullableSearchDictionaryEntriesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchDictionaryEntriesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_for_facet_values_request.go b/clients/algoliasearch-client-go/algolia/search/model_search_for_facet_values_request.go index 073d5504f8..c04aa54017 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_for_facet_values_request.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_for_facet_values_request.go @@ -178,39 +178,3 @@ func (o SearchForFacetValuesRequest) String() string { out += fmt.Sprintf(" maxFacetHits=%v\n", o.MaxFacetHits) return fmt.Sprintf("SearchForFacetValuesRequest {\n%s}", out) } - -type NullableSearchForFacetValuesRequest struct { - value *SearchForFacetValuesRequest - isSet bool -} - -func (v NullableSearchForFacetValuesRequest) Get() *SearchForFacetValuesRequest { - return v.value -} - -func (v *NullableSearchForFacetValuesRequest) Set(val *SearchForFacetValuesRequest) { - v.value = val - v.isSet = true -} - -func (v NullableSearchForFacetValuesRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchForFacetValuesRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchForFacetValuesRequest(val *SearchForFacetValuesRequest) *NullableSearchForFacetValuesRequest { - return &NullableSearchForFacetValuesRequest{value: val, isSet: true} -} - -func (v NullableSearchForFacetValuesRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchForFacetValuesRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_for_facet_values_response.go b/clients/algoliasearch-client-go/algolia/search/model_search_for_facet_values_response.go index 86d5d310b7..c74aa099fe 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_for_facet_values_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_for_facet_values_response.go @@ -152,39 +152,3 @@ func (o SearchForFacetValuesResponse) String() string { out += fmt.Sprintf(" processingTimeMS=%v\n", o.ProcessingTimeMS) return fmt.Sprintf("SearchForFacetValuesResponse {\n%s}", out) } - -type NullableSearchForFacetValuesResponse struct { - value *SearchForFacetValuesResponse - isSet bool -} - -func (v NullableSearchForFacetValuesResponse) Get() *SearchForFacetValuesResponse { - return v.value -} - -func (v *NullableSearchForFacetValuesResponse) Set(val *SearchForFacetValuesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSearchForFacetValuesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchForFacetValuesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchForFacetValuesResponse(val *SearchForFacetValuesResponse) *NullableSearchForFacetValuesResponse { - return &NullableSearchForFacetValuesResponse{value: val, isSet: true} -} - -func (v NullableSearchForFacetValuesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchForFacetValuesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_for_facets.go b/clients/algoliasearch-client-go/algolia/search/model_search_for_facets.go index de9fc3d578..ee04ad6cf8 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_for_facets.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_for_facets.go @@ -4,6 +4,8 @@ package search import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // SearchForFacets struct for SearchForFacets. @@ -143,8 +145,8 @@ type SearchForFacets struct { AttributeCriteriaComputedByMinProximity *bool `json:"attributeCriteriaComputedByMinProximity,omitempty"` RenderingContent *RenderingContent `json:"renderingContent,omitempty"` // Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. - EnableReRanking *bool `json:"enableReRanking,omitempty"` - ReRankingApplyFilter NullableReRankingApplyFilter `json:"reRankingApplyFilter,omitempty"` + EnableReRanking *bool `json:"enableReRanking,omitempty"` + ReRankingApplyFilter utils.Nullable[ReRankingApplyFilter] `json:"reRankingApplyFilter,omitempty"` // Facet name. Facet string `json:"facet"` // Index name (case-sensitive). @@ -612,7 +614,7 @@ func WithSearchForFacetsEnableReRanking(val bool) SearchForFacetsOption { } } -func WithSearchForFacetsReRankingApplyFilter(val NullableReRankingApplyFilter) SearchForFacetsOption { +func WithSearchForFacetsReRankingApplyFilter(val utils.Nullable[ReRankingApplyFilter]) SearchForFacetsOption { return func(f *SearchForFacets) { f.ReRankingApplyFilter = val } @@ -3180,7 +3182,7 @@ func (o *SearchForFacets) HasReRankingApplyFilter() bool { return false } -// SetReRankingApplyFilter gets a reference to the given NullableReRankingApplyFilter and assigns it to the ReRankingApplyFilter field. +// SetReRankingApplyFilter gets a reference to the given utils.Nullable[ReRankingApplyFilter] and assigns it to the ReRankingApplyFilter field. func (o *SearchForFacets) SetReRankingApplyFilter(v *ReRankingApplyFilter) *SearchForFacets { o.ReRankingApplyFilter.Set(v) return o @@ -3642,39 +3644,3 @@ func (o SearchForFacets) String() string { out += fmt.Sprintf(" type=%v\n", o.Type) return fmt.Sprintf("SearchForFacets {\n%s}", out) } - -type NullableSearchForFacets struct { - value *SearchForFacets - isSet bool -} - -func (v NullableSearchForFacets) Get() *SearchForFacets { - return v.value -} - -func (v *NullableSearchForFacets) Set(val *SearchForFacets) { - v.value = val - v.isSet = true -} - -func (v NullableSearchForFacets) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchForFacets) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchForFacets(val *SearchForFacets) *NullableSearchForFacets { - return &NullableSearchForFacets{value: val, isSet: true} -} - -func (v NullableSearchForFacets) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchForFacets) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_for_facets_options.go b/clients/algoliasearch-client-go/algolia/search/model_search_for_facets_options.go index b8a1fafb40..9f1ae86984 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_for_facets_options.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_for_facets_options.go @@ -228,39 +228,3 @@ func (o SearchForFacetsOptions) String() string { out += fmt.Sprintf(" type=%v\n", o.Type) return fmt.Sprintf("SearchForFacetsOptions {\n%s}", out) } - -type NullableSearchForFacetsOptions struct { - value *SearchForFacetsOptions - isSet bool -} - -func (v NullableSearchForFacetsOptions) Get() *SearchForFacetsOptions { - return v.value -} - -func (v *NullableSearchForFacetsOptions) Set(val *SearchForFacetsOptions) { - v.value = val - v.isSet = true -} - -func (v NullableSearchForFacetsOptions) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchForFacetsOptions) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchForFacetsOptions(val *SearchForFacetsOptions) *NullableSearchForFacetsOptions { - return &NullableSearchForFacetsOptions{value: val, isSet: true} -} - -func (v NullableSearchForFacetsOptions) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchForFacetsOptions) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_for_hits.go b/clients/algoliasearch-client-go/algolia/search/model_search_for_hits.go index f137b47bdd..b79553a27c 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_for_hits.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_for_hits.go @@ -4,6 +4,8 @@ package search import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // SearchForHits struct for SearchForHits. @@ -143,8 +145,8 @@ type SearchForHits struct { AttributeCriteriaComputedByMinProximity *bool `json:"attributeCriteriaComputedByMinProximity,omitempty"` RenderingContent *RenderingContent `json:"renderingContent,omitempty"` // Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. - EnableReRanking *bool `json:"enableReRanking,omitempty"` - ReRankingApplyFilter NullableReRankingApplyFilter `json:"reRankingApplyFilter,omitempty"` + EnableReRanking *bool `json:"enableReRanking,omitempty"` + ReRankingApplyFilter utils.Nullable[ReRankingApplyFilter] `json:"reRankingApplyFilter,omitempty"` // Index name (case-sensitive). IndexName string `json:"indexName"` Type *SearchTypeDefault `json:"type,omitempty"` @@ -608,7 +610,7 @@ func WithSearchForHitsEnableReRanking(val bool) SearchForHitsOption { } } -func WithSearchForHitsReRankingApplyFilter(val NullableReRankingApplyFilter) SearchForHitsOption { +func WithSearchForHitsReRankingApplyFilter(val utils.Nullable[ReRankingApplyFilter]) SearchForHitsOption { return func(f *SearchForHits) { f.ReRankingApplyFilter = val } @@ -3174,7 +3176,7 @@ func (o *SearchForHits) HasReRankingApplyFilter() bool { return false } -// SetReRankingApplyFilter gets a reference to the given NullableReRankingApplyFilter and assigns it to the ReRankingApplyFilter field. +// SetReRankingApplyFilter gets a reference to the given utils.Nullable[ReRankingApplyFilter] and assigns it to the ReRankingApplyFilter field. func (o *SearchForHits) SetReRankingApplyFilter(v *ReRankingApplyFilter) *SearchForHits { o.ReRankingApplyFilter.Set(v) return o @@ -3578,39 +3580,3 @@ func (o SearchForHits) String() string { out += fmt.Sprintf(" type=%v\n", o.Type) return fmt.Sprintf("SearchForHits {\n%s}", out) } - -type NullableSearchForHits struct { - value *SearchForHits - isSet bool -} - -func (v NullableSearchForHits) Get() *SearchForHits { - return v.value -} - -func (v *NullableSearchForHits) Set(val *SearchForHits) { - v.value = val - v.isSet = true -} - -func (v NullableSearchForHits) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchForHits) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchForHits(val *SearchForHits) *NullableSearchForHits { - return &NullableSearchForHits{value: val, isSet: true} -} - -func (v NullableSearchForHits) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchForHits) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_for_hits_options.go b/clients/algoliasearch-client-go/algolia/search/model_search_for_hits_options.go index b6f2059d47..36e84fa362 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_for_hits_options.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_for_hits_options.go @@ -119,39 +119,3 @@ func (o SearchForHitsOptions) String() string { out += fmt.Sprintf(" type=%v\n", o.Type) return fmt.Sprintf("SearchForHitsOptions {\n%s}", out) } - -type NullableSearchForHitsOptions struct { - value *SearchForHitsOptions - isSet bool -} - -func (v NullableSearchForHitsOptions) Get() *SearchForHitsOptions { - return v.value -} - -func (v *NullableSearchForHitsOptions) Set(val *SearchForHitsOptions) { - v.value = val - v.isSet = true -} - -func (v NullableSearchForHitsOptions) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchForHitsOptions) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchForHitsOptions(val *SearchForHitsOptions) *NullableSearchForHitsOptions { - return &NullableSearchForHitsOptions{value: val, isSet: true} -} - -func (v NullableSearchForHitsOptions) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchForHitsOptions) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_hits.go b/clients/algoliasearch-client-go/algolia/search/model_search_hits.go index 6178fc3ffd..d09fa011e4 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_hits.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_hits.go @@ -180,39 +180,3 @@ func (o SearchHits) String() string { } return fmt.Sprintf("SearchHits {\n%s}", out) } - -type NullableSearchHits struct { - value *SearchHits - isSet bool -} - -func (v NullableSearchHits) Get() *SearchHits { - return v.value -} - -func (v *NullableSearchHits) Set(val *SearchHits) { - v.value = val - v.isSet = true -} - -func (v NullableSearchHits) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchHits) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchHits(val *SearchHits) *NullableSearchHits { - return &NullableSearchHits{value: val, isSet: true} -} - -func (v NullableSearchHits) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchHits) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_method_params.go b/clients/algoliasearch-client-go/algolia/search/model_search_method_params.go index e9afd92f57..e6d4edc2dd 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_method_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_method_params.go @@ -118,39 +118,3 @@ func (o SearchMethodParams) String() string { out += fmt.Sprintf(" strategy=%v\n", o.Strategy) return fmt.Sprintf("SearchMethodParams {\n%s}", out) } - -type NullableSearchMethodParams struct { - value *SearchMethodParams - isSet bool -} - -func (v NullableSearchMethodParams) Get() *SearchMethodParams { - return v.value -} - -func (v *NullableSearchMethodParams) Set(val *SearchMethodParams) { - v.value = val - v.isSet = true -} - -func (v NullableSearchMethodParams) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchMethodParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchMethodParams(val *SearchMethodParams) *NullableSearchMethodParams { - return &NullableSearchMethodParams{value: val, isSet: true} -} - -func (v NullableSearchMethodParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchMethodParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_params.go b/clients/algoliasearch-client-go/algolia/search/model_search_params.go index c7227f29b2..57bce7faa7 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_params.go @@ -116,39 +116,3 @@ func (obj SearchParams) GetActualInstance() any { // all schemas are nil return nil } - -type NullableSearchParams struct { - value *SearchParams - isSet bool -} - -func (v NullableSearchParams) Get() *SearchParams { - return v.value -} - -func (v *NullableSearchParams) Set(val *SearchParams) { - v.value = val - v.isSet = true -} - -func (v NullableSearchParams) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchParams(val *SearchParams) *NullableSearchParams { - return &NullableSearchParams{value: val, isSet: true} -} - -func (v NullableSearchParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_params_object.go b/clients/algoliasearch-client-go/algolia/search/model_search_params_object.go index 5d2b8f9e4b..895a0029b4 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_params_object.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_params_object.go @@ -4,6 +4,8 @@ package search import ( "encoding/json" "fmt" + + "github.com/algolia/algoliasearch-client-go/v4/algolia/utils" ) // SearchParamsObject Each parameter value, including the `query` must not be larger than 512 bytes. @@ -141,8 +143,8 @@ type SearchParamsObject struct { AttributeCriteriaComputedByMinProximity *bool `json:"attributeCriteriaComputedByMinProximity,omitempty"` RenderingContent *RenderingContent `json:"renderingContent,omitempty"` // Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. - EnableReRanking *bool `json:"enableReRanking,omitempty"` - ReRankingApplyFilter NullableReRankingApplyFilter `json:"reRankingApplyFilter,omitempty"` + EnableReRanking *bool `json:"enableReRanking,omitempty"` + ReRankingApplyFilter utils.Nullable[ReRankingApplyFilter] `json:"reRankingApplyFilter,omitempty"` } type SearchParamsObjectOption func(f *SearchParamsObject) @@ -597,7 +599,7 @@ func WithSearchParamsObjectEnableReRanking(val bool) SearchParamsObjectOption { } } -func WithSearchParamsObjectReRankingApplyFilter(val NullableReRankingApplyFilter) SearchParamsObjectOption { +func WithSearchParamsObjectReRankingApplyFilter(val utils.Nullable[ReRankingApplyFilter]) SearchParamsObjectOption { return func(f *SearchParamsObject) { f.ReRankingApplyFilter = val } @@ -3123,7 +3125,7 @@ func (o *SearchParamsObject) HasReRankingApplyFilter() bool { return false } -// SetReRankingApplyFilter gets a reference to the given NullableReRankingApplyFilter and assigns it to the ReRankingApplyFilter field. +// SetReRankingApplyFilter gets a reference to the given utils.Nullable[ReRankingApplyFilter] and assigns it to the ReRankingApplyFilter field. func (o *SearchParamsObject) SetReRankingApplyFilter(v *ReRankingApplyFilter) *SearchParamsObject { o.ReRankingApplyFilter.Set(v) return o @@ -3457,39 +3459,3 @@ func (o SearchParamsObject) String() string { out += fmt.Sprintf(" reRankingApplyFilter=%v\n", o.ReRankingApplyFilter) return fmt.Sprintf("SearchParamsObject {\n%s}", out) } - -type NullableSearchParamsObject struct { - value *SearchParamsObject - isSet bool -} - -func (v NullableSearchParamsObject) Get() *SearchParamsObject { - return v.value -} - -func (v *NullableSearchParamsObject) Set(val *SearchParamsObject) { - v.value = val - v.isSet = true -} - -func (v NullableSearchParamsObject) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchParamsObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchParamsObject(val *SearchParamsObject) *NullableSearchParamsObject { - return &NullableSearchParamsObject{value: val, isSet: true} -} - -func (v NullableSearchParamsObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchParamsObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_params_query.go b/clients/algoliasearch-client-go/algolia/search/model_search_params_query.go index feb95f1f2f..02b6a3ed65 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_params_query.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_params_query.go @@ -88,39 +88,3 @@ func (o SearchParamsQuery) String() string { out += fmt.Sprintf(" query=%v\n", o.Query) return fmt.Sprintf("SearchParamsQuery {\n%s}", out) } - -type NullableSearchParamsQuery struct { - value *SearchParamsQuery - isSet bool -} - -func (v NullableSearchParamsQuery) Get() *SearchParamsQuery { - return v.value -} - -func (v *NullableSearchParamsQuery) Set(val *SearchParamsQuery) { - v.value = val - v.isSet = true -} - -func (v NullableSearchParamsQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchParamsQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchParamsQuery(val *SearchParamsQuery) *NullableSearchParamsQuery { - return &NullableSearchParamsQuery{value: val, isSet: true} -} - -func (v NullableSearchParamsQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchParamsQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_params_string.go b/clients/algoliasearch-client-go/algolia/search/model_search_params_string.go index 0c5b4b9a51..0d560528f3 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_params_string.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_params_string.go @@ -88,39 +88,3 @@ func (o SearchParamsString) String() string { out += fmt.Sprintf(" params=%v\n", o.Params) return fmt.Sprintf("SearchParamsString {\n%s}", out) } - -type NullableSearchParamsString struct { - value *SearchParamsString - isSet bool -} - -func (v NullableSearchParamsString) Get() *SearchParamsString { - return v.value -} - -func (v *NullableSearchParamsString) Set(val *SearchParamsString) { - v.value = val - v.isSet = true -} - -func (v NullableSearchParamsString) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchParamsString) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchParamsString(val *SearchParamsString) *NullableSearchParamsString { - return &NullableSearchParamsString{value: val, isSet: true} -} - -func (v NullableSearchParamsString) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchParamsString) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_query.go b/clients/algoliasearch-client-go/algolia/search/model_search_query.go index 1d263dded5..7e0504a5b2 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_query.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_query.go @@ -125,39 +125,3 @@ func (obj SearchQuery) GetActualInstance() any { // all schemas are nil return nil } - -type NullableSearchQuery struct { - value *SearchQuery - isSet bool -} - -func (v NullableSearchQuery) Get() *SearchQuery { - return v.value -} - -func (v *NullableSearchQuery) Set(val *SearchQuery) { - v.value = val - v.isSet = true -} - -func (v NullableSearchQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchQuery(val *SearchQuery) *NullableSearchQuery { - return &NullableSearchQuery{value: val, isSet: true} -} - -func (v NullableSearchQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_response.go b/clients/algoliasearch-client-go/algolia/search/model_search_response.go index c2e3d21dff..3da1b5a75a 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_response.go @@ -1417,39 +1417,3 @@ func (o SearchResponse) String() string { } return fmt.Sprintf("SearchResponse {\n%s}", out) } - -type NullableSearchResponse struct { - value *SearchResponse - isSet bool -} - -func (v NullableSearchResponse) Get() *SearchResponse { - return v.value -} - -func (v *NullableSearchResponse) Set(val *SearchResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSearchResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchResponse(val *SearchResponse) *NullableSearchResponse { - return &NullableSearchResponse{value: val, isSet: true} -} - -func (v NullableSearchResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_responses.go b/clients/algoliasearch-client-go/algolia/search/model_search_responses.go index 45169fbdd5..53d932068f 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_responses.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_responses.go @@ -69,39 +69,3 @@ func (o SearchResponses) String() string { out += fmt.Sprintf(" results=%v\n", o.Results) return fmt.Sprintf("SearchResponses {\n%s}", out) } - -type NullableSearchResponses struct { - value *SearchResponses - isSet bool -} - -func (v NullableSearchResponses) Get() *SearchResponses { - return v.value -} - -func (v *NullableSearchResponses) Set(val *SearchResponses) { - v.value = val - v.isSet = true -} - -func (v NullableSearchResponses) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchResponses) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchResponses(val *SearchResponses) *NullableSearchResponses { - return &NullableSearchResponses{value: val, isSet: true} -} - -func (v NullableSearchResponses) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchResponses) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_result.go b/clients/algoliasearch-client-go/algolia/search/model_search_result.go index 731c189fd5..485cff7bcd 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_result.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_result.go @@ -116,39 +116,3 @@ func (obj SearchResult) GetActualInstance() any { // all schemas are nil return nil } - -type NullableSearchResult struct { - value *SearchResult - isSet bool -} - -func (v NullableSearchResult) Get() *SearchResult { - return v.value -} - -func (v *NullableSearchResult) Set(val *SearchResult) { - v.value = val - v.isSet = true -} - -func (v NullableSearchResult) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchResult(val *SearchResult) *NullableSearchResult { - return &NullableSearchResult{value: val, isSet: true} -} - -func (v NullableSearchResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_rules_params.go b/clients/algoliasearch-client-go/algolia/search/model_search_rules_params.go index 5210500ddb..7b6487beed 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_rules_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_rules_params.go @@ -20,7 +20,7 @@ type SearchRulesParams struct { // Maximum number of hits per page. HitsPerPage *int32 `json:"hitsPerPage,omitempty"` // If `true`, return only enabled rules. If `false`, return only inactive rules. By default, _all_ rules are returned. - Enabled utils.NullableBool `json:"enabled,omitempty"` + Enabled utils.Nullable[bool] `json:"enabled,omitempty"` } type SearchRulesParamsOption func(f *SearchRulesParams) @@ -55,7 +55,7 @@ func WithSearchRulesParamsHitsPerPage(val int32) SearchRulesParamsOption { } } -func WithSearchRulesParamsEnabled(val utils.NullableBool) SearchRulesParamsOption { +func WithSearchRulesParamsEnabled(val utils.Nullable[bool]) SearchRulesParamsOption { return func(f *SearchRulesParams) { f.Enabled = val } @@ -271,7 +271,7 @@ func (o *SearchRulesParams) HasEnabled() bool { return false } -// SetEnabled gets a reference to the given utils.NullableBool and assigns it to the Enabled field. +// SetEnabled gets a reference to the given utils.Nullable[bool] and assigns it to the Enabled field. func (o *SearchRulesParams) SetEnabled(v bool) *SearchRulesParams { o.Enabled.Set(&v) return o @@ -325,39 +325,3 @@ func (o SearchRulesParams) String() string { out += fmt.Sprintf(" enabled=%v\n", o.Enabled) return fmt.Sprintf("SearchRulesParams {\n%s}", out) } - -type NullableSearchRulesParams struct { - value *SearchRulesParams - isSet bool -} - -func (v NullableSearchRulesParams) Get() *SearchRulesParams { - return v.value -} - -func (v *NullableSearchRulesParams) Set(val *SearchRulesParams) { - v.value = val - v.isSet = true -} - -func (v NullableSearchRulesParams) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchRulesParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchRulesParams(val *SearchRulesParams) *NullableSearchRulesParams { - return &NullableSearchRulesParams{value: val, isSet: true} -} - -func (v NullableSearchRulesParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchRulesParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_rules_response.go b/clients/algoliasearch-client-go/algolia/search/model_search_rules_response.go index 8925dec064..0fc9d05406 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_rules_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_rules_response.go @@ -166,39 +166,3 @@ func (o SearchRulesResponse) String() string { out += fmt.Sprintf(" nbPages=%v\n", o.NbPages) return fmt.Sprintf("SearchRulesResponse {\n%s}", out) } - -type NullableSearchRulesResponse struct { - value *SearchRulesResponse - isSet bool -} - -func (v NullableSearchRulesResponse) Get() *SearchRulesResponse { - return v.value -} - -func (v *NullableSearchRulesResponse) Set(val *SearchRulesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSearchRulesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchRulesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchRulesResponse(val *SearchRulesResponse) *NullableSearchRulesResponse { - return &NullableSearchRulesResponse{value: val, isSet: true} -} - -func (v NullableSearchRulesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchRulesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_strategy.go b/clients/algoliasearch-client-go/algolia/search/model_search_strategy.go index 5d867fa48c..930d6f304a 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_strategy.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_strategy.go @@ -63,39 +63,3 @@ func (v SearchStrategy) IsValid() bool { func (v SearchStrategy) Ptr() *SearchStrategy { return &v } - -type NullableSearchStrategy struct { - value *SearchStrategy - isSet bool -} - -func (v NullableSearchStrategy) Get() *SearchStrategy { - return v.value -} - -func (v *NullableSearchStrategy) Set(val *SearchStrategy) { - v.value = val - v.isSet = true -} - -func (v NullableSearchStrategy) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchStrategy) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchStrategy(val *SearchStrategy) *NullableSearchStrategy { - return &NullableSearchStrategy{value: val, isSet: true} -} - -func (v NullableSearchStrategy) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchStrategy) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_synonyms_params.go b/clients/algoliasearch-client-go/algolia/search/model_search_synonyms_params.go index 11330015f2..e3728c9257 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_synonyms_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_synonyms_params.go @@ -222,39 +222,3 @@ func (o SearchSynonymsParams) String() string { out += fmt.Sprintf(" hitsPerPage=%v\n", o.HitsPerPage) return fmt.Sprintf("SearchSynonymsParams {\n%s}", out) } - -type NullableSearchSynonymsParams struct { - value *SearchSynonymsParams - isSet bool -} - -func (v NullableSearchSynonymsParams) Get() *SearchSynonymsParams { - return v.value -} - -func (v *NullableSearchSynonymsParams) Set(val *SearchSynonymsParams) { - v.value = val - v.isSet = true -} - -func (v NullableSearchSynonymsParams) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchSynonymsParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchSynonymsParams(val *SearchSynonymsParams) *NullableSearchSynonymsParams { - return &NullableSearchSynonymsParams{value: val, isSet: true} -} - -func (v NullableSearchSynonymsParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchSynonymsParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_synonyms_response.go b/clients/algoliasearch-client-go/algolia/search/model_search_synonyms_response.go index 16f13c65c1..9a0fe9fb00 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_synonyms_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_synonyms_response.go @@ -147,39 +147,3 @@ func (o SearchSynonymsResponse) String() string { } return fmt.Sprintf("SearchSynonymsResponse {\n%s}", out) } - -type NullableSearchSynonymsResponse struct { - value *SearchSynonymsResponse - isSet bool -} - -func (v NullableSearchSynonymsResponse) Get() *SearchSynonymsResponse { - return v.value -} - -func (v *NullableSearchSynonymsResponse) Set(val *SearchSynonymsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSearchSynonymsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchSynonymsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchSynonymsResponse(val *SearchSynonymsResponse) *NullableSearchSynonymsResponse { - return &NullableSearchSynonymsResponse{value: val, isSet: true} -} - -func (v NullableSearchSynonymsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchSynonymsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_type_default.go b/clients/algoliasearch-client-go/algolia/search/model_search_type_default.go index 60084b901f..8301a883ab 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_type_default.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_type_default.go @@ -61,39 +61,3 @@ func (v SearchTypeDefault) IsValid() bool { func (v SearchTypeDefault) Ptr() *SearchTypeDefault { return &v } - -type NullableSearchTypeDefault struct { - value *SearchTypeDefault - isSet bool -} - -func (v NullableSearchTypeDefault) Get() *SearchTypeDefault { - return v.value -} - -func (v *NullableSearchTypeDefault) Set(val *SearchTypeDefault) { - v.value = val - v.isSet = true -} - -func (v NullableSearchTypeDefault) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchTypeDefault) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchTypeDefault(val *SearchTypeDefault) *NullableSearchTypeDefault { - return &NullableSearchTypeDefault{value: val, isSet: true} -} - -func (v NullableSearchTypeDefault) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchTypeDefault) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_type_facet.go b/clients/algoliasearch-client-go/algolia/search/model_search_type_facet.go index 57ddf84997..cc594f17c5 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_type_facet.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_type_facet.go @@ -61,39 +61,3 @@ func (v SearchTypeFacet) IsValid() bool { func (v SearchTypeFacet) Ptr() *SearchTypeFacet { return &v } - -type NullableSearchTypeFacet struct { - value *SearchTypeFacet - isSet bool -} - -func (v NullableSearchTypeFacet) Get() *SearchTypeFacet { - return v.value -} - -func (v *NullableSearchTypeFacet) Set(val *SearchTypeFacet) { - v.value = val - v.isSet = true -} - -func (v NullableSearchTypeFacet) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchTypeFacet) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchTypeFacet(val *SearchTypeFacet) *NullableSearchTypeFacet { - return &NullableSearchTypeFacet{value: val, isSet: true} -} - -func (v NullableSearchTypeFacet) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchTypeFacet) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_user_ids_params.go b/clients/algoliasearch-client-go/algolia/search/model_search_user_ids_params.go index 51cc2225af..f2c04c0a07 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_user_ids_params.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_user_ids_params.go @@ -210,39 +210,3 @@ func (o SearchUserIdsParams) String() string { out += fmt.Sprintf(" hitsPerPage=%v\n", o.HitsPerPage) return fmt.Sprintf("SearchUserIdsParams {\n%s}", out) } - -type NullableSearchUserIdsParams struct { - value *SearchUserIdsParams - isSet bool -} - -func (v NullableSearchUserIdsParams) Get() *SearchUserIdsParams { - return v.value -} - -func (v *NullableSearchUserIdsParams) Set(val *SearchUserIdsParams) { - v.value = val - v.isSet = true -} - -func (v NullableSearchUserIdsParams) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchUserIdsParams) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchUserIdsParams(val *SearchUserIdsParams) *NullableSearchUserIdsParams { - return &NullableSearchUserIdsParams{value: val, isSet: true} -} - -func (v NullableSearchUserIdsParams) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchUserIdsParams) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_user_ids_response.go b/clients/algoliasearch-client-go/algolia/search/model_search_user_ids_response.go index f372522aac..f26ba3814c 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_search_user_ids_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_search_user_ids_response.go @@ -198,39 +198,3 @@ func (o SearchUserIdsResponse) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("SearchUserIdsResponse {\n%s}", out) } - -type NullableSearchUserIdsResponse struct { - value *SearchUserIdsResponse - isSet bool -} - -func (v NullableSearchUserIdsResponse) Get() *SearchUserIdsResponse { - return v.value -} - -func (v *NullableSearchUserIdsResponse) Set(val *SearchUserIdsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSearchUserIdsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSearchUserIdsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSearchUserIdsResponse(val *SearchUserIdsResponse) *NullableSearchUserIdsResponse { - return &NullableSearchUserIdsResponse{value: val, isSet: true} -} - -func (v NullableSearchUserIdsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSearchUserIdsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_secured_api_key_restrictions.go b/clients/algoliasearch-client-go/algolia/search/model_secured_api_key_restrictions.go index 331f593881..55428f06de 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_secured_api_key_restrictions.go +++ b/clients/algoliasearch-client-go/algolia/search/model_secured_api_key_restrictions.go @@ -312,39 +312,3 @@ func (o SecuredApiKeyRestrictions) String() string { out += fmt.Sprintf(" userToken=%v\n", o.UserToken) return fmt.Sprintf("SecuredApiKeyRestrictions {\n%s}", out) } - -type NullableSecuredApiKeyRestrictions struct { - value *SecuredApiKeyRestrictions - isSet bool -} - -func (v NullableSecuredApiKeyRestrictions) Get() *SecuredApiKeyRestrictions { - return v.value -} - -func (v *NullableSecuredApiKeyRestrictions) Set(val *SecuredApiKeyRestrictions) { - v.value = val - v.isSet = true -} - -func (v NullableSecuredApiKeyRestrictions) IsSet() bool { - return v.isSet -} - -func (v *NullableSecuredApiKeyRestrictions) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSecuredApiKeyRestrictions(val *SecuredApiKeyRestrictions) *NullableSecuredApiKeyRestrictions { - return &NullableSecuredApiKeyRestrictions{value: val, isSet: true} -} - -func (v NullableSecuredApiKeyRestrictions) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSecuredApiKeyRestrictions) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_semantic_search.go b/clients/algoliasearch-client-go/algolia/search/model_semantic_search.go index 68737558ee..4e34aeadcb 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_semantic_search.go +++ b/clients/algoliasearch-client-go/algolia/search/model_semantic_search.go @@ -89,39 +89,3 @@ func (o SemanticSearch) String() string { out += fmt.Sprintf(" eventSources=%v\n", o.EventSources) return fmt.Sprintf("SemanticSearch {\n%s}", out) } - -type NullableSemanticSearch struct { - value *SemanticSearch - isSet bool -} - -func (v NullableSemanticSearch) Get() *SemanticSearch { - return v.value -} - -func (v *NullableSemanticSearch) Set(val *SemanticSearch) { - v.value = val - v.isSet = true -} - -func (v NullableSemanticSearch) IsSet() bool { - return v.isSet -} - -func (v *NullableSemanticSearch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSemanticSearch(val *SemanticSearch) *NullableSemanticSearch { - return &NullableSemanticSearch{value: val, isSet: true} -} - -func (v NullableSemanticSearch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSemanticSearch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_snippet_result.go b/clients/algoliasearch-client-go/algolia/search/model_snippet_result.go index 70c60f97c0..262602d1be 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_snippet_result.go +++ b/clients/algoliasearch-client-go/algolia/search/model_snippet_result.go @@ -128,39 +128,3 @@ func (obj SnippetResult) GetActualInstance() any { // all schemas are nil return nil } - -type NullableSnippetResult struct { - value *SnippetResult - isSet bool -} - -func (v NullableSnippetResult) Get() *SnippetResult { - return v.value -} - -func (v *NullableSnippetResult) Set(val *SnippetResult) { - v.value = val - v.isSet = true -} - -func (v NullableSnippetResult) IsSet() bool { - return v.isSet -} - -func (v *NullableSnippetResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSnippetResult(val *SnippetResult) *NullableSnippetResult { - return &NullableSnippetResult{value: val, isSet: true} -} - -func (v NullableSnippetResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSnippetResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_snippet_result_option.go b/clients/algoliasearch-client-go/algolia/search/model_snippet_result_option.go index bda2740632..b176440a59 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_snippet_result_option.go +++ b/clients/algoliasearch-client-go/algolia/search/model_snippet_result_option.go @@ -101,39 +101,3 @@ func (o SnippetResultOption) String() string { out += fmt.Sprintf(" matchLevel=%v\n", o.MatchLevel) return fmt.Sprintf("SnippetResultOption {\n%s}", out) } - -type NullableSnippetResultOption struct { - value *SnippetResultOption - isSet bool -} - -func (v NullableSnippetResultOption) Get() *SnippetResultOption { - return v.value -} - -func (v *NullableSnippetResultOption) Set(val *SnippetResultOption) { - v.value = val - v.isSet = true -} - -func (v NullableSnippetResultOption) IsSet() bool { - return v.isSet -} - -func (v *NullableSnippetResultOption) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSnippetResultOption(val *SnippetResultOption) *NullableSnippetResultOption { - return &NullableSnippetResultOption{value: val, isSet: true} -} - -func (v NullableSnippetResultOption) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSnippetResultOption) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_sort_remaining_by.go b/clients/algoliasearch-client-go/algolia/search/model_sort_remaining_by.go index 8f97d4549c..36db30dc1d 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_sort_remaining_by.go +++ b/clients/algoliasearch-client-go/algolia/search/model_sort_remaining_by.go @@ -65,39 +65,3 @@ func (v SortRemainingBy) IsValid() bool { func (v SortRemainingBy) Ptr() *SortRemainingBy { return &v } - -type NullableSortRemainingBy struct { - value *SortRemainingBy - isSet bool -} - -func (v NullableSortRemainingBy) Get() *SortRemainingBy { - return v.value -} - -func (v *NullableSortRemainingBy) Set(val *SortRemainingBy) { - v.value = val - v.isSet = true -} - -func (v NullableSortRemainingBy) IsSet() bool { - return v.isSet -} - -func (v *NullableSortRemainingBy) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSortRemainingBy(val *SortRemainingBy) *NullableSortRemainingBy { - return &NullableSortRemainingBy{value: val, isSet: true} -} - -func (v NullableSortRemainingBy) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSortRemainingBy) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_source.go b/clients/algoliasearch-client-go/algolia/search/model_source.go index 28f15c670f..b24e9189df 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_source.go +++ b/clients/algoliasearch-client-go/algolia/search/model_source.go @@ -120,39 +120,3 @@ func (o Source) String() string { out += fmt.Sprintf(" description=%v\n", o.Description) return fmt.Sprintf("Source {\n%s}", out) } - -type NullableSource struct { - value *Source - isSet bool -} - -func (v NullableSource) Get() *Source { - return v.value -} - -func (v *NullableSource) Set(val *Source) { - v.value = val - v.isSet = true -} - -func (v NullableSource) IsSet() bool { - return v.isSet -} - -func (v *NullableSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSource(val *Source) *NullableSource { - return &NullableSource{value: val, isSet: true} -} - -func (v NullableSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_standard_entries.go b/clients/algoliasearch-client-go/algolia/search/model_standard_entries.go index d411ab56df..f7df52fa82 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_standard_entries.go +++ b/clients/algoliasearch-client-go/algolia/search/model_standard_entries.go @@ -181,39 +181,3 @@ func (o StandardEntries) String() string { out += fmt.Sprintf(" compounds=%v\n", o.Compounds) return fmt.Sprintf("StandardEntries {\n%s}", out) } - -type NullableStandardEntries struct { - value *StandardEntries - isSet bool -} - -func (v NullableStandardEntries) Get() *StandardEntries { - return v.value -} - -func (v *NullableStandardEntries) Set(val *StandardEntries) { - v.value = val - v.isSet = true -} - -func (v NullableStandardEntries) IsSet() bool { - return v.isSet -} - -func (v *NullableStandardEntries) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStandardEntries(val *StandardEntries) *NullableStandardEntries { - return &NullableStandardEntries{value: val, isSet: true} -} - -func (v NullableStandardEntries) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableStandardEntries) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_supported_language.go b/clients/algoliasearch-client-go/algolia/search/model_supported_language.go index 2d6b8d1734..1f0ee2a0df 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_supported_language.go +++ b/clients/algoliasearch-client-go/algolia/search/model_supported_language.go @@ -195,39 +195,3 @@ func (v SupportedLanguage) IsValid() bool { func (v SupportedLanguage) Ptr() *SupportedLanguage { return &v } - -type NullableSupportedLanguage struct { - value *SupportedLanguage - isSet bool -} - -func (v NullableSupportedLanguage) Get() *SupportedLanguage { - return v.value -} - -func (v *NullableSupportedLanguage) Set(val *SupportedLanguage) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedLanguage) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedLanguage) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedLanguage(val *SupportedLanguage) *NullableSupportedLanguage { - return &NullableSupportedLanguage{value: val, isSet: true} -} - -func (v NullableSupportedLanguage) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSupportedLanguage) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_synonym_hit.go b/clients/algoliasearch-client-go/algolia/search/model_synonym_hit.go index e4c7c4148f..dadf0fa233 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_synonym_hit.go +++ b/clients/algoliasearch-client-go/algolia/search/model_synonym_hit.go @@ -376,39 +376,3 @@ func (o SynonymHit) String() string { out += fmt.Sprintf(" replacements=%v\n", o.Replacements) return fmt.Sprintf("SynonymHit {\n%s}", out) } - -type NullableSynonymHit struct { - value *SynonymHit - isSet bool -} - -func (v NullableSynonymHit) Get() *SynonymHit { - return v.value -} - -func (v *NullableSynonymHit) Set(val *SynonymHit) { - v.value = val - v.isSet = true -} - -func (v NullableSynonymHit) IsSet() bool { - return v.isSet -} - -func (v *NullableSynonymHit) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSynonymHit(val *SynonymHit) *NullableSynonymHit { - return &NullableSynonymHit{value: val, isSet: true} -} - -func (v NullableSynonymHit) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSynonymHit) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_synonym_type.go b/clients/algoliasearch-client-go/algolia/search/model_synonym_type.go index dba4eb9c96..85d4b21d96 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_synonym_type.go +++ b/clients/algoliasearch-client-go/algolia/search/model_synonym_type.go @@ -69,39 +69,3 @@ func (v SynonymType) IsValid() bool { func (v SynonymType) Ptr() *SynonymType { return &v } - -type NullableSynonymType struct { - value *SynonymType - isSet bool -} - -func (v NullableSynonymType) Get() *SynonymType { - return v.value -} - -func (v *NullableSynonymType) Set(val *SynonymType) { - v.value = val - v.isSet = true -} - -func (v NullableSynonymType) IsSet() bool { - return v.isSet -} - -func (v *NullableSynonymType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSynonymType(val *SynonymType) *NullableSynonymType { - return &NullableSynonymType{value: val, isSet: true} -} - -func (v NullableSynonymType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableSynonymType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_tag_filters.go b/clients/algoliasearch-client-go/algolia/search/model_tag_filters.go index 115dddd27e..a0a94761c4 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_tag_filters.go +++ b/clients/algoliasearch-client-go/algolia/search/model_tag_filters.go @@ -94,39 +94,3 @@ func (obj TagFilters) GetActualInstance() any { // all schemas are nil return nil } - -type NullableTagFilters struct { - value *TagFilters - isSet bool -} - -func (v NullableTagFilters) Get() *TagFilters { - return v.value -} - -func (v *NullableTagFilters) Set(val *TagFilters) { - v.value = val - v.isSet = true -} - -func (v NullableTagFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableTagFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTagFilters(val *TagFilters) *NullableTagFilters { - return &NullableTagFilters{value: val, isSet: true} -} - -func (v NullableTagFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTagFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_task_status.go b/clients/algoliasearch-client-go/algolia/search/model_task_status.go index 9efd27fe2a..6f4822b90c 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_task_status.go +++ b/clients/algoliasearch-client-go/algolia/search/model_task_status.go @@ -63,39 +63,3 @@ func (v TaskStatus) IsValid() bool { func (v TaskStatus) Ptr() *TaskStatus { return &v } - -type NullableTaskStatus struct { - value *TaskStatus - isSet bool -} - -func (v NullableTaskStatus) Get() *TaskStatus { - return v.value -} - -func (v *NullableTaskStatus) Set(val *TaskStatus) { - v.value = val - v.isSet = true -} - -func (v NullableTaskStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableTaskStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaskStatus(val *TaskStatus) *NullableTaskStatus { - return &NullableTaskStatus{value: val, isSet: true} -} - -func (v NullableTaskStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTaskStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_time_range.go b/clients/algoliasearch-client-go/algolia/search/model_time_range.go index 6761229862..aef1162a51 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_time_range.go +++ b/clients/algoliasearch-client-go/algolia/search/model_time_range.go @@ -102,39 +102,3 @@ func (o TimeRange) String() string { out += fmt.Sprintf(" until=%v\n", o.Until) return fmt.Sprintf("TimeRange {\n%s}", out) } - -type NullableTimeRange struct { - value *TimeRange - isSet bool -} - -func (v NullableTimeRange) Get() *TimeRange { - return v.value -} - -func (v *NullableTimeRange) Set(val *TimeRange) { - v.value = val - v.isSet = true -} - -func (v NullableTimeRange) IsSet() bool { - return v.isSet -} - -func (v *NullableTimeRange) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTimeRange(val *TimeRange) *NullableTimeRange { - return &NullableTimeRange{value: val, isSet: true} -} - -func (v NullableTimeRange) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTimeRange) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_typo_tolerance.go b/clients/algoliasearch-client-go/algolia/search/model_typo_tolerance.go index 4fd581b612..86ddc720a5 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_typo_tolerance.go +++ b/clients/algoliasearch-client-go/algolia/search/model_typo_tolerance.go @@ -94,39 +94,3 @@ func (obj TypoTolerance) GetActualInstance() any { // all schemas are nil return nil } - -type NullableTypoTolerance struct { - value *TypoTolerance - isSet bool -} - -func (v NullableTypoTolerance) Get() *TypoTolerance { - return v.value -} - -func (v *NullableTypoTolerance) Set(val *TypoTolerance) { - v.value = val - v.isSet = true -} - -func (v NullableTypoTolerance) IsSet() bool { - return v.isSet -} - -func (v *NullableTypoTolerance) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTypoTolerance(val *TypoTolerance) *NullableTypoTolerance { - return &NullableTypoTolerance{value: val, isSet: true} -} - -func (v NullableTypoTolerance) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTypoTolerance) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_typo_tolerance_enum.go b/clients/algoliasearch-client-go/algolia/search/model_typo_tolerance_enum.go index 20bfd76c23..3682d72a58 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_typo_tolerance_enum.go +++ b/clients/algoliasearch-client-go/algolia/search/model_typo_tolerance_enum.go @@ -63,39 +63,3 @@ func (v TypoToleranceEnum) IsValid() bool { func (v TypoToleranceEnum) Ptr() *TypoToleranceEnum { return &v } - -type NullableTypoToleranceEnum struct { - value *TypoToleranceEnum - isSet bool -} - -func (v NullableTypoToleranceEnum) Get() *TypoToleranceEnum { - return v.value -} - -func (v *NullableTypoToleranceEnum) Set(val *TypoToleranceEnum) { - v.value = val - v.isSet = true -} - -func (v NullableTypoToleranceEnum) IsSet() bool { - return v.isSet -} - -func (v *NullableTypoToleranceEnum) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTypoToleranceEnum(val *TypoToleranceEnum) *NullableTypoToleranceEnum { - return &NullableTypoToleranceEnum{value: val, isSet: true} -} - -func (v NullableTypoToleranceEnum) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableTypoToleranceEnum) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_update_api_key_response.go b/clients/algoliasearch-client-go/algolia/search/model_update_api_key_response.go index ae779111f3..26a4a16c8b 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_update_api_key_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_update_api_key_response.go @@ -102,39 +102,3 @@ func (o UpdateApiKeyResponse) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("UpdateApiKeyResponse {\n%s}", out) } - -type NullableUpdateApiKeyResponse struct { - value *UpdateApiKeyResponse - isSet bool -} - -func (v NullableUpdateApiKeyResponse) Get() *UpdateApiKeyResponse { - return v.value -} - -func (v *NullableUpdateApiKeyResponse) Set(val *UpdateApiKeyResponse) { - v.value = val - v.isSet = true -} - -func (v NullableUpdateApiKeyResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdateApiKeyResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdateApiKeyResponse(val *UpdateApiKeyResponse) *NullableUpdateApiKeyResponse { - return &NullableUpdateApiKeyResponse{value: val, isSet: true} -} - -func (v NullableUpdateApiKeyResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableUpdateApiKeyResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_updated_at_response.go b/clients/algoliasearch-client-go/algolia/search/model_updated_at_response.go index b416c18ba9..1a8766fff2 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_updated_at_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_updated_at_response.go @@ -102,39 +102,3 @@ func (o UpdatedAtResponse) String() string { out += fmt.Sprintf(" updatedAt=%v\n", o.UpdatedAt) return fmt.Sprintf("UpdatedAtResponse {\n%s}", out) } - -type NullableUpdatedAtResponse struct { - value *UpdatedAtResponse - isSet bool -} - -func (v NullableUpdatedAtResponse) Get() *UpdatedAtResponse { - return v.value -} - -func (v *NullableUpdatedAtResponse) Set(val *UpdatedAtResponse) { - v.value = val - v.isSet = true -} - -func (v NullableUpdatedAtResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdatedAtResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdatedAtResponse(val *UpdatedAtResponse) *NullableUpdatedAtResponse { - return &NullableUpdatedAtResponse{value: val, isSet: true} -} - -func (v NullableUpdatedAtResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableUpdatedAtResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_updated_at_with_object_id_response.go b/clients/algoliasearch-client-go/algolia/search/model_updated_at_with_object_id_response.go index 3f2385a37f..86bb7471d8 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_updated_at_with_object_id_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_updated_at_with_object_id_response.go @@ -178,39 +178,3 @@ func (o UpdatedAtWithObjectIdResponse) String() string { out += fmt.Sprintf(" objectID=%v\n", o.ObjectID) return fmt.Sprintf("UpdatedAtWithObjectIdResponse {\n%s}", out) } - -type NullableUpdatedAtWithObjectIdResponse struct { - value *UpdatedAtWithObjectIdResponse - isSet bool -} - -func (v NullableUpdatedAtWithObjectIdResponse) Get() *UpdatedAtWithObjectIdResponse { - return v.value -} - -func (v *NullableUpdatedAtWithObjectIdResponse) Set(val *UpdatedAtWithObjectIdResponse) { - v.value = val - v.isSet = true -} - -func (v NullableUpdatedAtWithObjectIdResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdatedAtWithObjectIdResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdatedAtWithObjectIdResponse(val *UpdatedAtWithObjectIdResponse) *NullableUpdatedAtWithObjectIdResponse { - return &NullableUpdatedAtWithObjectIdResponse{value: val, isSet: true} -} - -func (v NullableUpdatedAtWithObjectIdResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableUpdatedAtWithObjectIdResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_updated_rule_response.go b/clients/algoliasearch-client-go/algolia/search/model_updated_rule_response.go index 1eeb197710..30bbf8d537 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_updated_rule_response.go +++ b/clients/algoliasearch-client-go/algolia/search/model_updated_rule_response.go @@ -134,39 +134,3 @@ func (o UpdatedRuleResponse) String() string { out += fmt.Sprintf(" taskID=%v\n", o.TaskID) return fmt.Sprintf("UpdatedRuleResponse {\n%s}", out) } - -type NullableUpdatedRuleResponse struct { - value *UpdatedRuleResponse - isSet bool -} - -func (v NullableUpdatedRuleResponse) Get() *UpdatedRuleResponse { - return v.value -} - -func (v *NullableUpdatedRuleResponse) Set(val *UpdatedRuleResponse) { - v.value = val - v.isSet = true -} - -func (v NullableUpdatedRuleResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdatedRuleResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdatedRuleResponse(val *UpdatedRuleResponse) *NullableUpdatedRuleResponse { - return &NullableUpdatedRuleResponse{value: val, isSet: true} -} - -func (v NullableUpdatedRuleResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableUpdatedRuleResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_user_highlight_result.go b/clients/algoliasearch-client-go/algolia/search/model_user_highlight_result.go index 5ad1ebaac6..a8420d1607 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_user_highlight_result.go +++ b/clients/algoliasearch-client-go/algolia/search/model_user_highlight_result.go @@ -100,39 +100,3 @@ func (o UserHighlightResult) String() string { out += fmt.Sprintf(" clusterName=%v\n", o.ClusterName) return fmt.Sprintf("UserHighlightResult {\n%s}", out) } - -type NullableUserHighlightResult struct { - value *UserHighlightResult - isSet bool -} - -func (v NullableUserHighlightResult) Get() *UserHighlightResult { - return v.value -} - -func (v *NullableUserHighlightResult) Set(val *UserHighlightResult) { - v.value = val - v.isSet = true -} - -func (v NullableUserHighlightResult) IsSet() bool { - return v.isSet -} - -func (v *NullableUserHighlightResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUserHighlightResult(val *UserHighlightResult) *NullableUserHighlightResult { - return &NullableUserHighlightResult{value: val, isSet: true} -} - -func (v NullableUserHighlightResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableUserHighlightResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_user_hit.go b/clients/algoliasearch-client-go/algolia/search/model_user_hit.go index 18a4b308f3..f122097510 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_user_hit.go +++ b/clients/algoliasearch-client-go/algolia/search/model_user_hit.go @@ -229,39 +229,3 @@ func (o UserHit) String() string { out += fmt.Sprintf(" _highlightResult=%v\n", o.HighlightResult) return fmt.Sprintf("UserHit {\n%s}", out) } - -type NullableUserHit struct { - value *UserHit - isSet bool -} - -func (v NullableUserHit) Get() *UserHit { - return v.value -} - -func (v *NullableUserHit) Set(val *UserHit) { - v.value = val - v.isSet = true -} - -func (v NullableUserHit) IsSet() bool { - return v.isSet -} - -func (v *NullableUserHit) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUserHit(val *UserHit) *NullableUserHit { - return &NullableUserHit{value: val, isSet: true} -} - -func (v NullableUserHit) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableUserHit) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_user_id.go b/clients/algoliasearch-client-go/algolia/search/model_user_id.go index c9866f9f29..55aa9ffd0b 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_user_id.go +++ b/clients/algoliasearch-client-go/algolia/search/model_user_id.go @@ -166,39 +166,3 @@ func (o UserId) String() string { out += fmt.Sprintf(" dataSize=%v\n", o.DataSize) return fmt.Sprintf("UserId {\n%s}", out) } - -type NullableUserId struct { - value *UserId - isSet bool -} - -func (v NullableUserId) Get() *UserId { - return v.value -} - -func (v *NullableUserId) Set(val *UserId) { - v.value = val - v.isSet = true -} - -func (v NullableUserId) IsSet() bool { - return v.isSet -} - -func (v *NullableUserId) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUserId(val *UserId) *NullableUserId { - return &NullableUserId{value: val, isSet: true} -} - -func (v NullableUserId) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableUserId) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/search/model_value.go b/clients/algoliasearch-client-go/algolia/search/model_value.go index 4dc2d5ed7a..31f3bdd9f5 100644 --- a/clients/algoliasearch-client-go/algolia/search/model_value.go +++ b/clients/algoliasearch-client-go/algolia/search/model_value.go @@ -132,39 +132,3 @@ func (o Value) String() string { out += fmt.Sprintf(" sortRemainingBy=%v\n", o.SortRemainingBy) return fmt.Sprintf("Value {\n%s}", out) } - -type NullableValue struct { - value *Value - isSet bool -} - -func (v NullableValue) Get() *Value { - return v.value -} - -func (v *NullableValue) Set(val *Value) { - v.value = val - v.isSet = true -} - -func (v NullableValue) IsSet() bool { - return v.isSet -} - -func (v *NullableValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableValue(val *Value) *NullableValue { - return &NullableValue{value: val, isSet: true} -} - -func (v NullableValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/usage/model_error_base.go b/clients/algoliasearch-client-go/algolia/usage/model_error_base.go index 1ad36e7a49..080432cdf4 100644 --- a/clients/algoliasearch-client-go/algolia/usage/model_error_base.go +++ b/clients/algoliasearch-client-go/algolia/usage/model_error_base.go @@ -131,39 +131,3 @@ func (o ErrorBase) String() string { } return fmt.Sprintf("ErrorBase {\n%s}", out) } - -type NullableErrorBase struct { - value *ErrorBase - isSet bool -} - -func (v NullableErrorBase) Get() *ErrorBase { - return v.value -} - -func (v *NullableErrorBase) Set(val *ErrorBase) { - v.value = val - v.isSet = true -} - -func (v NullableErrorBase) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorBase) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorBase(val *ErrorBase) *NullableErrorBase { - return &NullableErrorBase{value: val, isSet: true} -} - -func (v NullableErrorBase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableErrorBase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response.go b/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response.go index c6c324a387..a9b3b72d57 100644 --- a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response.go +++ b/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response.go @@ -87,39 +87,3 @@ func (o GetUsage200Response) String() string { out += fmt.Sprintf(" statistics=%v\n", o.Statistics) return fmt.Sprintf("GetUsage200Response {\n%s}", out) } - -type NullableGetUsage200Response struct { - value *GetUsage200Response - isSet bool -} - -func (v NullableGetUsage200Response) Get() *GetUsage200Response { - return v.value -} - -func (v *NullableGetUsage200Response) Set(val *GetUsage200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetUsage200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUsage200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUsage200Response(val *GetUsage200Response) *NullableGetUsage200Response { - return &NullableGetUsage200Response{value: val, isSet: true} -} - -func (v NullableGetUsage200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetUsage200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response_statistics_inner.go b/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response_statistics_inner.go index 1c4129af3b..ca47230bea 100644 --- a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response_statistics_inner.go +++ b/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response_statistics_inner.go @@ -132,39 +132,3 @@ func (o GetUsage200ResponseStatisticsInner) String() string { out += fmt.Sprintf(" v=%v\n", o.V) return fmt.Sprintf("GetUsage200ResponseStatisticsInner {\n%s}", out) } - -type NullableGetUsage200ResponseStatisticsInner struct { - value *GetUsage200ResponseStatisticsInner - isSet bool -} - -func (v NullableGetUsage200ResponseStatisticsInner) Get() *GetUsage200ResponseStatisticsInner { - return v.value -} - -func (v *NullableGetUsage200ResponseStatisticsInner) Set(val *GetUsage200ResponseStatisticsInner) { - v.value = val - v.isSet = true -} - -func (v NullableGetUsage200ResponseStatisticsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUsage200ResponseStatisticsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUsage200ResponseStatisticsInner(val *GetUsage200ResponseStatisticsInner) *NullableGetUsage200ResponseStatisticsInner { - return &NullableGetUsage200ResponseStatisticsInner{value: val, isSet: true} -} - -func (v NullableGetUsage200ResponseStatisticsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetUsage200ResponseStatisticsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response.go b/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response.go index 212e5758e2..00aeb36b76 100644 --- a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response.go +++ b/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response.go @@ -69,39 +69,3 @@ func (o GetUsage400Response) String() string { out += fmt.Sprintf(" error=%v\n", o.Error) return fmt.Sprintf("GetUsage400Response {\n%s}", out) } - -type NullableGetUsage400Response struct { - value *GetUsage400Response - isSet bool -} - -func (v NullableGetUsage400Response) Get() *GetUsage400Response { - return v.value -} - -func (v *NullableGetUsage400Response) Set(val *GetUsage400Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetUsage400Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUsage400Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUsage400Response(val *GetUsage400Response) *NullableGetUsage400Response { - return &NullableGetUsage400Response{value: val, isSet: true} -} - -func (v NullableGetUsage400Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetUsage400Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error.go b/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error.go index 06ec9fed35..05678bdfb9 100644 --- a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error.go +++ b/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error.go @@ -175,39 +175,3 @@ func (o GetUsage400ResponseError) String() string { out += fmt.Sprintf(" errors=%v\n", o.Errors) return fmt.Sprintf("GetUsage400ResponseError {\n%s}", out) } - -type NullableGetUsage400ResponseError struct { - value *GetUsage400ResponseError - isSet bool -} - -func (v NullableGetUsage400ResponseError) Get() *GetUsage400ResponseError { - return v.value -} - -func (v *NullableGetUsage400ResponseError) Set(val *GetUsage400ResponseError) { - v.value = val - v.isSet = true -} - -func (v NullableGetUsage400ResponseError) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUsage400ResponseError) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUsage400ResponseError(val *GetUsage400ResponseError) *NullableGetUsage400ResponseError { - return &NullableGetUsage400ResponseError{value: val, isSet: true} -} - -func (v NullableGetUsage400ResponseError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetUsage400ResponseError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error_errors_inner.go b/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error_errors_inner.go index 7f1c0e88e7..c262cafc3a 100644 --- a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error_errors_inner.go +++ b/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error_errors_inner.go @@ -206,39 +206,3 @@ func (o GetUsage400ResponseErrorErrorsInner) String() string { out += fmt.Sprintf(" position=%v\n", o.Position) return fmt.Sprintf("GetUsage400ResponseErrorErrorsInner {\n%s}", out) } - -type NullableGetUsage400ResponseErrorErrorsInner struct { - value *GetUsage400ResponseErrorErrorsInner - isSet bool -} - -func (v NullableGetUsage400ResponseErrorErrorsInner) Get() *GetUsage400ResponseErrorErrorsInner { - return v.value -} - -func (v *NullableGetUsage400ResponseErrorErrorsInner) Set(val *GetUsage400ResponseErrorErrorsInner) { - v.value = val - v.isSet = true -} - -func (v NullableGetUsage400ResponseErrorErrorsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUsage400ResponseErrorErrorsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUsage400ResponseErrorErrorsInner(val *GetUsage400ResponseErrorErrorsInner) *NullableGetUsage400ResponseErrorErrorsInner { - return &NullableGetUsage400ResponseErrorErrorsInner{value: val, isSet: true} -} - -func (v NullableGetUsage400ResponseErrorErrorsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGetUsage400ResponseErrorErrorsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/usage/model_granularity.go b/clients/algoliasearch-client-go/algolia/usage/model_granularity.go index b166b604dd..e301230894 100644 --- a/clients/algoliasearch-client-go/algolia/usage/model_granularity.go +++ b/clients/algoliasearch-client-go/algolia/usage/model_granularity.go @@ -63,39 +63,3 @@ func (v Granularity) IsValid() bool { func (v Granularity) Ptr() *Granularity { return &v } - -type NullableGranularity struct { - value *Granularity - isSet bool -} - -func (v NullableGranularity) Get() *Granularity { - return v.value -} - -func (v *NullableGranularity) Set(val *Granularity) { - v.value = val - v.isSet = true -} - -func (v NullableGranularity) IsSet() bool { - return v.isSet -} - -func (v *NullableGranularity) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGranularity(val *Granularity) *NullableGranularity { - return &NullableGranularity{value: val, isSet: true} -} - -func (v NullableGranularity) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableGranularity) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/usage/model_statistic.go b/clients/algoliasearch-client-go/algolia/usage/model_statistic.go index 9af6a99bdb..56eaa971f7 100644 --- a/clients/algoliasearch-client-go/algolia/usage/model_statistic.go +++ b/clients/algoliasearch-client-go/algolia/usage/model_statistic.go @@ -227,39 +227,3 @@ func (v Statistic) IsValid() bool { func (v Statistic) Ptr() *Statistic { return &v } - -type NullableStatistic struct { - value *Statistic - isSet bool -} - -func (v NullableStatistic) Get() *Statistic { - return v.value -} - -func (v *NullableStatistic) Set(val *Statistic) { - v.value = val - v.isSet = true -} - -func (v NullableStatistic) IsSet() bool { - return v.isSet -} - -func (v *NullableStatistic) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStatistic(val *Statistic) *NullableStatistic { - return &NullableStatistic{value: val, isSet: true} -} - -func (v NullableStatistic) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableStatistic) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/clients/algoliasearch-client-go/algolia/usage/model_statistic_value.go b/clients/algoliasearch-client-go/algolia/usage/model_statistic_value.go index f2330a6532..d00414f411 100644 --- a/clients/algoliasearch-client-go/algolia/usage/model_statistic_value.go +++ b/clients/algoliasearch-client-go/algolia/usage/model_statistic_value.go @@ -94,39 +94,3 @@ func (obj StatisticValue) GetActualInstance() any { // all schemas are nil return nil } - -type NullableStatisticValue struct { - value *StatisticValue - isSet bool -} - -func (v NullableStatisticValue) Get() *StatisticValue { - return v.value -} - -func (v *NullableStatisticValue) Set(val *StatisticValue) { - v.value = val - v.isSet = true -} - -func (v NullableStatisticValue) IsSet() bool { - return v.isSet -} - -func (v *NullableStatisticValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStatisticValue(val *StatisticValue) *NullableStatisticValue { - return &NullableStatisticValue{value: val, isSet: true} -} - -func (v NullableStatisticValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) //nolint:wrapcheck -} - -func (v *NullableStatisticValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) //nolint:wrapcheck -} diff --git a/tests/output/csharp/src/generated/requests/Insights.test.cs b/tests/output/csharp/src/generated/requests/Insights.test.cs index cb29616c78..5cbb3572fb 100644 --- a/tests/output/csharp/src/generated/requests/Insights.test.cs +++ b/tests/output/csharp/src/generated/requests/Insights.test.cs @@ -602,7 +602,7 @@ await _client.PushEventsAsync( Index = "products", UserToken = "user-123456", AuthenticatedUserToken = "user-123456", - Timestamp = 1718496000000L, + Timestamp = 1718755200000L, ObjectIDs = new List { "9780545139700", "9780439784542" }, QueryID = "43b15df305339e827f0ac0bdc5ebcaa7", } @@ -615,7 +615,7 @@ await _client.PushEventsAsync( Index = "products", UserToken = "user-123456", AuthenticatedUserToken = "user-123456", - Timestamp = 1718496000000L, + Timestamp = 1718755200000L, ObjectIDs = new List { "9780545139700", "9780439784542" }, } ) @@ -627,7 +627,7 @@ await _client.PushEventsAsync( Assert.Equal("/1/events", req.Path); Assert.Equal("POST", req.Method.ToString()); JsonAssert.EqualOverrideDefault( - "{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718496000000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718496000000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}", + "{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718755200000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718755200000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}", req.Body, new JsonDiffConfig(false) ); @@ -648,7 +648,7 @@ await _client.PushEventsAsync( Index = "products", UserToken = "user-123456", AuthenticatedUserToken = "user-123456", - Timestamp = 1718496000000L, + Timestamp = 1718755200000L, ObjectIDs = new List { "9780545139700", "9780439784542" }, QueryID = "43b15df305339e827f0ac0bdc5ebcaa7", } @@ -661,7 +661,7 @@ await _client.PushEventsAsync( Index = "products", UserToken = "user-123456", AuthenticatedUserToken = "user-123456", - Timestamp = 1718496000000L, + Timestamp = 1718755200000L, ObjectIDs = new List { "9780545139700", "9780439784542" }, } ) diff --git a/tests/output/dart/test/requests/insights_test.dart b/tests/output/dart/test/requests/insights_test.dart index 4084b75e06..4d12a5bafa 100644 --- a/tests/output/dart/test/requests/insights_test.dart +++ b/tests/output/dart/test/requests/insights_test.dart @@ -633,7 +633,7 @@ void main() { index: "products", userToken: "user-123456", authenticatedUserToken: "user-123456", - timestamp: 1718496000000, + timestamp: 1718755200000, objectIDs: [ "9780545139700", "9780439784542", @@ -646,7 +646,7 @@ void main() { index: "products", userToken: "user-123456", authenticatedUserToken: "user-123456", - timestamp: 1718496000000, + timestamp: 1718755200000, objectIDs: [ "9780545139700", "9780439784542", @@ -659,7 +659,7 @@ void main() { expectPath(request.path, '/1/events'); expect(request.method, 'post'); expectBody(request.body, - """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"]}]}"""); + """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"]}]}"""); }, ), ); diff --git a/tests/output/go/tests/requests/insights_test.go b/tests/output/go/tests/requests/insights_test.go index 6643c45cbb..829c9e743f 100644 --- a/tests/output/go/tests/requests/insights_test.go +++ b/tests/output/go/tests/requests/insights_test.go @@ -453,9 +453,9 @@ func TestInsights_PushEvents(t *testing.T) { insights.NewEmptyInsightsEvents().SetEvents( []insights.EventsItems{*insights.ConvertedObjectIDsAfterSearchAsEventsItems( - insights.NewEmptyConvertedObjectIDsAfterSearch().SetEventType(insights.ConversionEvent("conversion")).SetEventName("Product Purchased").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1718496000000).SetObjectIDs( + insights.NewEmptyConvertedObjectIDsAfterSearch().SetEventType(insights.ConversionEvent("conversion")).SetEventName("Product Purchased").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1718755200000).SetObjectIDs( []string{"9780545139700", "9780439784542"}).SetQueryID("43b15df305339e827f0ac0bdc5ebcaa7")), *insights.ViewedObjectIDsAsEventsItems( - insights.NewEmptyViewedObjectIDs().SetEventType(insights.ViewEvent("view")).SetEventName("Product Detail Page Viewed").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1718496000000).SetObjectIDs( + insights.NewEmptyViewedObjectIDs().SetEventType(insights.ViewEvent("view")).SetEventName("Product Detail Page Viewed").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1718755200000).SetObjectIDs( []string{"9780545139700", "9780439784542"}))}), )) require.NoError(t, err) @@ -464,15 +464,15 @@ func TestInsights_PushEvents(t *testing.T) { require.Equal(t, "POST", echo.Method) ja := jsonassert.New(t) - ja.Assertf(*echo.Body, `{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"]}]}`) + ja.Assertf(*echo.Body, `{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"]}]}`) clientE2E := createE2EInsightsClient(t) res, err := clientE2E.PushEvents(client.NewApiPushEventsRequest( insights.NewEmptyInsightsEvents().SetEvents( []insights.EventsItems{*insights.ConvertedObjectIDsAfterSearchAsEventsItems( - insights.NewEmptyConvertedObjectIDsAfterSearch().SetEventType(insights.ConversionEvent("conversion")).SetEventName("Product Purchased").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1718496000000).SetObjectIDs( + insights.NewEmptyConvertedObjectIDsAfterSearch().SetEventType(insights.ConversionEvent("conversion")).SetEventName("Product Purchased").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1718755200000).SetObjectIDs( []string{"9780545139700", "9780439784542"}).SetQueryID("43b15df305339e827f0ac0bdc5ebcaa7")), *insights.ViewedObjectIDsAsEventsItems( - insights.NewEmptyViewedObjectIDs().SetEventType(insights.ViewEvent("view")).SetEventName("Product Detail Page Viewed").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1718496000000).SetObjectIDs( + insights.NewEmptyViewedObjectIDs().SetEventType(insights.ViewEvent("view")).SetEventName("Product Detail Page Viewed").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1718755200000).SetObjectIDs( []string{"9780545139700", "9780439784542"}))}), )) require.NoError(t, err) diff --git a/tests/output/java/src/test/java/com/algolia/requests/Insights.test.java b/tests/output/java/src/test/java/com/algolia/requests/Insights.test.java index 4622c2440f..aa82cc61f1 100644 --- a/tests/output/java/src/test/java/com/algolia/requests/Insights.test.java +++ b/tests/output/java/src/test/java/com/algolia/requests/Insights.test.java @@ -615,7 +615,7 @@ void pushEventsTest1() { .setIndex("products") .setUserToken("user-123456") .setAuthenticatedUserToken("user-123456") - .setTimestamp(1718496000000L) + .setTimestamp(1718755200000L) .setObjectIDs(List.of("9780545139700", "9780439784542")) .setQueryID("43b15df305339e827f0ac0bdc5ebcaa7"), new ViewedObjectIDs() @@ -624,7 +624,7 @@ void pushEventsTest1() { .setIndex("products") .setUserToken("user-123456") .setAuthenticatedUserToken("user-123456") - .setTimestamp(1718496000000L) + .setTimestamp(1718755200000L) .setObjectIDs(List.of("9780545139700", "9780439784542")) ) ) @@ -636,9 +636,9 @@ void pushEventsTest1() { assertDoesNotThrow(() -> JSONAssert.assertEquals( "{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product" + - " Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718496000000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product" + + " Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718755200000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product" + " Detail Page" + - " Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718496000000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}", + " Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718755200000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}", req.body, JSONCompareMode.STRICT ) @@ -654,7 +654,7 @@ void pushEventsTest1() { .setIndex("products") .setUserToken("user-123456") .setAuthenticatedUserToken("user-123456") - .setTimestamp(1718496000000L) + .setTimestamp(1718755200000L) .setObjectIDs(List.of("9780545139700", "9780439784542")) .setQueryID("43b15df305339e827f0ac0bdc5ebcaa7"), new ViewedObjectIDs() @@ -663,7 +663,7 @@ void pushEventsTest1() { .setIndex("products") .setUserToken("user-123456") .setAuthenticatedUserToken("user-123456") - .setTimestamp(1718496000000L) + .setTimestamp(1718755200000L) .setObjectIDs(List.of("9780545139700", "9780439784542")) ) ) diff --git a/tests/output/javascript/src/requests/insights.test.ts b/tests/output/javascript/src/requests/insights.test.ts index 5454db0882..437d417309 100644 --- a/tests/output/javascript/src/requests/insights.test.ts +++ b/tests/output/javascript/src/requests/insights.test.ts @@ -428,7 +428,7 @@ describe('pushEvents', () => { index: 'products', userToken: 'user-123456', authenticatedUserToken: 'user-123456', - timestamp: 1718496000000, + timestamp: 1718755200000, objectIDs: ['9780545139700', '9780439784542'], queryID: '43b15df305339e827f0ac0bdc5ebcaa7', }, @@ -438,7 +438,7 @@ describe('pushEvents', () => { index: 'products', userToken: 'user-123456', authenticatedUserToken: 'user-123456', - timestamp: 1718496000000, + timestamp: 1718755200000, objectIDs: ['9780545139700', '9780439784542'], }, ], @@ -454,7 +454,7 @@ describe('pushEvents', () => { index: 'products', userToken: 'user-123456', authenticatedUserToken: 'user-123456', - timestamp: 1718496000000, + timestamp: 1718755200000, objectIDs: ['9780545139700', '9780439784542'], queryID: '43b15df305339e827f0ac0bdc5ebcaa7', }, @@ -464,7 +464,7 @@ describe('pushEvents', () => { index: 'products', userToken: 'user-123456', authenticatedUserToken: 'user-123456', - timestamp: 1718496000000, + timestamp: 1718755200000, objectIDs: ['9780545139700', '9780439784542'], }, ], @@ -479,7 +479,7 @@ describe('pushEvents', () => { index: 'products', userToken: 'user-123456', authenticatedUserToken: 'user-123456', - timestamp: 1718496000000, + timestamp: 1718755200000, objectIDs: ['9780545139700', '9780439784542'], queryID: '43b15df305339e827f0ac0bdc5ebcaa7', }, @@ -489,7 +489,7 @@ describe('pushEvents', () => { index: 'products', userToken: 'user-123456', authenticatedUserToken: 'user-123456', - timestamp: 1718496000000, + timestamp: 1718755200000, objectIDs: ['9780545139700', '9780439784542'], }, ], diff --git a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/InsightsTest.kt b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/InsightsTest.kt index 013a8b38ef..0ac828f1d7 100644 --- a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/InsightsTest.kt +++ b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/InsightsTest.kt @@ -529,7 +529,7 @@ class InsightsTest { index = "products", userToken = "user-123456", authenticatedUserToken = "user-123456", - timestamp = 1718496000000L, + timestamp = 1718755200000L, objectIDs = listOf("9780545139700", "9780439784542"), queryID = "43b15df305339e827f0ac0bdc5ebcaa7", ), @@ -539,7 +539,7 @@ class InsightsTest { index = "products", userToken = "user-123456", authenticatedUserToken = "user-123456", - timestamp = 1718496000000L, + timestamp = 1718755200000L, objectIDs = listOf("9780545139700", "9780439784542"), ), ), @@ -549,7 +549,7 @@ class InsightsTest { intercept = { assertEquals("/1/events".toPathSegments(), it.url.pathSegments) assertEquals(HttpMethod.parse("POST"), it.method) - assertJsonBody("""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"]}]}""", it.body) + assertJsonBody("""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"]}]}""", it.body) }, ) } diff --git a/tests/output/php/src/requests/InsightsTest.php b/tests/output/php/src/requests/InsightsTest.php index e48d74f78a..16b63b2b08 100644 --- a/tests/output/php/src/requests/InsightsTest.php +++ b/tests/output/php/src/requests/InsightsTest.php @@ -632,7 +632,7 @@ public function testPushEvents1() 'index' => 'products', 'userToken' => 'user-123456', 'authenticatedUserToken' => 'user-123456', - 'timestamp' => 1718496000000, + 'timestamp' => 1718755200000, 'objectIDs' => [ '9780545139700', @@ -646,7 +646,7 @@ public function testPushEvents1() 'index' => 'products', 'userToken' => 'user-123456', 'authenticatedUserToken' => 'user-123456', - 'timestamp' => 1718496000000, + 'timestamp' => 1718755200000, 'objectIDs' => [ '9780545139700', @@ -661,7 +661,7 @@ public function testPushEvents1() [ 'path' => '/1/events', 'method' => 'POST', - 'body' => json_decode('{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"]}]}'), + 'body' => json_decode('{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"]}]}'), ], ]); @@ -673,7 +673,7 @@ public function testPushEvents1() 'index' => 'products', 'userToken' => 'user-123456', 'authenticatedUserToken' => 'user-123456', - 'timestamp' => 1718496000000, + 'timestamp' => 1718755200000, 'objectIDs' => [ '9780545139700', @@ -687,7 +687,7 @@ public function testPushEvents1() 'index' => 'products', 'userToken' => 'user-123456', 'authenticatedUserToken' => 'user-123456', - 'timestamp' => 1718496000000, + 'timestamp' => 1718755200000, 'objectIDs' => [ '9780545139700', diff --git a/tests/output/python/tests/requests/insights_test.py b/tests/output/python/tests/requests/insights_test.py index 56f9278708..5a7e205853 100644 --- a/tests/output/python/tests/requests/insights_test.py +++ b/tests/output/python/tests/requests/insights_test.py @@ -481,7 +481,7 @@ async def test_push_events_1(self): "index": "products", "userToken": "user-123456", "authenticatedUserToken": "user-123456", - "timestamp": 1718496000000, + "timestamp": 1718755200000, "objectIDs": [ "9780545139700", "9780439784542", @@ -494,7 +494,7 @@ async def test_push_events_1(self): "index": "products", "userToken": "user-123456", "authenticatedUserToken": "user-123456", - "timestamp": 1718496000000, + "timestamp": 1718755200000, "objectIDs": [ "9780545139700", "9780439784542", @@ -509,7 +509,7 @@ async def test_push_events_1(self): assert _req.query_parameters.items() == {}.items() assert _req.headers.items() >= {}.items() assert loads(_req.data) == loads( - """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"]}]}""" + """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"]}]}""" ) raw_resp = await InsightsClient( @@ -523,7 +523,7 @@ async def test_push_events_1(self): "index": "products", "userToken": "user-123456", "authenticatedUserToken": "user-123456", - "timestamp": 1718496000000, + "timestamp": 1718755200000, "objectIDs": [ "9780545139700", "9780439784542", @@ -536,7 +536,7 @@ async def test_push_events_1(self): "index": "products", "userToken": "user-123456", "authenticatedUserToken": "user-123456", - "timestamp": 1718496000000, + "timestamp": 1718755200000, "objectIDs": [ "9780545139700", "9780439784542", @@ -558,7 +558,7 @@ async def test_push_events_1(self): "index": "products", "userToken": "user-123456", "authenticatedUserToken": "user-123456", - "timestamp": 1718496000000, + "timestamp": 1718755200000, "objectIDs": [ "9780545139700", "9780439784542", @@ -571,7 +571,7 @@ async def test_push_events_1(self): "index": "products", "userToken": "user-123456", "authenticatedUserToken": "user-123456", - "timestamp": 1718496000000, + "timestamp": 1718755200000, "objectIDs": [ "9780545139700", "9780439784542", diff --git a/tests/output/ruby/test/requests/insights_test.rb b/tests/output/ruby/test/requests/insights_test.rb index 8c7d65795f..03e984aa18 100644 --- a/tests/output/ruby/test/requests/insights_test.rb +++ b/tests/output/ruby/test/requests/insights_test.rb @@ -365,7 +365,7 @@ def test_push_events1 index: "products", user_token: "user-123456", authenticated_user_token: "user-123456", - timestamp: 1_718_496_000_000, + timestamp: 1_718_755_200_000, object_ids: ["9780545139700", "9780439784542"], query_id: "43b15df305339e827f0ac0bdc5ebcaa7" ), @@ -375,7 +375,7 @@ def test_push_events1 index: "products", user_token: "user-123456", authenticated_user_token: "user-123456", - timestamp: 1_718_496_000_000, + timestamp: 1_718_755_200_000, object_ids: ["9780545139700", "9780439784542"] ) ] @@ -387,7 +387,7 @@ def test_push_events1 assert_equal({}.to_a, req.query_params.to_a) assert(({}.to_a - req.headers.to_a).empty?, req.headers.to_s) assert_equal( - JSON.parse('{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"]}]}'), JSON.parse(req.body) + JSON.parse('{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"]}]}'), JSON.parse(req.body) ) res = @e2e_client.push_events_with_http_info( @@ -399,7 +399,7 @@ def test_push_events1 index: "products", user_token: "user-123456", authenticated_user_token: "user-123456", - timestamp: 1_718_496_000_000, + timestamp: 1_718_755_200_000, object_ids: ["9780545139700", "9780439784542"], query_id: "43b15df305339e827f0ac0bdc5ebcaa7" ), @@ -409,7 +409,7 @@ def test_push_events1 index: "products", user_token: "user-123456", authenticated_user_token: "user-123456", - timestamp: 1_718_496_000_000, + timestamp: 1_718_755_200_000, object_ids: ["9780545139700", "9780439784542"] ) ] @@ -426,7 +426,7 @@ def test_push_events1 index: "products", user_token: "user-123456", authenticated_user_token: "user-123456", - timestamp: 1_718_496_000_000, + timestamp: 1_718_755_200_000, object_ids: ["9780545139700", "9780439784542"], query_id: "43b15df305339e827f0ac0bdc5ebcaa7" ), @@ -436,7 +436,7 @@ def test_push_events1 index: "products", user_token: "user-123456", authenticated_user_token: "user-123456", - timestamp: 1_718_496_000_000, + timestamp: 1_718_755_200_000, object_ids: ["9780545139700", "9780439784542"] ) ] diff --git a/tests/output/scala/src/test/scala/algoliasearch/requests/InsightsTest.scala b/tests/output/scala/src/test/scala/algoliasearch/requests/InsightsTest.scala index 483be0de26..c044f96412 100644 --- a/tests/output/scala/src/test/scala/algoliasearch/requests/InsightsTest.scala +++ b/tests/output/scala/src/test/scala/algoliasearch/requests/InsightsTest.scala @@ -597,7 +597,7 @@ class InsightsTest extends AnyFunSuite { index = "products", userToken = "user-123456", authenticatedUserToken = Some("user-123456"), - timestamp = Some(1718496000000L), + timestamp = Some(1718755200000L), objectIDs = Seq("9780545139700", "9780439784542"), queryID = "43b15df305339e827f0ac0bdc5ebcaa7" ), @@ -607,7 +607,7 @@ class InsightsTest extends AnyFunSuite { index = "products", userToken = "user-123456", authenticatedUserToken = Some("user-123456"), - timestamp = Some(1718496000000L), + timestamp = Some(1718755200000L), objectIDs = Seq("9780545139700", "9780439784542") ) ) @@ -620,7 +620,7 @@ class InsightsTest extends AnyFunSuite { assert(res.path == "/1/events") assert(res.method == "POST") val expectedBody = parse( - """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718496000000,"objectIDs":["9780545139700","9780439784542"]}]}""" + """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1718755200000,"objectIDs":["9780545139700","9780439784542"]}]}""" ) val actualBody = parse(res.body.get) assert(actualBody == expectedBody) @@ -634,7 +634,7 @@ class InsightsTest extends AnyFunSuite { index = "products", userToken = "user-123456", authenticatedUserToken = Some("user-123456"), - timestamp = Some(1718496000000L), + timestamp = Some(1718755200000L), objectIDs = Seq("9780545139700", "9780439784542"), queryID = "43b15df305339e827f0ac0bdc5ebcaa7" ), @@ -644,7 +644,7 @@ class InsightsTest extends AnyFunSuite { index = "products", userToken = "user-123456", authenticatedUserToken = Some("user-123456"), - timestamp = Some(1718496000000L), + timestamp = Some(1718755200000L), objectIDs = Seq("9780545139700", "9780439784542") ) ) diff --git a/tests/output/swift/Tests/requests/InsightsTests.swift b/tests/output/swift/Tests/requests/InsightsTests.swift index 253d8fb051..82182028ee 100644 --- a/tests/output/swift/Tests/requests/InsightsTests.swift +++ b/tests/output/swift/Tests/requests/InsightsTests.swift @@ -843,7 +843,7 @@ final class InsightsClientRequestsTests: XCTestCase { queryID: "43b15df305339e827f0ac0bdc5ebcaa7", userToken: "user-123456", authenticatedUserToken: "user-123456", - timestamp: Int64(1_718_496_000_000) + timestamp: Int64(1_718_755_200_000) )), EventsItems.viewedObjectIDs(ViewedObjectIDs( eventName: "Product Detail Page Viewed", @@ -852,7 +852,7 @@ final class InsightsClientRequestsTests: XCTestCase { objectIDs: ["9780545139700", "9780439784542"], userToken: "user-123456", authenticatedUserToken: "user-123456", - timestamp: Int64(1_718_496_000_000) + timestamp: Int64(1_718_755_200_000) )), ])) let responseBodyData = try XCTUnwrap(response.bodyData) @@ -862,7 +862,7 @@ final class InsightsClientRequestsTests: XCTestCase { let echoResponseBodyJSON = try XCTUnwrap(echoResponseBodyData.jsonString) let expectedBodyData = - "{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718496000000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718496000000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}" + "{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718755200000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1718755200000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}" .data(using: .utf8) let expectedBodyJSON = try XCTUnwrap(expectedBodyData?.jsonString) @@ -887,7 +887,7 @@ final class InsightsClientRequestsTests: XCTestCase { queryID: "43b15df305339e827f0ac0bdc5ebcaa7", userToken: "user-123456", authenticatedUserToken: "user-123456", - timestamp: Int64(1_718_496_000_000) + timestamp: Int64(1_718_755_200_000) )), EventsItems.viewedObjectIDs(ViewedObjectIDs( eventName: "Product Detail Page Viewed", @@ -896,7 +896,7 @@ final class InsightsClientRequestsTests: XCTestCase { objectIDs: ["9780545139700", "9780439784542"], userToken: "user-123456", authenticatedUserToken: "user-123456", - timestamp: Int64(1_718_496_000_000) + timestamp: Int64(1_718_755_200_000) )), ])) let e2eResponseBody = try XCTUnwrap(e2eResponse.body)